Closed suryapandian closed 1 year ago
Hi @suryapandian , could you give an example of a file where kubeconform should throw an error ? Thanks!
Hi @yannh Thank you for quick response. Have updated the issue description with the example, please have a look and let me know if it would be possible for kubeconform to make this validation.
I see, in this case no, kubeconform would not be able to figure this out... Maybe check out conftest ? Sorry!
that's alright, thank you, will check out.
Any
kind
of kubernetes resource with a container could have environment variables with duplicates. Kubeconform validation on the environment variables, finding duplicates and throwing an error at duplciates would be helpful.In the yaml example above,
env
hasPGDATABASE
duplicated, ifkubeconform
could detect such duplicate evars and throw an error it would be useful.containers
is present in deployment, pod, job and cronjob spec.If someone could point me to the part of codebase where we could add the validation I am interested in taking this up and working on it.
Thank you for the amazing kubeconform, it is useful to us 🙇♀️