File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
spawn_operator/spawn_operator/lib/spawn_operator Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ defmodule SpawnOperator.K8s.Proxy.Deployment do
195
195
}
196
196
|> maybe_put_node_selector ( topology )
197
197
|> maybe_put_node_tolerations ( topology )
198
+ |> maybe_put_image_pull_secrets ( host_params )
198
199
|> maybe_put_volumes ( params , erlang_mtls_enabled )
199
200
|> maybe_set_termination_period ( params )
200
201
}
@@ -456,6 +457,15 @@ defmodule SpawnOperator.K8s.Proxy.Deployment do
456
457
457
458
defp maybe_put_node_tolerations ( spec , _ ) , do: spec
458
459
460
+ defp maybe_put_image_pull_secrets (
461
+ spec ,
462
+ % { "pullSecretRef" => secret_name } = _host_params
463
+ ) do
464
+ Map . merge ( spec , % { "imagePullSecrets" => % { "name" => secret_name } } )
465
+ end
466
+
467
+ defp maybe_put_image_pull_secrets ( spec , _ ) , do: spec
468
+
459
469
defp maybe_put_ports_to_host_container ( spec , % { "ports" => ports } ) do
460
470
Map . put ( spec , "ports" , ports )
461
471
end
Original file line number Diff line number Diff line change @@ -193,6 +193,8 @@ defmodule SpawnOperator.Versions.Api.V1.ActorHost do
193
193
properties:
194
194
image:
195
195
type: string
196
+ pullSecretsRef:
197
+ type: string
196
198
volumeMounts:
197
199
type: array
198
200
items:
You can’t perform that action at this time.
0 commit comments