mirror of
https://github.com/helm/charts.git
synced 2026-09-05 12:27:30 +00:00
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:
committed by
k8s-ci-robot
parent
db7b1db002
commit
22bbf1d4df
@@ -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:
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user