Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into release-3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pixiake committed Aug 8, 2024
2 parents b3bb853 + b4c30e8 commit 09effbe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmd/kk/pkg/images/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func GetImage(runtime connector.ModuleRuntime, kubeConf *common.KubeConf, name s
type SaveImages struct {
common.ArtifactAction
ImageStartIndex int
ImageTransport string
ImageTransport string
}

func (s *SaveImages) Execute(runtime connector.Runtime) error {
Expand Down Expand Up @@ -314,7 +314,12 @@ func (c *CopyImagesToRegistry) Execute(runtime connector.Runtime) error {
}

srcName := fmt.Sprintf("oci:%s:%s", imagesPath, ref)
destName := formatImageName(c.ImageTransport, uniqueImage)
destName := formatImageName(c.ImageTransport, image.ImageName())

if c.ImageTransport == common.DockerDaemon {
destName = formatImageName(c.ImageTransport, uniqueImage)
}

logger.Log.Infof("Source: %s", srcName)
logger.Log.Infof("Destination: %s", destName)

Expand Down
4 changes: 4 additions & 0 deletions cmd/kk/pkg/version/kubernetes/version_enum.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const (
V127
V128
V129
V130
)

var VersionList = []Version{
Expand All @@ -53,6 +54,7 @@ var VersionList = []Version{
V127,
V128,
V129,
V130,
}

func (v Version) String() string {
Expand All @@ -79,6 +81,8 @@ func (v Version) String() string {
return "v1.28"
case V129:
return "v1.29"
case V130:
return "v1.30"
default:
return "invalid option"
}
Expand Down

0 comments on commit 09effbe

Please sign in to comment.