From ca16f67d0d01977e83550b6a27f45f4be9d747e4 Mon Sep 17 00:00:00 2001 From: Alex Pana <8968914+acpana@users.noreply.github.com> Date: Wed, 11 Sep 2024 00:06:38 +0000 Subject: [PATCH] tests: direct storageVersion Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com> --- config/tests/servicemapping/servicemapping_test.go | 5 +++++ 1 file changed, 5 insertions(+) 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`: "+