Merge pull request #11505 from ivangonzalezacuna/feature/kubernetes-statefulsets

Add support for statefulsets in kubernetes
This commit is contained in:
Johan Haals
2022-05-19 14:08:25 +02:00
committed by GitHub
23 changed files with 7897 additions and 4 deletions
+13 -1
View File
@@ -14,6 +14,7 @@ import { V1Job } from '@kubernetes/client-node';
import { V1Pod } from '@kubernetes/client-node';
import { V1ReplicaSet } from '@kubernetes/client-node';
import { V1Service } from '@kubernetes/client-node';
import { V1StatefulSet } from '@kubernetes/client-node';
// Warning: (ae-missing-release-tag) "AuthProviderType" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
@@ -135,7 +136,8 @@ export type FetchResponse =
| JobsFetchResponse
| CronJobsFetchResponse
| IngressesFetchResponse
| CustomResourceFetchResponse;
| CustomResourceFetchResponse
| StatefulSetsFetchResponse;
// Warning: (ae-missing-release-tag) "HorizontalPodAutoscalersFetchResponse" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
@@ -240,4 +242,14 @@ export interface ServiceFetchResponse {
// (undocumented)
type: 'services';
}
// Warning: (ae-missing-release-tag) "StatefulSetsFetchResponse" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export interface StatefulSetsFetchResponse {
// (undocumented)
resources: Array<V1StatefulSet>;
// (undocumented)
type: 'statefulsets';
}
```
+8 -1
View File
@@ -25,6 +25,7 @@ import {
V1Pod,
V1ReplicaSet,
V1Service,
V1StatefulSet,
} from '@kubernetes/client-node';
import { Entity } from '@backstage/catalog-model';
@@ -99,7 +100,8 @@ export type FetchResponse =
| JobsFetchResponse
| CronJobsFetchResponse
| IngressesFetchResponse
| CustomResourceFetchResponse;
| CustomResourceFetchResponse
| StatefulSetsFetchResponse;
export interface PodFetchResponse {
type: 'pods';
@@ -151,6 +153,11 @@ export interface CustomResourceFetchResponse {
resources: Array<any>;
}
export interface StatefulSetsFetchResponse {
type: 'statefulsets';
resources: Array<V1StatefulSet>;
}
export interface KubernetesFetchError {
errorType: KubernetesErrorTypes;
statusCode?: number;