diff --git a/.changeset/afraid-horses-argue.md b/.changeset/afraid-horses-argue.md new file mode 100644 index 0000000000..fa4b46df5d --- /dev/null +++ b/.changeset/afraid-horses-argue.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-kubernetes-backend': patch +--- + +Updated kubernetes config schema to match available options diff --git a/plugins/kubernetes-backend/config.d.ts b/plugins/kubernetes-backend/config.d.ts index d3f197c21e..e9b5878920 100644 --- a/plugins/kubernetes-backend/config.d.ts +++ b/plugins/kubernetes-backend/config.d.ts @@ -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 }; }; } diff --git a/plugins/kubernetes-backend/src/types/types.ts b/plugins/kubernetes-backend/src/types/types.ts index 25c7abfd1f..87011b3bb9 100644 --- a/plugins/kubernetes-backend/src/types/types.ts +++ b/plugins/kubernetes-backend/src/types/types.ts @@ -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