Skip to content

Commit

Permalink
Move the kubevirt api to core/api
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Mohr <[email protected]>
  • Loading branch information
rmohr committed Oct 25, 2021
1 parent 901f705 commit ac41c25
Show file tree
Hide file tree
Showing 432 changed files with 1,544 additions and 1,565 deletions.
2 changes: 1 addition & 1 deletion cmd/example-cloudinit-hook-sidecar/cloudinit.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

"google.golang.org/grpc"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
"kubevirt.io/client-go/log"
cloudinit "kubevirt.io/kubevirt/pkg/cloud-init"
hooks "kubevirt.io/kubevirt/pkg/hooks"
Expand Down
2 changes: 1 addition & 1 deletion cmd/example-hook-sidecar/smbios.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"github.com/spf13/pflag"
"google.golang.org/grpc"

vmSchema "kubevirt.io/client-go/api/v1"
vmSchema "kubevirt.io/client-go/apis/core/v1"
"kubevirt.io/client-go/log"
"kubevirt.io/kubevirt/pkg/hooks"
hooksInfo "kubevirt.io/kubevirt/pkg/hooks/info"
Expand Down
2 changes: 1 addition & 1 deletion cmd/subresource-access-test/subresource-access-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

"k8s.io/client-go/rest"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
"kubevirt.io/client-go/kubecli"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/virt-freezer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/spf13/pflag"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
"kubevirt.io/client-go/log"
cmdclient "kubevirt.io/kubevirt/pkg/virt-handler/cmd-client"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/virt-handler/virt-handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import (

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
"kubevirt.io/client-go/kubecli"
"kubevirt.io/client-go/log"
clientutil "kubevirt.io/client-go/util"
Expand Down
2 changes: 1 addition & 1 deletion cmd/virt-launcher/virt-launcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import (
"k8s.io/apimachinery/pkg/watch"
"k8s.io/client-go/util/retry"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
"kubevirt.io/client-go/log"
cloudinit "kubevirt.io/kubevirt/pkg/cloud-init"
"kubevirt.io/kubevirt/pkg/config"
Expand Down
2 changes: 1 addition & 1 deletion pkg/certificates/bootstrap/cert-manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/tools/cache"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
"kubevirt.io/kubevirt/pkg/certificates/triple"
"kubevirt.io/kubevirt/pkg/certificates/triple/cert"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/cloud-init/cloud-init.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"strings"
"time"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
"kubevirt.io/client-go/log"
"kubevirt.io/client-go/precond"
diskutils "kubevirt.io/kubevirt/pkg/ephemeral-disk-utils"
Expand Down
2 changes: 1 addition & 1 deletion pkg/cloud-init/cloud-init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (

k8sv1 "k8s.io/api/core/v1"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
)

var _ = Describe("CloudInit", func() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/config-map.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package config
import (
"path/filepath"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
ephemeraldiskutils "kubevirt.io/kubevirt/pkg/ephemeral-disk-utils"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/config/config-map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
. "github.com/onsi/gomega"
k8sv1 "k8s.io/api/core/v1"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
)

var _ = Describe("ConfigMap", func() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (

"kubevirt.io/kubevirt/pkg/util"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/downwardapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package config
import (
"path/filepath"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
ephemeraldiskutils "kubevirt.io/kubevirt/pkg/ephemeral-disk-utils"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/config/downwardapi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (

k8sv1 "k8s.io/api/core/v1"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
)

var _ = Describe("DownwardAPI", func() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package config
import (
"path/filepath"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
ephemeraldiskutils "kubevirt.io/kubevirt/pkg/ephemeral-disk-utils"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/config/secret_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
)

var _ = Describe("Secret", func() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/service-account.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package config
import (
"path/filepath"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
ephemeraldiskutils "kubevirt.io/kubevirt/pkg/ephemeral-disk-utils"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/config/service-account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
)

var _ = Describe("ServiceAccount", func() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/sysprep.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"path/filepath"
"strings"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
ephemeraldiskutils "kubevirt.io/kubevirt/pkg/ephemeral-disk-utils"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/config/sysprep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
. "github.com/onsi/gomega"
k8sv1 "k8s.io/api/core/v1"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
)

func createFile(fullPath string) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/container-disk/container-disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (

ephemeraldisk "kubevirt.io/kubevirt/pkg/ephemeral-disk"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
diskutils "kubevirt.io/kubevirt/pkg/ephemeral-disk-utils"
"kubevirt.io/kubevirt/pkg/util"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/container-disk/container-disk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/apimachinery/pkg/types"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
)

var _ = Describe("ContainerDisk", func() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/conditions.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

cdiv1 "kubevirt.io/containerized-data-importer/pkg/apis/core/v1beta1"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
)

type VirtualMachineConditionManager struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/conditions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

v12 "k8s.io/api/core/v1"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
)

var _ = Describe("VirtualMachineInstance ConditionManager", func() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
"k8s.io/client-go/tools/cache"
"k8s.io/client-go/util/workqueue"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
"kubevirt.io/client-go/log"
cdiv1 "kubevirt.io/containerized-data-importer/pkg/apis/core/v1beta1"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/controller_ref.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"

virtv1 "kubevirt.io/client-go/api/v1"
virtv1 "kubevirt.io/client-go/apis/core/v1"
)

// GetControllerOf returns the controllerRef if controllee has a controller,
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/controller_ref_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
"k8s.io/apimachinery/pkg/types"
utilerrors "k8s.io/apimachinery/pkg/util/errors"

virtv1 "kubevirt.io/client-go/api/v1"
virtv1 "kubevirt.io/client-go/apis/core/v1"
"kubevirt.io/client-go/kubecli"
"kubevirt.io/client-go/log"
cdiv1 "kubevirt.io/containerized-data-importer/pkg/apis/core/v1beta1"
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/controller_ref_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/types"

virtv1 "kubevirt.io/client-go/api/v1"
virtv1 "kubevirt.io/client-go/apis/core/v1"
cdiv1 "kubevirt.io/containerized-data-importer/pkg/apis/core/v1beta1"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/virtinformers.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import (
apiregv1 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1"
aggregatorclient "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset"

kubev1 "kubevirt.io/client-go/api/v1"
kubev1 "kubevirt.io/client-go/apis/core/v1"
flavorv1 "kubevirt.io/client-go/apis/flavor/v1alpha1"
snapshotv1 "kubevirt.io/client-go/apis/snapshot/v1alpha1"
"kubevirt.io/client-go/kubecli"
Expand Down
2 changes: 1 addition & 1 deletion pkg/downwardmetrics/downwardmetrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"path/filepath"
"strconv"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
"kubevirt.io/kubevirt/pkg/config"
"kubevirt.io/kubevirt/pkg/downwardmetrics/vhostmd"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/emptydisk/emptydisk.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"path"
"strconv"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
ephemeraldiskutils "kubevirt.io/kubevirt/pkg/ephemeral-disk-utils"
"kubevirt.io/kubevirt/pkg/util"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/emptydisk/emptydisk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
. "github.com/onsi/gomega"
"k8s.io/apimachinery/pkg/api/resource"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
)

var _ = Describe("EmptyDisk", func() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/ephemeral-disk/ephemeral-disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"os/exec"
"path/filepath"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
diskutils "kubevirt.io/kubevirt/pkg/ephemeral-disk-utils"
"kubevirt.io/kubevirt/pkg/util"
"kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap/api"
Expand Down
2 changes: 1 addition & 1 deletion pkg/ephemeral-disk/ephemeral-disk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
. "github.com/onsi/gomega"
k8sv1 "k8s.io/api/core/v1"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
"kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap/api"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/ephemeral-disk/fake/ephemeral-disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package fake
import (
"path/filepath"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
"kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap/api"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/flavor/flavor.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

k8sfield "k8s.io/apimachinery/pkg/util/validation/field"

virtv1 "kubevirt.io/client-go/api/v1"
virtv1 "kubevirt.io/client-go/apis/core/v1"
flavorv1alpha1 "kubevirt.io/client-go/apis/flavor/v1alpha1"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/flavor/flavor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
k8sfield "k8s.io/apimachinery/pkg/util/validation/field"
"k8s.io/client-go/tools/cache"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
flavorv1alpha1 "kubevirt.io/client-go/apis/flavor/v1alpha1"
"kubevirt.io/kubevirt/pkg/flavor"
"kubevirt.io/kubevirt/pkg/testutils"
Expand Down
2 changes: 1 addition & 1 deletion pkg/hooks/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

k8sv1 "k8s.io/api/core/v1"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
)

const HookSidecarListAnnotationName = "hooks.kubevirt.io/hookSidecars"
Expand Down
2 changes: 1 addition & 1 deletion pkg/hooks/hooks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
"kubevirt.io/kubevirt/pkg/hooks"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/hooks/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"sync"
"time"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
"kubevirt.io/client-go/log"
cloudinit "kubevirt.io/kubevirt/pkg/cloud-init"
hooksInfo "kubevirt.io/kubevirt/pkg/hooks/info"
Expand Down
2 changes: 1 addition & 1 deletion pkg/host-disk/host-disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
k8sv1 "k8s.io/api/core/v1"
"k8s.io/client-go/tools/record"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
"kubevirt.io/kubevirt/pkg/util"
"kubevirt.io/kubevirt/pkg/util/types"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/host-disk/host-disk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
"k8s.io/client-go/kubernetes/fake"
"k8s.io/client-go/tools/record"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
"kubevirt.io/client-go/kubecli"
"kubevirt.io/kubevirt/pkg/testutils"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/ignition/ignition.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"errors"
"fmt"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
"kubevirt.io/client-go/log"
"kubevirt.io/client-go/precond"
diskutils "kubevirt.io/kubevirt/pkg/ephemeral-disk-utils"
Expand Down
2 changes: 1 addition & 1 deletion pkg/ignition/ignition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

v1 "kubevirt.io/client-go/api/v1"
v1 "kubevirt.io/client-go/apis/core/v1"
)

var _ = Describe("Ignition", func() {
Expand Down
Loading

0 comments on commit ac41c25

Please sign in to comment.