From 64ca7e815bd316f71d75b42c7feac278fb7e67c2 Mon Sep 17 00:00:00 2001 From: Maciej Golaszewski Date: Fri, 1 Nov 2024 10:43:28 +0100 Subject: [PATCH] review fixes --- pkg/upgrade/inplace/inplace_test.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkg/upgrade/inplace/inplace_test.go b/pkg/upgrade/inplace/inplace_test.go index 1c638f47..25d63fe2 100644 --- a/pkg/upgrade/inplace/inplace_test.go +++ b/pkg/upgrade/inplace/inplace_test.go @@ -24,8 +24,8 @@ func TestIsUpgraded(t *testing.T) { }{ { name: "notUpgraded", - annotations: map[string]string{bootstrapv1.InPlaceUpgradeReleaseAnnotation: "v1.30"}, - releaseString: "v1.29", + annotations: map[string]string{bootstrapv1.InPlaceUpgradeReleaseAnnotation: "v1.29"}, + releaseString: "v1.30", isUpgraded: false, }, { @@ -71,6 +71,13 @@ func TestGetUpgradeInstructions(t *testing.T) { }, upgradeTo: "v1.30", }, + { + name: "InPlaceUpgradeToAnnotationOnly", + annotations: map[string]string{ + bootstrapv1.InPlaceUpgradeToAnnotation: "v1.30", + }, + upgradeTo: "v1.30", + }, { name: "InPlaceUpgradeToAnnotation", annotations: map[string]string{