File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
charts/fullstack-deployment/templates Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,14 @@ privileged: true
3535{{- end }}
3636
3737{{- define " fullstack.images.pullPolicy" -}}
38- {{ (.image ).pullPolicy | default .defaults. image.pullPolicy }}
38+ {{ (.image ).pullPolicy | default ((( .defaults ) .root ) . image) .pullPolicy }}
3939{{- end }}
4040
4141
4242{{- define " fullstack.container.image" -}}
43- {{- $reg := (.image ).registry | default .defaults. image.registry -}}
44- {{- $repo := (.image ).repository | default .defaults. image.repository -}}
45- {{- $tag := default .defaults. image.tag (.image ).tag | default .Chart.AppVersion -}}
43+ {{- $reg := (.image ).registry | default ((( .defaults ) .root ) . image) .registry -}}
44+ {{- $repo := (.image ).repository | default ((( .defaults ) .root ) . image) .repository -}}
45+ {{- $tag := default ((( .defaults ) .root ) . image) .tag (.image ).tag | default .Chart.AppVersion -}}
4646{{ $reg }}/{{ $repo }}:{{ $tag }}
4747{{- end }}
4848
Original file line number Diff line number Diff line change 22{{- $hapiAppSecrets := lookup "v1" "Secret" $.Release.Namespace "network-node-hapi-app-secrets" }}
33{{- $networkNodeKeySecrets := lookup "v1" "Secret" $.Release.Namespace "network-node-keys-secrets" }}
44{{- $root := $node.root | default $.Values.defaults.root -}}
5+ {{- $rootImage := ($node.root).image | default $.Values.defaults.root.image -}}
56{{- $recordStream := ($node.sidecars).recordStreamUploader | default $.Values.defaults.sidecars.recordStreamUploader -}}
67{{- $eventStream := ($node.sidecars).eventStreamUploader | default $.Values.defaults.sidecars.eventStreamUploader -}}
78{{- $balanceUploader := ($node.sidecars).accountBalanceUploader | default $.Values.defaults.sidecars.accountBalanceUploader -}}
@@ -165,8 +166,8 @@ spec:
165166 failureThreshold : 30
166167 periodSeconds : 10
167168 timeoutSeconds : 5
168- image : {{ include "fullstack.container.image" (dict "image" $root.image "Chart" $.Chart "defaults" $root ) }}
169- imagePullPolicy : {{ include "fullstack.images.pullPolicy" (dict "image" $root.image "defaults" $root ) }}
169+ image : {{ include "fullstack.container.image" (dict "image" $rootImage "Chart" $.Chart "defaults" $.Values.defaults ) }}
170+ imagePullPolicy : {{ include "fullstack.images.pullPolicy" (dict "image" $rootImage "defaults" $.Values.defaults ) }}
170171 securityContext : # need to run as root with privileged mode
171172 {{- include "fullstack.root.security.context.privileged" . | nindent 10 }}
172173 {{- with default $defaults.root.resources $node.resources }}
You can’t perform that action at this time.
0 commit comments