Skip to content

Commit d8185d4

Browse files
author
Adriano Santos
committed
fix: correct semantic for image pull secrets
1 parent 40509f7 commit d8185d4

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

spawn_operator/spawn_operator/lib/spawn_operator/k8s/proxy/deployment.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,9 @@ defmodule SpawnOperator.K8s.Proxy.Deployment do
459459

460460
defp maybe_put_image_pull_secrets(
461461
spec,
462-
%{"imagePullSecrets" => image_pull_secrets} = _host_params
462+
%{"pullSecretRef" => secret_name} = _host_params
463463
) do
464-
Map.merge(spec, %{"imagePullSecrets" => image_pull_secrets})
464+
Map.merge(spec, %{"imagePullSecrets" => %{"name" => secret_name}})
465465
end
466466

467467
defp maybe_put_image_pull_secrets(spec, _), do: spec

spawn_operator/spawn_operator/lib/spawn_operator/versions/api/v1/actor_host.ex

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,8 @@ defmodule SpawnOperator.Versions.Api.V1.ActorHost do
193193
properties:
194194
image:
195195
type: string
196-
imagePullSecrets:
197-
type: array
198-
items:
199-
type: object
200-
properties:
201-
name:
202-
type: string
196+
pullSecretsRef:
197+
type: string
203198
volumeMounts:
204199
type: array
205200
items:

0 commit comments

Comments
 (0)