Skip to content

Commit f246cc3

Browse files
committed
chore: refine implementing declaration, fix import cycle
Signed-off-by: STRRL <[email protected]>
1 parent 469500b commit f246cc3

File tree

1 file changed

+0
-9
lines changed
  • pkg/webhook/admission/admissiontest

1 file changed

+0
-9
lines changed

pkg/webhook/admission/admissiontest/util.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,8 @@ package admissiontest
1919
import (
2020
"k8s.io/apimachinery/pkg/runtime"
2121
"k8s.io/apimachinery/pkg/runtime/schema"
22-
"sigs.k8s.io/controller-runtime/pkg/webhook"
2322
)
2423

25-
var _ runtime.Object = (*FakeValidator)(nil)
26-
var _ schema.ObjectKind = (*FakeValidator)(nil)
27-
var _ webhook.Validator = (*FakeValidator)(nil)
28-
2924
// FakeValidator provides fake validating webhook functionality for testing
3025
// It implements the admission.Validator interface and
3126
// rejects all requests with the same configured error
@@ -70,10 +65,6 @@ func (v *FakeValidator) SetGroupVersionKind(gvk schema.GroupVersionKind) {
7065
v.GVKToReturn = gvk
7166
}
7267

73-
var _ runtime.Object = (*FakeValidatorWarn)(nil)
74-
var _ schema.ObjectKind = (*FakeValidatorWarn)(nil)
75-
var _ webhook.ValidatorWarn = (*FakeValidatorWarn)(nil)
76-
7768
// FakeValidatorWarn provides fake validating webhook functionality for testing
7869
// It implements the admission.ValidatorWarn interface and
7970
// rejects all requests with the same configured error

0 commit comments

Comments
 (0)