Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ defmodule SpawnOperator.K8s.Proxy.Deployment do
}
|> maybe_put_node_selector(topology)
|> maybe_put_node_tolerations(topology)
|> maybe_put_image_pull_secrets(host_params)
|> maybe_put_volumes(params, erlang_mtls_enabled)
|> maybe_set_termination_period(params)
}
Expand Down Expand Up @@ -456,6 +457,15 @@ defmodule SpawnOperator.K8s.Proxy.Deployment do

defp maybe_put_node_tolerations(spec, _), do: spec

defp maybe_put_image_pull_secrets(
spec,
%{"imagePullSecrets" => image_pull_secrets} = _host_params
) do
Map.merge(spec, %{"imagePullSecrets" => image_pull_secrets})
Comment thread
sleipnir marked this conversation as resolved.
Outdated
end

defp maybe_put_image_pull_secrets(spec, _), do: spec

defp maybe_put_ports_to_host_container(spec, %{"ports" => ports}) do
Map.put(spec, "ports", ports)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,13 @@ defmodule SpawnOperator.Versions.Api.V1.ActorHost do
properties:
image:
type: string
imagePullSecrets:
Comment thread
sleipnir marked this conversation as resolved.
Outdated
type: array
items:
type: object
properties:
name:
type: string
volumeMounts:
type: array
items:
Expand Down