Skip to content

Commit

Permalink
fix: correct semantic for image pull secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriano Santos committed Mar 4, 2025
1 parent 40509f7 commit d8185d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,9 @@ defmodule SpawnOperator.K8s.Proxy.Deployment do

defp maybe_put_image_pull_secrets(
spec,
%{"imagePullSecrets" => image_pull_secrets} = _host_params
%{"pullSecretRef" => secret_name} = _host_params
) do
Map.merge(spec, %{"imagePullSecrets" => image_pull_secrets})
Map.merge(spec, %{"imagePullSecrets" => %{"name" => secret_name}})
end

defp maybe_put_image_pull_secrets(spec, _), do: spec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,8 @@ defmodule SpawnOperator.Versions.Api.V1.ActorHost do
properties:
image:
type: string
imagePullSecrets:
type: array
items:
type: object
properties:
name:
type: string
pullSecretsRef:
type: string
volumeMounts:
type: array
items:
Expand Down

0 comments on commit d8185d4

Please sign in to comment.