Open ksatchit opened 4 years ago
cc: @rahulchheda @ispeakc0de
@ksatchit Will this be per experiment-based validation for mandatory ENV's? For example https://docs.litmuschaos.io/docs/container-kill/#supported-experiment-tunables
And do we want it to extend the logic, to validate the resource as well, for example: TARGET_CONTAINER
should exist in the ...spec.containers[*].name
as well? Or just for the existence of those ENV's?
Right now we only validate (via OpenAPI v3 schema validation) the standard properties of the engine/experiment .spec. We need to extend validation (say, via the newly introduced validation webhook controller) to the experiment environment variables as well.