diff --git a/charts/operators-installer/templates/Job_installplan-approver.yaml b/charts/operators-installer/templates/Job_installplan-approver.yaml index 99358c32..a5fd627d 100644 --- a/charts/operators-installer/templates/Job_installplan-approver.yaml +++ b/charts/operators-installer/templates/Job_installplan-approver.yaml @@ -25,13 +25,13 @@ spec: activeDeadlineSeconds: {{ .installPlanApproverActiveDeadlineSeconds }} template: spec: + {{- if $.Values.installPlanApproverAndVerifyJobsImagePullSecret }} + imagePullSecrets: + - {{ $.Values.installPlanApproverAndVerifyJobsImagePullSecret }} + {{- end }} containers: - name: installplan-approver image: {{ $.Values.installPlanApproverAndVerifyJobsImage }} - {{- if $.Values.installPlanApproverAndVerifyJobsImagePullSecret }} - imagePullSecrets: - - {{ $.Values.installPlanApproverAndVerifyJobsImagePullSecret }} - {{- end }} command: ["/bin/sh","-c"] args: - >- diff --git a/charts/operators-installer/templates/Job_installplan-complete-verifier.yaml b/charts/operators-installer/templates/Job_installplan-complete-verifier.yaml index 80a07277..6f7d11b0 100644 --- a/charts/operators-installer/templates/Job_installplan-complete-verifier.yaml +++ b/charts/operators-installer/templates/Job_installplan-complete-verifier.yaml @@ -24,13 +24,13 @@ spec: activeDeadlineSeconds: {{ .installPlanVerifierActiveDeadlineSeconds }} template: spec: + {{- if $.Values.installPlanApproverAndVerifyJobsImagePullSecret }} + imagePullSecrets: + - {{ $.Values.installPlanApproverAndVerifyJobsImagePullSecret }} + {{- end }} containers: - name: installplan-complete-verifier image: {{ $.Values.installPlanApproverAndVerifyJobsImage }} - {{- if $.Values.installPlanApproverAndVerifyJobsImagePullSecret }} - imagePullSecrets: - - {{ $.Values.installPlanApproverAndVerifyJobsImagePullSecret }} - {{- end }} command: ["/bin/sh","-c"] args: - >-