diff --git a/config/tests/servicemapping/servicemapping_test.go b/config/tests/servicemapping/servicemapping_test.go index 8afb1c10fef..742119614a7 100644 --- a/config/tests/servicemapping/servicemapping_test.go +++ b/config/tests/servicemapping/servicemapping_test.go @@ -1267,6 +1267,11 @@ func TestStorageVersionIsSetAndValidIFFV1alpha1ToV1beta1IsSet(t *testing.T) { continue } if isV1alpha1ToV1beta1 { + // if this is a dierct resource the storage version is defiend + // in hte kubebuilder toolding + if r.Direct { + continue + } if hasStorageVersion { t.Errorf("Resource config %v has `v1alpha1ToV1beta1: "+ "true` but doesn't have a valid `storageVersion`: "+