diff --git a/api/v1beta2/ocicluster_webhook_test.go b/api/v1beta2/ocicluster_webhook_test.go index cc7e57ef..933ea58e 100644 --- a/api/v1beta2/ocicluster_webhook_test.go +++ b/api/v1beta2/ocicluster_webhook_test.go @@ -419,7 +419,9 @@ func TestOCICluster_ValidateCreate(t *testing.T) { { name: "allow nsg custom role", c: &OCICluster{ - ObjectMeta: metav1.ObjectMeta{}, + ObjectMeta: metav1.ObjectMeta{ + Name: goodClusterName, + }, Spec: OCIClusterSpec{ CompartmentId: "ocid", OCIResourceIdentifier: "uuid",