From 2e99a477b7301e907b9830dfdd06deb83bf8985a Mon Sep 17 00:00:00 2001 From: Gabor Burges Date: Thu, 9 Nov 2023 16:02:24 +0100 Subject: [PATCH] We don't need the job to be monitored --- controllers/reconcile.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/reconcile.go b/controllers/reconcile.go index 2a4b09b6..39f8894e 100644 --- a/controllers/reconcile.go +++ b/controllers/reconcile.go @@ -138,7 +138,7 @@ func populateContainer(d *apps.Deployment, frontend *crd.Frontend, frontendEnvir d.SetOwnerReferences([]metav1.OwnerReference{frontend.MakeOwnerReference()}) - // Modify the obejct to set the things we care about + // Modify the object to set the things we care about d.Spec.Template.Spec.Containers = []v1.Container{{ Name: "fe-image", Image: frontend.Spec.Image, @@ -568,6 +568,8 @@ func (r *FrontendReconciliation) createOrUpdateCacheBustJob() error { annotations = make(map[string]string) } annotations["frontend-image"] = r.Frontend.Spec.Image + annotations["kube-linter.io/ignore-all"] = "we don't need no any checking" + j.Spec.Template.ObjectMeta.SetAnnotations(annotations) errr := r.populateCacheBustContainer(j)