compliantkubernetes-apps icon indicating copy to clipboard operation
compliantkubernetes-apps copied to clipboard

Config validation warnings on unrelated charts

Open davidumea opened this issue 3 months ago • 1 comments

Description

When setting up a new environment you may only want to apply a smaller selection of charts, e.g. you may want to apply ingress-nginx to set up a LoadBalancer before applying the rest of the apps.

So in this case when running ./bin/ck8s ops helmfile sc -l app=ingress-nginx apply you will be warned about failed config validation that is completely unrelated to the chart:

1 of 1 failed validation
.networkPolicies.global.objectStorage.ips.0 = "set-me"
.networkPolicies.global.objectStorage.ports.0 = "set-me"
.networkPolicies.global.scIngress.ips.0 = "set-me"
.networkPolicies.global.wcApiserver.ips.0 = "set-me"
.networkPolicies.global.wcIngress.ips.0 = "set-me"
.networkPolicies.global.wcNodes.ips.0 = "set-me"

It would be great if only the config that is relevant for the chart(s) that you want to apply are validated.

Maybe a simpler solution would be to specify parts of the schema to ignore when validating if you know that the values will be incorrect at this moment, but they may be needed later on.

Additional context

No response

Definition of done

  • [ ] You don't get warned about failed config validations on unrelated charts

davidumea avatar Nov 07 '24 13:11 davidumea