From e1276641807740d203a2cf7f2d463349986389ee Mon Sep 17 00:00:00 2001 From: Denys Vitali Date: Wed, 20 Nov 2019 14:37:15 +0100 Subject: [PATCH] Fix mergeCredentials namespace reference --- pkg/cluster/kubernetes/images.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cluster/kubernetes/images.go b/pkg/cluster/kubernetes/images.go index 2f700d6a1..1da1a55ca 100644 --- a/pkg/cluster/kubernetes/images.go +++ b/pkg/cluster/kubernetes/images.go @@ -146,7 +146,7 @@ func (c *Cluster) ImagesToFetch() registry.ImageCreds { imageCreds := make(registry.ImageCreds) for _, workload := range workloads { logger := log.With(c.logger, "resource", resource.MakeID(workload.GetNamespace(), kind, workload.GetName())) - mergeCredentials(logger.Log, c.includeImage, c.client, ns, workload.podTemplate, imageCreds, seenCreds) + mergeCredentials(logger.Log, c.includeImage, c.client, workload.GetNamespace(), workload.podTemplate, imageCreds, seenCreds) } // Merge creds