Skip to content

Commit

Permalink
fix: push manifest failed if private registry contian multi-path (#2362)
Browse files Browse the repository at this point in the history
Signed-off-by: pixiake <[email protected]>
  • Loading branch information
pixiake authored Aug 15, 2024
1 parent a9427d9 commit 4c2c755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kk/pkg/images/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ func (p *PushManifest) Execute(_ connector.Runtime) error {

auths := registry.DockerRegistryAuthEntries(p.KubeConf.Cluster.Registry.Auths)
auth := new(registry.DockerRegistryEntry)
if _, ok := auths[p.KubeConf.Cluster.Registry.PrivateRegistry]; ok {
auth = auths[p.KubeConf.Cluster.Registry.PrivateRegistry]
if _, ok := auths[p.KubeConf.Cluster.Registry.GetHost()]; ok {
auth = auths[p.KubeConf.Cluster.Registry.GetHost()]
}

for imageName, platforms := range list {
Expand Down

0 comments on commit 4c2c755

Please sign in to comment.