Skip to content

Commit

Permalink
kubepkg: Use the cross build version marker (ci/k8s-master) for packages
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
  • Loading branch information
justaugustus committed Jun 29, 2020
1 parent 604b250 commit 34dfb10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/kubepkg/kubepkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ func (c *Client) GetKubernetesVersion(packageDef *PackageDefinition) (string, er
case ChannelTesting:
return c.impl.GetKubeVersion(release.VersionTypeStablePreRelease)
case ChannelNightly:
return c.impl.GetKubeVersion(release.VersionTypeCILatest)
return c.impl.GetKubeVersion(release.VersionTypeCILatestCross)
}

return c.impl.GetKubeVersion(release.VersionTypeStable)
Expand Down Expand Up @@ -577,7 +577,7 @@ func (c *Client) GetCIBuildsDownloadLinkBase(packageDef *PackageDefinition) (str
ciVersion := packageDef.KubernetesVersion
if ciVersion == "" {
var err error
ciVersion, err = c.impl.GetKubeVersion(release.VersionTypeCILatest)
ciVersion, err = c.impl.GetKubeVersion(release.VersionTypeCILatestCross)
if err != nil {
return "", err
}
Expand Down
4 changes: 4 additions & 0 deletions pkg/release/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ const (
// for example `v1.19.0-alpha.0.721+f8ff8f44206ff4`
VersionTypeCILatest VersionType = "ci/latest"

// VersionTypeCILatestCross references the latest CI cross build Kubernetes
// version, for example `v1.19.0-alpha.0.721+f8ff8f44206ff4`
VersionTypeCILatestCross VersionType = "ci/k8s-master"

// baseURL is the base URL for every release version retrieval
baseURL = "https://dl.k8s.io/"
)
Expand Down

0 comments on commit 34dfb10

Please sign in to comment.