pulumi-kubernetes
pulumi-kubernetes copied to clipboard
Kubernetes Config file "deleteBeforeReplace" option
Hello!
- Vote on this issue by adding a 👍 reaction
- If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)
Issue details
Add a "deleteBeforeReplace" option for config files. https://www.pulumi.com/registry/packages/kubernetes/api-docs/yaml/configfile/#configfile
Affected area/feature
Thanks for opening the issue @caboog. I have added this to our backlog and the team will look to prioritize it.
I interpret this feature request as, provide a way to set the deleteBeforeReplace option on the child resources. I imagine that you'd want to apply this to a specific child, not to all children. I would suggest that the user use the transform option to adjust the options on the child resource(s). An alternative would be to support an annotation, similar to skipAwait, to same effect.
Another interpretation would be a desire to delete all resources of a given ConfigFile eagerly when the ConfigFile is deleted or replaced. Today the resources are deleted lazily, and this can cause problems, e.g in migration cases. I'll assume this latter interpretation is not intended.