Merge pull request #690 from humblec/rbac

replace serviceAccountName key, rbac and cleanup in the code
This commit is contained in:
Kubernetes Prow Robot
2022-04-25 07:39:39 -07:00
committed by GitHub
19 changed files with 69 additions and 67 deletions

View File

@@ -68,7 +68,7 @@ roleRef:
apiGroup: rbac.authorization.k8s.io
---
# Provisioner must be able to work with endpoints and leases in current namespace
# Provisioner must be able to work with leases in current namespace
# if (and only if) leadership election is enabled
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
@@ -77,9 +77,6 @@ metadata:
namespace: default
name: external-provisioner-cfg
rules:
- apiGroups: [""]
resources: ["endpoints"]
verbs: ["get", "watch", "list", "delete", "update", "create"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "watch", "list", "delete", "update", "create"]

View File

@@ -69,7 +69,7 @@ spec:
labels:
app: csi-snapshotter
spec:
serviceAccount: csi-snapshotter
serviceAccountName: csi-snapshotter
containers:
- name: csi-provisioner
image: k8s.gcr.io/sig-storage/csi-provisioner:v3.0.0

View File

@@ -30,7 +30,7 @@ spec:
labels:
app: snapshot-controller
spec:
serviceAccount: snapshot-controller
serviceAccountName: snapshot-controller
containers:
- name: snapshot-controller
image: gcr.io/k8s-staging-sig-storage/snapshot-controller:v5.0.1