Skip to content

Support custom labels on the operator Deployment and pod #790

Closed

Description

@TiansuYu

Describe the current behavior

The operator Helm chart only adds its built-in app and version labels to the operator Deployment and pod. It supports custom annotations, but it does not provide a value for adding custom labels.

Users that require ownership, cost-allocation, policy, or workload-integration labels must maintain a downstream copy of the chart to modify templates/deployment.yaml.

Describe the enhancement

Add an optional starrocksOperator.labels map to the operator chart. When configured, render these labels on:

  • the operator Deployment metadata;
  • the operator pod-template metadata.

Keep the Deployment selector unchanged. Custom organizational labels are mutable and should not become part of the immutable spec.selector.

Example:

starrocksOperator:
  labels:
    team: data-platform
    environment: production

The default should remain {} so existing rendered manifests do not change.

Additional context

This would remove the need for downstream chart forks whose only template modification is custom operator labels. The chart already exposes starrocksOperator.annotations; providing the equivalent label capability would make its metadata configuration more complete.

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