File tree Expand file tree Collapse file tree
spawn_operator/spawn_operator/lib/spawn_operator/k8s/proxy Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ defmodule SpawnOperator.K8s.Proxy.Deployment do
195195 }
196196 |> maybe_put_node_selector ( topology )
197197 |> maybe_put_node_tolerations ( topology )
198+ |> maybe_put_image_pull_secrets ( topology )
198199 |> maybe_put_volumes ( params , erlang_mtls_enabled )
199200 |> maybe_set_termination_period ( params )
200201 }
@@ -456,6 +457,12 @@ defmodule SpawnOperator.K8s.Proxy.Deployment do
456457
457458 defp maybe_put_node_tolerations ( spec , _ ) , do: spec
458459
460+ defp maybe_put_image_pull_secrets ( spec , % { "imagePullSecrets" => image_pull_secrets } = _topology ) do
461+ Map . merge ( spec , % { "imagePullSecrets" => image_pull_secrets } )
462+ end
463+
464+ defp maybe_put_image_pull_secrets ( spec , _ ) , do: spec
465+
459466 defp maybe_put_ports_to_host_container ( spec , % { "ports" => ports } ) do
460467 Map . put ( spec , "ports" , ports )
461468 end
You can’t perform that action at this time.
0 commit comments