elastisys / compliantkubernetes-apps

Elastisys Compliant Kubernetes is an open source, Certified Kubernetes distribution designed according to the ISO27001 controls: providing you with security tooling and observability from day one.
https://elastisys.io/compliantkubernetes/
Apache License 2.0
46 stars 7 forks source link

Update validation failure prompts and document "auto approve" variable #2298

Open aarnq opened 1 day ago

aarnq commented 1 day ago

Description

To smooth out the contributor experience we should improve the way prompts are handled in the cli, and give some exposure that one can set CK8S_AUTO_APPROVE during contribution only to skip them.

Additional context

One problem is that the config validation basically runs on two or three levels, so for each apply, and if you broke the config during contribution, then you have to accept the prompts to continue.

These errors should really only cause one prompt.

Additionally all prompts should have the same question, either do you want to continue, or do you want to abort, not mix them.

Definition of done

simonklb commented 1 day ago

When documenting CK8S_AUTO_APPROVE it's important that it says that this also automatically answers yes to everything else as well (e.g. helmfile apply) not just the config validation.