diff --git a/stable/sysdig/CHANGELOG.md b/stable/sysdig/CHANGELOG.md index 74680eda30..8203b1711c 100644 --- a/stable/sysdig/CHANGELOG.md +++ b/stable/sysdig/CHANGELOG.md @@ -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 diff --git a/stable/sysdig/Chart.yaml b/stable/sysdig/Chart.yaml index d3f3bc44b4..e6370ea2b0 100755 --- a/stable/sysdig/Chart.yaml +++ b/stable/sysdig/Chart.yaml @@ -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: diff --git a/stable/sysdig/templates/_helpers.tpl b/stable/sysdig/templates/_helpers.tpl index 84a89893fe..555a47bd47 100644 --- a/stable/sysdig/templates/_helpers.tpl +++ b/stable/sysdig/templates/_helpers.tpl @@ -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 -}} diff --git a/stable/sysdig/templates/daemonset.yaml b/stable/sysdig/templates/daemonset.yaml index 00b2bf3c46..6025f83680 100644 --- a/stable/sysdig/templates/daemonset.yaml +++ b/stable/sysdig/templates/daemonset.yaml @@ -1,5 +1,5 @@ {{- if .Values.sysdig.accessKey }} -apiVersion: extensions/v1beta1 +apiVersion: {{ template "daemonset.apiVersion" . }} kind: DaemonSet metadata: name: {{ template "sysdig.fullname" . }}