@@ -109,10 +109,7 @@ data:
109
109
- name : {{ $eclAgentJobName }}
110
110
{{- include "hpcc.addSecurityContext" . | indent 12 }}
111
111
{{ include "hpcc.addImageAttrs" . | indent 12 }}
112
- {{- $omitResources := hasKey .root.Values.global "omitResources" | ternary .root.Values.global.omitResources .root.Values.global.privileged }}
113
- {{- if not $omitResources }}
114
- {{- include "hpcc.addResources" (dict "me" .eclAgentResources) | indent 12 }}
115
- {{- end }}
112
+ {{- include "hpcc.addResources" (dict "me" .eclAgentResources "root" .root) | indent 12 }}
116
113
{{- $agentCmd := printf "%s %s %s _HPCC_ARGS_" $eclAgentType (include "hpcc.configArg" .me) (include "hpcc.daliArg" (dict "root" .root "component" "Thor" "optional" false)) }}
117
114
{{ include "hpcc.addCommandAndLifecycle" (. | merge (dict "command" $agentCmd)) | indent 12 }}
118
115
env :
@@ -179,10 +176,7 @@ data:
179
176
- name : {{ $thorManagerJobName }}
180
177
{{- include "hpcc.addSecurityContext" . | indent 12 }}
181
178
{{ include "hpcc.addImageAttrs" . | indent 12 }}
182
- {{- $omitResources := hasKey .root.Values.global "omitResources" | ternary .root.Values.global.omitResources .root.Values.global.privileged }}
183
- {{- if not $omitResources }}
184
- {{- include "hpcc.addResources" (dict "me" $thorScope.managerResources) | indent 12 }}
185
- {{- end }}
179
+ {{- include "hpcc.addResources" (dict "me" $thorScope.managerResources "root" .root) | indent 12 }}
186
180
{{- $thorManagerCmd := printf "thormaster_lcr %s %s _HPCC_ARGS_" (include "hpcc.configArg" .me) (include "hpcc.daliArg" (dict "root" .root "component" "Thor" "optional" false)) }}
187
181
{{ include "hpcc.addCommandAndLifecycle" (. | merge (dict "command" $thorManagerCmd)) | indent 12 }}
188
182
env :
@@ -251,10 +245,7 @@ data:
251
245
- name : {{ $thorWorkerJobName }}-{{ $containerNum }}
252
246
{{- include "hpcc.addSecurityContext" $configCtx | indent 12 }}
253
247
{{ include "hpcc.addImageAttrs" $configCtx | indent 12 }}
254
- {{- $omitResources := hasKey $configCtx.root.Values.global "omitResources" | ternary $configCtx.root.Values.global.omitResources $configCtx.root.Values.global.privileged }}
255
- {{- if not $omitResources }}
256
- {{- include "hpcc.addResources" (dict "me" $thorScope.workerResources) | indent 12 }}
257
- {{- end }}
248
+ {{- include "hpcc.addResources" (dict "me" $thorScope.workerResources "root" $configCtx.root) | indent 12 }}
258
249
{{- $thorWorkerCmd := printf "thorslave_lcr %s %s _HPCC_ARGS_ --slaveport=%d" (include "hpcc.configArg" $configCtx.me) (include "hpcc.daliArg" (dict "root" $configCtx.root "component" "Thor" "optional" false)) $slavePort }}
259
250
{{ include "hpcc.addCommandAndLifecycle" ($configCtx | merge (dict "command" $thorWorkerCmd)) | indent 12 }}
260
251
env :
@@ -390,13 +381,10 @@ spec:
390
381
- name : " SENTINEL"
391
382
value : " /tmp/{{ $commonCtx.eclAgentName }}.sentinel"
392
383
{{- include "hpcc.addSecurityContext" $commonCtx | indent 8 }}
393
- {{- $omitResources := hasKey $.Values.global "omitResources" | ternary $.Values.global.omitResources $.Values.global.privileged }}
394
- {{- if not $omitResources }}
395
- {{- if $commonCtx.eclAgentUseChildProcesses }}
396
- {{- include "hpcc.addResources" (dict "me" .eclAgentResources) | indent 8 }}
397
- {{- else }}
398
- {{- include "hpcc.addStubResources" ($commonCtx | merge (dict "stubResources" .stubResources)) | indent 8 }}
399
- {{- end }}
384
+ {{- if $commonCtx.eclAgentUseChildProcesses }}
385
+ {{- include "hpcc.addResources" (dict "me" .eclAgentResources "root" $) | indent 8 }}
386
+ {{- else }}
387
+ {{- include "hpcc.addStubResources" (dict "me" .stubResources "root" $) | indent 8 }}
400
388
{{- end }}
401
389
{{ include "hpcc.addImageAttrs" $commonCtx | indent 8 }}
402
390
volumeMounts :
@@ -456,10 +444,7 @@ spec:
456
444
- name : " SENTINEL"
457
445
value : " /tmp/{{ $commonCtx.thorAgentName }}.sentinel"
458
446
{{- include "hpcc.addSecurityContext" $commonCtx | indent 8 }}
459
- {{- $omitResources := hasKey $.Values.global "omitResources" | ternary $.Values.global.omitResources $.Values.global.privileged }}
460
- {{- if not $omitResources }}
461
- {{- include "hpcc.addStubResources" ($commonCtx | merge (dict "stubResources" .stubResources)) | indent 8 }}
462
- {{- end }}
447
+ {{- include "hpcc.addStubResources" (dict "me" .stubResources "root" $ ) | indent 8 }}
463
448
{{ include "hpcc.addImageAttrs" $commonCtx | indent 8 }}
464
449
volumeMounts :
465
450
{{ include "hpcc.addConfigMapVolumeMount" . | indent 8 }}
0 commit comments