File tree Expand file tree Collapse file tree
crates/stackable-operator/src/crd/git_sync Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ impl GitSyncResources {
164164 resolved_product_image,
165165 git_sync,
166166 false ,
167- & Vec :: from ( env_vars. clone ( ) ) ,
167+ env_vars. clone ( ) ,
168168 & git_sync_container_volume_mounts,
169169 container_log_config,
170170 ) ?;
@@ -174,7 +174,7 @@ impl GitSyncResources {
174174 resolved_product_image,
175175 git_sync,
176176 true ,
177- & Vec :: from ( env_vars) ,
177+ env_vars,
178178 & git_sync_container_volume_mounts,
179179 container_log_config,
180180 ) ?;
@@ -214,7 +214,7 @@ impl GitSyncResources {
214214 resolved_product_image : & ResolvedProductImage ,
215215 git_sync : & GitSync ,
216216 one_time : bool ,
217- env_vars : & [ EnvVar ] ,
217+ env_vars : EnvVarSet ,
218218 volume_mounts : & [ VolumeMount ] ,
219219 container_log_config : & ContainerLogConfig ,
220220 ) -> Result < k8s_openapi:: api:: core:: v1:: Container , Error > {
@@ -234,7 +234,7 @@ impl GitSyncResources {
234234 one_time,
235235 container_log_config,
236236 ) ] )
237- . add_env_vars ( env_vars. iter ( ) . cloned ( ) )
237+ . add_env_vars ( env_vars)
238238 . add_volume_mounts ( volume_mounts. to_vec ( ) )
239239 . context ( AddVolumeMountSnafu ) ?
240240 . resources (
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ impl GitSyncResources {
257257 resolved_product_image,
258258 git_sync,
259259 false ,
260- & Vec :: from ( env_vars. clone ( ) ) ,
260+ env_vars. clone ( ) ,
261261 & git_sync_container_volume_mounts,
262262 container_log_config,
263263 ca_cert_path. as_deref ( ) ,
@@ -268,7 +268,7 @@ impl GitSyncResources {
268268 resolved_product_image,
269269 git_sync,
270270 true ,
271- & Vec :: from ( env_vars) ,
271+ env_vars,
272272 & git_sync_container_volume_mounts,
273273 container_log_config,
274274 ca_cert_path. as_deref ( ) ,
@@ -331,7 +331,7 @@ impl GitSyncResources {
331331 resolved_product_image : & ResolvedProductImage ,
332332 git_sync : & GitSync ,
333333 one_time : bool ,
334- env_vars : & [ EnvVar ] ,
334+ env_vars : EnvVarSet ,
335335 volume_mounts : & [ VolumeMount ] ,
336336 container_log_config : & ContainerLogConfig ,
337337 ca_cert_path : Option < & str > ,
@@ -353,7 +353,7 @@ impl GitSyncResources {
353353 container_log_config,
354354 ca_cert_path,
355355 ) ] )
356- . add_env_vars ( env_vars. iter ( ) . cloned ( ) )
356+ . add_env_vars ( env_vars)
357357 . add_volume_mounts ( volume_mounts. to_vec ( ) )
358358 . context ( AddVolumeMountSnafu ) ?
359359 . resources (
You can’t perform that action at this time.
0 commit comments