From e5349a637d57ac916529ab6290c957719f418a3f Mon Sep 17 00:00:00 2001 From: Simon Beck Date: Fri, 1 Mar 2024 13:09:11 +0100 Subject: [PATCH] Fix bug with determening the correct version to use The function returned a different variable than it sets in the values. --- pkg/comp-functions/functions/common/maintenance/maintenance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/comp-functions/functions/common/maintenance/maintenance.go b/pkg/comp-functions/functions/common/maintenance/maintenance.go index b55a1f5823..929fe1eed0 100644 --- a/pkg/comp-functions/functions/common/maintenance/maintenance.go +++ b/pkg/comp-functions/functions/common/maintenance/maintenance.go @@ -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...)