Skip to content

reconciliation overwrites existing secrets #4374

Answered by stefanprodan
wibed asked this question in General
Discussion options

You must be logged in to vote

If you want Flux to ignore changes made to secrets which are managed by other controllers add the IfNotPresent annotation:

apiVersion: v1
kind: Secret
metadata:
  annotations:
    kustomize.toolkit.fluxcd.io/ssa: IfNotPresent

Docs here: https://fluxcd.io/flux/components/kustomize/kustomizations/#controlling-the-apply-behavior-of-resources

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by stefanprodan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants