mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix annotation for cronjob when is manually triggered (#4976)
Signed-off-by: Carlos René Mederos Arias <krlosmederos@gmail.com>
This commit is contained in:
parent
e59cb04d5a
commit
adf3b8dc60
@ -15,7 +15,6 @@ import { Notifications } from "../notifications";
|
|||||||
import { cssNames } from "../../utils";
|
import { cssNames } from "../../utils";
|
||||||
import { Input } from "../input";
|
import { Input } from "../input";
|
||||||
import { systemName, maxLength } from "../input/input_validators";
|
import { systemName, maxLength } from "../input/input_validators";
|
||||||
import type { KubeObjectMetadata } from "../../../common/k8s-api/kube-object";
|
|
||||||
|
|
||||||
export interface CronJobTriggerDialogProps extends Partial<DialogProps> {
|
export interface CronJobTriggerDialogProps extends Partial<DialogProps> {
|
||||||
}
|
}
|
||||||
@ -80,6 +79,7 @@ export class CronJobTriggerDialog extends Component<CronJobTriggerDialogProps> {
|
|||||||
}, {
|
}, {
|
||||||
spec: cronjobDefinition.spec.jobTemplate.spec,
|
spec: cronjobDefinition.spec.jobTemplate.spec,
|
||||||
metadata: {
|
metadata: {
|
||||||
|
annotations: { "cronjob.kubernetes.io/instantiate": "manual" },
|
||||||
ownerReferences: [{
|
ownerReferences: [{
|
||||||
apiVersion: cronjob.apiVersion,
|
apiVersion: cronjob.apiVersion,
|
||||||
blockOwnerDeletion: true,
|
blockOwnerDeletion: true,
|
||||||
@ -88,7 +88,7 @@ export class CronJobTriggerDialog extends Component<CronJobTriggerDialogProps> {
|
|||||||
name: cronjob.metadata.name,
|
name: cronjob.metadata.name,
|
||||||
uid: cronjob.metadata.uid,
|
uid: cronjob.metadata.uid,
|
||||||
}],
|
}],
|
||||||
} as KubeObjectMetadata,
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
close();
|
close();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user