Include pre-releases in the semver ranges (#4635)

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:54:06 -07:00
committed by k8s-ci-robot
parent db7b1db002
commit 22bbf1d4df
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: redis
version: 1.1.23
version: 1.1.24
appVersion: 4.0.9
description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.
keywords:
+2 -2
View File
@@ -28,9 +28,9 @@ If release name contains chart name it will be used as a full name.
Return the appropriate apiVersion for networkpolicy.
*/}}
{{- define "networkPolicy.apiVersion" -}}
{{- if semverCompare ">=1.4, <=1.6" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.4-0, <1.7-0" .Capabilities.KubeVersion.GitVersion -}}
{{- print "extensions/v1beta1" -}}
{{- else if semverCompare "^1.7" .Capabilities.KubeVersion.GitVersion -}}
{{- else if semverCompare "^1.7-0" .Capabilities.KubeVersion.GitVersion -}}
{{- print "networking.k8s.io/v1" -}}
{{- end -}}
{{- end -}}