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{