Merge pull request #8284 from ccodreanu/cronjobs_batchv1beta1

Request CronJobs with older apiGroup
This commit is contained in:
Patrik Oldsberg
2021-12-01 10:57:14 +01:00
committed by GitHub
3 changed files with 9 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-kubernetes-backend': patch
---
Query CronJobs from Kubernetes with apiGroup BatchV1beta1
@@ -16,7 +16,7 @@
import {
AppsV1Api,
BatchV1Api,
BatchV1beta1Api,
AutoscalingV1Api,
CoreV1Api,
KubeConfig,
@@ -78,7 +78,7 @@ export class KubernetesClientProvider {
getBatchClientByClusterDetails(clusterDetails: ClusterDetails) {
const kc = this.getKubeConfig(clusterDetails);
return kc.makeApiClient(BatchV1Api);
return kc.makeApiClient(BatchV1beta1Api);
}
getNetworkingBeta1Client(clusterDetails: ClusterDetails) {
@@ -17,7 +17,7 @@
import {
AppsV1Api,
AutoscalingV1Api,
BatchV1Api,
BatchV1beta1Api,
CoreV1Api,
NetworkingV1beta1Api,
} from '@kubernetes/client-node';
@@ -42,7 +42,7 @@ export interface Clients {
core: CoreV1Api;
apps: AppsV1Api;
autoscaling: AutoscalingV1Api;
batch: BatchV1Api;
batch: BatchV1beta1Api;
networkingBeta1: NetworkingV1beta1Api;
}