From 46ba807edb0a2dc4c2d827be1681b11eccddbb1d Mon Sep 17 00:00:00 2001 From: hanweisen Date: Fri, 1 Sep 2023 15:46:22 +0800 Subject: [PATCH] change codegen path to kosmos --- .../app/controllerstarter.go | 4 +- go.mod | 1 + go.sum | 4 +- hack/update-codegen.sh | 22 +- hack/update-crds.sh | 2 +- pkg/agent/controller.go | 4 +- pkg/agent/network-manager/network_manager.go | 2 +- .../v1alpha1/cluster_types.go | 0 .../v1alpha1/clusternode_types.go | 0 .../v1alpha1/constants.go | 0 .../{clusterlink => kosmos}/v1alpha1/doc.go | 0 .../v1alpha1/nodeconfig_types.go | 0 .../v1alpha1/proxy_types.go | 0 .../v1alpha1/zz_generated.deepcopy.go | 0 .../v1alpha1/zz_generated.register.go | 0 .../floaterclient/cluster-helper.go | 2 +- pkg/clusterlinkctl/membercurd/options.go | 4 +- .../calicoippool/calicoippool_controller.go | 4 +- pkg/controllers/cluster/cluster_controller.go | 2 +- pkg/controllers/cluster/helper.go | 2 +- pkg/controllers/node/node_controller.go | 2 +- pkg/controllers/nodecidr/adapter.go | 2 +- .../nodecidr/nodecidr_controller.go | 6 +- pkg/elector/elector.go | 2 +- pkg/elector/elector_test.go | 2 +- .../clientset/versioned/clientset.go | 2 +- .../versioned/fake/clientset_generated.go | 4 +- .../clientset/versioned/fake/register.go | 2 +- .../clientset/versioned/scheme/register.go | 2 +- .../v1alpha1/cluster.go | 2 +- .../v1alpha1/clusternode.go | 2 +- .../{clusterlink => kosmos}/v1alpha1/doc.go | 0 .../v1alpha1/fake/doc.go | 0 .../v1alpha1/fake/fake_cluster.go | 2 +- .../v1alpha1/fake/fake_clusternode.go | 2 +- .../v1alpha1/fake/fake_kosmos_client.go} | 2 +- .../v1alpha1/fake/fake_nodeconfig.go | 2 +- .../v1alpha1/generated_expansion.go | 0 .../v1alpha1/kosmos_client.go} | 2 +- .../v1alpha1/nodeconfig.go | 2 +- .../informers/externalversions/factory.go | 8 +- .../informers/externalversions/generic.go | 2 +- .../{clusterlink => kosmos}/interface.go | 4 +- .../v1alpha1/cluster.go | 8 +- .../v1alpha1/clusternode.go | 8 +- .../v1alpha1/interface.go | 0 .../v1alpha1/nodeconfig.go | 8 +- .../v1alpha1/cluster.go | 2 +- .../v1alpha1/clusternode.go | 2 +- .../v1alpha1/expansion_generated.go | 0 .../v1alpha1/nodeconfig.go | 2 +- pkg/generated/openapi/zz_generated.openapi.go | 240 +++++++++--------- pkg/network-manager/controller.go | 2 +- pkg/network-manager/handlers/context.go | 2 +- pkg/network-manager/handlers/globalmap.go | 2 +- pkg/network-manager/handlers/host_network.go | 2 +- pkg/network-manager/handlers/nodeconfig.go | 2 +- pkg/network-manager/handlers/pod_routes.go | 2 +- .../handlers/vxbridge_mac_cache.go | 2 +- .../handlers/vxbridge_network.go | 2 +- .../handlers/vxlocal_mac_cache.go | 2 +- .../handlers/vxlocal_network.go | 2 +- pkg/network-manager/helpers/filter.go | 2 +- pkg/network-manager/helpers/network.go | 2 +- pkg/network-manager/helpers/sort.go | 2 +- pkg/network-manager/network_manager.go | 2 +- pkg/network/adapter.go | 2 +- pkg/network/arp.go | 2 +- pkg/network/device.go | 2 +- pkg/network/fdb.go | 2 +- pkg/network/interface.go | 2 +- pkg/network/iptables.go | 2 +- pkg/network/route.go | 2 +- pkg/operator/addons/option/option.go | 2 +- pkg/operator/operator_controller.go | 4 +- pkg/proxy/apiserver.go | 2 +- pkg/proxy/storage.go | 2 +- pkg/scheme/scheme.go | 2 +- .../interface-policy/interface-policy.go | 2 +- pkg/utils/role/role.go | 2 +- test/e2e/elector_test.go | 2 +- test/e2e/framework/cluster.go | 2 +- vendor/modules.txt | 2 + 83 files changed, 223 insertions(+), 218 deletions(-) rename pkg/apis/{clusterlink => kosmos}/v1alpha1/cluster_types.go (100%) rename pkg/apis/{clusterlink => kosmos}/v1alpha1/clusternode_types.go (100%) rename pkg/apis/{clusterlink => kosmos}/v1alpha1/constants.go (100%) rename pkg/apis/{clusterlink => kosmos}/v1alpha1/doc.go (100%) rename pkg/apis/{clusterlink => kosmos}/v1alpha1/nodeconfig_types.go (100%) rename pkg/apis/{clusterlink => kosmos}/v1alpha1/proxy_types.go (100%) rename pkg/apis/{clusterlink => kosmos}/v1alpha1/zz_generated.deepcopy.go (100%) rename pkg/apis/{clusterlink => kosmos}/v1alpha1/zz_generated.register.go (100%) rename pkg/generated/clientset/versioned/typed/{clusterlink => kosmos}/v1alpha1/cluster.go (98%) rename pkg/generated/clientset/versioned/typed/{clusterlink => kosmos}/v1alpha1/clusternode.go (98%) rename pkg/generated/clientset/versioned/typed/{clusterlink => kosmos}/v1alpha1/doc.go (100%) rename pkg/generated/clientset/versioned/typed/{clusterlink => kosmos}/v1alpha1/fake/doc.go (100%) rename pkg/generated/clientset/versioned/typed/{clusterlink => kosmos}/v1alpha1/fake/fake_cluster.go (98%) rename pkg/generated/clientset/versioned/typed/{clusterlink => kosmos}/v1alpha1/fake/fake_clusternode.go (98%) rename pkg/generated/clientset/versioned/typed/{clusterlink/v1alpha1/fake/fake_clusterlink_client.go => kosmos/v1alpha1/fake/fake_kosmos_client.go} (95%) rename pkg/generated/clientset/versioned/typed/{clusterlink => kosmos}/v1alpha1/fake/fake_nodeconfig.go (98%) rename pkg/generated/clientset/versioned/typed/{clusterlink => kosmos}/v1alpha1/generated_expansion.go (100%) rename pkg/generated/clientset/versioned/typed/{clusterlink/v1alpha1/clusterlink_client.go => kosmos/v1alpha1/kosmos_client.go} (97%) rename pkg/generated/clientset/versioned/typed/{clusterlink => kosmos}/v1alpha1/nodeconfig.go (98%) rename pkg/generated/informers/externalversions/{clusterlink => kosmos}/interface.go (94%) rename pkg/generated/informers/externalversions/{clusterlink => kosmos}/v1alpha1/cluster.go (90%) rename pkg/generated/informers/externalversions/{clusterlink => kosmos}/v1alpha1/clusternode.go (90%) rename pkg/generated/informers/externalversions/{clusterlink => kosmos}/v1alpha1/interface.go (100%) rename pkg/generated/informers/externalversions/{clusterlink => kosmos}/v1alpha1/nodeconfig.go (90%) rename pkg/generated/listers/{clusterlink => kosmos}/v1alpha1/cluster.go (95%) rename pkg/generated/listers/{clusterlink => kosmos}/v1alpha1/clusternode.go (95%) rename pkg/generated/listers/{clusterlink => kosmos}/v1alpha1/expansion_generated.go (100%) rename pkg/generated/listers/{clusterlink => kosmos}/v1alpha1/nodeconfig.go (95%) diff --git a/cmd/controller-manager/app/controllerstarter.go b/cmd/controller-manager/app/controllerstarter.go index 74bb8ac65..399ac000c 100644 --- a/cmd/controller-manager/app/controllerstarter.go +++ b/cmd/controller-manager/app/controllerstarter.go @@ -12,11 +12,11 @@ import ( "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" "github.com/kosmos.io/kosmos/cmd/controller-manager/app/options" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" ctrlcontext "github.com/kosmos.io/kosmos/pkg/controllers/context" "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned" "github.com/kosmos.io/kosmos/pkg/generated/informers/externalversions" - "github.com/kosmos.io/kosmos/pkg/generated/listers/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/generated/listers/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/utils" "github.com/kosmos.io/kosmos/pkg/utils/keys" ) diff --git a/go.mod b/go.mod index a811fa369..21d920115 100644 --- a/go.mod +++ b/go.mod @@ -35,6 +35,7 @@ require ( ) require ( + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect github.com/BurntSushi/toml v1.0.0 // indirect github.com/MakeNowJust/heredoc v1.0.0 // indirect diff --git a/go.sum b/go.sum index 334464854..d44536251 100644 --- a/go.sum +++ b/go.sum @@ -39,8 +39,10 @@ cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJW cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M= cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz/FMzPu0s= cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= -cloud.google.com/go/compute v1.7.0 h1:v/k9Eueb8aAJ0vZuxKMrgm6kPhCLZU9HxFU+AFDs9Uk= cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY= diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index c8e879ef7..dfafe12e6 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -5,7 +5,7 @@ set -o nounset set -o pipefail CLUSTERLINK_GROUP_PACKAGE="github.com" -CLUSTERLINK_GO_PACKAGE="${CLUSTERLINK_GROUP_PACKAGE}/kosmos.io/clusterlink" +CLUSTERLINK_GO_PACKAGE="${CLUSTERLINK_GROUP_PACKAGE}/kosmos.io/kosmos" # For all commands, the working directory is the parent directory(repo root). REPO_ROOT=$(git rev-parse --show-toplevel) @@ -40,27 +40,27 @@ create_gopath_tree "${REPO_ROOT}" "${link_path}" deepcopy-gen \ --go-header-file hack/boilerplate/boilerplate.go.txt \ - --input-dirs=github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1 \ + --input-dirs=github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1 \ --output-base="${REPO_ROOT}" \ - --output-package=pkg/apis/clusterlink/v1alpha1 \ + --output-package=pkg/apis/kosmos/v1alpha1 \ --output-file-base=zz_generated.deepcopy echo "Generating with register-gen" GO111MODULE=on go install k8s.io/code-generator/cmd/register-gen register-gen \ --go-header-file hack/boilerplate/boilerplate.go.txt \ - --input-dirs=github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1 \ + --input-dirs=github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1 \ --output-base="${REPO_ROOT}" \ - --output-package=pkg/apis/clusterlink/v1alpha1 \ + --output-package=pkg/apis/kosmos/v1alpha1 \ --output-file-base=zz_generated.register echo "Generating with conversion-gen" GO111MODULE=on go install k8s.io/code-generator/cmd/conversion-gen conversion-gen \ --go-header-file hack/boilerplate/boilerplate.go.txt \ - --input-dirs=github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1 \ + --input-dirs=github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1 \ --output-base="${REPO_ROOT}" \ - --output-package=github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1 \ + --output-package=github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1 \ --output-file-base=zz_generated.conversion echo "Generating with client-gen" @@ -68,7 +68,7 @@ GO111MODULE=on go install k8s.io/code-generator/cmd/client-gen client-gen \ --go-header-file hack/boilerplate/boilerplate.go.txt \ --input-base="" \ - --input=github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1 \ + --input=github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1 \ --output-base="${REPO_ROOT}" \ --output-package=github.com/kosmos.io/kosmos/pkg/generated/clientset \ --clientset-name=versioned @@ -77,7 +77,7 @@ echo "Generating with lister-gen" GO111MODULE=on go install k8s.io/code-generator/cmd/lister-gen lister-gen \ --go-header-file hack/boilerplate/boilerplate.go.txt \ - --input-dirs=github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1 \ + --input-dirs=github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1 \ --output-base="${REPO_ROOT}" \ --output-package=github.com/kosmos.io/kosmos/pkg/generated/listers @@ -85,7 +85,7 @@ echo "Generating with informer-gen" GO111MODULE=on go install k8s.io/code-generator/cmd/informer-gen informer-gen \ --go-header-file hack/boilerplate/boilerplate.go.txt \ - --input-dirs=github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1 \ + --input-dirs=github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1 \ --versioned-clientset-package=github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned \ --listers-package=github.com/kosmos.io/kosmos/pkg/generated/listers \ --output-base="${REPO_ROOT}" \ @@ -95,7 +95,7 @@ echo "Generating with openapi-gen" GO111MODULE=on go install k8s.io/code-generator/cmd/openapi-gen openapi-gen \ --go-header-file hack/boilerplate/boilerplate.go.txt \ - --input-dirs "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" \ + --input-dirs "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" \ --input-dirs "k8s.io/apimachinery/pkg/apis/meta/v1,k8s.io/apimachinery/pkg/runtime,k8s.io/apimachinery/pkg/version" \ --output-base="${REPO_ROOT}" \ --output-package "github.com/kosmos.io/kosmos/pkg/generated/openapi" \ diff --git a/hack/update-crds.sh b/hack/update-crds.sh index 9d5ba745d..5b1bc6344 100755 --- a/hack/update-crds.sh +++ b/hack/update-crds.sh @@ -12,6 +12,6 @@ GO11MODULE=on go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.11.0 GOPATH=$(go env GOPATH | awk -F ':' '{print $1}') export PATH=$PATH:$GOPATH/bin -controller-gen crd paths=./pkg/apis/clusterlink/... output:crd:dir="${REPO_ROOT}/deploy/crds" +controller-gen crd paths=./pkg/apis/kosmos/... output:crd:dir="${REPO_ROOT}/deploy/crds" go run "${REPO_ROOT}/generate/generate.go" \ No newline at end of file diff --git a/pkg/agent/controller.go b/pkg/agent/controller.go index 447560b16..59d4b279b 100644 --- a/pkg/agent/controller.go +++ b/pkg/agent/controller.go @@ -18,8 +18,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/reconcile" networkmanager "github.com/kosmos.io/kosmos/pkg/agent/network-manager" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" - clusterlinkv1alpha1lister "github.com/kosmos.io/kosmos/pkg/generated/listers/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" + clusterlinkv1alpha1lister "github.com/kosmos.io/kosmos/pkg/generated/listers/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/network" ) diff --git a/pkg/agent/network-manager/network_manager.go b/pkg/agent/network-manager/network_manager.go index 379de4464..6e20f6ecb 100644 --- a/pkg/agent/network-manager/network_manager.go +++ b/pkg/agent/network-manager/network_manager.go @@ -7,7 +7,7 @@ import ( "github.com/pkg/errors" "k8s.io/klog/v2" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/network" ) diff --git a/pkg/apis/clusterlink/v1alpha1/cluster_types.go b/pkg/apis/kosmos/v1alpha1/cluster_types.go similarity index 100% rename from pkg/apis/clusterlink/v1alpha1/cluster_types.go rename to pkg/apis/kosmos/v1alpha1/cluster_types.go diff --git a/pkg/apis/clusterlink/v1alpha1/clusternode_types.go b/pkg/apis/kosmos/v1alpha1/clusternode_types.go similarity index 100% rename from pkg/apis/clusterlink/v1alpha1/clusternode_types.go rename to pkg/apis/kosmos/v1alpha1/clusternode_types.go diff --git a/pkg/apis/clusterlink/v1alpha1/constants.go b/pkg/apis/kosmos/v1alpha1/constants.go similarity index 100% rename from pkg/apis/clusterlink/v1alpha1/constants.go rename to pkg/apis/kosmos/v1alpha1/constants.go diff --git a/pkg/apis/clusterlink/v1alpha1/doc.go b/pkg/apis/kosmos/v1alpha1/doc.go similarity index 100% rename from pkg/apis/clusterlink/v1alpha1/doc.go rename to pkg/apis/kosmos/v1alpha1/doc.go diff --git a/pkg/apis/clusterlink/v1alpha1/nodeconfig_types.go b/pkg/apis/kosmos/v1alpha1/nodeconfig_types.go similarity index 100% rename from pkg/apis/clusterlink/v1alpha1/nodeconfig_types.go rename to pkg/apis/kosmos/v1alpha1/nodeconfig_types.go diff --git a/pkg/apis/clusterlink/v1alpha1/proxy_types.go b/pkg/apis/kosmos/v1alpha1/proxy_types.go similarity index 100% rename from pkg/apis/clusterlink/v1alpha1/proxy_types.go rename to pkg/apis/kosmos/v1alpha1/proxy_types.go diff --git a/pkg/apis/clusterlink/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/kosmos/v1alpha1/zz_generated.deepcopy.go similarity index 100% rename from pkg/apis/clusterlink/v1alpha1/zz_generated.deepcopy.go rename to pkg/apis/kosmos/v1alpha1/zz_generated.deepcopy.go diff --git a/pkg/apis/clusterlink/v1alpha1/zz_generated.register.go b/pkg/apis/kosmos/v1alpha1/zz_generated.register.go similarity index 100% rename from pkg/apis/clusterlink/v1alpha1/zz_generated.register.go rename to pkg/apis/kosmos/v1alpha1/zz_generated.register.go diff --git a/pkg/clusterlinkctl/floaterclient/cluster-helper.go b/pkg/clusterlinkctl/floaterclient/cluster-helper.go index 2da2befd7..ca27aa04f 100644 --- a/pkg/clusterlinkctl/floaterclient/cluster-helper.go +++ b/pkg/clusterlinkctl/floaterclient/cluster-helper.go @@ -12,7 +12,7 @@ import ( "k8s.io/client-go/rest" "k8s.io/client-go/tools/clientcmd" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" ) const ( diff --git a/pkg/clusterlinkctl/membercurd/options.go b/pkg/clusterlinkctl/membercurd/options.go index b791fdb75..87cac8873 100644 --- a/pkg/clusterlinkctl/membercurd/options.go +++ b/pkg/clusterlinkctl/membercurd/options.go @@ -13,10 +13,10 @@ import ( "k8s.io/client-go/tools/clientcmd" "k8s.io/klog/v2" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/clusterlinkctl/util/apiclient" "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned" - "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1" ) type CommandMemberOption struct { diff --git a/pkg/controllers/calicoippool/calicoippool_controller.go b/pkg/controllers/calicoippool/calicoippool_controller.go index c928651c0..9b6b7de80 100644 --- a/pkg/controllers/calicoippool/calicoippool_controller.go +++ b/pkg/controllers/calicoippool/calicoippool_controller.go @@ -22,11 +22,11 @@ import ( "k8s.io/client-go/tools/cache" "k8s.io/klog/v2" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" clusterhelper "github.com/kosmos.io/kosmos/pkg/controllers/cluster" "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned" "github.com/kosmos.io/kosmos/pkg/generated/informers/externalversions" - "github.com/kosmos.io/kosmos/pkg/generated/listers/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/generated/listers/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/utils" "github.com/kosmos.io/kosmos/pkg/utils/flags" "github.com/kosmos.io/kosmos/pkg/utils/keys" diff --git a/pkg/controllers/cluster/cluster_controller.go b/pkg/controllers/cluster/cluster_controller.go index 37bee6642..d21e6a25b 100644 --- a/pkg/controllers/cluster/cluster_controller.go +++ b/pkg/controllers/cluster/cluster_controller.go @@ -28,7 +28,7 @@ import ( "k8s.io/client-go/tools/cache" "k8s.io/klog/v2" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned" "github.com/kosmos.io/kosmos/pkg/utils" "github.com/kosmos.io/kosmos/pkg/utils/flags" diff --git a/pkg/controllers/cluster/helper.go b/pkg/controllers/cluster/helper.go index 8379b4e05..11c36802f 100644 --- a/pkg/controllers/cluster/helper.go +++ b/pkg/controllers/cluster/helper.go @@ -15,7 +15,7 @@ import ( "k8s.io/klog/v2" ctrl "sigs.k8s.io/controller-runtime" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" ) const ( diff --git a/pkg/controllers/node/node_controller.go b/pkg/controllers/node/node_controller.go index e8b26665d..11af429a2 100644 --- a/pkg/controllers/node/node_controller.go +++ b/pkg/controllers/node/node_controller.go @@ -21,7 +21,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/predicate" "sigs.k8s.io/controller-runtime/pkg/reconcile" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned" interfacepolicy "github.com/kosmos.io/kosmos/pkg/utils/interface-policy" ) diff --git a/pkg/controllers/nodecidr/adapter.go b/pkg/controllers/nodecidr/adapter.go index fd6cdb855..fa6572ef7 100644 --- a/pkg/controllers/nodecidr/adapter.go +++ b/pkg/controllers/nodecidr/adapter.go @@ -16,7 +16,7 @@ import ( "k8s.io/client-go/tools/cache" "k8s.io/klog/v2" - clusterlister "github.com/kosmos.io/kosmos/pkg/generated/listers/clusterlink/v1alpha1" + clusterlister "github.com/kosmos.io/kosmos/pkg/generated/listers/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/utils" ) diff --git a/pkg/controllers/nodecidr/nodecidr_controller.go b/pkg/controllers/nodecidr/nodecidr_controller.go index bcd840b46..3f6b1774a 100644 --- a/pkg/controllers/nodecidr/nodecidr_controller.go +++ b/pkg/controllers/nodecidr/nodecidr_controller.go @@ -14,11 +14,11 @@ import ( "k8s.io/client-go/util/retry" "k8s.io/klog/v2" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned" "github.com/kosmos.io/kosmos/pkg/generated/informers/externalversions" - clusterinformer "github.com/kosmos.io/kosmos/pkg/generated/informers/externalversions/clusterlink/v1alpha1" - clusterlister "github.com/kosmos.io/kosmos/pkg/generated/listers/clusterlink/v1alpha1" + clusterinformer "github.com/kosmos.io/kosmos/pkg/generated/informers/externalversions/kosmos/v1alpha1" + clusterlister "github.com/kosmos.io/kosmos/pkg/generated/listers/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/utils" "github.com/kosmos.io/kosmos/pkg/utils/flags" "github.com/kosmos.io/kosmos/pkg/utils/keys" diff --git a/pkg/elector/elector.go b/pkg/elector/elector.go index 274fc1259..4d1004496 100644 --- a/pkg/elector/elector.go +++ b/pkg/elector/elector.go @@ -7,7 +7,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/klog/v2" - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned" "github.com/kosmos.io/kosmos/pkg/utils" "github.com/kosmos.io/kosmos/pkg/utils/role" diff --git a/pkg/elector/elector_test.go b/pkg/elector/elector_test.go index fe5f86333..d955dfb38 100644 --- a/pkg/elector/elector_test.go +++ b/pkg/elector/elector_test.go @@ -8,7 +8,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" ) func TestEnsureGateWayRole(t *testing.T) { diff --git a/pkg/generated/clientset/versioned/clientset.go b/pkg/generated/clientset/versioned/clientset.go index ca4a35681..3589a7aff 100644 --- a/pkg/generated/clientset/versioned/clientset.go +++ b/pkg/generated/clientset/versioned/clientset.go @@ -6,7 +6,7 @@ import ( "fmt" "net/http" - kosmosv1alpha1 "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1" + kosmosv1alpha1 "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1" discovery "k8s.io/client-go/discovery" rest "k8s.io/client-go/rest" flowcontrol "k8s.io/client-go/util/flowcontrol" diff --git a/pkg/generated/clientset/versioned/fake/clientset_generated.go b/pkg/generated/clientset/versioned/fake/clientset_generated.go index 96c65fa1f..a1878b6e9 100644 --- a/pkg/generated/clientset/versioned/fake/clientset_generated.go +++ b/pkg/generated/clientset/versioned/fake/clientset_generated.go @@ -4,8 +4,8 @@ package fake import ( clientset "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned" - kosmosv1alpha1 "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1" - fakekosmosv1alpha1 "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/fake" + kosmosv1alpha1 "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1" + fakekosmosv1alpha1 "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/fake" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/watch" "k8s.io/client-go/discovery" diff --git a/pkg/generated/clientset/versioned/fake/register.go b/pkg/generated/clientset/versioned/fake/register.go index 9438e5e7c..0a2b0e15a 100644 --- a/pkg/generated/clientset/versioned/fake/register.go +++ b/pkg/generated/clientset/versioned/fake/register.go @@ -3,7 +3,7 @@ package fake import ( - kosmosv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + kosmosv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" diff --git a/pkg/generated/clientset/versioned/scheme/register.go b/pkg/generated/clientset/versioned/scheme/register.go index d6420aee8..73dbc9b7d 100644 --- a/pkg/generated/clientset/versioned/scheme/register.go +++ b/pkg/generated/clientset/versioned/scheme/register.go @@ -3,7 +3,7 @@ package scheme import ( - kosmosv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + kosmosv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" diff --git a/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/cluster.go b/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/cluster.go similarity index 98% rename from pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/cluster.go rename to pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/cluster.go index 64720e61a..1b80968c2 100644 --- a/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/cluster.go +++ b/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/cluster.go @@ -6,7 +6,7 @@ import ( "context" "time" - v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" scheme "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" diff --git a/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/clusternode.go b/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/clusternode.go similarity index 98% rename from pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/clusternode.go rename to pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/clusternode.go index 5908defe7..e2851f02c 100644 --- a/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/clusternode.go +++ b/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/clusternode.go @@ -6,7 +6,7 @@ import ( "context" "time" - v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" scheme "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" diff --git a/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/doc.go b/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/doc.go similarity index 100% rename from pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/doc.go rename to pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/doc.go diff --git a/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/fake/doc.go b/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/fake/doc.go similarity index 100% rename from pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/fake/doc.go rename to pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/fake/doc.go diff --git a/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/fake/fake_cluster.go b/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/fake/fake_cluster.go similarity index 98% rename from pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/fake/fake_cluster.go rename to pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/fake/fake_cluster.go index 6f0bd6708..10bab6697 100644 --- a/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/fake/fake_cluster.go +++ b/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/fake/fake_cluster.go @@ -5,7 +5,7 @@ package fake import ( "context" - v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" diff --git a/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/fake/fake_clusternode.go b/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/fake/fake_clusternode.go similarity index 98% rename from pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/fake/fake_clusternode.go rename to pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/fake/fake_clusternode.go index 821b7bd1b..204d235af 100644 --- a/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/fake/fake_clusternode.go +++ b/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/fake/fake_clusternode.go @@ -5,7 +5,7 @@ package fake import ( "context" - v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" diff --git a/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/fake/fake_clusterlink_client.go b/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/fake/fake_kosmos_client.go similarity index 95% rename from pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/fake/fake_clusterlink_client.go rename to pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/fake/fake_kosmos_client.go index 8f26ef9f6..34c5b27f5 100644 --- a/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/fake/fake_clusterlink_client.go +++ b/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/fake/fake_kosmos_client.go @@ -3,7 +3,7 @@ package fake import ( - v1alpha1 "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1" + v1alpha1 "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) diff --git a/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/fake/fake_nodeconfig.go b/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/fake/fake_nodeconfig.go similarity index 98% rename from pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/fake/fake_nodeconfig.go rename to pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/fake/fake_nodeconfig.go index 07358ec34..d64962a17 100644 --- a/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/fake/fake_nodeconfig.go +++ b/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/fake/fake_nodeconfig.go @@ -5,7 +5,7 @@ package fake import ( "context" - v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" diff --git a/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/generated_expansion.go b/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/generated_expansion.go similarity index 100% rename from pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/generated_expansion.go rename to pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/generated_expansion.go diff --git a/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/clusterlink_client.go b/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/kosmos_client.go similarity index 97% rename from pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/clusterlink_client.go rename to pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/kosmos_client.go index ab114ec6c..87a7d4ad0 100644 --- a/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/clusterlink_client.go +++ b/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/kosmos_client.go @@ -5,7 +5,7 @@ package v1alpha1 import ( "net/http" - v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) diff --git a/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/nodeconfig.go b/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/nodeconfig.go similarity index 98% rename from pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/nodeconfig.go rename to pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/nodeconfig.go index 04ee59cec..caa7e6635 100644 --- a/pkg/generated/clientset/versioned/typed/clusterlink/v1alpha1/nodeconfig.go +++ b/pkg/generated/clientset/versioned/typed/kosmos/v1alpha1/nodeconfig.go @@ -6,7 +6,7 @@ import ( "context" "time" - v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" scheme "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" diff --git a/pkg/generated/informers/externalversions/factory.go b/pkg/generated/informers/externalversions/factory.go index 4c3e9bbe5..0797217e0 100644 --- a/pkg/generated/informers/externalversions/factory.go +++ b/pkg/generated/informers/externalversions/factory.go @@ -8,8 +8,8 @@ import ( time "time" versioned "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned" - clusterlink "github.com/kosmos.io/kosmos/pkg/generated/informers/externalversions/clusterlink" internalinterfaces "github.com/kosmos.io/kosmos/pkg/generated/informers/externalversions/internalinterfaces" + kosmos "github.com/kosmos.io/kosmos/pkg/generated/informers/externalversions/kosmos" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -227,9 +227,9 @@ type SharedInformerFactory interface { // client. InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer - Kosmos() clusterlink.Interface + Kosmos() kosmos.Interface } -func (f *sharedInformerFactory) Kosmos() clusterlink.Interface { - return clusterlink.New(f, f.namespace, f.tweakListOptions) +func (f *sharedInformerFactory) Kosmos() kosmos.Interface { + return kosmos.New(f, f.namespace, f.tweakListOptions) } diff --git a/pkg/generated/informers/externalversions/generic.go b/pkg/generated/informers/externalversions/generic.go index 6842a2be5..2abaac1a7 100644 --- a/pkg/generated/informers/externalversions/generic.go +++ b/pkg/generated/informers/externalversions/generic.go @@ -5,7 +5,7 @@ package externalversions import ( "fmt" - v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" schema "k8s.io/apimachinery/pkg/runtime/schema" cache "k8s.io/client-go/tools/cache" ) diff --git a/pkg/generated/informers/externalversions/clusterlink/interface.go b/pkg/generated/informers/externalversions/kosmos/interface.go similarity index 94% rename from pkg/generated/informers/externalversions/clusterlink/interface.go rename to pkg/generated/informers/externalversions/kosmos/interface.go index 32181454a..dc5bed3ed 100644 --- a/pkg/generated/informers/externalversions/clusterlink/interface.go +++ b/pkg/generated/informers/externalversions/kosmos/interface.go @@ -1,10 +1,10 @@ // Code generated by informer-gen. DO NOT EDIT. -package clusterlink +package kosmos import ( - v1alpha1 "github.com/kosmos.io/kosmos/pkg/generated/informers/externalversions/clusterlink/v1alpha1" internalinterfaces "github.com/kosmos.io/kosmos/pkg/generated/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/kosmos.io/kosmos/pkg/generated/informers/externalversions/kosmos/v1alpha1" ) // Interface provides access to each of this group's versions. diff --git a/pkg/generated/informers/externalversions/clusterlink/v1alpha1/cluster.go b/pkg/generated/informers/externalversions/kosmos/v1alpha1/cluster.go similarity index 90% rename from pkg/generated/informers/externalversions/clusterlink/v1alpha1/cluster.go rename to pkg/generated/informers/externalversions/kosmos/v1alpha1/cluster.go index 6315db51e..6729d9e5a 100644 --- a/pkg/generated/informers/externalversions/clusterlink/v1alpha1/cluster.go +++ b/pkg/generated/informers/externalversions/kosmos/v1alpha1/cluster.go @@ -6,10 +6,10 @@ import ( "context" time "time" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + kosmosv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" versioned "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned" internalinterfaces "github.com/kosmos.io/kosmos/pkg/generated/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/kosmos.io/kosmos/pkg/generated/listers/clusterlink/v1alpha1" + v1alpha1 "github.com/kosmos.io/kosmos/pkg/generated/listers/kosmos/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -54,7 +54,7 @@ func NewFilteredClusterInformer(client versioned.Interface, resyncPeriod time.Du return client.KosmosV1alpha1().Clusters().Watch(context.TODO(), options) }, }, - &clusterlinkv1alpha1.Cluster{}, + &kosmosv1alpha1.Cluster{}, resyncPeriod, indexers, ) @@ -65,7 +65,7 @@ func (f *clusterInformer) defaultInformer(client versioned.Interface, resyncPeri } func (f *clusterInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&clusterlinkv1alpha1.Cluster{}, f.defaultInformer) + return f.factory.InformerFor(&kosmosv1alpha1.Cluster{}, f.defaultInformer) } func (f *clusterInformer) Lister() v1alpha1.ClusterLister { diff --git a/pkg/generated/informers/externalversions/clusterlink/v1alpha1/clusternode.go b/pkg/generated/informers/externalversions/kosmos/v1alpha1/clusternode.go similarity index 90% rename from pkg/generated/informers/externalversions/clusterlink/v1alpha1/clusternode.go rename to pkg/generated/informers/externalversions/kosmos/v1alpha1/clusternode.go index 30dc03f59..348aa2e21 100644 --- a/pkg/generated/informers/externalversions/clusterlink/v1alpha1/clusternode.go +++ b/pkg/generated/informers/externalversions/kosmos/v1alpha1/clusternode.go @@ -6,10 +6,10 @@ import ( "context" time "time" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + kosmosv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" versioned "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned" internalinterfaces "github.com/kosmos.io/kosmos/pkg/generated/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/kosmos.io/kosmos/pkg/generated/listers/clusterlink/v1alpha1" + v1alpha1 "github.com/kosmos.io/kosmos/pkg/generated/listers/kosmos/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -54,7 +54,7 @@ func NewFilteredClusterNodeInformer(client versioned.Interface, resyncPeriod tim return client.KosmosV1alpha1().ClusterNodes().Watch(context.TODO(), options) }, }, - &clusterlinkv1alpha1.ClusterNode{}, + &kosmosv1alpha1.ClusterNode{}, resyncPeriod, indexers, ) @@ -65,7 +65,7 @@ func (f *clusterNodeInformer) defaultInformer(client versioned.Interface, resync } func (f *clusterNodeInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&clusterlinkv1alpha1.ClusterNode{}, f.defaultInformer) + return f.factory.InformerFor(&kosmosv1alpha1.ClusterNode{}, f.defaultInformer) } func (f *clusterNodeInformer) Lister() v1alpha1.ClusterNodeLister { diff --git a/pkg/generated/informers/externalversions/clusterlink/v1alpha1/interface.go b/pkg/generated/informers/externalversions/kosmos/v1alpha1/interface.go similarity index 100% rename from pkg/generated/informers/externalversions/clusterlink/v1alpha1/interface.go rename to pkg/generated/informers/externalversions/kosmos/v1alpha1/interface.go diff --git a/pkg/generated/informers/externalversions/clusterlink/v1alpha1/nodeconfig.go b/pkg/generated/informers/externalversions/kosmos/v1alpha1/nodeconfig.go similarity index 90% rename from pkg/generated/informers/externalversions/clusterlink/v1alpha1/nodeconfig.go rename to pkg/generated/informers/externalversions/kosmos/v1alpha1/nodeconfig.go index aebc2c21b..11d893abb 100644 --- a/pkg/generated/informers/externalversions/clusterlink/v1alpha1/nodeconfig.go +++ b/pkg/generated/informers/externalversions/kosmos/v1alpha1/nodeconfig.go @@ -6,10 +6,10 @@ import ( "context" time "time" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + kosmosv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" versioned "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned" internalinterfaces "github.com/kosmos.io/kosmos/pkg/generated/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/kosmos.io/kosmos/pkg/generated/listers/clusterlink/v1alpha1" + v1alpha1 "github.com/kosmos.io/kosmos/pkg/generated/listers/kosmos/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -54,7 +54,7 @@ func NewFilteredNodeConfigInformer(client versioned.Interface, resyncPeriod time return client.KosmosV1alpha1().NodeConfigs().Watch(context.TODO(), options) }, }, - &clusterlinkv1alpha1.NodeConfig{}, + &kosmosv1alpha1.NodeConfig{}, resyncPeriod, indexers, ) @@ -65,7 +65,7 @@ func (f *nodeConfigInformer) defaultInformer(client versioned.Interface, resyncP } func (f *nodeConfigInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&clusterlinkv1alpha1.NodeConfig{}, f.defaultInformer) + return f.factory.InformerFor(&kosmosv1alpha1.NodeConfig{}, f.defaultInformer) } func (f *nodeConfigInformer) Lister() v1alpha1.NodeConfigLister { diff --git a/pkg/generated/listers/clusterlink/v1alpha1/cluster.go b/pkg/generated/listers/kosmos/v1alpha1/cluster.go similarity index 95% rename from pkg/generated/listers/clusterlink/v1alpha1/cluster.go rename to pkg/generated/listers/kosmos/v1alpha1/cluster.go index 20f3f123c..8189f982f 100644 --- a/pkg/generated/listers/clusterlink/v1alpha1/cluster.go +++ b/pkg/generated/listers/kosmos/v1alpha1/cluster.go @@ -3,7 +3,7 @@ package v1alpha1 import ( - v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" diff --git a/pkg/generated/listers/clusterlink/v1alpha1/clusternode.go b/pkg/generated/listers/kosmos/v1alpha1/clusternode.go similarity index 95% rename from pkg/generated/listers/clusterlink/v1alpha1/clusternode.go rename to pkg/generated/listers/kosmos/v1alpha1/clusternode.go index 2aacb3d92..4d66374fe 100644 --- a/pkg/generated/listers/clusterlink/v1alpha1/clusternode.go +++ b/pkg/generated/listers/kosmos/v1alpha1/clusternode.go @@ -3,7 +3,7 @@ package v1alpha1 import ( - v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" diff --git a/pkg/generated/listers/clusterlink/v1alpha1/expansion_generated.go b/pkg/generated/listers/kosmos/v1alpha1/expansion_generated.go similarity index 100% rename from pkg/generated/listers/clusterlink/v1alpha1/expansion_generated.go rename to pkg/generated/listers/kosmos/v1alpha1/expansion_generated.go diff --git a/pkg/generated/listers/clusterlink/v1alpha1/nodeconfig.go b/pkg/generated/listers/kosmos/v1alpha1/nodeconfig.go similarity index 95% rename from pkg/generated/listers/clusterlink/v1alpha1/nodeconfig.go rename to pkg/generated/listers/kosmos/v1alpha1/nodeconfig.go index 8c455721b..f93af4e14 100644 --- a/pkg/generated/listers/clusterlink/v1alpha1/nodeconfig.go +++ b/pkg/generated/listers/kosmos/v1alpha1/nodeconfig.go @@ -3,7 +3,7 @@ package v1alpha1 import ( - v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + v1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" diff --git a/pkg/generated/openapi/zz_generated.openapi.go b/pkg/generated/openapi/zz_generated.openapi.go index cd46300b5..f0ee23081 100644 --- a/pkg/generated/openapi/zz_generated.openapi.go +++ b/pkg/generated/openapi/zz_generated.openapi.go @@ -15,82 +15,82 @@ import ( func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { return map[string]common.OpenAPIDefinition{ - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.Arp": schema_pkg_apis_clusterlink_v1alpha1_Arp(ref), - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.Cluster": schema_pkg_apis_clusterlink_v1alpha1_Cluster(ref), - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.ClusterList": schema_pkg_apis_clusterlink_v1alpha1_ClusterList(ref), - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.ClusterNode": schema_pkg_apis_clusterlink_v1alpha1_ClusterNode(ref), - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.ClusterNodeList": schema_pkg_apis_clusterlink_v1alpha1_ClusterNodeList(ref), - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.ClusterNodeSpec": schema_pkg_apis_clusterlink_v1alpha1_ClusterNodeSpec(ref), - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.ClusterNodeStatus": schema_pkg_apis_clusterlink_v1alpha1_ClusterNodeStatus(ref), - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.ClusterSpec": schema_pkg_apis_clusterlink_v1alpha1_ClusterSpec(ref), - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.ClusterStatus": schema_pkg_apis_clusterlink_v1alpha1_ClusterStatus(ref), - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.Device": schema_pkg_apis_clusterlink_v1alpha1_Device(ref), - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.Fdb": schema_pkg_apis_clusterlink_v1alpha1_Fdb(ref), - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.Iptables": schema_pkg_apis_clusterlink_v1alpha1_Iptables(ref), - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.NICNodeNames": schema_pkg_apis_clusterlink_v1alpha1_NICNodeNames(ref), - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.NodeConfig": schema_pkg_apis_clusterlink_v1alpha1_NodeConfig(ref), - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.NodeConfigList": schema_pkg_apis_clusterlink_v1alpha1_NodeConfigList(ref), - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.NodeConfigSpec": schema_pkg_apis_clusterlink_v1alpha1_NodeConfigSpec(ref), - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.NodeConfigStatus": schema_pkg_apis_clusterlink_v1alpha1_NodeConfigStatus(ref), - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.Proxy": schema_pkg_apis_clusterlink_v1alpha1_Proxy(ref), - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.Route": schema_pkg_apis_clusterlink_v1alpha1_Route(ref), - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.VxlanCIDRs": schema_pkg_apis_clusterlink_v1alpha1_VxlanCIDRs(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup": schema_pkg_apis_meta_v1_APIGroup(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList": schema_pkg_apis_meta_v1_APIGroupList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource": schema_pkg_apis_meta_v1_APIResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ApplyOptions": schema_pkg_apis_meta_v1_ApplyOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Condition": schema_pkg_apis_meta_v1_Condition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref), - "k8s.io/apimachinery/pkg/runtime.RawExtension": schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), - "k8s.io/apimachinery/pkg/runtime.TypeMeta": schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), - "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), - "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref), - } -} - -func schema_pkg_apis_clusterlink_v1alpha1_Arp(ref common.ReferenceCallback) common.OpenAPIDefinition { + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.Arp": schema_pkg_apis_kosmos_v1alpha1_Arp(ref), + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.Cluster": schema_pkg_apis_kosmos_v1alpha1_Cluster(ref), + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.ClusterList": schema_pkg_apis_kosmos_v1alpha1_ClusterList(ref), + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.ClusterNode": schema_pkg_apis_kosmos_v1alpha1_ClusterNode(ref), + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.ClusterNodeList": schema_pkg_apis_kosmos_v1alpha1_ClusterNodeList(ref), + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.ClusterNodeSpec": schema_pkg_apis_kosmos_v1alpha1_ClusterNodeSpec(ref), + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.ClusterNodeStatus": schema_pkg_apis_kosmos_v1alpha1_ClusterNodeStatus(ref), + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.ClusterSpec": schema_pkg_apis_kosmos_v1alpha1_ClusterSpec(ref), + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.ClusterStatus": schema_pkg_apis_kosmos_v1alpha1_ClusterStatus(ref), + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.Device": schema_pkg_apis_kosmos_v1alpha1_Device(ref), + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.Fdb": schema_pkg_apis_kosmos_v1alpha1_Fdb(ref), + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.Iptables": schema_pkg_apis_kosmos_v1alpha1_Iptables(ref), + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.NICNodeNames": schema_pkg_apis_kosmos_v1alpha1_NICNodeNames(ref), + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.NodeConfig": schema_pkg_apis_kosmos_v1alpha1_NodeConfig(ref), + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.NodeConfigList": schema_pkg_apis_kosmos_v1alpha1_NodeConfigList(ref), + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.NodeConfigSpec": schema_pkg_apis_kosmos_v1alpha1_NodeConfigSpec(ref), + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.NodeConfigStatus": schema_pkg_apis_kosmos_v1alpha1_NodeConfigStatus(ref), + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.Proxy": schema_pkg_apis_kosmos_v1alpha1_Proxy(ref), + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.Route": schema_pkg_apis_kosmos_v1alpha1_Route(ref), + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.VxlanCIDRs": schema_pkg_apis_kosmos_v1alpha1_VxlanCIDRs(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup": schema_pkg_apis_meta_v1_APIGroup(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList": schema_pkg_apis_meta_v1_APIGroupList(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource": schema_pkg_apis_meta_v1_APIResource(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ApplyOptions": schema_pkg_apis_meta_v1_ApplyOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Condition": schema_pkg_apis_meta_v1_Condition(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref), + "k8s.io/apimachinery/pkg/runtime.RawExtension": schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), + "k8s.io/apimachinery/pkg/runtime.TypeMeta": schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), + "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), + "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref), + } +} + +func schema_pkg_apis_kosmos_v1alpha1_Arp(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -124,7 +124,7 @@ func schema_pkg_apis_clusterlink_v1alpha1_Arp(ref common.ReferenceCallback) comm } } -func schema_pkg_apis_clusterlink_v1alpha1_Cluster(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_kosmos_v1alpha1_Cluster(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -154,14 +154,14 @@ func schema_pkg_apis_clusterlink_v1alpha1_Cluster(ref common.ReferenceCallback) SchemaProps: spec.SchemaProps{ Description: "Spec is the specification for the behaviour of the cluster.", Default: map[string]interface{}{}, - Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.ClusterSpec"), + Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.ClusterSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status describes the current status of a cluster.", Default: map[string]interface{}{}, - Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.ClusterStatus"), + Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.ClusterStatus"), }, }, }, @@ -169,11 +169,11 @@ func schema_pkg_apis_clusterlink_v1alpha1_Cluster(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.ClusterSpec", "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.ClusterStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.ClusterSpec", "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.ClusterStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_clusterlink_v1alpha1_ClusterList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_kosmos_v1alpha1_ClusterList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -206,7 +206,7 @@ func schema_pkg_apis_clusterlink_v1alpha1_ClusterList(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.Cluster"), + Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.Cluster"), }, }, }, @@ -217,11 +217,11 @@ func schema_pkg_apis_clusterlink_v1alpha1_ClusterList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.Cluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.Cluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_clusterlink_v1alpha1_ClusterNode(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_kosmos_v1alpha1_ClusterNode(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -250,13 +250,13 @@ func schema_pkg_apis_clusterlink_v1alpha1_ClusterNode(ref common.ReferenceCallba "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.ClusterNodeSpec"), + Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.ClusterNodeSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.ClusterNodeStatus"), + Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.ClusterNodeStatus"), }, }, }, @@ -264,11 +264,11 @@ func schema_pkg_apis_clusterlink_v1alpha1_ClusterNode(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.ClusterNodeSpec", "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.ClusterNodeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.ClusterNodeSpec", "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.ClusterNodeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_clusterlink_v1alpha1_ClusterNodeList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_kosmos_v1alpha1_ClusterNodeList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -301,7 +301,7 @@ func schema_pkg_apis_clusterlink_v1alpha1_ClusterNodeList(ref common.ReferenceCa Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.ClusterNode"), + Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.ClusterNode"), }, }, }, @@ -312,11 +312,11 @@ func schema_pkg_apis_clusterlink_v1alpha1_ClusterNodeList(ref common.ReferenceCa }, }, Dependencies: []string{ - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.ClusterNode", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.ClusterNode", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_clusterlink_v1alpha1_ClusterNodeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_kosmos_v1alpha1_ClusterNodeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -387,7 +387,7 @@ func schema_pkg_apis_clusterlink_v1alpha1_ClusterNodeSpec(ref common.ReferenceCa } } -func schema_pkg_apis_clusterlink_v1alpha1_ClusterNodeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_kosmos_v1alpha1_ClusterNodeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -397,7 +397,7 @@ func schema_pkg_apis_clusterlink_v1alpha1_ClusterNodeStatus(ref common.Reference } } -func schema_pkg_apis_clusterlink_v1alpha1_ClusterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_kosmos_v1alpha1_ClusterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -446,13 +446,13 @@ func schema_pkg_apis_clusterlink_v1alpha1_ClusterSpec(ref common.ReferenceCallba "localCIDRs": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.VxlanCIDRs"), + Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.VxlanCIDRs"), }, }, "bridgeCIDRs": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.VxlanCIDRs"), + Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.VxlanCIDRs"), }, }, "nicNodeNames": { @@ -462,7 +462,7 @@ func schema_pkg_apis_clusterlink_v1alpha1_ClusterSpec(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.NICNodeNames"), + Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.NICNodeNames"), }, }, }, @@ -499,11 +499,11 @@ func schema_pkg_apis_clusterlink_v1alpha1_ClusterSpec(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.NICNodeNames", "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.VxlanCIDRs"}, + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.NICNodeNames", "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.VxlanCIDRs"}, } } -func schema_pkg_apis_clusterlink_v1alpha1_ClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_kosmos_v1alpha1_ClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -543,7 +543,7 @@ func schema_pkg_apis_clusterlink_v1alpha1_ClusterStatus(ref common.ReferenceCall } } -func schema_pkg_apis_clusterlink_v1alpha1_Device(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_kosmos_v1alpha1_Device(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -605,7 +605,7 @@ func schema_pkg_apis_clusterlink_v1alpha1_Device(ref common.ReferenceCallback) c } } -func schema_pkg_apis_clusterlink_v1alpha1_Fdb(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_kosmos_v1alpha1_Fdb(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -639,7 +639,7 @@ func schema_pkg_apis_clusterlink_v1alpha1_Fdb(ref common.ReferenceCallback) comm } } -func schema_pkg_apis_clusterlink_v1alpha1_Iptables(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_kosmos_v1alpha1_Iptables(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -673,7 +673,7 @@ func schema_pkg_apis_clusterlink_v1alpha1_Iptables(ref common.ReferenceCallback) } } -func schema_pkg_apis_clusterlink_v1alpha1_NICNodeNames(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_kosmos_v1alpha1_NICNodeNames(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -707,7 +707,7 @@ func schema_pkg_apis_clusterlink_v1alpha1_NICNodeNames(ref common.ReferenceCallb } } -func schema_pkg_apis_clusterlink_v1alpha1_NodeConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_kosmos_v1alpha1_NodeConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -736,13 +736,13 @@ func schema_pkg_apis_clusterlink_v1alpha1_NodeConfig(ref common.ReferenceCallbac "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.NodeConfigSpec"), + Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.NodeConfigSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.NodeConfigStatus"), + Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.NodeConfigStatus"), }, }, }, @@ -750,11 +750,11 @@ func schema_pkg_apis_clusterlink_v1alpha1_NodeConfig(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.NodeConfigSpec", "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.NodeConfigStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.NodeConfigSpec", "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.NodeConfigStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_clusterlink_v1alpha1_NodeConfigList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_kosmos_v1alpha1_NodeConfigList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -787,7 +787,7 @@ func schema_pkg_apis_clusterlink_v1alpha1_NodeConfigList(ref common.ReferenceCal Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.NodeConfig"), + Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.NodeConfig"), }, }, }, @@ -798,11 +798,11 @@ func schema_pkg_apis_clusterlink_v1alpha1_NodeConfigList(ref common.ReferenceCal }, }, Dependencies: []string{ - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.NodeConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.NodeConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_clusterlink_v1alpha1_NodeConfigSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_kosmos_v1alpha1_NodeConfigSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -815,7 +815,7 @@ func schema_pkg_apis_clusterlink_v1alpha1_NodeConfigSpec(ref common.ReferenceCal Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.Device"), + Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.Device"), }, }, }, @@ -828,7 +828,7 @@ func schema_pkg_apis_clusterlink_v1alpha1_NodeConfigSpec(ref common.ReferenceCal Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.Route"), + Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.Route"), }, }, }, @@ -841,7 +841,7 @@ func schema_pkg_apis_clusterlink_v1alpha1_NodeConfigSpec(ref common.ReferenceCal Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.Iptables"), + Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.Iptables"), }, }, }, @@ -854,7 +854,7 @@ func schema_pkg_apis_clusterlink_v1alpha1_NodeConfigSpec(ref common.ReferenceCal Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.Fdb"), + Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.Fdb"), }, }, }, @@ -867,7 +867,7 @@ func schema_pkg_apis_clusterlink_v1alpha1_NodeConfigSpec(ref common.ReferenceCal Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.Arp"), + Ref: ref("github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.Arp"), }, }, }, @@ -877,11 +877,11 @@ func schema_pkg_apis_clusterlink_v1alpha1_NodeConfigSpec(ref common.ReferenceCal }, }, Dependencies: []string{ - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.Arp", "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.Device", "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.Fdb", "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.Iptables", "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1.Route"}, + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.Arp", "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.Device", "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.Fdb", "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.Iptables", "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1.Route"}, } } -func schema_pkg_apis_clusterlink_v1alpha1_NodeConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_kosmos_v1alpha1_NodeConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -907,7 +907,7 @@ func schema_pkg_apis_clusterlink_v1alpha1_NodeConfigStatus(ref common.ReferenceC } } -func schema_pkg_apis_clusterlink_v1alpha1_Proxy(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_kosmos_v1alpha1_Proxy(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -928,7 +928,7 @@ func schema_pkg_apis_clusterlink_v1alpha1_Proxy(ref common.ReferenceCallback) co } } -func schema_pkg_apis_clusterlink_v1alpha1_Route(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_kosmos_v1alpha1_Route(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -962,7 +962,7 @@ func schema_pkg_apis_clusterlink_v1alpha1_Route(ref common.ReferenceCallback) co } } -func schema_pkg_apis_clusterlink_v1alpha1_VxlanCIDRs(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_kosmos_v1alpha1_VxlanCIDRs(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ diff --git a/pkg/network-manager/controller.go b/pkg/network-manager/controller.go index ffa6bb86c..48065405e 100644 --- a/pkg/network-manager/controller.go +++ b/pkg/network-manager/controller.go @@ -22,7 +22,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/reconcile" "sigs.k8s.io/controller-runtime/pkg/source" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/network-manager/handlers" ) diff --git a/pkg/network-manager/handlers/context.go b/pkg/network-manager/handlers/context.go index f7bce01d9..4072150bb 100644 --- a/pkg/network-manager/handlers/context.go +++ b/pkg/network-manager/handlers/context.go @@ -1,7 +1,7 @@ package handlers import ( - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/network-manager/helpers" ) diff --git a/pkg/network-manager/handlers/globalmap.go b/pkg/network-manager/handlers/globalmap.go index 62749a300..98470cdee 100644 --- a/pkg/network-manager/handlers/globalmap.go +++ b/pkg/network-manager/handlers/globalmap.go @@ -6,7 +6,7 @@ import ( "k8s.io/klog/v2" - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/constants" "github.com/kosmos.io/kosmos/pkg/network-manager/helpers" ) diff --git a/pkg/network-manager/handlers/host_network.go b/pkg/network-manager/handlers/host_network.go index aae0d3c08..18e177e30 100644 --- a/pkg/network-manager/handlers/host_network.go +++ b/pkg/network-manager/handlers/host_network.go @@ -3,7 +3,7 @@ package handlers import ( "fmt" - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/constants" ) diff --git a/pkg/network-manager/handlers/nodeconfig.go b/pkg/network-manager/handlers/nodeconfig.go index 50f6d3e2a..a12dc49a0 100644 --- a/pkg/network-manager/handlers/nodeconfig.go +++ b/pkg/network-manager/handlers/nodeconfig.go @@ -6,7 +6,7 @@ import ( "k8s.io/klog/v2" - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/network-manager/helpers" ) diff --git a/pkg/network-manager/handlers/pod_routes.go b/pkg/network-manager/handlers/pod_routes.go index 15c4ea9b8..1a8900d53 100644 --- a/pkg/network-manager/handlers/pod_routes.go +++ b/pkg/network-manager/handlers/pod_routes.go @@ -5,7 +5,7 @@ import ( "k8s.io/klog/v2" - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/constants" "github.com/kosmos.io/kosmos/pkg/network-manager/helpers" ) diff --git a/pkg/network-manager/handlers/vxbridge_mac_cache.go b/pkg/network-manager/handlers/vxbridge_mac_cache.go index 6cba1f87a..31872aca5 100644 --- a/pkg/network-manager/handlers/vxbridge_mac_cache.go +++ b/pkg/network-manager/handlers/vxbridge_mac_cache.go @@ -5,7 +5,7 @@ import ( "k8s.io/klog/v2" - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/constants" ) diff --git a/pkg/network-manager/handlers/vxbridge_network.go b/pkg/network-manager/handlers/vxbridge_network.go index 3d7534eb2..51e5f59ad 100644 --- a/pkg/network-manager/handlers/vxbridge_network.go +++ b/pkg/network-manager/handlers/vxbridge_network.go @@ -1,7 +1,7 @@ package handlers import ( - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/constants" "github.com/kosmos.io/kosmos/pkg/network-manager/helpers" ) diff --git a/pkg/network-manager/handlers/vxlocal_mac_cache.go b/pkg/network-manager/handlers/vxlocal_mac_cache.go index 98083bbac..c4d67d65a 100644 --- a/pkg/network-manager/handlers/vxlocal_mac_cache.go +++ b/pkg/network-manager/handlers/vxlocal_mac_cache.go @@ -5,7 +5,7 @@ import ( "k8s.io/klog/v2" - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/constants" ) diff --git a/pkg/network-manager/handlers/vxlocal_network.go b/pkg/network-manager/handlers/vxlocal_network.go index b0e4a0685..e45cd1ddf 100644 --- a/pkg/network-manager/handlers/vxlocal_network.go +++ b/pkg/network-manager/handlers/vxlocal_network.go @@ -1,7 +1,7 @@ package handlers import ( - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/constants" "github.com/kosmos.io/kosmos/pkg/network-manager/helpers" ) diff --git a/pkg/network-manager/helpers/filter.go b/pkg/network-manager/helpers/filter.go index fbbc4c1f8..493bdcb5f 100644 --- a/pkg/network-manager/helpers/filter.go +++ b/pkg/network-manager/helpers/filter.go @@ -3,7 +3,7 @@ package helpers import ( "reflect" - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" ) type Filter struct { diff --git a/pkg/network-manager/helpers/network.go b/pkg/network-manager/helpers/network.go index c6376f5aa..26ba2061b 100644 --- a/pkg/network-manager/helpers/network.go +++ b/pkg/network-manager/helpers/network.go @@ -8,7 +8,7 @@ import ( "k8s.io/klog/v2" - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/constants" ) diff --git a/pkg/network-manager/helpers/sort.go b/pkg/network-manager/helpers/sort.go index f73e04231..4dffc0329 100644 --- a/pkg/network-manager/helpers/sort.go +++ b/pkg/network-manager/helpers/sort.go @@ -3,7 +3,7 @@ package helpers import ( "encoding/json" - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" ) // RouteSorter sorts routes. diff --git a/pkg/network-manager/network_manager.go b/pkg/network-manager/network_manager.go index d62dfffbf..af84e5ac1 100644 --- a/pkg/network-manager/network_manager.go +++ b/pkg/network-manager/network_manager.go @@ -6,7 +6,7 @@ import ( "k8s.io/klog/v2" - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/network-manager/handlers" "github.com/kosmos.io/kosmos/pkg/network-manager/helpers" ) diff --git a/pkg/network/adapter.go b/pkg/network/adapter.go index e12daea7c..02f05cedb 100644 --- a/pkg/network/adapter.go +++ b/pkg/network/adapter.go @@ -6,7 +6,7 @@ import ( "github.com/pkg/errors" "k8s.io/klog/v2" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" ) type DefaultNetWork struct { diff --git a/pkg/network/arp.go b/pkg/network/arp.go index e3adf15b3..b67fc6178 100644 --- a/pkg/network/arp.go +++ b/pkg/network/arp.go @@ -1,7 +1,7 @@ package network import ( - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" ) func AddARP(ip string, mac string, devName string) error { diff --git a/pkg/network/device.go b/pkg/network/device.go index 49e5f8fbb..7ab28c52c 100644 --- a/pkg/network/device.go +++ b/pkg/network/device.go @@ -10,7 +10,7 @@ import ( "golang.org/x/sys/unix" "k8s.io/klog/v2" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/utils" ) diff --git a/pkg/network/fdb.go b/pkg/network/fdb.go index df5e2aab1..6dd6cf311 100644 --- a/pkg/network/fdb.go +++ b/pkg/network/fdb.go @@ -1,6 +1,6 @@ package network -import clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" +import clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" type FDBRecord struct { IP string diff --git a/pkg/network/interface.go b/pkg/network/interface.go index 75f58f28c..ac1204bc7 100644 --- a/pkg/network/interface.go +++ b/pkg/network/interface.go @@ -3,7 +3,7 @@ package network import ( "errors" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" ) var ( diff --git a/pkg/network/iptables.go b/pkg/network/iptables.go index e0f42de11..e5c9943ab 100644 --- a/pkg/network/iptables.go +++ b/pkg/network/iptables.go @@ -8,7 +8,7 @@ import ( "github.com/pkg/errors" "k8s.io/klog/v2" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/network/iptables" ) diff --git a/pkg/network/route.go b/pkg/network/route.go index bbe4503aa..0ac83e772 100644 --- a/pkg/network/route.go +++ b/pkg/network/route.go @@ -8,7 +8,7 @@ import ( "github.com/vishvananda/netlink" "k8s.io/klog/v2" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" ) func newTableRule(tableID, family int) *netlink.Rule { diff --git a/pkg/operator/addons/option/option.go b/pkg/operator/addons/option/option.go index 4c57da438..e1f8845fb 100644 --- a/pkg/operator/addons/option/option.go +++ b/pkg/operator/addons/option/option.go @@ -9,7 +9,7 @@ import ( clientcmdapi "k8s.io/client-go/tools/clientcmd/api" cmdOptions "github.com/kosmos.io/kosmos/cmd/operator/app/options" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/version" ) diff --git a/pkg/operator/operator_controller.go b/pkg/operator/operator_controller.go index b4a0fd089..5dd18f556 100644 --- a/pkg/operator/operator_controller.go +++ b/pkg/operator/operator_controller.go @@ -17,8 +17,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/reconcile" cmdOptions "github.com/kosmos.io/kosmos/cmd/operator/app/options" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" - clusterlinkv1alpha1lister "github.com/kosmos.io/kosmos/pkg/generated/listers/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" + clusterlinkv1alpha1lister "github.com/kosmos.io/kosmos/pkg/generated/listers/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/operator/addons" "github.com/kosmos.io/kosmos/pkg/operator/addons/option" "github.com/kosmos.io/kosmos/pkg/utils" diff --git a/pkg/proxy/apiserver.go b/pkg/proxy/apiserver.go index 35fa31485..816bce23e 100644 --- a/pkg/proxy/apiserver.go +++ b/pkg/proxy/apiserver.go @@ -9,7 +9,7 @@ import ( "k8s.io/client-go/dynamic" clientrest "k8s.io/client-go/rest" - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/scheme" ) diff --git a/pkg/proxy/storage.go b/pkg/proxy/storage.go index e108bd26e..4ec05f937 100644 --- a/pkg/proxy/storage.go +++ b/pkg/proxy/storage.go @@ -28,7 +28,7 @@ import ( clientrest "k8s.io/client-go/rest" "sigs.k8s.io/controller-runtime/pkg/client/apiutil" - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/proxy/store" "github.com/kosmos.io/kosmos/pkg/utils/lifted" ) diff --git a/pkg/scheme/scheme.go b/pkg/scheme/scheme.go index a523534e3..77fdb42f1 100644 --- a/pkg/scheme/scheme.go +++ b/pkg/scheme/scheme.go @@ -6,7 +6,7 @@ import ( "k8s.io/client-go/rest" "sigs.k8s.io/controller-runtime/pkg/client" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" ) // aggregatedScheme aggregates Kubernetes and extended schemes. diff --git a/pkg/utils/interface-policy/interface-policy.go b/pkg/utils/interface-policy/interface-policy.go index 6ceb8747f..0615bcf91 100644 --- a/pkg/utils/interface-policy/interface-policy.go +++ b/pkg/utils/interface-policy/interface-policy.go @@ -1,7 +1,7 @@ package interfacepolicy import ( - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/utils" ) diff --git a/pkg/utils/role/role.go b/pkg/utils/role/role.go index 4cda345db..fa6e77009 100644 --- a/pkg/utils/role/role.go +++ b/pkg/utils/role/role.go @@ -3,7 +3,7 @@ package role import ( "k8s.io/apimachinery/pkg/util/sets" - "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" ) func AddRole(node *v1alpha1.ClusterNode, role v1alpha1.Role) { diff --git a/test/e2e/elector_test.go b/test/e2e/elector_test.go index 6471cbec5..9c34e626f 100644 --- a/test/e2e/elector_test.go +++ b/test/e2e/elector_test.go @@ -7,7 +7,7 @@ import ( "github.com/onsi/gomega" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/utils/role" ) diff --git a/test/e2e/framework/cluster.go b/test/e2e/framework/cluster.go index baeef05c4..696c8afe1 100644 --- a/test/e2e/framework/cluster.go +++ b/test/e2e/framework/cluster.go @@ -12,7 +12,7 @@ import ( "k8s.io/client-go/tools/clientcmd" "k8s.io/klog/v2" - clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/clusterlink/v1alpha1" + clusterlinkv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1" "github.com/kosmos.io/kosmos/pkg/generated/clientset/versioned" "github.com/kosmos.io/kosmos/projectpath" ) diff --git a/vendor/modules.txt b/vendor/modules.txt index 2ec74b7a7..6e0d88bb0 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,3 +1,5 @@ +# cloud.google.com/go/compute/metadata v0.2.3 +## explicit; go 1.19 # github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 ## explicit; go 1.16 github.com/Azure/go-ansiterm