Skip to content

Commit

Permalink
fixes #4665 Invalid version details in backend. (#4666)
Browse files Browse the repository at this point in the history
* fix: Invalid version details in backend.

Signed-off-by: JanhaviAlekar <[email protected]>

* Checking CIVersion at start

Signed-off-by: JanhaviAlekar <[email protected]>

---------

Signed-off-by: JanhaviAlekar <[email protected]>
Co-authored-by: Vedant Shrotria <[email protected]>
Co-authored-by: Amit Kumar Das <[email protected]>
Co-authored-by: Namkyu Park <[email protected]>
  • Loading branch information
4 people authored Aug 23, 2024
1 parent 3263df9 commit 5545dd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,9 @@ func fetchLatestVersion(versions map[int]string) int {

// updateVersionFormat converts string array to int by removing decimal points, 1.0.0 will be returned as 100, 0.1.0 will be returned as 10, 0.0.1 will be returned as 1
func updateVersionFormat(str string) (int, error) {
if str == CIVersion {
return 0, nil
}
var versionInt int
versionSlice := strings.Split(str, ".")
for i, val := range versionSlice {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function KubernetesChaosInfrastructureUpgradeController({
...scope,
options: {
skip: !isUpgradeAvailable,
onError: err => showError(err)
onError: err => showError(err.message)
}
});

Expand Down

0 comments on commit 5545dd4

Please sign in to comment.