Closed koroldavid closed 11 months ago
Hi! You can pipe the result to kubeconform to avoid the temporary file... I'm not sure of a way to avoid replacing the variables before invoking Kubeconform though!
I'll be closing this issue since it's slightly out of scope, feel free to update if you ever found a solution :pray: !
Given such config:
Its validation will result in an error:
Technically,
kubeconform
working correctly. However, in practice, I will replace${REPLICA_COUNT}
usingenvsubst < test-config.yaml
. So I want to ignore it by my CI.My current workaround is to substitute all
${*}
with null. Write that content to a temporary file. And finally validate it.Is there any better approach? The ability to ignore a rule per some line might come in handy