@@ -55,6 +55,7 @@ var _ = Describe("HelmValuesBasic", func() {
5555 Expect (content ).To (ContainSubstring ("metrics:" ))
5656 Expect (content ).To (ContainSubstring ("prometheus:" ))
5757 Expect (content ).To (ContainSubstring ("rbacHelpers:" ))
58+ Expect (content ).To (ContainSubstring ("imagePullSecrets: []" ))
5859 })
5960 })
6061
@@ -84,6 +85,7 @@ var _ = Describe("HelmValuesBasic", func() {
8485 Expect (content ).To (ContainSubstring ("metrics:" ))
8586 Expect (content ).To (ContainSubstring ("prometheus:" ))
8687 Expect (content ).To (ContainSubstring ("rbacHelpers:" ))
88+ Expect (content ).To (ContainSubstring ("imagePullSecrets: []" ))
8789 })
8890 })
8991
@@ -162,6 +164,33 @@ var _ = Describe("HelmValuesBasic", func() {
162164 })
163165 })
164166
167+ Context ("with multiple imagePullSecrets" , func () {
168+ BeforeEach (func () {
169+ valuesTemplate = & HelmValuesBasic {
170+ DeploymentConfig : map [string ]interface {}{
171+ "imagePullSecrets" : []interface {}{
172+ map [string ]interface {}{
173+ "name" : "test-secret" ,
174+ },
175+ map [string ]interface {}{
176+ "name" : "test-secret2" ,
177+ },
178+ },
179+ },
180+ }
181+ valuesTemplate .InjectProjectName ("test-private-project" )
182+ err := valuesTemplate .SetTemplateDefaults ()
183+ Expect (err ).NotTo (HaveOccurred ())
184+ })
185+
186+ It ("should render multiple imagePullSecrets" , func () {
187+ content := valuesTemplate .GetBody ()
188+ Expect (content ).To (ContainSubstring ("imagePullSecrets:" ))
189+ Expect (content ).To (ContainSubstring ("- name: test-secret" ))
190+ Expect (content ).To (ContainSubstring ("- name: test-secret2" ))
191+ })
192+ })
193+
165194 Context ("with complex env variables" , func () {
166195 BeforeEach (func () {
167196 valuesTemplate = & HelmValuesBasic {
0 commit comments