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 6f227af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
18 changes: 0 additions & 18 deletions pkg/webhook/admission/admissiontest/doc.go

This file was deleted.

Expand Up @@ -14,17 +14,16 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package admissiontest
package admission

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)
var _ Validator = (*FakeValidator)(nil)

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

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

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

0 comments on commit 6f227af

Please sign in to comment.