splunk / splunk-operator

Splunk Operator for Kubernetes
Other
210 stars 115 forks source link

GITHUB-1124: Add Support for Configuring Custom Cluster Domain in Helm Chart for Splunk Operator #1376

Closed vivekr-splunk closed 1 month ago

vivekr-splunk commented 2 months ago

Description:

This PR introduces the ability to configure a custom cluster domain for the Splunk Operator through the Helm chart. Previously, configuring a custom cluster domain was only supported through manifest installation. This enhancement aligns the Helm chart with the manifest-based configuration, allowing users to specify a custom domain directly in the Helm chart's values.yaml file.

Changes Made:

  1. Helm Values File:

    • Added a new entry clusterDomain to the values.yaml file.
      # values.yaml
      clusterDomain: "mydomain.com"
  2. Helm Chart Templates:

    • Updated the deployment template to inject the CLUSTER_DOMAIN environment variable based on the clusterDomain value from values.yaml.
      # deployment.yaml
      spec:
      containers:
      - name: splunk-operator
      env:
      - name: CLUSTER_DOMAIN
       value: "{{ .Values.clusterDomain | default "cluster.local" }}"

Implementation Details:

Testing:

Related Issues:

Notes: