diff --git a/internal/provisioner/controller/gatewayclass_test.go b/internal/provisioner/controller/gatewayclass_test.go index f05650fddbc..b60d9d0b369 100644 --- a/internal/provisioner/controller/gatewayclass_test.go +++ b/internal/provisioner/controller/gatewayclass_test.go @@ -556,7 +556,7 @@ func TestGatewayClassReconcile(t *testing.T) { // contrived way to cause this scenario. Name: "gatewayclasses-wrong.gateway.networking.k8s.io", Annotations: map[string]string{ - "gateway.networking.k8s.io/bundle-version": "v1.2.1", + gatewayAPIBundleVersionAnnotation: gatewayAPICRDBundleSupportedVersion, }, }, }, @@ -589,7 +589,7 @@ func TestGatewayClassReconcile(t *testing.T) { ObjectMeta: meta_v1.ObjectMeta{ Name: "gatewayclasses.gateway.networking.k8s.io", Annotations: map[string]string{ - "gateway.networking.k8s.io/bundle-version-wrong": "v1.2.1", + "gateway.networking.k8s.io/bundle-version-wrong": gatewayAPICRDBundleSupportedVersion, }, }, }, @@ -676,7 +676,7 @@ func TestGatewayClassReconcile(t *testing.T) { ObjectMeta: meta_v1.ObjectMeta{ Name: "gatewayclasses.gateway.networking.k8s.io", Annotations: map[string]string{ - "gateway.networking.k8s.io/bundle-version": "v1.2.1", + gatewayAPIBundleVersionAnnotation: gatewayAPICRDBundleSupportedVersion, }, }, })