From 9f658443213912cc8db895fa8cd32496415fc2a7 Mon Sep 17 00:00:00 2001 From: 24sama Date: Fri, 4 Mar 2022 13:04:17 +0800 Subject: [PATCH] make push image to support namespaceOverride Signed-off-by: 24sama --- pkg/images/images.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/images/images.go b/pkg/images/images.go index 421a3121..591df075 100644 --- a/pkg/images/images.go +++ b/pkg/images/images.go @@ -130,10 +130,11 @@ func CmdPush(fileName string, prePath string, kubeConf *common.KubeConf, arches privateRegistry := kubeConf.Cluster.Registry.PrivateRegistry image := Image{ - RepoAddr: privateRegistry, - Namespace: namespace, - Repo: imageName, - Tag: tag, + RepoAddr: privateRegistry, + Namespace: namespace, + NamespaceOverride: kubeConf.Cluster.Registry.NamespaceOverride, + Repo: imageName, + Tag: tag, } auths := templates.Auths(kubeConf)