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
-
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 .
-
Update the custom resource (CR) file or the CR on the cluster.
- Update the
spec.release.configurationManagement.configuration.script
andspec.release.configurationManagement.configuration.scriptData
specs in the CR file.-
Open and copy the contents of the
xl-release.conf.template
file and add the same under thexl-release.conf.template
key. -
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 {
...
}
-
- Update the
-
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. Addspec.oidc.enabled: false
in the CR file. -
Save and apply changes from the CR file.
kubectl rollout restart sts dai-xlr-digitalai-release -n digitalai