Skip to content

Commit

Permalink
Add sidecarImage value in helm chart (#2176)
Browse files Browse the repository at this point in the history
Signed-off-by: pjuarezd <[email protected]>
  • Loading branch information
pjuarezd authored Jun 22, 2024
1 parent 2828094 commit 14fc773
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helm/operator/templates/operator-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ spec:
{{- with .Values.operator.env }}
env: {{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.operator.sidecarImage }}
- name: "OPERATOR_SIDECAR_IMAGE"
value: "{{ .Values.operator.sidecarImage.repository }}:{{ .Values.operator.sidecarImage.digest | default .Values.operator.sidecarImage.tag }}"
{{- end }}
resources: {{- toYaml .Values.operator.resources | nindent 12 }}
{{- with .Values.operator.containerSecurityContext }}
securityContext: {{- toYaml . | nindent 12 }}
Expand Down
24 changes: 24 additions & 0 deletions helm/operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,30 @@ operator:
tag: v5.0.15
pullPolicy: IfNotPresent
###
# Specify the sidecar container image to deploy on tenant pods for init container and sidecar.
# Only need to change this if want to use a different version that the default, or want to set a custom registry.
# ``sidecarImage.tag``
# For example, the following sets the image to the ``quay.io/minio/operator-sidecar`` repo and the v5.0.15 tag.
# The container pulls the image if not already present:
#
# .. code-block:: yaml
#
# sidecarImage:
# repository: quay.io/minio/operator-sidecar
# tag: v5.0.15
# pullPolicy: IfNotPresent
#
# The chart also supports specifying an image based on digest value:
#
# .. code-block:: yaml
#
# sidecarImage:
# repository: quay.io/minio/operator-sidecar@sha256
# digest: 28c80b379c75242c6fe793dfbf212f43c602140a0de5ebe3d9c2a3a7b9f9f983
# pullPolicy: IfNotPresent
#
sidecarImage: {}
###
#
# An array of Kubernetes secrets to use for pulling images from a private ``image.repository``.
# Only one array element is supported at this time.
Expand Down

0 comments on commit 14fc773

Please sign in to comment.