Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #893 from dghubble/rbac-version
Browse files Browse the repository at this point in the history
pkg/asset: Switch apiVersion to rbac.authorization.k8s.io/v1
  • Loading branch information
dghubble authored Feb 16, 2018
2 parents 56c9534 + 8f6cd2d commit 5120526
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/asset/internal/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ stringData:

// CSRNodeBootstrapTemplate lets bootstrapping tokens and nodes request CSRs.
var CSRNodeBootstrapTemplate = []byte(`kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: system-bootstrap-node-bootstrapper
subjects:
Expand All @@ -72,7 +72,7 @@ roleRef:
//
// This binding should be removed to disable CSR auto-approval.
var CSRApproverRoleBindingTemplate = []byte(`kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: system-bootstrap-approve-node-client-csr
subjects:
Expand All @@ -93,7 +93,7 @@ roleRef:
// names instead of targeting `system:nodes` so we can revoke invidivual
// node's ability to renew its certs.
var CSRRenewalRoleBindingTemplate = []byte(`kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: system-bootstrap-node-renewal
subjects:
Expand Down Expand Up @@ -933,7 +933,7 @@ spec:
protocol: TCP
`)

var FlannelClusterRole = []byte(`apiVersion: rbac.authorization.k8s.io/v1beta1
var FlannelClusterRole = []byte(`apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: flannel
Expand All @@ -959,7 +959,7 @@ rules:
- patch
`)

var FlannelClusterRoleBinding = []byte(`apiVersion: rbac.authorization.k8s.io/v1beta1
var FlannelClusterRoleBinding = []byte(`apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: flannel
Expand Down

0 comments on commit 5120526

Please sign in to comment.