Skip to content

Commit

Permalink
Fix ConfigMap lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleytate614 committed Dec 9, 2024
1 parent 83546df commit 82a09e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ $aws_secret := "aws"}}
{{ $sa_name := "postsync-custom-sa-update-sm-sa" }}
{{- range $custom_sa_name, $custom_sa_role := $.Values.custom_sa_details }}
{{ $custom_sa_secret_name := (lookup "v1" "ConfigMap" $.Values.custom_sa_namespace "custom-sa-config").data.$custom_sa_name | quote }}
{{ $custom_sa_secret_name := (index (lookup "v1" "ConfigMap" $.Values.custom_sa_namespace "custom-sa-config").data $custom_sa_name) | quote }}
---
apiVersion: batch/v1
kind: Job
Expand Down

0 comments on commit 82a09e0

Please sign in to comment.