Skip to content

Malformed json in DEPENDENCY_POD_JSON prints unnoticable worning instead of app crash with error code #8

@dantalian-pv

Description

@dantalian-pv

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions