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:
Matt Farina
2018-04-03 09:46:06 -07:00
committed by k8s-ci-robot
parent 0959372446
commit db7b1db002
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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"