grim/tagpull

Parents 33f8b28b8dc3
Children 1662950b867d
Look for the annotation on the deployment itself and not in it's template
  • +1 -1
    operator.go
  • --- a/operator.go Sun Jul 05 05:46:55 2020 -0500
    +++ b/operator.go Sun Jul 05 06:03:07 2020 -0500
    @@ -82,7 +82,7 @@
    for _, deployment := range deployments.Items {
    // before checking the deployment, make sure we have the
    // annotation.
    - if rawInterval, found := deployment.Spec.Template.Annotations[Annotation]; found {
    + if rawInterval, found := deployment.Annotations[Annotation]; found {
    o.checkDeployment(deployment, ts, rawInterval)
    }
    }