Skip to content

Commit

Permalink
Add Shared Flags
Browse files Browse the repository at this point in the history
  • Loading branch information
spjmurray committed Jun 18, 2024
1 parent d88acf2 commit 6f99e33
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
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.3
version: v0.1.4

icon: https://raw.githubusercontent.com/unikorn-cloud/assets/main/images/logos/dark-on-light/icon.png
24 changes: 24 additions & 0 deletions charts/unikorn-common/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,27 @@ are predictable, and less likely to break.
{{- .Values.kubernetes.host }}
{{- end }}
{{- end }}
{{/*
Unified service flags.
As all components use the same client libraries, they have the same flags.
*/}}
{{- define "unikorn.identity.flags" -}}
- --identity-host=https://{{ include "unikorn.identity.host" . }}
{{- with $namespace := ( include "unikorn.ca.secretNamespace" . ) }}
- --identity-ca-secret-namespace={{ $namespace }}
{{- end }}
{{- with $name := ( include "unikorn.ca.secretName" . ) }}
- --identity-ca-secret-name={{ $name }}
{{- end }}
{{- end }}
{{- define "unikorn.region.flags" -}}
- --region-host=https://{{ include "unikorn.region.host" . }}
{{- with $namespace := ( include "unikorn.ca.secretNamespace" . ) }}
- --region-ca-secret-namespace={{ $namespace }}
{{- end }}
{{- with $name := ( include "unikorn.ca.secretName" . ) }}
- --region-ca-secret-name={{ $name }}
{{- end }}
{{- end }}

0 comments on commit 6f99e33

Please sign in to comment.