[stable/nfs-client-provisioner] Make clusterrole(binding) conditional on rbac.create (#7500)

* Update version to 3.0.2

Signed-off-by: Bart Verwilst <bart@verwilst.be>

* Add PodSecurityPolicy support

Signed-off-by: Bart Verwilst <bart@verwilst.be>

* update docs for psp

Signed-off-by: Bart Verwilst <bart@verwilst.be>

* add serviceaccount docs

Signed-off-by: Bart Verwilst <bart@verwilst.be>

* rename psp support

Signed-off-by: Bart Verwilst <bart@verwilst.be>

* Bump version

Signed-off-by: Bart Verwilst <bart@verwilst.be>

* new major version

Signed-off-by: Bart Verwilst <bart@verwilst.be>

* test psp

Signed-off-by: Bart Verwilst <bart@verwilst.be>

* conditional rbac

Signed-off-by: Bart Verwilst <bart@verwilst.be>

* bump version

Signed-off-by: Bart Verwilst <bart@verwilst.be>
This commit is contained in:
Bort Verwilst
2018-09-03 03:00:10 -07:00
committed by k8s-ci-robot
parent 388c9815c3
commit 05cc202f75
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ appVersion: 3.0.2
description: nfs-client is an automatic provisioner that used your *already configured* NFS server, automatically creating Persistent Volumes.
name: nfs-client-provisioner
home: https://github.com/kubernetes-incubator/external-storage/tree/master/nfs-client
version: 1.0.0
version: 1.0.1
sources:
- https://github.com/kubernetes-incubator/external-storage/tree/master/nfs-client
maintainers:
@@ -1,3 +1,4 @@
{{- if .Values.rbac.create }}
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
@@ -29,3 +30,4 @@ rules:
verbs: ['use']
resourceNames: [{{ template "nfs-client-provisioner.fullname" . }}]
{{- end }}
{{- end }}
@@ -1,3 +1,4 @@
{{- if .Values.rbac.create }}
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
@@ -15,3 +16,4 @@ roleRef:
kind: ClusterRole
name: {{ template "nfs-client-provisioner.fullname" . }}-runner
apiGroup: rbac.authorization.k8s.io
{{- end }}