Skip to content

[Bug]: Duplicate port name "healthcheck" in entity-operator #12756

@eli-gc

Description

@eli-gc

Bug Description

Seeing these duplicate port name warnings in entity-operator. This is because the topic-operator and user-operator containers within the entity-operator pod both define ports with name "healthcheck"

containers:
    - name: topic-operator
      image: quay.io/strimzi/operator:0.47.0
      args:
        - /opt/strimzi/bin/topic_operator_run.sh
      ports:
        - name: healthcheck
          containerPort: 8080
          protocol: TCP
...
      - name: user-operator
        image: quay.io/strimzi/operator:0.47.0
        args:
          - /opt/strimzi/bin/user_operator_run.sh
        ports:
          - name: healthcheck
            containerPort: 8081
            protocol: TCP

Steps to reproduce

Deploy entity operator with both user-operator and topic-operator.
I saw the warning when I did kubectl rollout restart

Expected behavior

It doesn't really seem to be affecting current functionality but it is probably best practice to name the ports distinct names. I think it would be affected if services or network policies reference the "healthcheck" port name.

Strimzi version

0.47.0

Kubernetes version

1.35.4

Installation method

Helm chart

Infrastructure

AKS

Configuration files and logs

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions