2021-08-16 15:23:02 +00:00
|
|
|
{{- if .Values.rbac.enabled }}
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: Role
|
|
|
|
metadata:
|
|
|
|
labels:
|
2024-03-20 23:52:58 +00:00
|
|
|
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
2023-04-16 08:13:00 +00:00
|
|
|
name: {{ include "argocd-image-updater.fullname" . }}
|
2024-03-01 08:41:23 +00:00
|
|
|
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
2021-08-16 15:23:02 +00:00
|
|
|
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:
|
2024-03-20 23:52:58 +00:00
|
|
|
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
2021-08-16 15:23:02 +00:00
|
|
|
name: {{ include "argocd-image-updater.fullname" . }}
|
2024-03-01 08:41:23 +00:00
|
|
|
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
2021-08-16 15:23:02 +00:00
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: Role
|
|
|
|
name: {{ include "argocd-image-updater.fullname" . }}
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: {{ include "argocd-image-updater.serviceAccountName" . }}
|
2024-03-01 08:41:23 +00:00
|
|
|
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
2021-08-16 15:23:02 +00:00
|
|
|
{{- end }}
|