datainfrahq / druid-operator

Apache Druid On Kubernetes
Other
101 stars 42 forks source link

Node Spec `podLabels` don't work if cluster spec `podLabels` are not defined #183

Closed owais closed 2 months ago

owais commented 2 months ago

The following spec will not add any labels to pods (bug)

apiVersion: "druid.apache.org/v1alpha1"
kind: "Druid"
metadata:
  name: tiny-cluster
spec:
  nodes:
    brokers:
      podLabels:
        label_a: yes

But the following will add both label_a and label_b (as expected)

apiVersion: "druid.apache.org/v1alpha1"
kind: "Druid"
metadata:
  name: tiny-cluster
spec:
  podLabels:
    label_a: yes
  nodes:
    brokers:
      podLabels:
        label_b: yes
AdheipSingh commented 2 months ago

thanks for taking this a notice.