From 25a555c485e8dc9ccd982a0e4ea2f2d43fa7d2b9 Mon Sep 17 00:00:00 2001 From: Blaine Gardner Date: Wed, 29 Sep 2021 16:43:44 -0600 Subject: [PATCH] helm: remove chart content not in common.yaml Assume common.yaml is the right source of truth, and remove major content from helm charts that does not exist in common.yaml. Signed-off-by: Blaine Gardner (cherry picked from commit 507dfe11f63af64826e0467e4d533b3183a8c1a6) # Conflicts: # build/rbac/rbac.yaml --- .commitlintrc.json | 1 + .../rook-ceph/templates/clusterrole.yaml | 18 ------------------ .../templates/clusterrolebinding.yaml | 17 ----------------- 3 files changed, 1 insertion(+), 35 deletions(-) diff --git a/.commitlintrc.json b/.commitlintrc.json index 1ea48804f9d4..f3f7c591a7c0 100644 --- a/.commitlintrc.json +++ b/.commitlintrc.json @@ -15,6 +15,7 @@ "core", "csi", "docs", + "helm", "mds", "mgr", "mon", diff --git a/cluster/charts/rook-ceph/templates/clusterrole.yaml b/cluster/charts/rook-ceph/templates/clusterrole.yaml index 2218ec33d3d1..94426c4028ea 100644 --- a/cluster/charts/rook-ceph/templates/clusterrole.yaml +++ b/cluster/charts/rook-ceph/templates/clusterrole.yaml @@ -264,24 +264,6 @@ rules: verbs: - get - list -# Use a default dict to avoid 'can't give argument to non-function' errors from text/template -{{- if ne ((.Values.agent | default (dict "mountSecurityMode" "")).mountSecurityMode | default "") "Any" }} ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: rook-ceph-agent-mount - labels: - operator: rook - storage-backend: ceph -rules: -- apiGroups: - - "" - resources: - - secrets - verbs: - - get -{{- end }} --- kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 diff --git a/cluster/charts/rook-ceph/templates/clusterrolebinding.yaml b/cluster/charts/rook-ceph/templates/clusterrolebinding.yaml index 36d539a25bf9..75fb36471be4 100644 --- a/cluster/charts/rook-ceph/templates/clusterrolebinding.yaml +++ b/cluster/charts/rook-ceph/templates/clusterrolebinding.yaml @@ -152,23 +152,6 @@ subjects: --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding -metadata: - name: rook-ceph-system-psp-users - labels: - operator: rook - storage-backend: ceph - chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: rook-ceph-system-psp-user -subjects: -- kind: ServiceAccount - name: rook-ceph-system - namespace: {{ .Release.Namespace }} ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding metadata: name: rook-csi-cephfs-provisioner-sa-psp roleRef: