Update kubernetes config schema to match available options (#17253)

Signed-off-by: Riley Martine <rmartine@integralads.com>
This commit is contained in:
Riley Martine
2023-04-04 17:44:33 -06:00
committed by GitHub
parent 34e50f3438
commit 56a28b559e
3 changed files with 16 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-kubernetes-backend': patch
---
Updated kubernetes config schema to match available options
+9 -1
View File
@@ -21,11 +21,15 @@ export interface Config {
| 'services'
| 'configmaps'
| 'deployments'
| 'limitranges'
| 'replicasets'
| 'horizontalpodautoscalers'
| 'jobs'
| 'cronjobs'
| 'ingresses'
| 'customresources'
| 'statefulsets'
| 'daemonsets'
>;
serviceLocatorMethod: {
type: 'multiTenant';
@@ -99,11 +103,15 @@ export interface Config {
services?: string;
configmaps?: string;
deployments?: string;
limitranges?: string;
replicasets?: string;
horizontalpodautoscalers?: string;
cronjobs?: string;
jobs?: string;
cronjobs?: string;
ingresses?: string;
customresources?: string;
statefulsets?: string;
daemonsets?: string;
} & { [pluralKind: string]: string };
};
}
@@ -104,6 +104,8 @@ export type KubernetesObjectTypes =
| 'customresources'
| 'statefulsets'
| 'daemonsets';
// If updating this list, also make sure to update
// `objectTypes` and `apiVersionOverrides` in config.d.ts!
/**
* Used to load cluster details from different sources