Allow Exclude of some paths from the Labels and Selectors Kustomize Feature #5913
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Eschewed features
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
The text was updated successfully, but these errors were encountered: