@@ -141,10 +141,13 @@ spec:
141141 annotations :
142142 checksum/config : {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
143143 spec :
144- {{- if .Values.enterprise.enabled }}
145144 imagePullSecrets :
145+ {{- if .Values.enterprise.enabled }}
146146 - name : {{ .Release.Name }}-st2-license
147147 {{- end }}
148+ {{- if .Values.st2.packs.image.pullSecret }}
149+ - name : {{ .Values.st2.packs.image.pullSecret }}
150+ {{- end }}
148151 {{- if .Values.st2.packs.image.repository }}
149152 initContainers :
150153 # Merge packs and virtualenvs from st2api with those from the st2.packs image
@@ -802,10 +805,13 @@ spec:
802805 checksum/config : {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") $ | sha256sum }}
803806 checksum/packs : {{ include (print $.Template.BasePath "/configmaps_packs.yaml") $ | sha256sum }}
804807 spec :
805- {{- if $.Values.enterprise.enabled }}
806808 imagePullSecrets :
809+ {{- if $.Values.enterprise.enabled }}
807810 - name : {{ $.Release.Name }}-st2-license
808811 {{- end }}
812+ {{- if $.Values.st2.packs.image.pullSecret }}
813+ - name : {{ $.Values.st2.packs.image.pullSecret }}
814+ {{- end }}
809815 {{- if $.Values.st2.packs.image.repository }}
810816 initContainers :
811817 # Merge packs and virtualenvs from st2sensorcontainer with those from the st2.packs image
@@ -941,10 +947,13 @@ spec:
941947 checksum/config : {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
942948 checksum/ssh : {{ include (print $.Template.BasePath "/secrets_ssh.yaml") . | sha256sum }}
943949 spec :
944- {{- if .Values.enterprise.enabled }}
945950 imagePullSecrets :
951+ {{- if .Values.enterprise.enabled }}
946952 - name : {{ .Release.Name }}-st2-license
947953 {{- end }}
954+ {{- if .Values.st2.packs.image.pullSecret }}
955+ - name : {{ .Values.st2.packs.image.pullSecret }}
956+ {{- end }}
948957 {{- if .Values.st2.packs.image.repository }}
949958 initContainers :
950959 # Merge packs and virtualenvs from st2actionrunner with those from the st2.packs image
@@ -1152,10 +1161,13 @@ spec:
11521161 checksum/auth : {{ include (print $.Template.BasePath "/secrets_st2auth.yaml") . | sha256sum }}
11531162 checksum/ssh : {{ include (print $.Template.BasePath "/secrets_ssh.yaml") . | sha256sum }}
11541163 spec :
1155- {{- if .Values.enterprise.enabled }}
11561164 imagePullSecrets :
1165+ {{- if .Values.enterprise.enabled }}
11571166 - name : {{ .Release.Name }}-st2-license
11581167 {{- end }}
1168+ {{- if .Values.st2.packs.image.pullSecret }}
1169+ - name : {{ .Values.st2.packs.image.pullSecret }}
1170+ {{- end }}
11591171 initContainers :
11601172 {{- if .Values.st2.packs.image.repository }}
11611173 # Merge packs and virtualenvs from st2actionrunner with those from the st2.packs image
0 commit comments