diff --git a/charts/argo-cd/Chart.yaml b/charts/argo-cd/Chart.yaml index 738bf41d..2cf9317e 100644 --- a/charts/argo-cd/Chart.yaml +++ b/charts/argo-cd/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: 1.8.4 description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes. name: argo-cd -version: 2.14.2 +version: 2.14.3 home: https://github.com/argoproj/argo-helm icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png keywords: diff --git a/charts/argo-cd/values.yaml b/charts/argo-cd/values.yaml index 30e7df97..3ea321a1 100755 --- a/charts/argo-cd/values.yaml +++ b/charts/argo-cd/values.yaml @@ -549,7 +549,7 @@ server: # name: secret-name # key: sshPrivateKey # - type: helm - # url: https://kubernetes-charts.storage.googleapis.com + # url: https://charts.helm.sh/stable # name: stable # - type: helm # url: https://argoproj.github.io/argo-helm diff --git a/charts/argo/Chart.yaml b/charts/argo/Chart.yaml index a00271cc..0585218b 100644 --- a/charts/argo/Chart.yaml +++ b/charts/argo/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: v2.12.5 description: A Helm chart for Argo Workflows name: argo -version: 0.16.0 +version: 0.16.1 icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png home: https://github.com/argoproj/argo-helm maintainers: diff --git a/charts/argo/templates/server-cluster-roles.yaml b/charts/argo/templates/server-cluster-roles.yaml index 10c730c1..3000c129 100644 --- a/charts/argo/templates/server-cluster-roles.yaml +++ b/charts/argo/templates/server-cluster-roles.yaml @@ -1,6 +1,10 @@ {{- if .Values.server.enabled }} apiVersion: rbac.authorization.k8s.io/v1 +{{- if .Values.singleNamespace }} +kind: Role +{{- else }} kind: ClusterRole +{{- end }} metadata: name: {{ .Release.Name }}-{{ .Values.server.name }} rules: @@ -107,7 +111,11 @@ rules: - delete --- apiVersion: rbac.authorization.k8s.io/v1 +{{- if .Values.singleNamespace }} +kind: Role +{{- else }} kind: ClusterRole +{{- end }} metadata: name: {{ .Release.Name }}-{{ .Values.server.name }}-cluster-template rules: diff --git a/charts/argo/templates/server-crb.yaml b/charts/argo/templates/server-crb.yaml index d1ad5ea4..44467c7c 100644 --- a/charts/argo/templates/server-crb.yaml +++ b/charts/argo/templates/server-crb.yaml @@ -2,16 +2,18 @@ apiVersion: rbac.authorization.k8s.io/v1 {{- if .Values.singleNamespace }} kind: RoleBinding -metadata: - name: {{ .Release.Name }}-{{ .Values.server.name}} {{ else }} kind: ClusterRoleBinding +{{- end }} metadata: name: {{ .Release.Name }}-{{ .Values.server.name}} -{{- end }} roleRef: apiGroup: rbac.authorization.k8s.io + {{- if .Values.singleNamespace }} + kind: Role + {{ else }} kind: ClusterRole + {{- end }} name: {{ .Release.Name }}-{{ .Values.server.name}} subjects: - kind: ServiceAccount @@ -19,12 +21,20 @@ subjects: namespace: {{ .Release.Namespace }} --- apiVersion: rbac.authorization.k8s.io/v1 +{{- if .Values.singleNamespace }} +kind: RoleBinding +{{ else }} kind: ClusterRoleBinding +{{- end }} metadata: name: {{ .Release.Name }}-{{ .Values.server.name}}-cluster-template roleRef: apiGroup: rbac.authorization.k8s.io + {{- if .Values.singleNamespace }} + kind: Role + {{ else }} kind: ClusterRole + {{- end }} name: {{ .Release.Name }}-{{ .Values.server.name}}-cluster-template subjects: - kind: ServiceAccount diff --git a/charts/argo/templates/workflow-aggregate-roles.yaml b/charts/argo/templates/workflow-aggregate-roles.yaml index b89e7b13..168dd862 100644 --- a/charts/argo/templates/workflow-aggregate-roles.yaml +++ b/charts/argo/templates/workflow-aggregate-roles.yaml @@ -1,6 +1,10 @@ {{- if .Values.createAggregateRoles }} apiVersion: rbac.authorization.k8s.io/v1 +{{- if .Values.singleNamespace }} +kind: Role +{{ else }} kind: ClusterRole +{{- end }} metadata: annotations: helm.sh/hook: pre-install @@ -26,7 +30,11 @@ rules: - watch --- apiVersion: rbac.authorization.k8s.io/v1 +{{- if .Values.singleNamespace }} +kind: Role +{{ else }} kind: ClusterRole +{{- end }} metadata: annotations: helm.sh/hook: pre-install @@ -57,7 +65,11 @@ rules: - watch --- apiVersion: rbac.authorization.k8s.io/v1 +{{- if .Values.singleNamespace }} +kind: Role +{{ else }} kind: ClusterRole +{{- end }} metadata: annotations: helm.sh/hook: pre-install diff --git a/charts/argo/templates/workflow-controller-cluster-roles.yaml b/charts/argo/templates/workflow-controller-cluster-roles.yaml index e51f5f4b..e5590060 100644 --- a/charts/argo/templates/workflow-controller-cluster-roles.yaml +++ b/charts/argo/templates/workflow-controller-cluster-roles.yaml @@ -1,5 +1,9 @@ apiVersion: rbac.authorization.k8s.io/v1 +{{- if .Values.singleNamespace }} +kind: Role +{{- else }} kind: ClusterRole +{{- end }} metadata: name: {{ .Release.Name }}-{{ .Values.controller.name }} rules: @@ -127,7 +131,11 @@ rules: - delete --- apiVersion: rbac.authorization.k8s.io/v1 +{{- if .Values.singleNamespace }} +kind: Role +{{- else }} kind: ClusterRole +{{- end }} metadata: name: {{ .Release.Name }}-{{ .Values.controller.name }}-cluster-template rules: diff --git a/charts/argo/templates/workflow-controller-crb.yaml b/charts/argo/templates/workflow-controller-crb.yaml index 459a3c67..5e171155 100644 --- a/charts/argo/templates/workflow-controller-crb.yaml +++ b/charts/argo/templates/workflow-controller-crb.yaml @@ -8,7 +8,11 @@ metadata: name: {{ .Release.Name }}-{{ .Values.controller.name }} roleRef: apiGroup: rbac.authorization.k8s.io + {{- if .Values.singleNamespace }} + kind: Role + {{ else }} kind: ClusterRole + {{- end }} name: {{ .Release.Name }}-{{ .Values.controller.name }} subjects: - kind: ServiceAccount @@ -27,12 +31,20 @@ subjects: {{- end }} --- apiVersion: rbac.authorization.k8s.io/v1 +{{- if .Values.singleNamespace }} +kind: RoleBinding +{{ else }} kind: ClusterRoleBinding +{{- end }} metadata: name: {{ .Release.Name }}-{{ .Values.controller.name }}-cluster-template roleRef: apiGroup: rbac.authorization.k8s.io + {{- if .Values.singleNamespace }} + kind: Role + {{ else }} kind: ClusterRole + {{- end }} name: {{ .Release.Name }}-{{ .Values.controller.name }}-cluster-template subjects: - kind: ServiceAccount