Skip to content

Commit

Permalink
Fix bug with determening the correct version to use
Browse files Browse the repository at this point in the history
The function returned a different variable than it sets in the values.
  • Loading branch information
Kidswiss committed Mar 4, 2024
1 parent f122d77 commit e5349a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ func SetReleaseVersion(ctx context.Context, version string, desiredValues map[st

if observedVersion.GTE(desiredVersion) {
// In case the overved tag is valid and greater than the desired version, keep the observed version
return observedVersion.String(), unstructured.SetNestedField(desiredValues, tag, fields...)
return tag, unstructured.SetNestedField(desiredValues, tag, fields...)
}
// In case the observed tag is smaller than the desired version, then set the version from the claim
return version, unstructured.SetNestedField(desiredValues, version, fields...)
Expand Down

0 comments on commit e5349a6

Please sign in to comment.