operator icon indicating copy to clipboard operation
operator copied to clipboard

Remove inheritance of some labels

Open aivanov-citc opened this issue 3 years ago • 2 comments

Hi! We use the Flux GitOps system to deliver the configuration to the cluster. The Flux marks its controlled resources with labels. Only those resources that are in the cluster configuration repository should be monitored.

In the case of minio, these are custom tenant resources, but not statefulsets generated by the operator.

Please add the ability to exclude labels when inheriting from a tenant in a statefulset, for example, using a regular expression, as implemented in the kafka operator

containers:
  - name: strimzi-cluster-operator
    env:
      - name: STRIMZI_LABELS_EXCLUSION_PATTERN
        value: "^kustomize.toolkit.fluxcd.*"

aivanov-citc avatar Aug 04 '22 09:08 aivanov-citc

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 12 '22 21:11 stale[bot]

I am looking at a similar case in strimzi operator for the STRIMZI_LABELS_EXCLUSION_PATTERN https://github.com/strimzi/strimzi-kafka-operator/issues/5242 to understand better what the issue is here.

Are you having a restart of the tenant pods/statefulsets @aivanov-citc? Why you want to prevent the labels propagation?

I am interested on bring to the light which kind of situations could happen if we just propagate the labels, if any.

pjuarezd avatar Nov 06 '23 18:11 pjuarezd