Skip to content

Commit 6f227af

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

File tree

2 files changed

+3
-22
lines changed

2 files changed

+3
-22
lines changed

pkg/webhook/admission/admissiontest/doc.go

Lines changed: 0 additions & 18 deletions
This file was deleted.

pkg/webhook/admission/admissiontest/util.go renamed to pkg/webhook/admission/mock_validator.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,16 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package admissiontest
17+
package admission
1818

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

2524
var _ runtime.Object = (*FakeValidator)(nil)
2625
var _ schema.ObjectKind = (*FakeValidator)(nil)
27-
var _ webhook.Validator = (*FakeValidator)(nil)
26+
var _ Validator = (*FakeValidator)(nil)
2827

2928
// FakeValidator provides fake validating webhook functionality for testing
3029
// It implements the admission.Validator interface and
@@ -72,7 +71,7 @@ func (v *FakeValidator) SetGroupVersionKind(gvk schema.GroupVersionKind) {
7271

7372
var _ runtime.Object = (*FakeValidatorWarn)(nil)
7473
var _ schema.ObjectKind = (*FakeValidatorWarn)(nil)
75-
var _ webhook.ValidatorWarn = (*FakeValidatorWarn)(nil)
74+
var _ ValidatorWarn = (*FakeValidatorWarn)(nil)
7675

7776
// FakeValidatorWarn provides fake validating webhook functionality for testing
7877
// It implements the admission.ValidatorWarn interface and

0 commit comments

Comments
 (0)