Update rbac api version for elastic-metricbeat

When using a helm3 to deploy , it fail! Helm3 no more support rbac.authorization.k8s.io/v1beta1 , but v1 can support helm2 and helm3.This change optimized deployment.

Change-Id: I41ca3ee2490eadce8d043cf6a757bf8569f31931
This commit is contained in:
jinyuan 2021-02-24 15:33:34 +08:00 committed by jinyuanliu
parent 7ebc49c338
commit 2ff4c5c40b
3 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,7 @@ apiVersion: v1
appVersion: v7.1.0
description: OpenStack-Helm Elastic Metricbeat
name: elastic-metricbeat
version: 0.1.1
version: 0.1.2
home: https://www.elastic.co/products/beats/metricbeat
sources:
- https://github.com/elastic/beats/tree/master/metricbeat

View File

@ -20,7 +20,7 @@ limitations under the License.
{{- $serviceAccountName := printf "%s-%s" .Release.Name "metricbeat-deployments" }}
{{ tuple $envAll "metricbeat" $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: {{ $serviceAccountName }}

View File

@ -2,4 +2,5 @@
elastic-metricbeat:
- 0.1.0 Initial Chart
- 0.1.1 Change helm-toolkit dependency version to ">= 0.1.0"
- 0.1.2 Update RBAC apiVersion from /v1beta1 to /v1
...