Skip to content

Commit

Permalink
Merge pull request #148 from gburges/nojob
Browse files Browse the repository at this point in the history
We don't need the job to be monitored
  • Loading branch information
adamrdrew committed Nov 10, 2023
2 parents 36c4eef + 2e99a47 commit 7477bd9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7477bd9

Please sign in to comment.