Skip to content

Commit

Permalink
Update agent tags
Browse files Browse the repository at this point in the history
  • Loading branch information
dbason committed Dec 19, 2022
1 parent a49ecd4 commit 678d40b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
{{- if not (or (eq .Values.persistence.mode "pvc") (eq .Values.persistence.mode "hostPath")) }}
{{- fail "persistence mode must be pvc or hostPath" }}
{{- end }}
{{- $versionTag := printf "v%s-minimal" .Chart.AppVersion }}
{{- $minimalVersionTag := printf "v%s-minimal" .Chart.AppVersion }}
{{- $versionTag := printf "v%s" .Chart.AppVersion }}
apiVersion: apps/v1
kind: StatefulSet
metadata:
Expand Down Expand Up @@ -37,7 +38,7 @@ spec:
- name: agent
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ template "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag | default $versionTag }}"
image: "{{ template "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag | default $minimalVersionTag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
- agentv2
Expand Down

0 comments on commit 678d40b

Please sign in to comment.