It is more of the design and application behavior question than real issue, but here is my use case:
Context:
I have kubernetes-entrypoint as an spec.initiContainer in my helm chart, where I generate the value for DEPENDENCY_POD_JSON environment variable. With that I can have format errors in my generated json.
Expected behavior:
kubernetes-entrypoint fails with error, so it will be seen during deployment, that something is wrong, instead of silently passing through and starting the next container in a Pod.
Current behavior:
kubernetes-entrypoint prints out a warning message and finishes its work. Such behavior leads to the point that the next container in the Pod starts, when it actually shouldn't.
Would it be possible to make the expected behavior optional via ENV variable or make it by default?