datastax / pulsar-helm-chart

Apache Pulsar Helm chart
Apache License 2.0
47 stars 37 forks source link

Add customConfiguration value for function worker #283

Closed acjohnson closed 1 year ago

acjohnson commented 1 year ago

We need the datastax pulsar helm chart to be configurable for the kubernetes runtimeCustomerizerConfig.

So far I have not seen how this is enabled using the helm chart so I've added a customConfiguration value to the function-configmap.yaml template.

This allows us to pass arbitrary configuration to be added to the function-worker(s):

function:
  customConfiguration:
    runtimeCustomizerClassName: "org.apache.pulsar.functions.runtime.kubernetes.BasicKubernetesManifestCustomizer"
    runtimeCustomizerConfig:
      jobNamespace: pulsar
      extractLabels:
        extraLabel: value
      extraAnnotations:
        extraAnnotation: value
      nodeSelectorLabels:
        role: pulsar-functions
      tolerations:
      - key: role
        value: pulsar-functions
        effect: NoSchedule
      resourceRequirements:
        requests:
          cpu: '0.1'
          memory: 128Mi