Skip to content

Commit

Permalink
Merge pull request #501 from SomtochiAma/weird-ssa-behaviour
Browse files Browse the repository at this point in the history
Document behaviour when changes are made to fields not stored in git
  • Loading branch information
stefanprodan authored Dec 2, 2021
2 parents 1cb35f5 + 6fa1c8a commit 284b637
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/spec/v1beta2/kustomization.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,11 @@ Note that when the `kustomize.toolkit.fluxcd.io/reconcile` annotation is set to
the controller will no longer apply changes from source, nor will it prune the resource.
To resume reconciliation, set the annotation to `enabled` or remove it.

Note that due to the way [Kubernetes server-side apply](https://kubernetes.io/docs/reference/using-api/server-side-apply/)
works, the kustomize-controller can only revert
changes made to fields it manages. This means that `kubectl edit` changes will only be reverted if
those fields are present in git.

## Garbage collection

To enable garbage collection, set `spec.prune` to `true`.
Expand Down

0 comments on commit 284b637

Please sign in to comment.