Files
Seba 0b729da922 add the pod delete feature to the kubernetes react plugin (#24534)
* add the pod delete feature to the kubernetes react plugin

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* move podDelete into PodDrawer

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* remove dialog and use only a button

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* move config inside frontend object

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* update the k8 configration.md documentation

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* add error ui if error

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* refactor restart text logic

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* fix test var name

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* fix doc key

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* revert last commit

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* add i18n

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* Update plugins/kubernetes-react/src/translation.ts

Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Seba <17096352+sebalaini@users.noreply.github.com>

* remove buttonText config

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* add alpha and doc

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* add alpha api report

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

---------

Signed-off-by: sebalaini <sebastianolaini@gmail.com>
Signed-off-by: Seba <17096352+sebalaini@users.noreply.github.com>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-11-05 15:04:48 -05:00

47 lines
1.2 KiB
TypeScript

import { PodExecTerminal } from './src/components/PodExecTerminal/PodExecTerminal';
/*
* Copyright 2023 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export interface Config {
kubernetes?: {
/**
* Pod Exec Terminal config
*/
podExecTerminal?: {
/**
* Enable `PodExecTerminal` UI feature
* @visibility frontend
*/
enabled?: boolean;
};
/**
* Frontend config
*/
frontend?: {
/**
* Pod Delete config
*/
podDelete?: {
/**
* Enable `podDelete` UI feature
* @visibility frontend
*/
enabled?: boolean;
};
};
};
}