From 7e42be00d494ba701cfb2405164e00f15b434aa2 Mon Sep 17 00:00:00 2001 From: jhslater Date: Tue, 5 Nov 2024 06:49:45 -0500 Subject: [PATCH] accomodate an additional hostalias in helm --- helm/charts/secure-client-hub/templates/deployment.yaml | 7 +++++++ helm/charts/secure-client-hub/values.yaml | 3 +++ .../secure-client-hub/dev/secure-client-hub.yaml.gotmpl | 7 +++++++ 3 files changed, 17 insertions(+) diff --git a/helm/charts/secure-client-hub/templates/deployment.yaml b/helm/charts/secure-client-hub/templates/deployment.yaml index 35b846fb7..555c4531f 100644 --- a/helm/charts/secure-client-hub/templates/deployment.yaml +++ b/helm/charts/secure-client-hub/templates/deployment.yaml @@ -32,6 +32,13 @@ spec: {{- range .Values.hostAliases.hostnames }} - {{ . | quote }} {{- end }} + {{- if .Values.raoidcAlias.enabled }} + - ip: "{{ .Values.raoidcAlias.ip }}" + hostnames: + {{- range .Values.raoidcAlias.hostnames }} + - {{ . | quote }} + {{- end }} + {{- end }} {{- end }} containers: - name: {{ .Chart.Name }} diff --git a/helm/charts/secure-client-hub/values.yaml b/helm/charts/secure-client-hub/values.yaml index 568521247..66a6b4cb8 100644 --- a/helm/charts/secure-client-hub/values.yaml +++ b/helm/charts/secure-client-hub/values.yaml @@ -73,4 +73,7 @@ oauth: enabled: false hostAliases: + enabled: false + +raoidcAlias: enabled: false \ No newline at end of file diff --git a/helmfile/overrides/secure-client-hub/dev/secure-client-hub.yaml.gotmpl b/helmfile/overrides/secure-client-hub/dev/secure-client-hub.yaml.gotmpl index 73de9be2f..51676453b 100644 --- a/helmfile/overrides/secure-client-hub/dev/secure-client-hub.yaml.gotmpl +++ b/helmfile/overrides/secure-client-hub/dev/secure-client-hub.yaml.gotmpl @@ -274,3 +274,10 @@ hostAliases: hostnames: - {{ env "HOSTALIAS_HOSTNAME" }} {{- end }} +{{- if env "RAOIDC_HOSTALIAS_ENABLED" }} +raoidcAlias: + enabled: {{ env "RAOIDC_HOSTALIAS_ENABLED" }} + ip: "{{ env "RAOIDC_HOSTALIAS_IP" }}" + hostnames: + - {{ env "RAOIDC_HOSTALIAS_HOSTNAME" }} +{{- end }} \ No newline at end of file