Skip to content

Commit

Permalink
tests: direct storageVersion
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Pana <[email protected]>
  • Loading branch information
acpana committed Sep 11, 2024
1 parent e8ff372 commit 3222c25
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/tests/servicemapping/servicemapping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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`: "+
Expand Down

0 comments on commit 3222c25

Please sign in to comment.