Skip to content

Commit

Permalink
Use generic parser for kubeadm version check (#2925)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay-krishna authored Feb 15, 2024
1 parent 88528b3 commit ac29b7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions projects/aws/bottlerocket-bootstrap/CHECKSUMS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
c99005ad01faddc531a7823c703e69aad172a2a76480e0e103347489a33893ba _output/bin/bottlerocket-bootstrap/linux-amd64/bottlerocket-bootstrap
04741f6569abd5ee0fbda4a47fb424c14e9930dbdc665238cc8e27ceb675eb53 _output/bin/bottlerocket-bootstrap/linux-amd64/bottlerocket-bootstrap
1fd36d9a1080f1ec489f0402fec9a7ab6c7cc68ae607babcb82ab55103c53558 _output/bin/bottlerocket-bootstrap/linux-amd64/bottlerocket-bootstrap-snow
65f77aa86aa088ddb3ade1f107e0be93dc65fcefb06045e0c3347a48594557b0 _output/bin/bottlerocket-bootstrap/linux-arm64/bottlerocket-bootstrap
688205c8ed160ba21a8f695d62a3fc98ad1ac344b7ff4df4ad95578286594bb4 _output/bin/bottlerocket-bootstrap/linux-arm64/bottlerocket-bootstrap
9b7d5023b692b488281f8b61aebb46fa7bf50338a4dc224624eac63661f8b65a _output/bin/bottlerocket-bootstrap/linux-arm64/bottlerocket-bootstrap-snow
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func controlPlaneInit() error {
if err != nil {
return errors.Wrapf(err, "Error running command: %v, Output: %s\n", cmd, string(out))
}
kubeadmVersion, err := versionutil.ParseSemantic(strings.TrimSuffix(string(out), "\n"))
kubeadmVersion, err := versionutil.ParseGeneric(strings.TrimSuffix(string(out), "\n"))
if err != nil {
return errors.Wrapf(err, "%s is not a valid kubeadm version", string(out))
}
Expand Down

0 comments on commit ac29b7c

Please sign in to comment.