Skip to content

Commit

Permalink
fix: set the default value for trustedIdentities
Browse files Browse the repository at this point in the history
Signed-off-by: Shahram Kalantari <[email protected]>
  • Loading branch information
shahramk64 committed Dec 28, 2024
1 parent 0e50cc4 commit 6ec349d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions charts/ratify/templates/verifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,12 @@ spec:
{{- end }}
{{- end}}
trustedIdentities:
{{- range $j, $store := $policy.trustedIdentities }}
{{- if eq $store "*" }}
{{- $trustedIdentities := $policy.trustedIdentities | default (list "*") }}
{{- range $j, $identity := $trustedIdentities }}
{{- if eq $identity "*" }}
- "*"
{{- else }}
- "x509.subject: {{ . }}"
{{- else }}
- x509.subject: {{ . }}
{{- end }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit 6ec349d

Please sign in to comment.