Skip to content

Commit

Permalink
feat(amazon-eks-pod-identity-webhook): allow a set of configuration f…
Browse files Browse the repository at this point in the history
…ields to be templated
  • Loading branch information
tiagoposse committed Dec 17, 2024
1 parent 3710a52 commit e454637
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ metadata:
labels:
{{- include "amazon-eks-pod-identity-webhook.labels" . | nindent 4 }}
data:
config: {{ .Values.config.podIdentityWebhookMap.data | toJson | quote }}
config: {{ .Values.config.podIdentityWebhookMap.data | toJson | tpl . | quote }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- /webhook
- --annotation-prefix={{ .Values.config.annotationPrefix }}
- --aws-default-region={{ .Values.config.defaultAwsRegion }}
- --annotation-prefix={{ tpl .Values.config.annotationPrefix . }}
- --aws-default-region={{ tpl .Values.config.defaultAwsRegion . }}
- --in-cluster=false
- --logtostderr
- --namespace={{ include "amazon-eks-pod-identity-webhook.namespace" . }}
- --metrics-port={{ .Values.config.ports.metrics }}
- --port={{ .Values.config.ports.webhook }}
- --sts-regional-endpoint={{ .Values.config.stsRegionalEndpoint }}
- --token-audience={{ .Values.config.tokenAudience }}
- --sts-regional-endpoint={{ tpl .Values.config.stsRegionalEndpoint . }}
- --token-audience={{ tpl .Values.config.tokenAudience . }}
- --token-expiration={{ .Values.config.tokenExpiration }}
- --token-mount-path={{ .Values.config.tokenMountPath }}
- --tls-cert=/etc/webhook/certs/tls.crt
Expand Down

0 comments on commit e454637

Please sign in to comment.