Skip to content

Flux reconciliation triggers Password generator and ExternalSecret regeneration #2402

Answered by mloskot
mloskot asked this question in Q&A
Discussion options

You must be logged in to vote

@moolen As I mentioned, I have two AKS clusters, A and B, both GitOps-based using Flux.
I have identified what was the difference between A and B that seems to be causing in cluster B re-generation of Password-based Secret despite setting its 'manager' ExternalSecret with refreshInterval: 0s.

I found that in cluster B I had multiple 2-3 Flux Kustomization-s with overlapping path-s, which effectively boiled down to

  • path: ./clusters/b in flux-kustomization-main.yaml
  • path: ./clusters/b/apps in flux-kustomization-apps.yaml
  • path: ./clusters/b/apps/tests in test-api-key.yaml

where test-api-key.yaml is

---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: te…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@moolen
Comment options

@moolen
Comment options

@mloskot
Comment options

@mloskot
Comment options

Answer selected by mloskot
@tculp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants