Skip to content

Commit

Permalink
chore: tolerate slice in apicheck
Browse files Browse the repository at this point in the history
We are visiting slices twice; we'll address in another PR.
  • Loading branch information
justinsb committed Aug 1, 2024
1 parent 641241b commit 7c83555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/apichecks/crds_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func TestMissingRefs(t *testing.T) {
if strings.HasSuffix(fieldPath, "Ref") {
return
}
if strings.HasSuffix(fieldPath, "Refs[]") {
if strings.HasSuffix(fieldPath, "Refs[]") || strings.HasSuffix(fieldPath, "Refs") {
return
}
if strings.HasSuffix(fieldPath, "Ref.external") {
Expand Down

0 comments on commit 7c83555

Please sign in to comment.