Skip to content

Commit

Permalink
chore: refine implementing declaration, fix import cycle
Browse files Browse the repository at this point in the history
Signed-off-by: STRRL <im@strrl.dev>
  • Loading branch information
STRRL committed Nov 3, 2022
1 parent 469500b commit f246cc3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/webhook/admission/admissiontest/util.go
Expand Up @@ -19,13 +19,8 @@ package admissiontest
import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
"sigs.k8s.io/controller-runtime/pkg/webhook"
)

var _ runtime.Object = (*FakeValidator)(nil)
var _ schema.ObjectKind = (*FakeValidator)(nil)
var _ webhook.Validator = (*FakeValidator)(nil)

// FakeValidator provides fake validating webhook functionality for testing
// It implements the admission.Validator interface and
// rejects all requests with the same configured error
Expand Down Expand Up @@ -70,10 +65,6 @@ func (v *FakeValidator) SetGroupVersionKind(gvk schema.GroupVersionKind) {
v.GVKToReturn = gvk
}

var _ runtime.Object = (*FakeValidatorWarn)(nil)
var _ schema.ObjectKind = (*FakeValidatorWarn)(nil)
var _ webhook.ValidatorWarn = (*FakeValidatorWarn)(nil)

// FakeValidatorWarn provides fake validating webhook functionality for testing
// It implements the admission.ValidatorWarn interface and
// rejects all requests with the same configured error
Expand Down

0 comments on commit f246cc3

Please sign in to comment.