From d4392263f00be1f3246e9ea1d532415e342f1891 Mon Sep 17 00:00:00 2001 From: amerlin <4397319+antoniomerlin@users.noreply.github.com> Date: Sun, 12 May 2024 12:59:56 +0530 Subject: [PATCH] Signed-off-by: amerlin (#2563) fixes #2210 --- pkg/deployment/agent.go | 2 +- pkg/deployment/agent_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/deployment/agent.go b/pkg/deployment/agent.go index 8c8765173..67885bc7a 100644 --- a/pkg/deployment/agent.go +++ b/pkg/deployment/agent.go @@ -144,7 +144,7 @@ func (a *Agent) Get() *appsv1.DaemonSet { Annotations: commonSpec.Annotations, }, Spec: corev1.PodSpec{ - ImagePullSecrets: a.jaeger.Spec.ImagePullSecrets, + ImagePullSecrets: a.jaeger.Spec.Agent.ImagePullSecrets, Containers: []corev1.Container{{ Image: util.ImageName(a.jaeger.Spec.Agent.Image, "jaeger-agent-image"), Name: "jaeger-agent-daemonset", diff --git a/pkg/deployment/agent_test.go b/pkg/deployment/agent_test.go index 1e1b5b992..4af315273 100644 --- a/pkg/deployment/agent_test.go +++ b/pkg/deployment/agent_test.go @@ -288,7 +288,7 @@ func TestAgentImagePullSecrets(t *testing.T) { jaeger := v1.NewJaeger(types.NamespacedName{Name: "TestAllInOneImagePullSecrets"}) const pullSecret = "mysecret" jaeger.Spec.Agent.Strategy = "daemonset" - jaeger.Spec.ImagePullSecrets = []corev1.LocalObjectReference{ + jaeger.Spec.Agent.ImagePullSecrets = []corev1.LocalObjectReference{ { Name: pullSecret, },