Skip to content

[BUG] - Liveness probe port exposed in args is being ignored #1086

@drisbee

Description

@drisbee

System info:

  • OS: [MacOS]
    Describe the bug
    Kube-linter ignores that a liveness is being exposed in the container arguments.

To Reproduce
Steps to reproduce the behavior:

  1. get opentelemetry-operator-0.100.0 chart
  2. kube-linter lint opentelemetry-operator

Sample YAML input

      containers:
        - args:
            - --metrics-addr=0.0.0.0:8080
            - --enable-leader-election
            {{- end }}
            - --health-probe-addr=8081

Expected behavior
A clear and concise description of what you expected to happen.
No error as this

grafana-tempo/charts/opentelemetry-operator/templates/deployment.yaml: (object: default/test-release-opentelemetry-operator apps/v1, Kind=Deployment) container "manager" does not expose port 8081 for the HTTPGet (check: liveness-port, remediation: Check which ports you've exposed and ensure they match what you have specified in the liveness probe.)

Screenshots
not applicable

Additional context

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