Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #59 from foxford/change_svc_audience_generation
Browse files Browse the repository at this point in the history
Change svc.audience template generation
  • Loading branch information
SuslikDaRete authored Jul 13, 2022
2 parents 66627c1 + 147ec86 commit 2ed5a83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
12 changes: 6 additions & 6 deletions chart/templates/app-cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: {{ include "storage.fullname" . }}-app
data:
App.toml: |
{{- $id := list (include "storage.name" . ) (include "storage.shortNamespace" .) "svc" .Values.app.svc.audience | compact | join "." }}
{{- $id := list (include "storage.name" . ) (include "storage.shortNamespace" .) .Values.app.svc.audience | compact | join "." }}
id = {{ $id | quote }}
[http]
Expand Down Expand Up @@ -34,21 +34,21 @@ data:
## SVC
##
{{- $svc_audience := list (include "storage.shortNamespace" $) "svc" .audience | compact | join "." }}
{{- $svc_audience := list (include "storage.shortNamespace" $) .audience | compact | join "." }}
[authn.{{ $svc_audience | quote }}]
audience = [{{ $svc_audience | quote }}]
algorithm = "ES256"
key = {{ .authn.key | quote }}
{{- $ns_audience := list (include "storage.shortNamespace" $) "svc" .audience | compact | join "." }}
{{- $ns_audience := list (include "storage.shortNamespace" $) .audience | compact | join "." }}
{{- println "" }}
{{- with .authz }}
[authz.{{ $ns_audience | quote }}]
type = {{ .type | quote }}
trusted = [
{{- range .trusted }}
{{ (list . (include "storage.shortNamespace" $) "svc" $.Values.app.svc.audience) | compact | join "." | quote }},
{{- range $account_label := .trusted }}
{{ $ns_audience | list $account_label | join "." | quote }},
{{- end }}
]
{{- end }}
Expand Down Expand Up @@ -94,7 +94,7 @@ data:
{{- if .trusted }}
trusted = [
{{- range $account_label := .trusted }}
{{ (list $account_label (include "storage.shortNamespace" $) "svc" $.Values.app.svc.audience) | compact | join "." | quote }},
{{ (list $account_label (include "storage.shortNamespace" $) $.Values.app.svc.audience) | compact | join "." | quote }},
{{- end }}
]
{{- end }}
Expand Down

0 comments on commit 2ed5a83

Please sign in to comment.