Skip to content

Commit

Permalink
fix(platform): use domain for registry mirror (#2139)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Ryu committed Nov 2, 2022
1 parent ae07ee3 commit 7931d03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/platform/provider/baremetal/cluster/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,8 @@ func (p *Provider) EnsureContainerd(ctx context.Context, c *v1.Cluster) error {
option := &containerd.Option{
InsecureRegistries: insecureRegistries,
SandboxImage: path.Join(prefix, images.Get().Pause.BaseName()),
RegistryMirror: prefix,
// for mirror, we just need domain in prefix
RegistryMirror: strings.Split(prefix, "/")[0],
}
for _, machine := range c.Spec.Machines {
machineSSH, err := machine.SSH()
Expand Down

0 comments on commit 7931d03

Please sign in to comment.