Skip to content

Commit

Permalink
Merge pull request #39 from cloudkite-io/fix-gcp-es-key-ref
Browse files Browse the repository at this point in the history
Fix format violation caused by concatenating map object and string
  • Loading branch information
thoth-ky authored Sep 25, 2024
2 parents 3e1722a + 3922e9a commit 9b89f19
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions standard-app/templates/configs/externalsecret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
- secretKey: {{ $secret.secretKey }}
remoteRef:
{{- if eq $.Values.externalSecret.type "gcp" }}
key: {{ $.Release.Name | upper }}_{{ $secret }}
key: {{ $.Release.Name | upper }}_{{ $secret.secretKey }}
{{- end }}
{{- if eq $.Values.externalSecret.type "vault" }}
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
Expand Down Expand Up @@ -66,7 +66,7 @@ spec:
- secretKey: {{ $secret.secretKey }}
remoteRef:
{{- if eq $.Values.externalSecret.type "gcp" }}
key: {{ $.Release.Name | upper }}_{{ $secret }}
key: {{ $.Release.Name | upper }}_{{ $secret.secretKey }}
{{- end }}
{{- if eq $.Values.externalSecret.type "vault" }}
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
Expand Down Expand Up @@ -102,7 +102,7 @@ spec:
- secretKey: {{ $secret.secretKey }}
remoteRef:
{{- if eq $.Values.externalSecret.type "gcp" }}
key: {{ $.Release.Name | upper }}_{{ $secret }}
key: {{ $.Release.Name | upper }}_{{ $secret.secretKey }}
{{- end }}
{{- if eq $.Values.externalSecret.type "vault" }}
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
Expand Down Expand Up @@ -139,7 +139,7 @@ spec:
- secretKey: {{ $secret.secretKey }}
remoteRef:
{{- if eq $.Values.externalSecret.type "gcp" }}
key: {{ $.Release.Name | upper }}_{{ $secret }}
key: {{ $.Release.Name | upper }}_{{ $secret.secretKey }}
{{- end }}
{{- if eq $.Values.externalSecret.type "vault" }}
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
Expand Down Expand Up @@ -175,7 +175,7 @@ spec:
- secretKey: {{ $secret.secretKey }}
remoteRef:
{{- if eq $.Values.externalSecret.type "gcp" }}
key: {{ $.Release.Name | upper }}_{{ $secret }}
key: {{ $.Release.Name | upper }}_{{ $secret.secretKey }}
{{- end }}
{{- if eq $.Values.externalSecret.type "vault" }}
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
Expand Down Expand Up @@ -213,7 +213,7 @@ spec:
- secretKey: {{ $secret.secretKey }}
remoteRef:
{{- if eq $.Values.externalSecret.type "gcp" }}
key: {{ $.Release.Name | upper }}_{{ $secret }}
key: {{ $.Release.Name | upper }}_{{ $secret.secretKey }}
{{- end }}
{{- if eq $.Values.externalSecret.type "vault" }}
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
Expand Down Expand Up @@ -250,7 +250,7 @@ spec:
- secretKey: {{ $secret.secretKey }}
remoteRef:
{{- if eq $.Values.externalSecret.type "gcp" }}
key: {{ $.Release.Name | upper }}_{{ $secret }}
key: {{ $.Release.Name | upper }}_{{ $secret.secretKey }}
{{- end }}
{{- if eq $.Values.externalSecret.type "vault" }}
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
Expand Down Expand Up @@ -286,7 +286,7 @@ spec:
- secretKey: {{ $secret.secretKey }}
remoteRef:
{{- if eq $.Values.externalSecret.type "gcp" }}
key: {{ $.Release.Name | upper }}_{{ $secret }}
key: {{ $.Release.Name | upper }}_{{ $secret.secretKey }}
{{- end }}
{{- if eq $.Values.externalSecret.type "vault" }}
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
Expand Down

0 comments on commit 9b89f19

Please sign in to comment.