From a1ae5b39ce07583fe2107dc8b4e0a60ae99d6079 Mon Sep 17 00:00:00 2001 From: Charlie Drage Date: Thu, 8 Mar 2018 22:25:31 -0500 Subject: [PATCH] nfs-client: rbac no longer alpha, add serviceAccount to deployment RBCA is no longer alpha and thus `v1` is only needed. Service account has been added to deployment.yaml in order to get the example to work correctly. (cherry picked from commit 95186ce5dc7e74fcb2986d7aa412d68516cc059e) --- deploy/auth/clusterrole.yaml | 2 +- deploy/auth/clusterrolebinding.yaml | 2 +- deploy/deployment.yaml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy/auth/clusterrole.yaml b/deploy/auth/clusterrole.yaml index fe2a7561..0c29a3c0 100644 --- a/deploy/auth/clusterrole.yaml +++ b/deploy/auth/clusterrole.yaml @@ -1,5 +1,5 @@ kind: ClusterRole -apiVersion: rbac.authorization.k8s.io/v1alpha1 +apiVersion: rbac.authorization.k8s.io/v1 metadata: name: nfs-client-provisioner-runner rules: diff --git a/deploy/auth/clusterrolebinding.yaml b/deploy/auth/clusterrolebinding.yaml index 54bd987c..0e949a27 100644 --- a/deploy/auth/clusterrolebinding.yaml +++ b/deploy/auth/clusterrolebinding.yaml @@ -1,5 +1,5 @@ kind: ClusterRoleBinding -apiVersion: rbac.authorization.k8s.io/v1alpha1 +apiVersion: rbac.authorization.k8s.io/v1 metadata: name: run-nfs-client-provisioner subjects: diff --git a/deploy/deployment.yaml b/deploy/deployment.yaml index e4ee8942..1b793676 100644 --- a/deploy/deployment.yaml +++ b/deploy/deployment.yaml @@ -11,6 +11,7 @@ spec: labels: app: nfs-client-provisioner spec: + serviceAccountName: nfs-client-provisioner containers: - name: nfs-client-provisioner image: quay.io/external_storage/nfs-client-provisioner:latest