imagePullSecrets consistent types for global , local (#21500)

This commit is contained in:
M Alvee 2025-08-07 05:48:24 +06:00 committed by GitHub
parent d002beaee3
commit 7a6a2256b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -131,9 +131,7 @@ Also, we can not use a single if because lazy evaluation is not an option
{{- if .Values.global }}
{{- if .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.global.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{ toYaml .Values.global.imagePullSecrets }}
{{- else if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets }}