From f33e27cf51193e89e8e717a5d04cfdda4dedf58d Mon Sep 17 00:00:00 2001 From: jinyuan Date: Wed, 24 Feb 2021 15:47:05 +0800 Subject: [PATCH] Update rbac api version for kubernetes-node-problem-detector When using a helm3 to deploy , it fails. Helm3 no more support rbac.authorization.k8s.io/v1beta1 , but v1 can support helm2 and helm3. Change-Id: I2760befdc20e73989bce5cc581d086de57f91383 --- kubernetes-node-problem-detector/Chart.yaml | 2 +- kubernetes-node-problem-detector/templates/daemonset.yaml | 2 +- releasenotes/notes/kubernetes-node-problem-detector.yaml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/kubernetes-node-problem-detector/Chart.yaml b/kubernetes-node-problem-detector/Chart.yaml index a5228f96c..ccdec4755 100644 --- a/kubernetes-node-problem-detector/Chart.yaml +++ b/kubernetes-node-problem-detector/Chart.yaml @@ -15,7 +15,7 @@ apiVersion: v1 appVersion: v1.0.0 description: OpenStack-Helm Kubernetes Node Problem Detector name: kubernetes-node-problem-detector -version: 0.1.2 +version: 0.1.3 home: https://github.com/kubernetes/node-problem-detector sources: - https://github.com/kubernetes/node-problem-detector diff --git a/kubernetes-node-problem-detector/templates/daemonset.yaml b/kubernetes-node-problem-detector/templates/daemonset.yaml index c0ac0fdd5..7d93e3da1 100644 --- a/kubernetes-node-problem-detector/templates/daemonset.yaml +++ b/kubernetes-node-problem-detector/templates/daemonset.yaml @@ -18,7 +18,7 @@ limitations under the License. {{- $serviceAccountName := printf "%s-%s" .Release.Name "node-problem-detector" }} {{ tuple $envAll "node_problem_detector" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }} --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: run-node-problem-detector diff --git a/releasenotes/notes/kubernetes-node-problem-detector.yaml b/releasenotes/notes/kubernetes-node-problem-detector.yaml index 9abe94203..88280c667 100644 --- a/releasenotes/notes/kubernetes-node-problem-detector.yaml +++ b/releasenotes/notes/kubernetes-node-problem-detector.yaml @@ -3,4 +3,5 @@ kubernetes-node-problem-detector: - 0.1.0 Initial Chart - 0.1.1 Change helm-toolkit dependency version to ">= 0.1.0" - 0.1.2 Unpin images built with osh-images + - 0.1.3 Update RBAC apiVersion from /v1beta1 to /v1 ...