Open lantingchiang opened 4 months ago
Thanks for opening your first issue here! Be sure to follow the issue template!
Transferred to Chainsaw, not a Kyverno core issue.
Thanks for reporting, we could do something specific to override the namespace but a generic solution would be better 🤔
Problem Statement
If I have a test like the following:
where pods.yaml contains a pod manifest with metatdata.namespace specified. I would like to remove the namespace field or override it so that it gets created in the ephemeral namespace that chainsaw creates. The reason why I'm not directly removing metadata.namespace from pods.yaml is because the same manifest is used for other things.
Solution Description
There should be options to override fields from yaml files that are referenced in the
apply
operation. For example, I should be able to specifyto override the key, or
to remove the key
Alternatives
No response
Additional Context
No response
Slack discussion
https://kubernetes.slack.com/archives/C067LUFL43U/p1715011398814629
Research