add cronjobs and jobs to k8s backend
Signed-off-by: Andrew Tran <atran@brex.com>
This commit is contained in:
@@ -17,8 +17,10 @@
|
||||
import {
|
||||
ExtensionsV1beta1Ingress,
|
||||
V1ConfigMap,
|
||||
V1CronJob,
|
||||
V1Deployment,
|
||||
V1HorizontalPodAutoscaler,
|
||||
V1Job,
|
||||
V1Pod,
|
||||
V1ReplicaSet,
|
||||
V1Service,
|
||||
@@ -83,6 +85,8 @@ export type FetchResponse =
|
||||
| DeploymentFetchResponse
|
||||
| ReplicaSetsFetchResponse
|
||||
| HorizontalPodAutoscalersFetchResponse
|
||||
| JobsFetchResponse
|
||||
| CronJobsFetchResponse
|
||||
| IngressesFetchResponse
|
||||
| CustomResourceFetchResponse;
|
||||
|
||||
@@ -116,6 +120,16 @@ export interface HorizontalPodAutoscalersFetchResponse {
|
||||
resources: Array<V1HorizontalPodAutoscaler>;
|
||||
}
|
||||
|
||||
export interface JobsFetchResponse {
|
||||
type: 'jobs';
|
||||
resources: Array<V1Job>;
|
||||
}
|
||||
|
||||
export interface CronJobsFetchResponse {
|
||||
type: 'cronjobs';
|
||||
resources: Array<V1CronJob>;
|
||||
}
|
||||
|
||||
export interface IngressesFetchResponse {
|
||||
type: 'ingresses';
|
||||
resources: Array<ExtensionsV1beta1Ingress>;
|
||||
|
||||
Reference in New Issue
Block a user