mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Fix for version comparions from strings to semver (#4599)
* Fix for version comparions from strings to semver See #3002 for more detail * Include pre-releases in the semver ranges This is important when testing against alpha and beta builds of Kubernetes along with environments that use pre-releases to denote things other than pre-releases (e.g., gke denotes the environment with a pre-releases)
This commit is contained in:
committed by
k8s-ci-robot
parent
0959372446
commit
db7b1db002
@@ -1,5 +1,5 @@
|
||||
name: fluent-bit
|
||||
version: 0.2.13
|
||||
version: 0.2.14
|
||||
appVersion: 0.12.15
|
||||
description: Fast and Lightweight Log/Data Forwarder for Linux, BSD and OSX
|
||||
keywords:
|
||||
|
||||
@@ -19,7 +19,7 @@ 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 ge .Capabilities.KubeVersion.Minor "8" -}}
|
||||
{{- if semverCompare "^1.8-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||
"rbac.authorization.k8s.io/v1"
|
||||
{{- else -}}
|
||||
"rbac.authorization.k8s.io/v1beta1"
|
||||
|
||||
Reference in New Issue
Block a user