mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Use rbac.authorization.k8s.io/v1 apiVersion in RBAC resources (#11094)
Signed-off-by: Jesse Suen <jessesuen@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
ded6c29884
commit
cc7b54837c
@@ -5,7 +5,7 @@ keywords:
|
||||
- metric
|
||||
- monitoring
|
||||
- prometheus
|
||||
version: 0.13.0
|
||||
version: 0.13.1
|
||||
appVersion: 1.4.0
|
||||
home: https://github.com/kubernetes/kube-state-metrics/
|
||||
sources:
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
{{- if and .Values.podSecurityPolicy.enabled -}}
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
{{- if .Capabilities.APIVersions.Has "rbac.authorization.k8s.io/v1beta1" }}
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
{{- else if .Capabilities.APIVersions.Has "rbac.authorization.k8s.io/v1alpha1" }}
|
||||
apiVersion: rbac.authorization.k8s.io/v1alpha1
|
||||
{{- end }}
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ template "kube-state-metrics.name" . }}
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
{{- if and .Values.podSecurityPolicy.enabled -}}
|
||||
{{- if .Capabilities.APIVersions.Has "rbac.authorization.k8s.io/v1beta1" }}
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
{{- else if .Capabilities.APIVersions.Has "rbac.authorization.k8s.io/v1alpha1" }}
|
||||
apiVersion: rbac.authorization.k8s.io/v1alpha1
|
||||
{{- end }}
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
labels:
|
||||
|
||||
Reference in New Issue
Block a user