mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/sysdig] Add a hack to implement watches on Helm based Operator (#21822)
This implementation in operators breaks the pattern in some Helm based operators about using an splitted image description: https://github.com/helm/charts/blob/master/stable/postgresql/values.yaml#L15 https://github.com/helm/charts/blob/master/stable/prometheus/values.yaml#L534 https://github.com/helm/charts/blob/master/stable/redis/values.yaml#L15 https://github.com/helm/charts/blob/master/stable/wordpress/values.yaml#L14 But is required to certify the operator. https://github.com/operator-framework/operator-sdk/blob/master/doc/helm/user-guide.md#passing-environment-variables-to-the-helm-chart Signed-off-by: Néstor Salceda <nestor.salceda@sysdig.com>
This commit is contained in:
@@ -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,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:
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user