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

Commit 5120526

Browse files
authored
Merge pull request #893 from dghubble/rbac-version
pkg/asset: Switch apiVersion to rbac.authorization.k8s.io/v1
2 parents 56c9534 + 8f6cd2d commit 5120526

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/asset/internal/templates.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ stringData:
5050

5151
// CSRNodeBootstrapTemplate lets bootstrapping tokens and nodes request CSRs.
5252
var CSRNodeBootstrapTemplate = []byte(`kind: ClusterRoleBinding
53-
apiVersion: rbac.authorization.k8s.io/v1beta1
53+
apiVersion: rbac.authorization.k8s.io/v1
5454
metadata:
5555
name: system-bootstrap-node-bootstrapper
5656
subjects:
@@ -72,7 +72,7 @@ roleRef:
7272
//
7373
// This binding should be removed to disable CSR auto-approval.
7474
var CSRApproverRoleBindingTemplate = []byte(`kind: ClusterRoleBinding
75-
apiVersion: rbac.authorization.k8s.io/v1beta1
75+
apiVersion: rbac.authorization.k8s.io/v1
7676
metadata:
7777
name: system-bootstrap-approve-node-client-csr
7878
subjects:
@@ -93,7 +93,7 @@ roleRef:
9393
// names instead of targeting `system:nodes` so we can revoke invidivual
9494
// node's ability to renew its certs.
9595
var CSRRenewalRoleBindingTemplate = []byte(`kind: ClusterRoleBinding
96-
apiVersion: rbac.authorization.k8s.io/v1beta1
96+
apiVersion: rbac.authorization.k8s.io/v1
9797
metadata:
9898
name: system-bootstrap-node-renewal
9999
subjects:
@@ -933,7 +933,7 @@ spec:
933933
protocol: TCP
934934
`)
935935

936-
var FlannelClusterRole = []byte(`apiVersion: rbac.authorization.k8s.io/v1beta1
936+
var FlannelClusterRole = []byte(`apiVersion: rbac.authorization.k8s.io/v1
937937
kind: ClusterRole
938938
metadata:
939939
name: flannel
@@ -959,7 +959,7 @@ rules:
959959
- patch
960960
`)
961961

962-
var FlannelClusterRoleBinding = []byte(`apiVersion: rbac.authorization.k8s.io/v1beta1
962+
var FlannelClusterRoleBinding = []byte(`apiVersion: rbac.authorization.k8s.io/v1
963963
kind: ClusterRoleBinding
964964
metadata:
965965
name: flannel

0 commit comments

Comments
 (0)