
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>
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
{{- if .Values.rbac.enabled }}
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
labels:
|
|
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
|
name: {{ include "argocd-image-updater.fullname" . }}
|
|
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
|
rules:
|
|
- apiGroups:
|
|
- ''
|
|
resources:
|
|
- secrets
|
|
- configmaps
|
|
verbs:
|
|
- get
|
|
- list
|
|
- watch
|
|
- apiGroups:
|
|
- argoproj.io
|
|
resources:
|
|
- applications
|
|
verbs:
|
|
- get
|
|
- list
|
|
- update
|
|
- patch
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- events
|
|
verbs:
|
|
- create
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
labels:
|
|
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
|
name: {{ include "argocd-image-updater.fullname" . }}
|
|
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: Role
|
|
name: {{ include "argocd-image-updater.fullname" . }}
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ include "argocd-image-updater.serviceAccountName" . }}
|
|
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
|
{{- end }}
|