Skip to main content
Version: Release 23.1

Customize Your Site—Custom Configuration of Release

Prerequisites

  • A Digital.ai Release installation on a kubernetes cluster
  • kubectl connected to the cluster
  • One of the following (or later) versions of Release operator:
    • 10.2.18
    • 10.3.16
    • 22.0.8
    • 22.1.6
    • 22.2.2

Steps

  1. Download the latest template configuration file that exists on your Release pod that is running. For example, find this file at /opt/xebialabs/xl-release-server/default-conf/xl-release.conf.template.

    kubectl cp digitalai/dai-xlr-digitalai-release-0:/opt/xebialabs/xl-release-server/default-conf/xl-release.conf.template .
  2. Update the custom resource (CR) file or the CR on the cluster.

    1. Update the spec.release.configurationManagement.configuration.script and spec.release.configurationManagement.configuration.scriptData specs in the CR file.
      1. Open and copy the contents of the xl-release.conf.template file and add the same under the xl-release.conf.template key.

      2. Update the script under the spec.release.configurationManagement.configuration.script spec.

        Here's an example.

        ...
        script: |-
        ...
        cp /opt/xebialabs/xl-release-server/xlr-configuration-management/xl-release.conf.template /opt/xebialabs/xl-release-server/default-conf/xl-release.conf.template && echo "Changing the xl-release.conf.template";
        scriptData:
        ...
        xl-release.conf.template: |-
        xl {
        ...
        }
  3. Is OIDC enabled? If yes, disable it. Because, the changes that are from there will conflict with the changes in the xl-release.conf.template file. Add spec.oidc.enabled: false in the CR file.

  4. Save and apply changes from the CR file.

    kubectl rollout restart sts dai-xlr-digitalai-release -n digitalai