Kubernetes: add option to fetch additional objectTypes which are not present in DEFAULT_OBJECTS (#28150)
* Fixed lack of secrets Signed-off-by: Florian Fl Bauer <florian.fl.bauer@deutschebahn.com> * add tests Signed-off-by: Florian Fl Bauer <florian.fl.bauer@deutschebahn.com> * remove log Signed-off-by: Florian Fl Bauer <florian.fl.bauer@deutschebahn.com> --------- Signed-off-by: Florian Fl Bauer <florian.fl.bauer@deutschebahn.com>
This commit is contained in:
@@ -20,6 +20,7 @@ import { V1LimitRange } from '@kubernetes/client-node';
|
||||
import { V1Pod } from '@kubernetes/client-node';
|
||||
import { V1ReplicaSet } from '@kubernetes/client-node';
|
||||
import { V1ResourceQuota } from '@kubernetes/client-node';
|
||||
import { V1Secret } from '@kubernetes/client-node';
|
||||
import { V1Service } from '@kubernetes/client-node';
|
||||
import { V1StatefulSet } from '@kubernetes/client-node';
|
||||
import { V2HorizontalPodAutoscaler } from '@kubernetes/client-node';
|
||||
@@ -264,7 +265,8 @@ export type FetchResponse =
|
||||
| CustomResourceFetchResponse
|
||||
| StatefulSetsFetchResponse
|
||||
| DaemonSetsFetchResponse
|
||||
| PodStatusFetchResponse;
|
||||
| PodStatusFetchResponse
|
||||
| SecretsFetchResponse;
|
||||
|
||||
// @public (undocumented)
|
||||
export interface GroupedResponses extends DeploymentResources {
|
||||
@@ -432,6 +434,14 @@ export interface ResourceRef {
|
||||
namespace: string;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export interface SecretsFetchResponse {
|
||||
// (undocumented)
|
||||
resources: Array<V1Secret>;
|
||||
// (undocumented)
|
||||
type: 'secrets';
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export interface ServiceFetchResponse {
|
||||
// (undocumented)
|
||||
|
||||
@@ -30,6 +30,7 @@ import {
|
||||
V1ResourceQuota,
|
||||
V1Service,
|
||||
V1StatefulSet,
|
||||
V1Secret,
|
||||
} from '@kubernetes/client-node';
|
||||
import { Entity } from '@backstage/catalog-model';
|
||||
|
||||
@@ -139,7 +140,8 @@ export type FetchResponse =
|
||||
| CustomResourceFetchResponse
|
||||
| StatefulSetsFetchResponse
|
||||
| DaemonSetsFetchResponse
|
||||
| PodStatusFetchResponse;
|
||||
| PodStatusFetchResponse
|
||||
| SecretsFetchResponse;
|
||||
|
||||
/** @public */
|
||||
export interface PodFetchResponse {
|
||||
@@ -231,6 +233,12 @@ export interface PodStatusFetchResponse {
|
||||
resources: Array<PodStatus>;
|
||||
}
|
||||
|
||||
/** @public */
|
||||
export interface SecretsFetchResponse {
|
||||
type: 'secrets';
|
||||
resources: Array<V1Secret>;
|
||||
}
|
||||
|
||||
/** @public */
|
||||
export type KubernetesFetchError = StatusError | RawFetchError;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user