Skip to content

Checks with multiple or empty probe actions are accepted #87

Open

Description

@jacobtomlinson-bot

Checks are accepted even when they do not define exactly one usable probe action. Ambiguous checks can silently run a different action than the manifest author expects, while empty actions fail only after container startup.

Minimal reproduction

Load this manifest with LoadValidatorFromBytes:

name: example
checks:
  - name: ambiguous
    probe:
      exec:
        command: ["true"]
      tcpSocket:
        port: 8080
  - name: empty-exec
    probe:
      exec: {}

Verified on main at db5af4f: loading succeeds with both checks intact. During validation, the ambiguous check runs only its exec action, and the empty exec action reaches the container runtime without a command.

Expected behavior

Manifest validation should reject a check unless it contains exactly one supported, usable probe action. The error should identify the affected check before container startup.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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