Update RBAC API versions to avoid deprecations (#5332)

When testing the `linkerd2-cni` chart with `ct`, it flags up usage
of some deprecated apiVersions.

This PR aligns the RBAC API group across all resources in the chart.

---

Signed-off-by: Simon Weald <glitchcrab-github@simonweald.com>
This commit is contained in:
Simon Weald 2020-12-09 20:56:25 +00:00 committed by GitHub
parent 35612ae268
commit cae4add8d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 16 deletions

View File

@ -93,7 +93,7 @@ subjects:
namespace: {{.Values.namespace}} namespace: {{.Values.namespace}}
--- ---
kind: ClusterRole kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: linkerd-cni name: linkerd-cni
labels: labels:
@ -103,7 +103,7 @@ rules:
resources: ["pods", "nodes", "namespaces"] resources: ["pods", "nodes", "namespaces"]
verbs: ["list", "get", "watch"] verbs: ["list", "get", "watch"]
--- ---
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: linkerd-cni name: linkerd-cni

View File

@ -68,7 +68,7 @@ subjects:
namespace: linkerd-cni namespace: linkerd-cni
--- ---
kind: ClusterRole kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: linkerd-cni name: linkerd-cni
labels: labels:
@ -78,7 +78,7 @@ rules:
resources: ["pods", "nodes", "namespaces"] resources: ["pods", "nodes", "namespaces"]
verbs: ["list", "get", "watch"] verbs: ["list", "get", "watch"]
--- ---
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: linkerd-cni name: linkerd-cni

View File

@ -68,7 +68,7 @@ subjects:
namespace: other namespace: other
--- ---
kind: ClusterRole kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: linkerd-cni name: linkerd-cni
labels: labels:
@ -78,7 +78,7 @@ rules:
resources: ["pods", "nodes", "namespaces"] resources: ["pods", "nodes", "namespaces"]
verbs: ["list", "get", "watch"] verbs: ["list", "get", "watch"]
--- ---
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: linkerd-cni name: linkerd-cni

View File

@ -68,7 +68,7 @@ subjects:
namespace: other namespace: other
--- ---
kind: ClusterRole kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: linkerd-cni name: linkerd-cni
labels: labels:
@ -78,7 +78,7 @@ rules:
resources: ["pods", "nodes", "namespaces"] resources: ["pods", "nodes", "namespaces"]
verbs: ["list", "get", "watch"] verbs: ["list", "get", "watch"]
--- ---
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: linkerd-cni name: linkerd-cni

View File

@ -58,7 +58,7 @@ subjects:
namespace: other namespace: other
--- ---
kind: ClusterRole kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: linkerd-cni name: linkerd-cni
labels: labels:
@ -68,7 +68,7 @@ rules:
resources: ["pods", "nodes", "namespaces"] resources: ["pods", "nodes", "namespaces"]
verbs: ["list", "get", "watch"] verbs: ["list", "get", "watch"]
--- ---
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: linkerd-cni name: linkerd-cni

View File

@ -68,7 +68,7 @@ subjects:
namespace: linkerd-cni namespace: linkerd-cni
--- ---
kind: ClusterRole kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: linkerd-cni name: linkerd-cni
labels: labels:
@ -78,7 +78,7 @@ rules:
resources: ["pods", "nodes", "namespaces"] resources: ["pods", "nodes", "namespaces"]
verbs: ["list", "get", "watch"] verbs: ["list", "get", "watch"]
--- ---
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: linkerd-cni name: linkerd-cni

View File

@ -70,7 +70,7 @@ subjects:
namespace: linkerd-cni namespace: linkerd-cni
--- ---
kind: ClusterRole kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: linkerd-cni name: linkerd-cni
labels: labels:
@ -80,7 +80,7 @@ rules:
resources: ["pods", "nodes", "namespaces"] resources: ["pods", "nodes", "namespaces"]
verbs: ["list", "get", "watch"] verbs: ["list", "get", "watch"]
--- ---
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: linkerd-cni name: linkerd-cni

View File

@ -70,7 +70,7 @@ subjects:
namespace: linkerd-test namespace: linkerd-test
--- ---
kind: ClusterRole kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: linkerd-cni name: linkerd-cni
labels: labels:
@ -80,7 +80,7 @@ rules:
resources: ["pods", "nodes", "namespaces"] resources: ["pods", "nodes", "namespaces"]
verbs: ["list", "get", "watch"] verbs: ["list", "get", "watch"]
--- ---
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: linkerd-cni name: linkerd-cni