Skip to content

Should podcli exit with errorlevel for unknown command? #401

Open
@Jaykul

Description

@Jaykul

I discovered this morning that if we make a mistake in the command-line for podcli, the healthchecks always "pass" without checking anything. For instance, if someone tries this:

        readinessProbe:
          exec:
            command:
            - podcli
            - check
            - https
            - localhost:9898/readyz
          initialDelaySeconds: 5
          timeoutSeconds: 5

It outputs the help, but doesn't produce a non-zero exit code, so the health check "passes"

Obviously, what they meant was this:

        readinessProbe:
          exec:
            command:
            - podcli
            - check
            - http
            - https://localhost:9898/readyz
          initialDelaySeconds: 5
          timeoutSeconds: 5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions