calico-host-protection: update deprecated api
Update deprecated apiVersion for clusterrole and clusterrolebinding.
Also lint rules.
@@ -47,7 +47,7 @@ spec:
---
# rbac.yaml
-apiVersion: rbac.authorization.k8s.io/v1beta1
+apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: calico-hostendpoint-controller-role
@@ -70,7 +70,7 @@ rules:
verbs: ["use"]
resourceNames: ["calico-hostendpoint-controller-psp"]
---
-apiVersion: rbac.authorization.k8s.io/v1beta1
+apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: calico-hostendpoint-controller-role-binding
