Skip to content

Commit

Permalink
Merge pull request #751 from DTS-STN/hostaliases_range
Browse files Browse the repository at this point in the history
accommodate an additional hostalias in helm
  • Loading branch information
jhslater authored Nov 8, 2024
2 parents f11d0cc + 7e42be0 commit 6a98cfe
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions helm/charts/secure-client-hub/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions helm/charts/secure-client-hub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,7 @@ oauth:
enabled: false

hostAliases:
enabled: false

raoidcAlias:
enabled: false
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 6a98cfe

Please sign in to comment.