Merge pull request #11505 from ivangonzalezacuna/feature/kubernetes-statefulsets
Add support for statefulsets in kubernetes
This commit is contained in:
@@ -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';
|
||||
}
|
||||
```
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user