make push image to support namespaceOverride

Signed-off-by: 24sama <jacksama@foxmail.com>
This commit is contained in:
24sama 2022-03-04 13:04:17 +08:00
parent f1273bdd5a
commit 9f65844321

View File

@ -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)