apiVersion: v1
kind: ConfigMap
metadata:
  name: spark-cluster-with-labels
  labels:
    radanalytics.io/kind: sparkcluster
data:
  config: |-
    worker:
      replicas: "2"
      labels:
        example-label-for-all-workers/bar: foo
        common-label-to-be-replaced-on-some-resources: worker-value
    master:
      replicas: "1"
      labels:
        example-label-for-master/foo: bar
        common-label-to-be-replaced-on-some-resources: master-value
    labels:
      common-label-for-all-the-resources-operator-deploys/deployed-by: john
      common-label-to-be-replaced-on-some-resources: global-value
