feat(argo-cd): support ApplicationSet in any namespace. (#2402)
* chore(argo-cd): support ApplicationSet in any namespace. Signed-off-by: mugioka <okamugi0722@gmail.com> * chore: apply feedback by maintainer. Signed-off-by: mugioka <okamugi0722@gmail.com> * fix: docs is not generated. Signed-off-by: mugioka <okamugi0722@gmail.com> --------- Signed-off-by: mugioka <okamugi0722@gmail.com>
This commit is contained in:
parent
f7a6060fce
commit
de462b7e80
5 changed files with 111 additions and 3 deletions
|
|
@ -0,0 +1,17 @@
|
|||
{{- if .Values.applicationSet.allowAnyNamespace }}
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: {{ template "argo-cd.applicationSet.fullname" . }}
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
labels:
|
||||
{{- include "argo-cd.labels" (dict "context" . "component" .Values.applicationSet.name "name" .Values.applicationSet.name) | nindent 4 }}
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: {{ template "argo-cd.applicationSet.fullname" . }}
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ template "argo-cd.applicationSet.serviceAccountName" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue