Skip to content

Commit

Permalink
add .Release.Name
Browse files Browse the repository at this point in the history
Signed-off-by: Angelo Sleebos <[email protected]>
  • Loading branch information
Angelo Sleebos committed Aug 13, 2024
1 parent fed73f9 commit 68cf6df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/gxf/templates/certificate-keystore-secret.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apiVersion: v1
kind: Secret
metadata:
name: keystore-password
name: {{ .Release.Name }}-keystore-password
type: Opaque
data:
keystore-password: {{ $secret := (lookup "v1" "Secret" .Release.Namespace "keystore-password") }}
keystore-password: {{ $secret := lookup "v1" "Secret" .Release.Namespace (printf "%s-keystore-password" .Release.Name) }}
{{- if $secret -}}
{{- index $secret "data" "keystore-password" -}}
{{- else -}}
Expand Down
2 changes: 1 addition & 1 deletion charts/gxf/templates/certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
pkcs12:
create: true
passwordSecretRef:
name: keystore-password
name: {{ $.Release.Name }}-keystore-password
key: password
---
{{- end }}

0 comments on commit 68cf6df

Please sign in to comment.