mirror of https://github.com/linkerd/linkerd2.git
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:
parent
35612ae268
commit
cae4add8d0
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue