mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Switch CronJob default apiBase
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
25a8b089f8
commit
d34902a262
@ -13,7 +13,12 @@ const cronJobApiInjectable = getInjectable({
|
||||
instantiate: (di) => {
|
||||
assert(di.inject(storesAndApisCanBeCreatedInjectionToken), "cronJobApi is only available in certain environments");
|
||||
|
||||
return new CronJobApi();
|
||||
return new CronJobApi({
|
||||
fallbackApiBases: [
|
||||
"/apis/batch/v1beta1/cronjobs",
|
||||
],
|
||||
checkPreferredVersion: true,
|
||||
});
|
||||
},
|
||||
|
||||
injectionToken: kubeApiInjectionToken,
|
||||
|
||||
@ -73,7 +73,7 @@ export class CronJob extends KubeObject<
|
||||
> {
|
||||
static readonly kind = "CronJob";
|
||||
static readonly namespaced = true;
|
||||
static readonly apiBase = "/apis/batch/v1beta1/cronjobs";
|
||||
static readonly apiBase = "/apis/batch/v1/cronjobs";
|
||||
|
||||
getSuspendFlag() {
|
||||
return (this.spec.suspend ?? false).toString();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user