Skip to content

Commit

Permalink
Fix short Kubernetes version in bundle manifest (#7121)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay-krishna authored Dec 4, 2023
1 parent 938bcf0 commit c2a0d1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion release/cli/pkg/aws/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func UploadFile(filePath string, bucket, key *string, s3Uploader *s3manager.Uplo
return nil
}

func KeyExists(bucket string, key string) bool {
func KeyExists(bucket, key string) bool {
objectUrl := fmt.Sprintf("https://%s.s3.amazonaws.com/%s", bucket, key)

resp, err := http.Head(objectUrl)
Expand Down
2 changes: 1 addition & 1 deletion release/cli/pkg/bundles/bundles.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func GetVersionsBundles(r *releasetypes.ReleaseConfig, imageDigests map[string]s
number := strconv.Itoa(release.Number)
dev := release.Dev
kubeVersion := release.KubeVersion
shortKubeVersion := kubeVersion[1:strings.LastIndex(kubeVersion, ".")]
shortKubeVersion := strings.Join(strings.SplitN(kubeVersion[1:], ".", 3)[:2], ".")

if !sliceutils.SliceContains(supportedK8sVersions, channel) {
continue
Expand Down

0 comments on commit c2a0d1f

Please sign in to comment.