Skip to content

Delete behaviour #4931

Answered by makkes
volatilemolotov asked this question in General
Aug 14, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

If you want a resource to be deleted from the cluster but keep it in Git, you have several options, depending on how Flux managed the resource. If you have a kustomization.yaml in your Git repo, just remove the resource file from the resources field. If your Kustomization's .spec.prune field is set to prune, the resource will be removed from the cluster but you'll still have it in Git.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@volatilemolotov
Comment options

@makkes
Comment options

Answer selected by volatilemolotov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants