Fix for version comparisons from strings to semver (#4607)

* Fix for version comparisons from strings to semver

See #3002 for more detail

* Adding appVersion to pass validation

* 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 07:56:07 -07:00
committed by k8s-ci-robot
parent 74a23f7efb
commit d5d0637b1e
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -1,9 +1,10 @@
name: spotify-docker-gc
home: https://github.com/spotify/docker-gc
version: 0.1.2
version: 0.1.3
appVersion: latest
description: A simple Docker container and image garbage collection script.
sources:
- https://github.com/spotify/docker-gc
maintainers:
- name: Vaughn Dice
- name: vdice
email: vadice@microsoft.com
@@ -3,7 +3,7 @@ kind: DaemonSet
metadata:
name: {{ template "name" . }}
spec:
{{- if ge .Capabilities.KubeVersion.Minor "6" }}
{{- if semverCompare "^1.6-0" .Capabilities.KubeVersion.GitVersion }}
updateStrategy:
type: RollingUpdate
{{- end }}