[stable/sysdig] Fixes compatibility with 1.16 (#17538)

* Fixes compatibility with 1.16

Signed-off-by: Xiang Dai <764524258@qq.com>

* fix a typo

Signed-off-by: Xiang Dai <764524258@qq.com>

* bump up version

Signed-off-by: Xiang Dai <764524258@qq.com>

* bump up

Signed-off-by: Xiang Dai <764524258@qq.com>

* update changelog

Signed-off-by: Xiang Dai <764524258@qq.com>
This commit is contained in:
Xiang Dai
2019-10-16 01:43:40 -07:00
committed by Kubernetes Prow Robot
parent b19c68ad8c
commit d1811c2bef
4 changed files with 19 additions and 2 deletions
+6
View File
@@ -3,6 +3,12 @@
This file documents all notable changes to Sysdig Helm Chart. The release
numbering uses [semantic versioning](http://semver.org).
## v1.4.19
### Minor changes
* Fixes compatibility with kubernetes 1.16.
## v1.4.18
### Minor changes
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: sysdig
version: 1.4.18
version: 1.4.19
appVersion: 0.92.3
description: Sysdig Monitor and Secure agent
keywords:
+11
View File
@@ -64,3 +64,14 @@ Also, we can't use a single if because lazy evaluation is not an option
{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}}
{{- end -}}
{{- end -}}
{{/*
Return the apiVersion of daemonset.
*/}}
{{- define "daemonset.apiVersion" -}}
{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}}
{{- print "extensions/v1beta1" -}}
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
{{- print "apps/v1" -}}
{{- end -}}
{{- end -}}
+1 -1
View File
@@ -1,5 +1,5 @@
{{- if .Values.sysdig.accessKey }}
apiVersion: extensions/v1beta1
apiVersion: {{ template "daemonset.apiVersion" . }}
kind: DaemonSet
metadata:
name: {{ template "sysdig.fullname" . }}