Skip to content

Commit

Permalink
Hardcode secret value for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleytate614 committed Dec 6, 2024
1 parent e42b79e commit 430a884
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{{ $aws_secret := "aws"}}
{{ $sa_name := "postsync-custom-sa-update-sm-sa" }}
{{ $secret.metadata.name := "test-secret" }}
{{- range $custom_sa_name, $custom_sa_role := $.Values.custom_sa_details }}
# List secrets from the custom sa namespace
{{- range $index, $secret := (lookup "v1" "Secret" $.Values.custom_sa_namespace "").items }}
# {{- range $index, $secret := (lookup "v1" "Secret" $.Values.custom_sa_namespace "").items }}
# The secret name has a prefix of the service account name - use this to get the secret name
# {{ $prefix := printf "%s-token" $custom_sa_name }}
# {{- if (hasPrefix $secret.metadata.name $prefix) }}
Expand Down Expand Up @@ -120,5 +121,5 @@ spec:
optional: false
backoffLimit: 4
# {{- end }}
{{- end }}
# {{- end }}
{{- end }}

0 comments on commit 430a884

Please sign in to comment.