Description
Eschewed features
- This issue is not requesting templating, unstuctured edits, build-time side-effects from args or env vars, or any other eschewed feature.
What would you like to have added?
When using the labels
feature to apply labels to selectors and labels, I need to exclude some specific sections, like inter-pod affinity or Argo Rollouts CRDs. But I have no way to tell Kustomize to Ignore these fields.
Basically I want an 'exclude' section where I can specify api, kind, and path of a section I want not modified by the labels feature.
Why is this needed?
There are times when specific fields, such as the Argo Rollouts Template section need to remain untouched. Or if I need something like pod-affinity to keep their base values.
Can you accomplish the motivating task without this feature, and if so, how?
The work around is to patch ontop of a patch. Which helps me extract out what was wrong in the first patch. But really this is excessive and hard to follow.
What other solutions have you considered?
See previous answer.
Anything else we should know?
This is a major issue for Argo Rollouts. If you are using a WorkloadSpec instead of a template, the template gets created by the label feature, which breaks Rollouts.
Feature ownership
- I am interested in contributing this feature myself! 🎉