Skip to content

Commit

Permalink
Remove another unnecessary dependency from the API
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Mohr <rmohr@redhat.com>
  • Loading branch information
rmohr committed Oct 25, 2021
1 parent be5435b commit e218786
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion staging/src/kubevirt.io/client-go/apis/core/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ go_library(
visibility = ["//visibility:public"],
deps = [
"//staging/src/kubevirt.io/client-go/apis/core:go_default_library",
"//staging/src/kubevirt.io/client-go/precond:go_default_library",
"//vendor/github.com/go-openapi/spec:go_default_library",
"//vendor/github.com/pborman/uuid:go_default_library",
"//vendor/k8s.io/api/core/v1:go_default_library",
Expand Down
3 changes: 0 additions & 3 deletions staging/src/kubevirt.io/client-go/apis/core/v1/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import (
k8sv1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
k8smetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"kubevirt.io/client-go/precond"
)

// This is meant for testing
Expand All @@ -34,7 +32,6 @@ func NewMinimalVMI(name string) *VirtualMachineInstance {

// This is meant for testing
func NewMinimalVMIWithNS(namespace, name string) *VirtualMachineInstance {
precond.CheckNotEmpty(name)
vmi := NewVMIReferenceFromNameWithNS(namespace, name)
vmi.Spec = VirtualMachineInstanceSpec{Domain: DomainSpec{}}
vmi.Spec.Domain.Resources.Requests = k8sv1.ResourceList{
Expand Down

0 comments on commit e218786

Please sign in to comment.