Néstor Salceda
2020-04-07 07:37:46 -07:00
committed by GitHub
parent 002f7f9eb0
commit a11d5fa79e
4 changed files with 26 additions and 9 deletions
+7
View File
@@ -3,6 +3,13 @@
This file documents all notable changes to Sysdig Helm Chart. The release
numbering uses [semantic versioning](http://semver.org).
## v1.7.8
### Minor changes
* Add a image.overrideValue value which is a hack to support
RELATED_IMAGE_<identifier> feature in Helm based operators.
## v1.7.7
### Minor changes
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: sysdig
version: 1.7.7
version: 1.7.8
appVersion: 9.8.0
description: Sysdig Monitor and Secure agent
keywords:
+12 -8
View File
@@ -54,17 +54,21 @@ Helm 2.11 supports the assignment of a value to a variable defined in a differen
but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic.
Also, we can't use a single if because lazy evaluation is not an option
*/}}
{{- if .Values.slim.enabled }}
{{- $repositoryName = printf "%s-%s" .Values.image.repository "slim" -}}
{{- end -}}
{{- if .Values.global }}
{{- if .Values.global.imageRegistry }}
{{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}}
{{- if .Values.image.overrideValue }}
{{- printf .Values.image.overrideValue -}}
{{- else -}}
{{- if .Values.slim.enabled }}
{{- $repositoryName = printf "%s-%s" .Values.image.repository "slim" -}}
{{- end -}}
{{- if .Values.global }}
{{- if .Values.global.imageRegistry }}
{{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}}
{{- else -}}
{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}}
{{- end -}}
{{- else -}}
{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}}
{{- end -}}
{{- else -}}
{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}}
{{- end -}}
{{- end -}}
+6
View File
@@ -1,6 +1,12 @@
# Default values for Sysdig Monitor and Secure Helm package.
image:
# This is a hack to support RELATED_IMAGE_<identifier> feature in Helm based
# Operators
#
# As long as I don't want to people to use this, I will keep it undocumented
overrideValue:
registry: docker.io
repository: sysdig/agent
tag: 9.8.0