Skip to content

Commit

Permalink
Fix CA Sourcing
Browse files Browse the repository at this point in the history
  • Loading branch information
spjmurray committed Jun 18, 2024
1 parent 6f99e33 commit 516e476
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/unikorn-common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ description: Unikorn common templates to keep dependent charts in check.

type: application

version: v0.1.4
version: v0.1.5

icon: https://raw.githubusercontent.com/unikorn-cloud/assets/main/images/logos/dark-on-light/icon.png
8 changes: 4 additions & 4 deletions charts/unikorn-common/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,17 @@ however you could also create a shared secret for things like letsencrypt-stagin
where you want to use ACME, but don't want to make is widely structed by browsers.
*/}}
{{- define "unikorn.ca.secretNamespace" -}}
{{- if (and .Values.global .Values.global.ca .Values.global.ca .Values.global.ca.secretNamespace) -}}
{{- if (and .Values.global .Values.global.ca .Values.global.ca.secretNamespace) -}}
{{- .Values.global.ca.secretNamespace }}
{{- else if .Values.identity.caSecretNamespace }}
{{- else if (and .Values.ca .Values.ca.secretNamespace) -}}
{{- .Values.ca.secretNamespace }}
{{- end }}
{{- end }}
{{- define "unikorn.ca.secretName" -}}
{{- if (and .Values.global .Values.global.ca .Values.global.ca .Values.global.ca.secretName) -}}
{{- if (and .Values.global .Values.global.ca .Values.global.ca.secretName) -}}
{{- .Values.global.ca.secretName }}
{{- else if .Values.ca.secretName }}
{{- else if (and .Values.ca .Values.ca.secretName) -}}
{{- .Values.ca.secretName }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit 516e476

Please sign in to comment.