fix(argocd-image-updater): Properly quoting the config map values (and other fixes) (#2512)
fix(argocd-image-updater): Properly quoting the config map values fix(argocd-image-updater): Only adding a data field to argocd-image-updater-ssh-config when there's data to be added fix(argocd-image-updater): Only include config.argocd if config.applicationsAPIKind is set to 'argocd' chore(argocd-image-updater): removing unneeded whitespace in Role and RoleBinding Signed-off-by: Abdullah Alaqeel <a.alaqeel@sary.com>
This commit is contained in:
parent
85de0a16e7
commit
e248b6b316
5 changed files with 27 additions and 20 deletions
|
|
@ -8,30 +8,32 @@ metadata:
|
|||
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
||||
data:
|
||||
{{- with .Values.config.applicationsAPIKind }}
|
||||
applications_api: {{ . }}
|
||||
applications_api: {{ . | quote }}
|
||||
{{- if eq . "argocd" }}
|
||||
argocd.grpc_web: {{ $.Values.config.argocd.grpcWeb | quote }}
|
||||
{{- with $.Values.config.argocd.serverAddress }}
|
||||
argocd.server_addr: {{ . | quote }}
|
||||
{{- end }}
|
||||
argocd.grpc_web: {{ .Values.config.argocd.grpcWeb | quote }}
|
||||
{{- with .Values.config.argocd.serverAddress }}
|
||||
argocd.server_addr: {{ . }}
|
||||
argocd.insecure: {{ $.Values.config.argocd.insecure | quote }}
|
||||
argocd.plaintext: {{ $.Values.config.argocd.plaintext | quote }}
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
argocd.insecure: {{ .Values.config.argocd.insecure | quote }}
|
||||
argocd.plaintext: {{ .Values.config.argocd.plaintext | quote }}
|
||||
{{- with .Values.config.logLevel }}
|
||||
log.level: {{ . }}
|
||||
log.level: {{ . | quote }}
|
||||
{{- end }}
|
||||
{{- with .Values.config.gitCommitUser }}
|
||||
git.user: {{ . }}
|
||||
git.user: {{ . | quote }}
|
||||
{{- end }}
|
||||
{{- with .Values.config.gitCommitMail }}
|
||||
git.email: {{ . }}
|
||||
git.email: {{ . | quote }}
|
||||
{{- end }}
|
||||
{{- with .Values.config.gitCommitTemplate }}
|
||||
git.commit-message-template: |
|
||||
{{- nindent 4 . }}
|
||||
{{- end }}
|
||||
kube.events: {{ .Values.config.disableKubeEvents | quote }}
|
||||
{{- with .Values.config.registries }}
|
||||
registries.conf: |
|
||||
{{- with .Values.config.registries }}
|
||||
registries:
|
||||
{{- toYaml . | nindent 6 }}
|
||||
{{- end }}
|
||||
registries:
|
||||
{{- toYaml . | nindent 6 }}
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue