From d1d4a0a47d169ffb3e04bf01f23d5be27d8faebe Mon Sep 17 00:00:00 2001 From: Jan Knipper <9881823+jknipper@users.noreply.github.com> Date: Sun, 16 Dec 2018 23:22:52 +0100 Subject: [PATCH] Fix fluent-bit rbac api version (#10028) Signed-off-by: Jan Knipper --- stable/fluent-bit/Chart.yaml | 2 +- stable/fluent-bit/templates/_helpers.tpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stable/fluent-bit/Chart.yaml b/stable/fluent-bit/Chart.yaml index 3f2fb5f95d..0521a144a2 100755 --- a/stable/fluent-bit/Chart.yaml +++ b/stable/fluent-bit/Chart.yaml @@ -1,5 +1,5 @@ name: fluent-bit -version: 1.1.0 +version: 1.1.1 appVersion: 0.14.9 description: Fast and Lightweight Log/Data Forwarder for Linux, BSD and OSX keywords: diff --git a/stable/fluent-bit/templates/_helpers.tpl b/stable/fluent-bit/templates/_helpers.tpl index 9cc5159624..dca15d75a8 100644 --- a/stable/fluent-bit/templates/_helpers.tpl +++ b/stable/fluent-bit/templates/_helpers.tpl @@ -19,9 +19,9 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this Return the appropriate apiVersion for RBAC APIs. */}} {{- define "rbac.apiVersion" -}} -{{- if .Capabilities.APIVersions.Has "v1" -}} +{{- if .Capabilities.APIVersions.Has "rbac.authorization.k8s.io/v1" -}} rbac.authorization.k8s.io/v1 -{{- else if .Capabilities.APIVersions.Has "v1beta1" -}} +{{- else if .Capabilities.APIVersions.Has "rbac.authorization.k8s.io/v1beta1" -}} rbac.authorization.k8s.io/v1beta1 {{- else -}} rbac.authorization.k8s.io/v1alpha1