Skip to content

Commit

Permalink
Update hack/preload-images/generate.go
Browse files Browse the repository at this point in the history
Co-authored-by: Steven Powell <[email protected]>
  • Loading branch information
ComradeProgrammer and spowelljr authored Aug 30, 2024
1 parent fa4b307 commit 54c3c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/preload-images/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func generateTarball(kubernetesVersion, containerRuntime, tarballFilename string
// download crictl if needed
// first we need to check the version of crictl we are going to download
crictlVersion := ""
if stable, _, _, err := update.GHReleasesWithCondition(context.TODO(), "kubernetes-sigs", "cri-tools", func(crictlVersion string) bool {
if stable, _, _, err := update.GHReleasesWithCondition(context.Background(), "kubernetes-sigs", "cri-tools", func(crictlVersion string) bool {
k8sVer, _ := util.ParseKubernetesVersion(kubernetesVersion)
crictlVer, _ := util.ParseKubernetesVersion(crictlVersion)
return k8sVer.Major == crictlVer.Major && k8sVer.Minor == crictlVer.Minor
Expand Down

0 comments on commit 54c3c0b

Please sign in to comment.