kustomize-controller: Upgrade from v0.17.2 to v0.18.0 causes changes on each reconcile cycle

Before the upgrade we only got events on slack when there was in fact changes checked into git, after the upgrade we get events on every 10mins:

CustomResourceDefinition/volumesnapshots.snapshot.storage.k8s.io configured
Secret/flux-system/slack-url configured

The slack-url is a sops encrypted secret

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 19 (17 by maintainers)

Most upvoted comments

I can confirm that secrets with creationTimestamp: null causes issue. For each cycle there is a configured event and a notification. Removing creationTimestamp solves that.

Events each cycle before removal:

0s          Normal   info     kustomization/flux-system   Secret/service/my-tls configured
0s          Normal   info     kustomization/flux-system   Reconciliation finished in 1.796202531s, next run in 10m0s```

Events each cycle after removal:

0s          Normal   info     kustomization/flux-system   Reconciliation finished in 1.500361335s, next run in 10m0s

This example’s interval is .spec.interval from a HelmRelease. kustomize-controller v0.15.2.

Edit: Diff for kustomization between cycles before removal was updated Resource Version and LastTransitionTime.