diff --git a/.github/workflows/check-codegen.yml b/.github/workflows/check-codegen.yml
index 7cc1741e9..b618b53de 100644
--- a/.github/workflows/check-codegen.yml
+++ b/.github/workflows/check-codegen.yml
@@ -18,7 +18,7 @@ jobs:
run: make generate
- name: Compare the expected and actual generated/* directories
run: |
- if [ "$(git diff --ignore-space-at-eol generated/ | wc -l)" -gt "0" ]; then
+ if [ "$(git diff --ignore-space-at-eol client-go/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. Consider running 'make generate'."
echo "See status below:"
git diff
diff --git a/.golangci.yaml b/.golangci.yaml
index 5b9cb3c60..677a18418 100644
--- a/.golangci.yaml
+++ b/.golangci.yaml
@@ -1,4 +1,5 @@
run:
+ concurrency: 4
timeout: 10m
linters:
@@ -7,6 +8,7 @@ linters:
- ineffassign
- misspell
- goimports
+ - importas
severity:
default-severity: error
@@ -21,8 +23,15 @@ linters-settings:
- name: exported
- name: if-return
disabled: true
+ importas:
+ alias:
+ - pkg: github.com/onmetal/onmetal-api/api/(\w+)/(v[\w\d]+)
+ alias: $1$2
+ - pkg: github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/(\w+)/(v[\w\d]+)
+ alias: $1$2
+ - pkg: github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/(\w+)
+ alias: $1
issues:
- exclude:
- # Exclude stutter issues (for now)
+ exclude: # Exclude stutter issues (for now)
- "exported: type name will be used as (.+) by other packages, and that stutters; consider calling this (.+)"
diff --git a/Dockerfile b/Dockerfile
index 25f4da8f5..ba2ee8365 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -10,9 +10,9 @@ COPY go.sum go.sum
RUN go mod download
# Copy the go source
-COPY apis/ apis/
+COPY api/ api/
COPY apiutils/ apiutils/
-COPY generated/ generated/
+COPY client-go/ client-go/
COPY machinepoollet/ machinepoollet/
COPY onmetal-apiserver/ onmetal-apiserver/
COPY onmetal-controller-manager/ onmetal-controller-manager/
diff --git a/Makefile b/Makefile
index 2555983b5..197ceaeaf 100644
--- a/Makefile
+++ b/Makefile
@@ -46,10 +46,19 @@ help: ## Display this help.
.PHONY: manifests
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
- $(CONTROLLER_GEN) rbac:roleName=manager-role webhook paths="./onmetal-controller-manager/controllers/...;./apis/..." output:rbac:artifacts:config=config/controller/rbac
+ $(CONTROLLER_GEN) rbac:roleName=manager-role webhook paths="./onmetal-controller-manager/controllers/...;./api/..." output:rbac:artifacts:config=config/controller/rbac
.PHONY: generate
-generate:
+generate: vgopath deepcopy-gen client-gen lister-gen informer-gen defaulter-gen conversion-gen openapi-gen
+ go mod download
+ VGOPATH=$(VGOPATH) \
+ DEEPCOPY_GEN=$(DEEPCOPY_GEN) \
+ CLIENT_GEN=$(CLIENT_GEN) \
+ LISTER_GEN=$(LISTER_GEN) \
+ INFORMER_GEN=$(INFORMER_GEN) \
+ DEFAULTER_GEN=$(DEFAULTER_GEN) \
+ CONVERSION_GEN=$(CONVERSION_GEN) \
+ OPENAPI_GEN=$(OPENAPI_GEN) \
./hack/update-codegen.sh
.PHONY: fmt
@@ -66,26 +75,29 @@ lint: ## Run golangci-lint on the code.
.PHONY: clean
clean: ## Clean any artifacts that can be regenerated.
- rm -rf generated/*
+ rm -rf client-go/informers
+ rm -rf client-go/listers
+ rm -rf client-go/onmetalapi
+ rm -rf client-go/openapi
-.PHONY: addlicense
-addlicense: ## Add license headers to all go files.
- find . -name '*.go' -exec go run github.com/google/addlicense -c 'OnMetal authors' {} +
+.PHONY: add-license
+add-license: addlicense ## Add license headers to all go files.
+ find . -name '*.go' -exec $(ADDLICENSE) -c 'OnMetal authors' {} +
-.PHONY: checklicense
-checklicense: ## Check that every file has a license header present.
- find . -name '*.go' -exec go run github.com/google/addlicense -check -c 'OnMetal authors' {} +
+.PHONY: check-license
+check-license: ## Check that every file has a license header present.
+ find . -name '*.go' -exec $(ADDLICENSE) -check -c 'OnMetal authors' {} +
.PHONY: check
-check: manifests generate addlicense lint test # Generate manifests, code, lint, add licenses, test
+check: manifests generate add-license lint test # Generate manifests, code, lint, add licenses, test
.PHONY: docs
-docs: ## Run go generate to generate API reference documentation.
- go run github.com/ahmetb/gen-crd-api-reference-docs -api-dir ./apis/common/v1alpha1 -config ./hack/api-reference/common-config.json -template-dir ./hack/api-reference/template -out-file ./docs/api-reference/common.md
- go run github.com/ahmetb/gen-crd-api-reference-docs -api-dir ./apis/compute/v1alpha1 -config ./hack/api-reference/compute-config.json -template-dir ./hack/api-reference/template -out-file ./docs/api-reference/compute.md
- go run github.com/ahmetb/gen-crd-api-reference-docs -api-dir ./apis/storage/v1alpha1 -config ./hack/api-reference/storage-config.json -template-dir ./hack/api-reference/template -out-file ./docs/api-reference/storage.md
- go run github.com/ahmetb/gen-crd-api-reference-docs -api-dir ./apis/networking/v1alpha1 -config ./hack/api-reference/networking-config.json -template-dir ./hack/api-reference/template -out-file ./docs/api-reference/networking.md
- go run github.com/ahmetb/gen-crd-api-reference-docs -api-dir ./apis/ipam/v1alpha1 -config ./hack/api-reference/ipam-config.json -template-dir ./hack/api-reference/template -out-file ./docs/api-reference/ipam.md
+docs: gen-crd-api-reference-docs ## Run go generate to generate API reference documentation.
+ $(GEN_CRD_API_REFERENCE_DOCS) -api-dir ./api/common/v1alpha1 -config ./hack/api-reference/common-config.json -template-dir ./hack/api-reference/template -out-file ./docs/api-reference/common.md
+ $(GEN_CRD_API_REFERENCE_DOCS) -api-dir ./api/compute/v1alpha1 -config ./hack/api-reference/compute-config.json -template-dir ./hack/api-reference/template -out-file ./docs/api-reference/compute.md
+ $(GEN_CRD_API_REFERENCE_DOCS) -api-dir ./api/storage/v1alpha1 -config ./hack/api-reference/storage-config.json -template-dir ./hack/api-reference/template -out-file ./docs/api-reference/storage.md
+ $(GEN_CRD_API_REFERENCE_DOCS) -api-dir ./api/networking/v1alpha1 -config ./hack/api-reference/networking-config.json -template-dir ./hack/api-reference/template -out-file ./docs/api-reference/networking.md
+ $(GEN_CRD_API_REFERENCE_DOCS) -api-dir ./api/ipam/v1alpha1 -config ./hack/api-reference/ipam-config.json -template-dir ./hack/api-reference/template -out-file ./docs/api-reference/ipam.md
.PHONY: start-docs
start-docs: ## Start the local mkdocs based development environment.
@@ -120,8 +132,8 @@ run: manifests generate fmt vet ## Run a controller from your host.
.PHONY: docker-build
docker-build: test ## Build docker image with the manager.
- docker build --target apiserver -t ${CONTROLLER_IMG} .
- docker build --target manager -t ${APISERVER_IMG} .
+ docker build --target apiserver -t ${APISERVER_IMG} .
+ docker build --target manager -t ${CONTROLLER_IMG} .
.PHONY: docker-push
docker-push: ## Push docker image with the manager.
@@ -226,28 +238,98 @@ KUSTOMIZE ?= $(LOCALBIN)/kustomize
CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen
ENVTEST ?= $(LOCALBIN)/setup-envtest
OPENAPI_EXTRACTOR ?= $(LOCALBIN)/openapi-extractor
+DEEPCOPY_GEN ?= $(LOCALBIN)/deepcopy-gen
+CLIENT_GEN ?= $(LOCALBIN)/client-gen
+LISTER_GEN ?= $(LOCALBIN)/lister-gen
+INFORMER_GEN ?= $(LOCALBIN)/informer-gen
+DEFAULTER_GEN ?= $(LOCALBIN)/defaulter-gen
+CONVERSION_GEN ?= $(LOCALBIN)/conversion-gen
+OPENAPI_GEN ?= $(LOCALBIN)/openapi-gen
+VGOPATH ?= $(LOCALBIN)/vgopath
+GEN_CRD_API_REFERENCE_DOCS ?= $(LOCALBIN)/gen-crd-api-reference-docs
+ADDLICENSE ?= $(LOCALBIN)/addlicense
## Tool Versions
KUSTOMIZE_VERSION ?= v3.8.7
+CODE_GENERATOR_VERSION ?= v0.24.3
CONTROLLER_TOOLS_VERSION ?= v0.9.0
+VGOPATH_VERSION ?= v0.0.2
+GEN_CRD_API_REFERENCE_DOCS_VERSION ?= v0.3.0
+ADDLICENSE_VERSION ?= v1.1.0
KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
.PHONY: kustomize
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary.
$(KUSTOMIZE): $(LOCALBIN)
- curl -s $(KUSTOMIZE_INSTALL_SCRIPT) | bash -s -- $(subst v,,$(KUSTOMIZE_VERSION)) $(LOCALBIN)
+ @if test -x $(LOCALBIN)/kustomize && ! $(LOCALBIN)/kustomize version | grep -q $(KUSTOMIZE_VERSION); then \
+ echo "$(LOCALBIN)/kustomize version is not expected $(KUSTOMIZE_VERSION). Removing it before installing."; \
+ rm -rf $(LOCALBIN)/kustomize; \
+ fi
+ test -s $(LOCALBIN)/kustomize || { curl -Ss $(KUSTOMIZE_INSTALL_SCRIPT) | bash -s -- $(subst v,,$(KUSTOMIZE_VERSION)) $(LOCALBIN); }
.PHONY: controller-gen
controller-gen: $(CONTROLLER_GEN) ## Download controller-gen locally if necessary.
$(CONTROLLER_GEN): $(LOCALBIN)
+ test -s $(LOCALBIN)/controller-gen && $(LOCALBIN)/controller-gen --version | grep -q $(CONTROLLER_TOOLS_VERSION) || \
GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_TOOLS_VERSION)
+.PHONY: deepcopy-gen
+deepcopy-gen: $(DEEPCOPY_GEN) ## Download deepcopy-gen locally if necessary.
+$(DEEPCOPY_GEN): $(LOCALBIN)
+ test -s $(LOCALBIN)/deepcopy-gen || GOBIN=$(LOCALBIN) go install k8s.io/code-generator/cmd/deepcopy-gen@$(CODE_GENERATOR_VERSION)
+
+.PHONY: client-gen
+client-gen: $(CLIENT_GEN) ## Download client-gen locally if necessary.
+$(CLIENT_GEN): $(LOCALBIN)
+ test -s $(LOCALBIN)/client-gen || GOBIN=$(LOCALBIN) go install k8s.io/code-generator/cmd/client-gen@$(CODE_GENERATOR_VERSION)
+
+.PHONY: lister-gen
+lister-gen: $(LISTER_GEN) ## Download lister-gen locally if necessary.
+$(LISTER_GEN): $(LOCALBIN)
+ test -s $(LOCALBIN)/lister-gen || GOBIN=$(LOCALBIN) go install k8s.io/code-generator/cmd/lister-gen@$(CODE_GENERATOR_VERSION)
+
+.PHONY: informer-gen
+informer-gen: $(INFORMER_GEN) ## Download informer-gen locally if necessary.
+$(INFORMER_GEN): $(LOCALBIN)
+ test -s $(LOCALBIN)/informer-gen || GOBIN=$(LOCALBIN) go install k8s.io/code-generator/cmd/informer-gen@$(CODE_GENERATOR_VERSION)
+
+.PHONY: defaulter-gen
+defaulter-gen: $(DEFAULTER_GEN) ## Download defaulter-gen locally if necessary.
+$(DEFAULTER_GEN): $(LOCALBIN)
+ test -s $(LOCALBIN)/defaulter-gen || GOBIN=$(LOCALBIN) go install k8s.io/code-generator/cmd/defaulter-gen@$(CODE_GENERATOR_VERSION)
+
+.PHONY: conversion-gen
+conversion-gen: $(CONVERSION_GEN) ## Download conversion-gen locally if necessary.
+$(CONVERSION_GEN): $(LOCALBIN)
+ test -s $(LOCALBIN)/conversion-gen || GOBIN=$(LOCALBIN) go install k8s.io/code-generator/cmd/conversion-gen@$(CODE_GENERATOR_VERSION)
+
+.PHONY: openapi-gen
+openapi-gen: $(OPENAPI_GEN) ## Download openapi-gen locally if necessary.
+$(OPENAPI_GEN): $(LOCALBIN)
+ test -s $(LOCALBIN)/openapi-gen || GOBIN=$(LOCALBIN) go install k8s.io/code-generator/cmd/openapi-gen@$(CODE_GENERATOR_VERSION)
+
+.PHONY: vgopath
+vgopath: $(VGOPATH) ## Download vgopath locally if necessary.
+$(VGOPATH): $(LOCALBIN)
+ test -s $(LOCALBIN)/vgopath || GOBIN=$(LOCALBIN) go install github.com/onmetal/vgopath@$(VGOPATH_VERSION)
+
.PHONY: envtest
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
$(ENVTEST): $(LOCALBIN)
- GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
+ test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
.PHONY: openapi-extractor
openapi-extractor: $(OPENAPI_EXTRACTOR) ## Download openapi-extractor locally if necessary.
$(OPENAPI_EXTRACTOR): $(LOCALBIN)
- GOBIN=$(LOCALBIN) go install github.com/onmetal/openapi-extractor/cmd/openapi-extractor@latest
+ test -s $(LOCALBIN)/openapi-extractor || GOBIN=$(LOCALBIN) go install github.com/onmetal/openapi-extractor/cmd/openapi-extractor@latest
+
+.PHONY: gen-crd-api-reference-docs
+gen-crd-api-reference-docs: $(GEN_CRD_API_REFERENCE_DOCS) ## Download gen-crd-api-reference-docs locally if necessary.
+$(GEN_CRD_API_REFERENCE_DOCS): $(LOCALBIN)
+ test -s $(LOCALBIN)/gen-crd-api-reference-docs || GOBIN=$(LOCALBIN) go install github.com/ahmetb/gen-crd-api-reference-docs@$(GEN_CRD_API_REFERENCE_DOCS_VERSION)
+
+.PHONY: addlicense
+addlicense: $(ADDLICENSE) ## Download addlicense locally if necessary.
+$(ADDLICENSE): $(LOCALBIN)
+ test-s $(LOCALBIN)/addlicense || GOBIN=$(LOCALBIN) go install github.com/google/addlicense@$(ADDLICENSE_VERSION)
+
diff --git a/PROJECT b/PROJECT
index 451288c4d..8784c9feb 100644
--- a/PROJECT
+++ b/PROJECT
@@ -12,7 +12,7 @@ resources:
domain: onmetal.de
group: compute
kind: MachineClass
- path: github.com/onmetal/onmetal-api/apis/compute/v1alpha1
+ path: github.com/onmetal/onmetal-api/api/compute/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
@@ -21,7 +21,7 @@ resources:
domain: onmetal.de
group: compute
kind: MachinePool
- path: github.com/onmetal/onmetal-api/apis/compute/v1alpha1
+ path: github.com/onmetal/onmetal-api/api/compute/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
@@ -30,7 +30,7 @@ resources:
domain: onmetal.de
group: storage
kind: VolumePool
- path: github.com/onmetal/onmetal-api/apis/storage/v1alpha1
+ path: github.com/onmetal/onmetal-api/api/storage/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
@@ -39,7 +39,7 @@ resources:
domain: onmetal.de
group: storage
kind: VolumeClass
- path: github.com/onmetal/onmetal-api/apis/storage/v1alpha1
+ path: github.com/onmetal/onmetal-api/api/storage/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
@@ -48,7 +48,7 @@ resources:
domain: onmetal.de
group: storage
kind: Volume
- path: github.com/onmetal/onmetal-api/apis/storage/v1alpha1
+ path: github.com/onmetal/onmetal-api/api/storage/v1alpha1
version: v1alpha1
webhooks:
validation: true
@@ -60,7 +60,7 @@ resources:
domain: onmetal.de
group: compute
kind: Machine
- path: github.com/onmetal/onmetal-api/apis/compute/v1alpha1
+ path: github.com/onmetal/onmetal-api/api/compute/v1alpha1
version: v1alpha1
webhooks:
validation: true
@@ -72,7 +72,7 @@ resources:
domain: api.onmetal.de
group: ipam
kind: Prefix
- path: github.com/onmetal/onmetal-api/apis/ipam/v1alpha1
+ path: github.com/onmetal/onmetal-api/api/ipam/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
@@ -80,6 +80,6 @@ resources:
domain: api.onmetal.de
group: ipam
kind: PrefixAllocation
- path: github.com/onmetal/onmetal-api/apis/ipam/v1alpha1
+ path: github.com/onmetal/onmetal-api/api/ipam/v1alpha1
version: v1alpha1
version: "3"
diff --git a/apis/common/v1alpha1/common_types.go b/api/common/v1alpha1/common_types.go
similarity index 98%
rename from apis/common/v1alpha1/common_types.go
rename to api/common/v1alpha1/common_types.go
index 54cff8256..92a1c0ff1 100644
--- a/apis/common/v1alpha1/common_types.go
+++ b/api/common/v1alpha1/common_types.go
@@ -74,7 +74,6 @@ type LocalUIDReference struct {
}
// IP is an IP address.
-// +kubebuilder:validation:Type=string
type IP struct {
netip.Addr `json:"-"`
}
@@ -270,7 +269,6 @@ func EqualIPRanges(a, b IPRange) bool {
}
// IPPrefix represents a network prefix.
-// +kubebuilder:validation:Type=string
// +nullable
type IPPrefix struct {
netip.Prefix `json:"-"`
@@ -391,7 +389,6 @@ type Taint struct {
Effect TaintEffect `json:"effect"`
}
-// +kubebuilder:validation:Enum=NoSchedule
type TaintEffect string
const (
@@ -452,7 +449,6 @@ func (t *Toleration) ToleratesTaint(taint *Taint) bool {
}
// A toleration operator is the set of operators that can be used in a toleration.
-// +kubebuilder:validation:Enum=Equal;Exists
type TolerationOperator string
const (
diff --git a/apis/common/v1alpha1/common_types_test.go b/api/common/v1alpha1/common_types_test.go
similarity index 100%
rename from apis/common/v1alpha1/common_types_test.go
rename to api/common/v1alpha1/common_types_test.go
diff --git a/apis/common/v1alpha1/doc.go b/api/common/v1alpha1/doc.go
similarity index 91%
rename from apis/common/v1alpha1/doc.go
rename to api/common/v1alpha1/doc.go
index 2909a0870..ba5474c3d 100644
--- a/apis/common/v1alpha1/doc.go
+++ b/api/common/v1alpha1/doc.go
@@ -21,4 +21,4 @@
// +groupName=common.api.onmetal.de
// Package v1alpha1 is the v1alpha1 version of the API.
-package v1alpha1 // import "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+package v1alpha1 // import "github.com/onmetal/onmetal-api/api/common/v1alpha1"
diff --git a/apis/common/v1alpha1/suite_test.go b/api/common/v1alpha1/suite_test.go
similarity index 100%
rename from apis/common/v1alpha1/suite_test.go
rename to api/common/v1alpha1/suite_test.go
diff --git a/apis/common/v1alpha1/zz_generated.deepcopy.go b/api/common/v1alpha1/zz_generated.deepcopy.go
similarity index 100%
rename from apis/common/v1alpha1/zz_generated.deepcopy.go
rename to api/common/v1alpha1/zz_generated.deepcopy.go
diff --git a/apis/compute/v1alpha1/common.go b/api/compute/v1alpha1/common.go
similarity index 90%
rename from apis/compute/v1alpha1/common.go
rename to api/compute/v1alpha1/common.go
index 298ae8e7b..1a0ee8805 100644
--- a/apis/compute/v1alpha1/common.go
+++ b/api/compute/v1alpha1/common.go
@@ -15,8 +15,8 @@
package v1alpha1
import (
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
)
// EphemeralNetworkInterfaceSource is a definition for an ephemeral (i.e. coupled to the lifetime of the surrounding
diff --git a/apis/compute/v1alpha1/doc.go b/api/compute/v1alpha1/doc.go
similarity index 80%
rename from apis/compute/v1alpha1/doc.go
rename to api/compute/v1alpha1/doc.go
index fd0cd281c..6d3614623 100644
--- a/apis/compute/v1alpha1/doc.go
+++ b/api/compute/v1alpha1/doc.go
@@ -14,11 +14,9 @@
* limitations under the License.
*/
-// +k8s:deepcopy-gen=package
-// +k8s:conversion-gen=github.com/onmetal/onmetal-api/apis/compute
// +k8s:openapi-gen=true
-// +k8s:defaulter-gen=TypeMeta
+// +k8s:deepcopy-gen=package
// +groupName=compute.api.onmetal.de
// Package v1alpha1 is the v1alpha1 version of the API.
-package v1alpha1 // import "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+package v1alpha1 // import "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
diff --git a/apis/compute/v1alpha1/machine_types.go b/api/compute/v1alpha1/machine_types.go
similarity index 99%
rename from apis/compute/v1alpha1/machine_types.go
rename to api/compute/v1alpha1/machine_types.go
index f9ccf640c..c0d580b48 100644
--- a/apis/compute/v1alpha1/machine_types.go
+++ b/api/compute/v1alpha1/machine_types.go
@@ -21,7 +21,7 @@ import (
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
)
// MachineSpec defines the desired state of Machine
diff --git a/apis/compute/v1alpha1/machineclass_types.go b/api/compute/v1alpha1/machineclass_types.go
similarity index 100%
rename from apis/compute/v1alpha1/machineclass_types.go
rename to api/compute/v1alpha1/machineclass_types.go
diff --git a/apis/compute/v1alpha1/machinepool_types.go b/api/compute/v1alpha1/machinepool_types.go
similarity index 98%
rename from apis/compute/v1alpha1/machinepool_types.go
rename to api/compute/v1alpha1/machinepool_types.go
index b8c80a8e7..d052ac1b7 100644
--- a/apis/compute/v1alpha1/machinepool_types.go
+++ b/api/compute/v1alpha1/machinepool_types.go
@@ -20,7 +20,7 @@ import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
)
// MachinePoolSpec defines the desired state of MachinePool
diff --git a/apis/compute/v1alpha1/register.go b/api/compute/v1alpha1/register.go
similarity index 92%
rename from apis/compute/v1alpha1/register.go
rename to api/compute/v1alpha1/register.go
index 336737106..55df33dd9 100644
--- a/apis/compute/v1alpha1/register.go
+++ b/api/compute/v1alpha1/register.go
@@ -15,7 +15,6 @@
*/
// Package v1alpha1 contains API Schema definitions for the compute v1alpha1 API group
-// +kubebuilder:object:generate=true
// +groupName=compute.api.onmetal.de
package v1alpha1
@@ -30,8 +29,7 @@ var (
SchemeGroupVersion = schema.GroupVersion{Group: "compute.api.onmetal.de", Version: "v1alpha1"}
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
- SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
- localSchemeBuilder = &SchemeBuilder
+ SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
// AddToScheme adds the types in this group-version to the given scheme.
AddToScheme = SchemeBuilder.AddToScheme
diff --git a/apis/compute/v1alpha1/util.go b/api/compute/v1alpha1/util.go
similarity index 100%
rename from apis/compute/v1alpha1/util.go
rename to api/compute/v1alpha1/util.go
diff --git a/apis/compute/v1alpha1/zz_generated.deepcopy.go b/api/compute/v1alpha1/zz_generated.deepcopy.go
similarity index 99%
rename from apis/compute/v1alpha1/zz_generated.deepcopy.go
rename to api/compute/v1alpha1/zz_generated.deepcopy.go
index cadf63d8f..ee5d79f14 100644
--- a/apis/compute/v1alpha1/zz_generated.deepcopy.go
+++ b/api/compute/v1alpha1/zz_generated.deepcopy.go
@@ -21,9 +21,9 @@
package v1alpha1
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
v1 "k8s.io/api/core/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
)
diff --git a/apis/doc.go b/api/doc.go
similarity index 97%
rename from apis/doc.go
rename to api/doc.go
index 5b67fe26a..2d5bdd302 100644
--- a/apis/doc.go
+++ b/api/doc.go
@@ -14,4 +14,4 @@
* limitations under the License.
*/
-package apis
+package api
diff --git a/apis/ipam/v1alpha1/doc.go b/api/ipam/v1alpha1/doc.go
similarity index 78%
rename from apis/ipam/v1alpha1/doc.go
rename to api/ipam/v1alpha1/doc.go
index a0d699930..bcd17db22 100644
--- a/apis/ipam/v1alpha1/doc.go
+++ b/api/ipam/v1alpha1/doc.go
@@ -15,11 +15,8 @@
*/
// +k8s:deepcopy-gen=package
-// +k8s:conversion-gen=github.com/onmetal/onmetal-api/apis/ipam
// +k8s:openapi-gen=true
-// +k8s:defaulter-gen=TypeMeta
-// +k8s:protobuf-gen=package
// +groupName=ipam.api.onmetal.de
// Package v1alpha1 is the v1alpha1 version of the API.
-package v1alpha1 // import "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
+package v1alpha1 // import "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
diff --git a/apis/ipam/v1alpha1/prefix_types.go b/api/ipam/v1alpha1/prefix_types.go
similarity index 97%
rename from apis/ipam/v1alpha1/prefix_types.go
rename to api/ipam/v1alpha1/prefix_types.go
index 53244d8a9..8fbcc5ea0 100644
--- a/apis/ipam/v1alpha1/prefix_types.go
+++ b/api/ipam/v1alpha1/prefix_types.go
@@ -17,7 +17,7 @@
package v1alpha1
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apis/ipam/v1alpha1/prefixallocation_types.go b/api/ipam/v1alpha1/prefixallocation_types.go
similarity index 97%
rename from apis/ipam/v1alpha1/prefixallocation_types.go
rename to api/ipam/v1alpha1/prefixallocation_types.go
index a356da2a2..bb3f3a3ee 100644
--- a/apis/ipam/v1alpha1/prefixallocation_types.go
+++ b/api/ipam/v1alpha1/prefixallocation_types.go
@@ -17,7 +17,7 @@
package v1alpha1
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apis/ipam/v1alpha1/register.go b/api/ipam/v1alpha1/register.go
similarity index 91%
rename from apis/ipam/v1alpha1/register.go
rename to api/ipam/v1alpha1/register.go
index 194431ec4..435aeb555 100644
--- a/apis/ipam/v1alpha1/register.go
+++ b/api/ipam/v1alpha1/register.go
@@ -15,7 +15,6 @@
*/
// Package v1alpha1 contains API Schema definitions for the network v1alpha1 API group
-// +kubebuilder:object:generate=true
// +groupName=ipam.api.onmetal.de
package v1alpha1
@@ -30,8 +29,7 @@ var (
SchemeGroupVersion = schema.GroupVersion{Group: "ipam.api.onmetal.de", Version: "v1alpha1"}
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
- SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs)
- localSchemeBuilder = &SchemeBuilder
+ SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
// AddToScheme adds the types in this group-version to the given scheme.
AddToScheme = SchemeBuilder.AddToScheme
diff --git a/apis/ipam/v1alpha1/zz_generated.deepcopy.go b/api/ipam/v1alpha1/zz_generated.deepcopy.go
similarity index 99%
rename from apis/ipam/v1alpha1/zz_generated.deepcopy.go
rename to api/ipam/v1alpha1/zz_generated.deepcopy.go
index 2604a7b1a..f3992409d 100644
--- a/apis/ipam/v1alpha1/zz_generated.deepcopy.go
+++ b/api/ipam/v1alpha1/zz_generated.deepcopy.go
@@ -21,7 +21,7 @@
package v1alpha1
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
diff --git a/apis/networking/v1alpha1/aliasprefix_type.go b/api/networking/v1alpha1/aliasprefix_type.go
similarity index 97%
rename from apis/networking/v1alpha1/aliasprefix_type.go
rename to api/networking/v1alpha1/aliasprefix_type.go
index 74c1d16dd..90cb4844d 100644
--- a/apis/networking/v1alpha1/aliasprefix_type.go
+++ b/api/networking/v1alpha1/aliasprefix_type.go
@@ -17,7 +17,7 @@
package v1alpha1
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apis/networking/v1alpha1/aliasprefixrouting_type.go b/api/networking/v1alpha1/aliasprefixrouting_type.go
similarity index 95%
rename from apis/networking/v1alpha1/aliasprefixrouting_type.go
rename to api/networking/v1alpha1/aliasprefixrouting_type.go
index 9f5b64386..2d96cef05 100644
--- a/apis/networking/v1alpha1/aliasprefixrouting_type.go
+++ b/api/networking/v1alpha1/aliasprefixrouting_type.go
@@ -17,7 +17,7 @@
package v1alpha1
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apis/networking/v1alpha1/common.go b/api/networking/v1alpha1/common.go
similarity index 95%
rename from apis/networking/v1alpha1/common.go
rename to api/networking/v1alpha1/common.go
index 9caecacd4..90be526de 100644
--- a/apis/networking/v1alpha1/common.go
+++ b/api/networking/v1alpha1/common.go
@@ -17,7 +17,7 @@
package v1alpha1
import (
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
)
// EphemeralPrefixSource contains the definition to create an ephemeral (i.e. coupled to the lifetime of the
diff --git a/apis/networking/v1alpha1/doc.go b/api/networking/v1alpha1/doc.go
similarity index 78%
rename from apis/networking/v1alpha1/doc.go
rename to api/networking/v1alpha1/doc.go
index 0b8abfc23..f53dac3dc 100644
--- a/apis/networking/v1alpha1/doc.go
+++ b/api/networking/v1alpha1/doc.go
@@ -15,11 +15,8 @@
*/
// +k8s:deepcopy-gen=package
-// +k8s:conversion-gen=github.com/onmetal/onmetal-api/apis/networking
// +k8s:openapi-gen=true
-// +k8s:defaulter-gen=TypeMeta
-// +k8s:protobuf-gen=package
// +groupName=networking.api.onmetal.de
// Package v1alpha1 is the v1alpha1 version of the API.
-package v1alpha1 // import "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+package v1alpha1 // import "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
diff --git a/apis/networking/v1alpha1/loadbalancer_type.go b/api/networking/v1alpha1/loadbalancer_type.go
similarity index 97%
rename from apis/networking/v1alpha1/loadbalancer_type.go
rename to api/networking/v1alpha1/loadbalancer_type.go
index 2ca65655d..1bfa3cd8b 100644
--- a/apis/networking/v1alpha1/loadbalancer_type.go
+++ b/api/networking/v1alpha1/loadbalancer_type.go
@@ -17,7 +17,7 @@
package v1alpha1
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apis/networking/v1alpha1/loadbalancerrouting_type.go b/api/networking/v1alpha1/loadbalancerrouting_type.go
similarity index 95%
rename from apis/networking/v1alpha1/loadbalancerrouting_type.go
rename to api/networking/v1alpha1/loadbalancerrouting_type.go
index f393d55d4..6fd2233ec 100644
--- a/apis/networking/v1alpha1/loadbalancerrouting_type.go
+++ b/api/networking/v1alpha1/loadbalancerrouting_type.go
@@ -17,7 +17,7 @@
package v1alpha1
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apis/networking/v1alpha1/natgateway_type.go b/api/networking/v1alpha1/natgateway_type.go
similarity index 97%
rename from apis/networking/v1alpha1/natgateway_type.go
rename to api/networking/v1alpha1/natgateway_type.go
index a684954f8..2f4fd4eb5 100644
--- a/apis/networking/v1alpha1/natgateway_type.go
+++ b/api/networking/v1alpha1/natgateway_type.go
@@ -17,7 +17,7 @@
package v1alpha1
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apis/networking/v1alpha1/natgatewayrouting_type.go b/api/networking/v1alpha1/natgatewayrouting_type.go
similarity index 96%
rename from apis/networking/v1alpha1/natgatewayrouting_type.go
rename to api/networking/v1alpha1/natgatewayrouting_type.go
index afefb67cf..c4d2da768 100644
--- a/apis/networking/v1alpha1/natgatewayrouting_type.go
+++ b/api/networking/v1alpha1/natgatewayrouting_type.go
@@ -17,7 +17,7 @@
package v1alpha1
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apis/networking/v1alpha1/network_type.go b/api/networking/v1alpha1/network_type.go
similarity index 100%
rename from apis/networking/v1alpha1/network_type.go
rename to api/networking/v1alpha1/network_type.go
diff --git a/apis/networking/v1alpha1/networkinterface_types.go b/api/networking/v1alpha1/networkinterface_types.go
similarity index 98%
rename from apis/networking/v1alpha1/networkinterface_types.go
rename to api/networking/v1alpha1/networkinterface_types.go
index 395a0c06d..59a6763e8 100644
--- a/apis/networking/v1alpha1/networkinterface_types.go
+++ b/api/networking/v1alpha1/networkinterface_types.go
@@ -17,7 +17,7 @@
package v1alpha1
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apis/networking/v1alpha1/register.go b/api/networking/v1alpha1/register.go
similarity index 92%
rename from apis/networking/v1alpha1/register.go
rename to api/networking/v1alpha1/register.go
index 5b1bfdf33..27c4295d9 100644
--- a/apis/networking/v1alpha1/register.go
+++ b/api/networking/v1alpha1/register.go
@@ -15,7 +15,6 @@
*/
// Package v1alpha1 contains API Schema definitions for the networking v1alpha1 API group
-// +kubebuilder:object:generate=true
// +groupName=networking.api.onmetal.de
package v1alpha1
@@ -30,8 +29,7 @@ var (
SchemeGroupVersion = schema.GroupVersion{Group: "networking.api.onmetal.de", Version: "v1alpha1"}
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
- SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs)
- localSchemeBuilder = &SchemeBuilder
+ SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
// AddToScheme adds the types in this group-version to the given scheme.
AddToScheme = SchemeBuilder.AddToScheme
diff --git a/apis/networking/v1alpha1/util.go b/api/networking/v1alpha1/util.go
similarity index 100%
rename from apis/networking/v1alpha1/util.go
rename to api/networking/v1alpha1/util.go
diff --git a/apis/networking/v1alpha1/virtualip_types.go b/api/networking/v1alpha1/virtualip_types.go
similarity index 97%
rename from apis/networking/v1alpha1/virtualip_types.go
rename to api/networking/v1alpha1/virtualip_types.go
index 265775331..7ea4e2a54 100644
--- a/apis/networking/v1alpha1/virtualip_types.go
+++ b/api/networking/v1alpha1/virtualip_types.go
@@ -17,7 +17,7 @@
package v1alpha1
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apis/networking/v1alpha1/zz_generated.deepcopy.go b/api/networking/v1alpha1/zz_generated.deepcopy.go
similarity index 99%
rename from apis/networking/v1alpha1/zz_generated.deepcopy.go
rename to api/networking/v1alpha1/zz_generated.deepcopy.go
index 01ddb7ff7..5da8833a4 100644
--- a/apis/networking/v1alpha1/zz_generated.deepcopy.go
+++ b/api/networking/v1alpha1/zz_generated.deepcopy.go
@@ -21,8 +21,8 @@
package v1alpha1
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
corev1 "k8s.io/api/core/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
diff --git a/apis/storage/v1alpha1/doc.go b/api/storage/v1alpha1/doc.go
similarity index 81%
rename from apis/storage/v1alpha1/doc.go
rename to api/storage/v1alpha1/doc.go
index 11ca268f7..910b1a9de 100644
--- a/apis/storage/v1alpha1/doc.go
+++ b/api/storage/v1alpha1/doc.go
@@ -15,11 +15,9 @@
*/
// +k8s:deepcopy-gen=package
-// +k8s:conversion-gen=github.com/onmetal/onmetal-api/apis/storage
// +k8s:openapi-gen=true
-// +k8s:defaulter-gen=TypeMeta
// +k8s:protobuf-gen=package
// +groupName=storage.api.onmetal.de
// Package v1alpha1 is the v1alpha1 version of the API.
-package v1alpha1 // import "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+package v1alpha1 // import "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
diff --git a/apis/storage/v1alpha1/register.go b/api/storage/v1alpha1/register.go
similarity index 92%
rename from apis/storage/v1alpha1/register.go
rename to api/storage/v1alpha1/register.go
index 0d799ed07..ede78c85c 100644
--- a/apis/storage/v1alpha1/register.go
+++ b/api/storage/v1alpha1/register.go
@@ -15,7 +15,6 @@
*/
// Package v1alpha1 contains API Schema definitions for the storage v1alpha1 API group
-// +kubebuilder:object:generate=true
// +groupName=storage.api.onmetal.de
package v1alpha1
@@ -30,8 +29,7 @@ var (
SchemeGroupVersion = schema.GroupVersion{Group: "storage.api.onmetal.de", Version: "v1alpha1"}
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
- SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
- localSchemeBuilder = &SchemeBuilder
+ SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
// AddToScheme adds the types in this group-version to the given scheme.
AddToScheme = SchemeBuilder.AddToScheme
diff --git a/apis/storage/v1alpha1/volume_types.go b/api/storage/v1alpha1/volume_types.go
similarity index 98%
rename from apis/storage/v1alpha1/volume_types.go
rename to api/storage/v1alpha1/volume_types.go
index be22cd6c3..9bd1d1bdc 100644
--- a/apis/storage/v1alpha1/volume_types.go
+++ b/api/storage/v1alpha1/volume_types.go
@@ -17,7 +17,7 @@
package v1alpha1
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/apis/storage/v1alpha1/volumeclass_types.go b/api/storage/v1alpha1/volumeclass_types.go
similarity index 100%
rename from apis/storage/v1alpha1/volumeclass_types.go
rename to api/storage/v1alpha1/volumeclass_types.go
diff --git a/apis/storage/v1alpha1/volumepool_types.go b/api/storage/v1alpha1/volumepool_types.go
similarity index 98%
rename from apis/storage/v1alpha1/volumepool_types.go
rename to api/storage/v1alpha1/volumepool_types.go
index d8cfd2dc5..0ecb158b3 100644
--- a/apis/storage/v1alpha1/volumepool_types.go
+++ b/api/storage/v1alpha1/volumepool_types.go
@@ -20,7 +20,7 @@ import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
)
// VolumePoolSpec defines the desired state of VolumePool
diff --git a/apis/storage/v1alpha1/zz_generated.deepcopy.go b/api/storage/v1alpha1/zz_generated.deepcopy.go
similarity index 99%
rename from apis/storage/v1alpha1/zz_generated.deepcopy.go
rename to api/storage/v1alpha1/zz_generated.deepcopy.go
index 8990dfca5..053e573e0 100644
--- a/apis/storage/v1alpha1/zz_generated.deepcopy.go
+++ b/api/storage/v1alpha1/zz_generated.deepcopy.go
@@ -21,7 +21,7 @@
package v1alpha1
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
v1 "k8s.io/api/core/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
)
diff --git a/apiutils/annotations/annotations.go b/apiutils/annotations/annotations.go
index 2fa5c4973..225dcf825 100644
--- a/apiutils/annotations/annotations.go
+++ b/apiutils/annotations/annotations.go
@@ -18,7 +18,7 @@ import (
"time"
"github.com/onmetal/controller-utils/metautils"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apiutils/equality/equality.go b/apiutils/equality/equality.go
index 08b04c62b..3ed6488a0 100644
--- a/apiutils/equality/equality.go
+++ b/apiutils/equality/equality.go
@@ -15,7 +15,7 @@
package equality
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
"k8s.io/apimachinery/pkg/api/equality"
"k8s.io/apimachinery/pkg/conversion"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
diff --git a/apiutils/labels/helpers.go b/apiutils/labels/helpers.go
index b44e793d4..827c107e6 100644
--- a/apiutils/labels/helpers.go
+++ b/apiutils/labels/helpers.go
@@ -15,7 +15,7 @@
package labels
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/client-go/doc.go b/client-go/doc.go
new file mode 100644
index 000000000..597012a3d
--- /dev/null
+++ b/client-go/doc.go
@@ -0,0 +1,15 @@
+// Copyright 2022 OnMetal authors
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package clientgo
diff --git a/generated/informers/externalversions/compute/interface.go b/client-go/informers/compute/interface.go
similarity index 87%
rename from generated/informers/externalversions/compute/interface.go
rename to client-go/informers/compute/interface.go
index a602135a1..829f0946d 100644
--- a/generated/informers/externalversions/compute/interface.go
+++ b/client-go/informers/compute/interface.go
@@ -18,8 +18,8 @@
package compute
import (
- v1alpha1 "github.com/onmetal/onmetal-api/generated/informers/externalversions/compute/v1alpha1"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/informers/compute/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
)
// Interface provides access to each of this group's versions.
diff --git a/generated/informers/externalversions/compute/v1alpha1/interface.go b/client-go/informers/compute/v1alpha1/interface.go
similarity index 95%
rename from generated/informers/externalversions/compute/v1alpha1/interface.go
rename to client-go/informers/compute/v1alpha1/interface.go
index 0a386035b..e56b61da0 100644
--- a/generated/informers/externalversions/compute/v1alpha1/interface.go
+++ b/client-go/informers/compute/v1alpha1/interface.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
)
// Interface provides access to all the informers in this group version.
diff --git a/generated/informers/externalversions/compute/v1alpha1/machine.go b/client-go/informers/compute/v1alpha1/machine.go
similarity index 77%
rename from generated/informers/externalversions/compute/v1alpha1/machine.go
rename to client-go/informers/compute/v1alpha1/machine.go
index 7e98e3a4e..bef8f1c5e 100644
--- a/generated/informers/externalversions/compute/v1alpha1/machine.go
+++ b/client-go/informers/compute/v1alpha1/machine.go
@@ -21,10 +21,10 @@ import (
"context"
time "time"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- versioned "github.com/onmetal/onmetal-api/generated/clientset/versioned"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/onmetal/onmetal-api/generated/listers/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/listers/compute/v1alpha1"
+ onmetalapi "github.com/onmetal/onmetal-api/client-go/onmetalapi"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -47,14 +47,14 @@ type machineInformer struct {
// NewMachineInformer constructs a new informer for Machine type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewMachineInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
+func NewMachineInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredMachineInformer(client, namespace, resyncPeriod, indexers, nil)
}
// NewFilteredMachineInformer constructs a new informer for Machine type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredMachineInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
+func NewFilteredMachineInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
@@ -76,7 +76,7 @@ func NewFilteredMachineInformer(client versioned.Interface, namespace string, re
)
}
-func (f *machineInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
+func (f *machineInformer) defaultInformer(client onmetalapi.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
return NewFilteredMachineInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
}
diff --git a/generated/informers/externalversions/compute/v1alpha1/machineclass.go b/client-go/informers/compute/v1alpha1/machineclass.go
similarity index 78%
rename from generated/informers/externalversions/compute/v1alpha1/machineclass.go
rename to client-go/informers/compute/v1alpha1/machineclass.go
index ef8c1872d..d0092ee4e 100644
--- a/generated/informers/externalversions/compute/v1alpha1/machineclass.go
+++ b/client-go/informers/compute/v1alpha1/machineclass.go
@@ -21,10 +21,10 @@ import (
"context"
time "time"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- versioned "github.com/onmetal/onmetal-api/generated/clientset/versioned"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/onmetal/onmetal-api/generated/listers/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/listers/compute/v1alpha1"
+ onmetalapi "github.com/onmetal/onmetal-api/client-go/onmetalapi"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -47,14 +47,14 @@ type machineClassInformer struct {
// NewMachineClassInformer constructs a new informer for MachineClass type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewMachineClassInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
+func NewMachineClassInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredMachineClassInformer(client, namespace, resyncPeriod, indexers, nil)
}
// NewFilteredMachineClassInformer constructs a new informer for MachineClass type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredMachineClassInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
+func NewFilteredMachineClassInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
@@ -76,7 +76,7 @@ func NewFilteredMachineClassInformer(client versioned.Interface, namespace strin
)
}
-func (f *machineClassInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
+func (f *machineClassInformer) defaultInformer(client onmetalapi.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
return NewFilteredMachineClassInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
}
diff --git a/generated/informers/externalversions/compute/v1alpha1/machinepool.go b/client-go/informers/compute/v1alpha1/machinepool.go
similarity index 78%
rename from generated/informers/externalversions/compute/v1alpha1/machinepool.go
rename to client-go/informers/compute/v1alpha1/machinepool.go
index 44c3a7927..1cae5677e 100644
--- a/generated/informers/externalversions/compute/v1alpha1/machinepool.go
+++ b/client-go/informers/compute/v1alpha1/machinepool.go
@@ -21,10 +21,10 @@ import (
"context"
time "time"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- versioned "github.com/onmetal/onmetal-api/generated/clientset/versioned"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/onmetal/onmetal-api/generated/listers/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/listers/compute/v1alpha1"
+ onmetalapi "github.com/onmetal/onmetal-api/client-go/onmetalapi"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -47,14 +47,14 @@ type machinePoolInformer struct {
// NewMachinePoolInformer constructs a new informer for MachinePool type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewMachinePoolInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
+func NewMachinePoolInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredMachinePoolInformer(client, namespace, resyncPeriod, indexers, nil)
}
// NewFilteredMachinePoolInformer constructs a new informer for MachinePool type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredMachinePoolInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
+func NewFilteredMachinePoolInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
@@ -76,7 +76,7 @@ func NewFilteredMachinePoolInformer(client versioned.Interface, namespace string
)
}
-func (f *machinePoolInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
+func (f *machinePoolInformer) defaultInformer(client onmetalapi.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
return NewFilteredMachinePoolInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
}
diff --git a/generated/informers/externalversions/factory.go b/client-go/informers/factory.go
similarity index 85%
rename from generated/informers/externalversions/factory.go
rename to client-go/informers/factory.go
index db793f0d5..2e0c97edf 100644
--- a/generated/informers/externalversions/factory.go
+++ b/client-go/informers/factory.go
@@ -15,19 +15,19 @@
*/
// Code generated by informer-gen. DO NOT EDIT.
-package externalversions
+package informers
import (
reflect "reflect"
sync "sync"
time "time"
- versioned "github.com/onmetal/onmetal-api/generated/clientset/versioned"
- compute "github.com/onmetal/onmetal-api/generated/informers/externalversions/compute"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- ipam "github.com/onmetal/onmetal-api/generated/informers/externalversions/ipam"
- networking "github.com/onmetal/onmetal-api/generated/informers/externalversions/networking"
- storage "github.com/onmetal/onmetal-api/generated/informers/externalversions/storage"
+ compute "github.com/onmetal/onmetal-api/client-go/informers/compute"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ ipam "github.com/onmetal/onmetal-api/client-go/informers/ipam"
+ networking "github.com/onmetal/onmetal-api/client-go/informers/networking"
+ storage "github.com/onmetal/onmetal-api/client-go/informers/storage"
+ onmetalapi "github.com/onmetal/onmetal-api/client-go/onmetalapi"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
schema "k8s.io/apimachinery/pkg/runtime/schema"
@@ -38,7 +38,7 @@ import (
type SharedInformerOption func(*sharedInformerFactory) *sharedInformerFactory
type sharedInformerFactory struct {
- client versioned.Interface
+ client onmetalapi.Interface
namespace string
tweakListOptions internalinterfaces.TweakListOptionsFunc
lock sync.Mutex
@@ -78,7 +78,7 @@ func WithNamespace(namespace string) SharedInformerOption {
}
// NewSharedInformerFactory constructs a new instance of sharedInformerFactory for all namespaces.
-func NewSharedInformerFactory(client versioned.Interface, defaultResync time.Duration) SharedInformerFactory {
+func NewSharedInformerFactory(client onmetalapi.Interface, defaultResync time.Duration) SharedInformerFactory {
return NewSharedInformerFactoryWithOptions(client, defaultResync)
}
@@ -86,12 +86,12 @@ func NewSharedInformerFactory(client versioned.Interface, defaultResync time.Dur
// Listers obtained via this SharedInformerFactory will be subject to the same filters
// as specified here.
// Deprecated: Please use NewSharedInformerFactoryWithOptions instead
-func NewFilteredSharedInformerFactory(client versioned.Interface, defaultResync time.Duration, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) SharedInformerFactory {
+func NewFilteredSharedInformerFactory(client onmetalapi.Interface, defaultResync time.Duration, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) SharedInformerFactory {
return NewSharedInformerFactoryWithOptions(client, defaultResync, WithNamespace(namespace), WithTweakListOptions(tweakListOptions))
}
// NewSharedInformerFactoryWithOptions constructs a new instance of a SharedInformerFactory with additional options.
-func NewSharedInformerFactoryWithOptions(client versioned.Interface, defaultResync time.Duration, options ...SharedInformerOption) SharedInformerFactory {
+func NewSharedInformerFactoryWithOptions(client onmetalapi.Interface, defaultResync time.Duration, options ...SharedInformerOption) SharedInformerFactory {
factory := &sharedInformerFactory{
client: client,
namespace: v1.NamespaceAll,
diff --git a/generated/informers/externalversions/generic.go b/client-go/informers/generic.go
similarity index 94%
rename from generated/informers/externalversions/generic.go
rename to client-go/informers/generic.go
index 07e724cfd..ece3a73c7 100644
--- a/generated/informers/externalversions/generic.go
+++ b/client-go/informers/generic.go
@@ -15,15 +15,15 @@
*/
// Code generated by informer-gen. DO NOT EDIT.
-package externalversions
+package informers
import (
"fmt"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
cache "k8s.io/client-go/tools/cache"
)
diff --git a/generated/informers/externalversions/internalinterfaces/factory_interfaces.go b/client-go/informers/internalinterfaces/factory_interfaces.go
similarity index 82%
rename from generated/informers/externalversions/internalinterfaces/factory_interfaces.go
rename to client-go/informers/internalinterfaces/factory_interfaces.go
index fe3b74c39..8204edcd2 100644
--- a/generated/informers/externalversions/internalinterfaces/factory_interfaces.go
+++ b/client-go/informers/internalinterfaces/factory_interfaces.go
@@ -20,14 +20,14 @@ package internalinterfaces
import (
time "time"
- versioned "github.com/onmetal/onmetal-api/generated/clientset/versioned"
+ onmetalapi "github.com/onmetal/onmetal-api/client-go/onmetalapi"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
cache "k8s.io/client-go/tools/cache"
)
-// NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer.
-type NewInformerFunc func(versioned.Interface, time.Duration) cache.SharedIndexInformer
+// NewInformerFunc takes onmetalapi.Interface and time.Duration to return a SharedIndexInformer.
+type NewInformerFunc func(onmetalapi.Interface, time.Duration) cache.SharedIndexInformer
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
type SharedInformerFactory interface {
diff --git a/generated/informers/externalversions/ipam/interface.go b/client-go/informers/ipam/interface.go
similarity index 87%
rename from generated/informers/externalversions/ipam/interface.go
rename to client-go/informers/ipam/interface.go
index 9a09bc24b..5beea76ff 100644
--- a/generated/informers/externalversions/ipam/interface.go
+++ b/client-go/informers/ipam/interface.go
@@ -18,8 +18,8 @@
package ipam
import (
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/onmetal/onmetal-api/generated/informers/externalversions/ipam/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/informers/ipam/v1alpha1"
)
// Interface provides access to each of this group's versions.
diff --git a/generated/informers/externalversions/ipam/v1alpha1/interface.go b/client-go/informers/ipam/v1alpha1/interface.go
similarity index 94%
rename from generated/informers/externalversions/ipam/v1alpha1/interface.go
rename to client-go/informers/ipam/v1alpha1/interface.go
index 02cd31eb9..20e669d3a 100644
--- a/generated/informers/externalversions/ipam/v1alpha1/interface.go
+++ b/client-go/informers/ipam/v1alpha1/interface.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
)
// Interface provides access to all the informers in this group version.
diff --git a/generated/informers/externalversions/ipam/v1alpha1/prefix.go b/client-go/informers/ipam/v1alpha1/prefix.go
similarity index 77%
rename from generated/informers/externalversions/ipam/v1alpha1/prefix.go
rename to client-go/informers/ipam/v1alpha1/prefix.go
index c7bdcf22d..82fd5b604 100644
--- a/generated/informers/externalversions/ipam/v1alpha1/prefix.go
+++ b/client-go/informers/ipam/v1alpha1/prefix.go
@@ -21,10 +21,10 @@ import (
"context"
time "time"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
- versioned "github.com/onmetal/onmetal-api/generated/clientset/versioned"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/onmetal/onmetal-api/generated/listers/ipam/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/listers/ipam/v1alpha1"
+ onmetalapi "github.com/onmetal/onmetal-api/client-go/onmetalapi"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -47,14 +47,14 @@ type prefixInformer struct {
// NewPrefixInformer constructs a new informer for Prefix type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewPrefixInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
+func NewPrefixInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredPrefixInformer(client, namespace, resyncPeriod, indexers, nil)
}
// NewFilteredPrefixInformer constructs a new informer for Prefix type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredPrefixInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
+func NewFilteredPrefixInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
@@ -76,7 +76,7 @@ func NewFilteredPrefixInformer(client versioned.Interface, namespace string, res
)
}
-func (f *prefixInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
+func (f *prefixInformer) defaultInformer(client onmetalapi.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
return NewFilteredPrefixInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
}
diff --git a/generated/informers/externalversions/ipam/v1alpha1/prefixallocation.go b/client-go/informers/ipam/v1alpha1/prefixallocation.go
similarity index 78%
rename from generated/informers/externalversions/ipam/v1alpha1/prefixallocation.go
rename to client-go/informers/ipam/v1alpha1/prefixallocation.go
index 4e7c59f56..8f0d4157b 100644
--- a/generated/informers/externalversions/ipam/v1alpha1/prefixallocation.go
+++ b/client-go/informers/ipam/v1alpha1/prefixallocation.go
@@ -21,10 +21,10 @@ import (
"context"
time "time"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
- versioned "github.com/onmetal/onmetal-api/generated/clientset/versioned"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/onmetal/onmetal-api/generated/listers/ipam/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/listers/ipam/v1alpha1"
+ onmetalapi "github.com/onmetal/onmetal-api/client-go/onmetalapi"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -47,14 +47,14 @@ type prefixAllocationInformer struct {
// NewPrefixAllocationInformer constructs a new informer for PrefixAllocation type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewPrefixAllocationInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
+func NewPrefixAllocationInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredPrefixAllocationInformer(client, namespace, resyncPeriod, indexers, nil)
}
// NewFilteredPrefixAllocationInformer constructs a new informer for PrefixAllocation type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredPrefixAllocationInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
+func NewFilteredPrefixAllocationInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
@@ -76,7 +76,7 @@ func NewFilteredPrefixAllocationInformer(client versioned.Interface, namespace s
)
}
-func (f *prefixAllocationInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
+func (f *prefixAllocationInformer) defaultInformer(client onmetalapi.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
return NewFilteredPrefixAllocationInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
}
diff --git a/generated/informers/externalversions/networking/interface.go b/client-go/informers/networking/interface.go
similarity index 87%
rename from generated/informers/externalversions/networking/interface.go
rename to client-go/informers/networking/interface.go
index 2e8e1d5ea..f179c47d6 100644
--- a/generated/informers/externalversions/networking/interface.go
+++ b/client-go/informers/networking/interface.go
@@ -18,8 +18,8 @@
package networking
import (
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/onmetal/onmetal-api/generated/informers/externalversions/networking/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/informers/networking/v1alpha1"
)
// Interface provides access to each of this group's versions.
diff --git a/generated/informers/externalversions/networking/v1alpha1/aliasprefix.go b/client-go/informers/networking/v1alpha1/aliasprefix.go
similarity index 78%
rename from generated/informers/externalversions/networking/v1alpha1/aliasprefix.go
rename to client-go/informers/networking/v1alpha1/aliasprefix.go
index efc69845b..c7107ade5 100644
--- a/generated/informers/externalversions/networking/v1alpha1/aliasprefix.go
+++ b/client-go/informers/networking/v1alpha1/aliasprefix.go
@@ -21,10 +21,10 @@ import (
"context"
time "time"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- versioned "github.com/onmetal/onmetal-api/generated/clientset/versioned"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/onmetal/onmetal-api/generated/listers/networking/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/listers/networking/v1alpha1"
+ onmetalapi "github.com/onmetal/onmetal-api/client-go/onmetalapi"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -47,14 +47,14 @@ type aliasPrefixInformer struct {
// NewAliasPrefixInformer constructs a new informer for AliasPrefix type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewAliasPrefixInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
+func NewAliasPrefixInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredAliasPrefixInformer(client, namespace, resyncPeriod, indexers, nil)
}
// NewFilteredAliasPrefixInformer constructs a new informer for AliasPrefix type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredAliasPrefixInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
+func NewFilteredAliasPrefixInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
@@ -76,7 +76,7 @@ func NewFilteredAliasPrefixInformer(client versioned.Interface, namespace string
)
}
-func (f *aliasPrefixInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
+func (f *aliasPrefixInformer) defaultInformer(client onmetalapi.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
return NewFilteredAliasPrefixInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
}
diff --git a/generated/informers/externalversions/networking/v1alpha1/aliasprefixrouting.go b/client-go/informers/networking/v1alpha1/aliasprefixrouting.go
similarity index 78%
rename from generated/informers/externalversions/networking/v1alpha1/aliasprefixrouting.go
rename to client-go/informers/networking/v1alpha1/aliasprefixrouting.go
index 6cba765de..9034b68a2 100644
--- a/generated/informers/externalversions/networking/v1alpha1/aliasprefixrouting.go
+++ b/client-go/informers/networking/v1alpha1/aliasprefixrouting.go
@@ -21,10 +21,10 @@ import (
"context"
time "time"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- versioned "github.com/onmetal/onmetal-api/generated/clientset/versioned"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/onmetal/onmetal-api/generated/listers/networking/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/listers/networking/v1alpha1"
+ onmetalapi "github.com/onmetal/onmetal-api/client-go/onmetalapi"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -47,14 +47,14 @@ type aliasPrefixRoutingInformer struct {
// NewAliasPrefixRoutingInformer constructs a new informer for AliasPrefixRouting type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewAliasPrefixRoutingInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
+func NewAliasPrefixRoutingInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredAliasPrefixRoutingInformer(client, namespace, resyncPeriod, indexers, nil)
}
// NewFilteredAliasPrefixRoutingInformer constructs a new informer for AliasPrefixRouting type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredAliasPrefixRoutingInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
+func NewFilteredAliasPrefixRoutingInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
@@ -76,7 +76,7 @@ func NewFilteredAliasPrefixRoutingInformer(client versioned.Interface, namespace
)
}
-func (f *aliasPrefixRoutingInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
+func (f *aliasPrefixRoutingInformer) defaultInformer(client onmetalapi.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
return NewFilteredAliasPrefixRoutingInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
}
diff --git a/generated/informers/externalversions/networking/v1alpha1/interface.go b/client-go/informers/networking/v1alpha1/interface.go
similarity index 97%
rename from generated/informers/externalversions/networking/v1alpha1/interface.go
rename to client-go/informers/networking/v1alpha1/interface.go
index 385a437d1..1f0a172c6 100644
--- a/generated/informers/externalversions/networking/v1alpha1/interface.go
+++ b/client-go/informers/networking/v1alpha1/interface.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
)
// Interface provides access to all the informers in this group version.
diff --git a/generated/informers/externalversions/networking/v1alpha1/loadbalancer.go b/client-go/informers/networking/v1alpha1/loadbalancer.go
similarity index 78%
rename from generated/informers/externalversions/networking/v1alpha1/loadbalancer.go
rename to client-go/informers/networking/v1alpha1/loadbalancer.go
index b0a29c91f..f2fd2ab99 100644
--- a/generated/informers/externalversions/networking/v1alpha1/loadbalancer.go
+++ b/client-go/informers/networking/v1alpha1/loadbalancer.go
@@ -21,10 +21,10 @@ import (
"context"
time "time"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- versioned "github.com/onmetal/onmetal-api/generated/clientset/versioned"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/onmetal/onmetal-api/generated/listers/networking/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/listers/networking/v1alpha1"
+ onmetalapi "github.com/onmetal/onmetal-api/client-go/onmetalapi"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -47,14 +47,14 @@ type loadBalancerInformer struct {
// NewLoadBalancerInformer constructs a new informer for LoadBalancer type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewLoadBalancerInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
+func NewLoadBalancerInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredLoadBalancerInformer(client, namespace, resyncPeriod, indexers, nil)
}
// NewFilteredLoadBalancerInformer constructs a new informer for LoadBalancer type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredLoadBalancerInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
+func NewFilteredLoadBalancerInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
@@ -76,7 +76,7 @@ func NewFilteredLoadBalancerInformer(client versioned.Interface, namespace strin
)
}
-func (f *loadBalancerInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
+func (f *loadBalancerInformer) defaultInformer(client onmetalapi.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
return NewFilteredLoadBalancerInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
}
diff --git a/generated/informers/externalversions/networking/v1alpha1/loadbalancerrouting.go b/client-go/informers/networking/v1alpha1/loadbalancerrouting.go
similarity index 78%
rename from generated/informers/externalversions/networking/v1alpha1/loadbalancerrouting.go
rename to client-go/informers/networking/v1alpha1/loadbalancerrouting.go
index 121f3ac4f..c9dc591c5 100644
--- a/generated/informers/externalversions/networking/v1alpha1/loadbalancerrouting.go
+++ b/client-go/informers/networking/v1alpha1/loadbalancerrouting.go
@@ -21,10 +21,10 @@ import (
"context"
time "time"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- versioned "github.com/onmetal/onmetal-api/generated/clientset/versioned"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/onmetal/onmetal-api/generated/listers/networking/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/listers/networking/v1alpha1"
+ onmetalapi "github.com/onmetal/onmetal-api/client-go/onmetalapi"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -47,14 +47,14 @@ type loadBalancerRoutingInformer struct {
// NewLoadBalancerRoutingInformer constructs a new informer for LoadBalancerRouting type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewLoadBalancerRoutingInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
+func NewLoadBalancerRoutingInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredLoadBalancerRoutingInformer(client, namespace, resyncPeriod, indexers, nil)
}
// NewFilteredLoadBalancerRoutingInformer constructs a new informer for LoadBalancerRouting type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredLoadBalancerRoutingInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
+func NewFilteredLoadBalancerRoutingInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
@@ -76,7 +76,7 @@ func NewFilteredLoadBalancerRoutingInformer(client versioned.Interface, namespac
)
}
-func (f *loadBalancerRoutingInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
+func (f *loadBalancerRoutingInformer) defaultInformer(client onmetalapi.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
return NewFilteredLoadBalancerRoutingInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
}
diff --git a/generated/informers/externalversions/networking/v1alpha1/natgateway.go b/client-go/informers/networking/v1alpha1/natgateway.go
similarity index 78%
rename from generated/informers/externalversions/networking/v1alpha1/natgateway.go
rename to client-go/informers/networking/v1alpha1/natgateway.go
index 2b3b7ac04..29d767918 100644
--- a/generated/informers/externalversions/networking/v1alpha1/natgateway.go
+++ b/client-go/informers/networking/v1alpha1/natgateway.go
@@ -21,10 +21,10 @@ import (
"context"
time "time"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- versioned "github.com/onmetal/onmetal-api/generated/clientset/versioned"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/onmetal/onmetal-api/generated/listers/networking/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/listers/networking/v1alpha1"
+ onmetalapi "github.com/onmetal/onmetal-api/client-go/onmetalapi"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -47,14 +47,14 @@ type nATGatewayInformer struct {
// NewNATGatewayInformer constructs a new informer for NATGateway type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewNATGatewayInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
+func NewNATGatewayInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredNATGatewayInformer(client, namespace, resyncPeriod, indexers, nil)
}
// NewFilteredNATGatewayInformer constructs a new informer for NATGateway type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredNATGatewayInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
+func NewFilteredNATGatewayInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
@@ -76,7 +76,7 @@ func NewFilteredNATGatewayInformer(client versioned.Interface, namespace string,
)
}
-func (f *nATGatewayInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
+func (f *nATGatewayInformer) defaultInformer(client onmetalapi.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
return NewFilteredNATGatewayInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
}
diff --git a/generated/informers/externalversions/networking/v1alpha1/natgatewayrouting.go b/client-go/informers/networking/v1alpha1/natgatewayrouting.go
similarity index 78%
rename from generated/informers/externalversions/networking/v1alpha1/natgatewayrouting.go
rename to client-go/informers/networking/v1alpha1/natgatewayrouting.go
index 92ae2f311..aa1450dd4 100644
--- a/generated/informers/externalversions/networking/v1alpha1/natgatewayrouting.go
+++ b/client-go/informers/networking/v1alpha1/natgatewayrouting.go
@@ -21,10 +21,10 @@ import (
"context"
time "time"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- versioned "github.com/onmetal/onmetal-api/generated/clientset/versioned"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/onmetal/onmetal-api/generated/listers/networking/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/listers/networking/v1alpha1"
+ onmetalapi "github.com/onmetal/onmetal-api/client-go/onmetalapi"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -47,14 +47,14 @@ type nATGatewayRoutingInformer struct {
// NewNATGatewayRoutingInformer constructs a new informer for NATGatewayRouting type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewNATGatewayRoutingInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
+func NewNATGatewayRoutingInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredNATGatewayRoutingInformer(client, namespace, resyncPeriod, indexers, nil)
}
// NewFilteredNATGatewayRoutingInformer constructs a new informer for NATGatewayRouting type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredNATGatewayRoutingInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
+func NewFilteredNATGatewayRoutingInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
@@ -76,7 +76,7 @@ func NewFilteredNATGatewayRoutingInformer(client versioned.Interface, namespace
)
}
-func (f *nATGatewayRoutingInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
+func (f *nATGatewayRoutingInformer) defaultInformer(client onmetalapi.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
return NewFilteredNATGatewayRoutingInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
}
diff --git a/generated/informers/externalversions/networking/v1alpha1/network.go b/client-go/informers/networking/v1alpha1/network.go
similarity index 77%
rename from generated/informers/externalversions/networking/v1alpha1/network.go
rename to client-go/informers/networking/v1alpha1/network.go
index 400946be0..133849e17 100644
--- a/generated/informers/externalversions/networking/v1alpha1/network.go
+++ b/client-go/informers/networking/v1alpha1/network.go
@@ -21,10 +21,10 @@ import (
"context"
time "time"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- versioned "github.com/onmetal/onmetal-api/generated/clientset/versioned"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/onmetal/onmetal-api/generated/listers/networking/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/listers/networking/v1alpha1"
+ onmetalapi "github.com/onmetal/onmetal-api/client-go/onmetalapi"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -47,14 +47,14 @@ type networkInformer struct {
// NewNetworkInformer constructs a new informer for Network type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewNetworkInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
+func NewNetworkInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredNetworkInformer(client, namespace, resyncPeriod, indexers, nil)
}
// NewFilteredNetworkInformer constructs a new informer for Network type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredNetworkInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
+func NewFilteredNetworkInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
@@ -76,7 +76,7 @@ func NewFilteredNetworkInformer(client versioned.Interface, namespace string, re
)
}
-func (f *networkInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
+func (f *networkInformer) defaultInformer(client onmetalapi.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
return NewFilteredNetworkInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
}
diff --git a/generated/informers/externalversions/networking/v1alpha1/networkinterface.go b/client-go/informers/networking/v1alpha1/networkinterface.go
similarity index 78%
rename from generated/informers/externalversions/networking/v1alpha1/networkinterface.go
rename to client-go/informers/networking/v1alpha1/networkinterface.go
index 411f111df..a02f2b79e 100644
--- a/generated/informers/externalversions/networking/v1alpha1/networkinterface.go
+++ b/client-go/informers/networking/v1alpha1/networkinterface.go
@@ -21,10 +21,10 @@ import (
"context"
time "time"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- versioned "github.com/onmetal/onmetal-api/generated/clientset/versioned"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/onmetal/onmetal-api/generated/listers/networking/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/listers/networking/v1alpha1"
+ onmetalapi "github.com/onmetal/onmetal-api/client-go/onmetalapi"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -47,14 +47,14 @@ type networkInterfaceInformer struct {
// NewNetworkInterfaceInformer constructs a new informer for NetworkInterface type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewNetworkInterfaceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
+func NewNetworkInterfaceInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredNetworkInterfaceInformer(client, namespace, resyncPeriod, indexers, nil)
}
// NewFilteredNetworkInterfaceInformer constructs a new informer for NetworkInterface type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredNetworkInterfaceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
+func NewFilteredNetworkInterfaceInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
@@ -76,7 +76,7 @@ func NewFilteredNetworkInterfaceInformer(client versioned.Interface, namespace s
)
}
-func (f *networkInterfaceInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
+func (f *networkInterfaceInformer) defaultInformer(client onmetalapi.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
return NewFilteredNetworkInterfaceInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
}
diff --git a/generated/informers/externalversions/networking/v1alpha1/virtualip.go b/client-go/informers/networking/v1alpha1/virtualip.go
similarity index 77%
rename from generated/informers/externalversions/networking/v1alpha1/virtualip.go
rename to client-go/informers/networking/v1alpha1/virtualip.go
index a4cd9dfc1..01e4016f0 100644
--- a/generated/informers/externalversions/networking/v1alpha1/virtualip.go
+++ b/client-go/informers/networking/v1alpha1/virtualip.go
@@ -21,10 +21,10 @@ import (
"context"
time "time"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- versioned "github.com/onmetal/onmetal-api/generated/clientset/versioned"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/onmetal/onmetal-api/generated/listers/networking/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/listers/networking/v1alpha1"
+ onmetalapi "github.com/onmetal/onmetal-api/client-go/onmetalapi"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -47,14 +47,14 @@ type virtualIPInformer struct {
// NewVirtualIPInformer constructs a new informer for VirtualIP type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewVirtualIPInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
+func NewVirtualIPInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredVirtualIPInformer(client, namespace, resyncPeriod, indexers, nil)
}
// NewFilteredVirtualIPInformer constructs a new informer for VirtualIP type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredVirtualIPInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
+func NewFilteredVirtualIPInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
@@ -76,7 +76,7 @@ func NewFilteredVirtualIPInformer(client versioned.Interface, namespace string,
)
}
-func (f *virtualIPInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
+func (f *virtualIPInformer) defaultInformer(client onmetalapi.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
return NewFilteredVirtualIPInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
}
diff --git a/generated/informers/externalversions/storage/interface.go b/client-go/informers/storage/interface.go
similarity index 87%
rename from generated/informers/externalversions/storage/interface.go
rename to client-go/informers/storage/interface.go
index 56fa85649..8f0b234ce 100644
--- a/generated/informers/externalversions/storage/interface.go
+++ b/client-go/informers/storage/interface.go
@@ -18,8 +18,8 @@
package storage
import (
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/onmetal/onmetal-api/generated/informers/externalversions/storage/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/informers/storage/v1alpha1"
)
// Interface provides access to each of this group's versions.
diff --git a/generated/informers/externalversions/storage/v1alpha1/interface.go b/client-go/informers/storage/v1alpha1/interface.go
similarity index 94%
rename from generated/informers/externalversions/storage/v1alpha1/interface.go
rename to client-go/informers/storage/v1alpha1/interface.go
index 09a701725..20f90f98a 100644
--- a/generated/informers/externalversions/storage/v1alpha1/interface.go
+++ b/client-go/informers/storage/v1alpha1/interface.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
)
// Interface provides access to all the informers in this group version.
diff --git a/generated/informers/externalversions/storage/v1alpha1/volume.go b/client-go/informers/storage/v1alpha1/volume.go
similarity index 77%
rename from generated/informers/externalversions/storage/v1alpha1/volume.go
rename to client-go/informers/storage/v1alpha1/volume.go
index fcf2907eb..7d012b4fa 100644
--- a/generated/informers/externalversions/storage/v1alpha1/volume.go
+++ b/client-go/informers/storage/v1alpha1/volume.go
@@ -21,10 +21,10 @@ import (
"context"
time "time"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
- versioned "github.com/onmetal/onmetal-api/generated/clientset/versioned"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/onmetal/onmetal-api/generated/listers/storage/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/listers/storage/v1alpha1"
+ onmetalapi "github.com/onmetal/onmetal-api/client-go/onmetalapi"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -47,14 +47,14 @@ type volumeInformer struct {
// NewVolumeInformer constructs a new informer for Volume type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewVolumeInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
+func NewVolumeInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredVolumeInformer(client, namespace, resyncPeriod, indexers, nil)
}
// NewFilteredVolumeInformer constructs a new informer for Volume type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredVolumeInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
+func NewFilteredVolumeInformer(client onmetalapi.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
@@ -76,7 +76,7 @@ func NewFilteredVolumeInformer(client versioned.Interface, namespace string, res
)
}
-func (f *volumeInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
+func (f *volumeInformer) defaultInformer(client onmetalapi.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
return NewFilteredVolumeInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
}
diff --git a/generated/informers/externalversions/storage/v1alpha1/volumeclass.go b/client-go/informers/storage/v1alpha1/volumeclass.go
similarity index 78%
rename from generated/informers/externalversions/storage/v1alpha1/volumeclass.go
rename to client-go/informers/storage/v1alpha1/volumeclass.go
index edce03564..03a9ed49b 100644
--- a/generated/informers/externalversions/storage/v1alpha1/volumeclass.go
+++ b/client-go/informers/storage/v1alpha1/volumeclass.go
@@ -21,10 +21,10 @@ import (
"context"
time "time"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
- versioned "github.com/onmetal/onmetal-api/generated/clientset/versioned"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/onmetal/onmetal-api/generated/listers/storage/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/listers/storage/v1alpha1"
+ onmetalapi "github.com/onmetal/onmetal-api/client-go/onmetalapi"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -46,14 +46,14 @@ type volumeClassInformer struct {
// NewVolumeClassInformer constructs a new informer for VolumeClass type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewVolumeClassInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
+func NewVolumeClassInformer(client onmetalapi.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredVolumeClassInformer(client, resyncPeriod, indexers, nil)
}
// NewFilteredVolumeClassInformer constructs a new informer for VolumeClass type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredVolumeClassInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
+func NewFilteredVolumeClassInformer(client onmetalapi.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
@@ -75,7 +75,7 @@ func NewFilteredVolumeClassInformer(client versioned.Interface, resyncPeriod tim
)
}
-func (f *volumeClassInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
+func (f *volumeClassInformer) defaultInformer(client onmetalapi.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
return NewFilteredVolumeClassInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
}
diff --git a/generated/informers/externalversions/storage/v1alpha1/volumepool.go b/client-go/informers/storage/v1alpha1/volumepool.go
similarity index 78%
rename from generated/informers/externalversions/storage/v1alpha1/volumepool.go
rename to client-go/informers/storage/v1alpha1/volumepool.go
index 10423f2c1..b0ace050a 100644
--- a/generated/informers/externalversions/storage/v1alpha1/volumepool.go
+++ b/client-go/informers/storage/v1alpha1/volumepool.go
@@ -21,10 +21,10 @@ import (
"context"
time "time"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
- versioned "github.com/onmetal/onmetal-api/generated/clientset/versioned"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/onmetal/onmetal-api/generated/listers/storage/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
+ internalinterfaces "github.com/onmetal/onmetal-api/client-go/informers/internalinterfaces"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/listers/storage/v1alpha1"
+ onmetalapi "github.com/onmetal/onmetal-api/client-go/onmetalapi"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -46,14 +46,14 @@ type volumePoolInformer struct {
// NewVolumePoolInformer constructs a new informer for VolumePool type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewVolumePoolInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
+func NewVolumePoolInformer(client onmetalapi.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredVolumePoolInformer(client, resyncPeriod, indexers, nil)
}
// NewFilteredVolumePoolInformer constructs a new informer for VolumePool type.
// Always prefer using an informer factory to get a shared informer instead of getting an independent
// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredVolumePoolInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
+func NewFilteredVolumePoolInformer(client onmetalapi.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
@@ -75,7 +75,7 @@ func NewFilteredVolumePoolInformer(client versioned.Interface, resyncPeriod time
)
}
-func (f *volumePoolInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
+func (f *volumePoolInformer) defaultInformer(client onmetalapi.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
return NewFilteredVolumePoolInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
}
diff --git a/generated/listers/compute/v1alpha1/expansion_generated.go b/client-go/listers/compute/v1alpha1/expansion_generated.go
similarity index 100%
rename from generated/listers/compute/v1alpha1/expansion_generated.go
rename to client-go/listers/compute/v1alpha1/expansion_generated.go
diff --git a/generated/listers/compute/v1alpha1/machine.go b/client-go/listers/compute/v1alpha1/machine.go
similarity index 98%
rename from generated/listers/compute/v1alpha1/machine.go
rename to client-go/listers/compute/v1alpha1/machine.go
index fb2a252dc..4946f9df1 100644
--- a/generated/listers/compute/v1alpha1/machine.go
+++ b/client-go/listers/compute/v1alpha1/machine.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
diff --git a/generated/listers/compute/v1alpha1/machineclass.go b/client-go/listers/compute/v1alpha1/machineclass.go
similarity index 98%
rename from generated/listers/compute/v1alpha1/machineclass.go
rename to client-go/listers/compute/v1alpha1/machineclass.go
index 2c686f989..bb33bec51 100644
--- a/generated/listers/compute/v1alpha1/machineclass.go
+++ b/client-go/listers/compute/v1alpha1/machineclass.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
diff --git a/generated/listers/compute/v1alpha1/machinepool.go b/client-go/listers/compute/v1alpha1/machinepool.go
similarity index 98%
rename from generated/listers/compute/v1alpha1/machinepool.go
rename to client-go/listers/compute/v1alpha1/machinepool.go
index 18a021149..8f3df8466 100644
--- a/generated/listers/compute/v1alpha1/machinepool.go
+++ b/client-go/listers/compute/v1alpha1/machinepool.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
diff --git a/generated/listers/ipam/v1alpha1/expansion_generated.go b/client-go/listers/ipam/v1alpha1/expansion_generated.go
similarity index 100%
rename from generated/listers/ipam/v1alpha1/expansion_generated.go
rename to client-go/listers/ipam/v1alpha1/expansion_generated.go
diff --git a/generated/listers/ipam/v1alpha1/prefix.go b/client-go/listers/ipam/v1alpha1/prefix.go
similarity index 98%
rename from generated/listers/ipam/v1alpha1/prefix.go
rename to client-go/listers/ipam/v1alpha1/prefix.go
index 7f100634d..f0bdb6ca8 100644
--- a/generated/listers/ipam/v1alpha1/prefix.go
+++ b/client-go/listers/ipam/v1alpha1/prefix.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
diff --git a/generated/listers/ipam/v1alpha1/prefixallocation.go b/client-go/listers/ipam/v1alpha1/prefixallocation.go
similarity index 98%
rename from generated/listers/ipam/v1alpha1/prefixallocation.go
rename to client-go/listers/ipam/v1alpha1/prefixallocation.go
index 4e2fe529b..0198358ee 100644
--- a/generated/listers/ipam/v1alpha1/prefixallocation.go
+++ b/client-go/listers/ipam/v1alpha1/prefixallocation.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
diff --git a/generated/listers/networking/v1alpha1/aliasprefix.go b/client-go/listers/networking/v1alpha1/aliasprefix.go
similarity index 98%
rename from generated/listers/networking/v1alpha1/aliasprefix.go
rename to client-go/listers/networking/v1alpha1/aliasprefix.go
index 1fd5d1833..077a62180 100644
--- a/generated/listers/networking/v1alpha1/aliasprefix.go
+++ b/client-go/listers/networking/v1alpha1/aliasprefix.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
diff --git a/generated/listers/networking/v1alpha1/aliasprefixrouting.go b/client-go/listers/networking/v1alpha1/aliasprefixrouting.go
similarity index 98%
rename from generated/listers/networking/v1alpha1/aliasprefixrouting.go
rename to client-go/listers/networking/v1alpha1/aliasprefixrouting.go
index 08b7bca41..f0ac835a0 100644
--- a/generated/listers/networking/v1alpha1/aliasprefixrouting.go
+++ b/client-go/listers/networking/v1alpha1/aliasprefixrouting.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
diff --git a/generated/listers/networking/v1alpha1/expansion_generated.go b/client-go/listers/networking/v1alpha1/expansion_generated.go
similarity index 100%
rename from generated/listers/networking/v1alpha1/expansion_generated.go
rename to client-go/listers/networking/v1alpha1/expansion_generated.go
diff --git a/generated/listers/networking/v1alpha1/loadbalancer.go b/client-go/listers/networking/v1alpha1/loadbalancer.go
similarity index 98%
rename from generated/listers/networking/v1alpha1/loadbalancer.go
rename to client-go/listers/networking/v1alpha1/loadbalancer.go
index 0ae32aee0..ed8ae6590 100644
--- a/generated/listers/networking/v1alpha1/loadbalancer.go
+++ b/client-go/listers/networking/v1alpha1/loadbalancer.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
diff --git a/generated/listers/networking/v1alpha1/loadbalancerrouting.go b/client-go/listers/networking/v1alpha1/loadbalancerrouting.go
similarity index 98%
rename from generated/listers/networking/v1alpha1/loadbalancerrouting.go
rename to client-go/listers/networking/v1alpha1/loadbalancerrouting.go
index 5ec645bb6..78f3397fd 100644
--- a/generated/listers/networking/v1alpha1/loadbalancerrouting.go
+++ b/client-go/listers/networking/v1alpha1/loadbalancerrouting.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
diff --git a/generated/listers/networking/v1alpha1/natgateway.go b/client-go/listers/networking/v1alpha1/natgateway.go
similarity index 98%
rename from generated/listers/networking/v1alpha1/natgateway.go
rename to client-go/listers/networking/v1alpha1/natgateway.go
index 5b078fa2f..afab62607 100644
--- a/generated/listers/networking/v1alpha1/natgateway.go
+++ b/client-go/listers/networking/v1alpha1/natgateway.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
diff --git a/generated/listers/networking/v1alpha1/natgatewayrouting.go b/client-go/listers/networking/v1alpha1/natgatewayrouting.go
similarity index 98%
rename from generated/listers/networking/v1alpha1/natgatewayrouting.go
rename to client-go/listers/networking/v1alpha1/natgatewayrouting.go
index 41e4eec3e..105915a9d 100644
--- a/generated/listers/networking/v1alpha1/natgatewayrouting.go
+++ b/client-go/listers/networking/v1alpha1/natgatewayrouting.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
diff --git a/generated/listers/networking/v1alpha1/network.go b/client-go/listers/networking/v1alpha1/network.go
similarity index 98%
rename from generated/listers/networking/v1alpha1/network.go
rename to client-go/listers/networking/v1alpha1/network.go
index 956e23b85..7de735c5f 100644
--- a/generated/listers/networking/v1alpha1/network.go
+++ b/client-go/listers/networking/v1alpha1/network.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
diff --git a/generated/listers/networking/v1alpha1/networkinterface.go b/client-go/listers/networking/v1alpha1/networkinterface.go
similarity index 98%
rename from generated/listers/networking/v1alpha1/networkinterface.go
rename to client-go/listers/networking/v1alpha1/networkinterface.go
index 99e1f7937..cee357fb3 100644
--- a/generated/listers/networking/v1alpha1/networkinterface.go
+++ b/client-go/listers/networking/v1alpha1/networkinterface.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
diff --git a/generated/listers/networking/v1alpha1/virtualip.go b/client-go/listers/networking/v1alpha1/virtualip.go
similarity index 98%
rename from generated/listers/networking/v1alpha1/virtualip.go
rename to client-go/listers/networking/v1alpha1/virtualip.go
index f34d10704..4eb5581ec 100644
--- a/generated/listers/networking/v1alpha1/virtualip.go
+++ b/client-go/listers/networking/v1alpha1/virtualip.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
diff --git a/generated/listers/storage/v1alpha1/expansion_generated.go b/client-go/listers/storage/v1alpha1/expansion_generated.go
similarity index 100%
rename from generated/listers/storage/v1alpha1/expansion_generated.go
rename to client-go/listers/storage/v1alpha1/expansion_generated.go
diff --git a/generated/listers/storage/v1alpha1/volume.go b/client-go/listers/storage/v1alpha1/volume.go
similarity index 98%
rename from generated/listers/storage/v1alpha1/volume.go
rename to client-go/listers/storage/v1alpha1/volume.go
index 35ce6706c..94cb9fce5 100644
--- a/generated/listers/storage/v1alpha1/volume.go
+++ b/client-go/listers/storage/v1alpha1/volume.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
diff --git a/generated/listers/storage/v1alpha1/volumeclass.go b/client-go/listers/storage/v1alpha1/volumeclass.go
similarity index 97%
rename from generated/listers/storage/v1alpha1/volumeclass.go
rename to client-go/listers/storage/v1alpha1/volumeclass.go
index 2be44d95a..78cf3c30d 100644
--- a/generated/listers/storage/v1alpha1/volumeclass.go
+++ b/client-go/listers/storage/v1alpha1/volumeclass.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
diff --git a/generated/listers/storage/v1alpha1/volumepool.go b/client-go/listers/storage/v1alpha1/volumepool.go
similarity index 97%
rename from generated/listers/storage/v1alpha1/volumepool.go
rename to client-go/listers/storage/v1alpha1/volumepool.go
index 987e0c22c..27dfd6b3f 100644
--- a/generated/listers/storage/v1alpha1/volumepool.go
+++ b/client-go/listers/storage/v1alpha1/volumepool.go
@@ -18,7 +18,7 @@
package v1alpha1
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
diff --git a/generated/clientset/versioned/clientset.go b/client-go/onmetalapi/clientset.go
similarity index 92%
rename from generated/clientset/versioned/clientset.go
rename to client-go/onmetalapi/clientset.go
index 773185999..82b453c80 100644
--- a/generated/clientset/versioned/clientset.go
+++ b/client-go/onmetalapi/clientset.go
@@ -15,16 +15,16 @@
*/
// Code generated by client-gen. DO NOT EDIT.
-package versioned
+package onmetalapi
import (
"fmt"
"net/http"
- computev1alpha1 "github.com/onmetal/onmetal-api/generated/clientset/versioned/typed/compute/v1alpha1"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/generated/clientset/versioned/typed/ipam/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/generated/clientset/versioned/typed/networking/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/generated/clientset/versioned/typed/storage/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/client-go/onmetalapi/typed/compute/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/client-go/onmetalapi/typed/ipam/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/client-go/onmetalapi/typed/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/client-go/onmetalapi/typed/storage/v1alpha1"
discovery "k8s.io/client-go/discovery"
rest "k8s.io/client-go/rest"
flowcontrol "k8s.io/client-go/util/flowcontrol"
diff --git a/generated/clientset/versioned/doc.go b/client-go/onmetalapi/doc.go
similarity index 97%
rename from generated/clientset/versioned/doc.go
rename to client-go/onmetalapi/doc.go
index 094a29bdd..3cb466edd 100644
--- a/generated/clientset/versioned/doc.go
+++ b/client-go/onmetalapi/doc.go
@@ -16,4 +16,4 @@
// Code generated by client-gen. DO NOT EDIT.
// This package has the automatically generated clientset.
-package versioned
+package onmetalapi
diff --git a/generated/clientset/versioned/fake/clientset_generated.go b/client-go/onmetalapi/fake/clientset_generated.go
similarity index 77%
rename from generated/clientset/versioned/fake/clientset_generated.go
rename to client-go/onmetalapi/fake/clientset_generated.go
index fddb29cff..5bf70a998 100644
--- a/generated/clientset/versioned/fake/clientset_generated.go
+++ b/client-go/onmetalapi/fake/clientset_generated.go
@@ -18,15 +18,15 @@
package fake
import (
- clientset "github.com/onmetal/onmetal-api/generated/clientset/versioned"
- computev1alpha1 "github.com/onmetal/onmetal-api/generated/clientset/versioned/typed/compute/v1alpha1"
- fakecomputev1alpha1 "github.com/onmetal/onmetal-api/generated/clientset/versioned/typed/compute/v1alpha1/fake"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/generated/clientset/versioned/typed/ipam/v1alpha1"
- fakeipamv1alpha1 "github.com/onmetal/onmetal-api/generated/clientset/versioned/typed/ipam/v1alpha1/fake"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/generated/clientset/versioned/typed/networking/v1alpha1"
- fakenetworkingv1alpha1 "github.com/onmetal/onmetal-api/generated/clientset/versioned/typed/networking/v1alpha1/fake"
- storagev1alpha1 "github.com/onmetal/onmetal-api/generated/clientset/versioned/typed/storage/v1alpha1"
- fakestoragev1alpha1 "github.com/onmetal/onmetal-api/generated/clientset/versioned/typed/storage/v1alpha1/fake"
+ clientset "github.com/onmetal/onmetal-api/client-go/onmetalapi"
+ computev1alpha1 "github.com/onmetal/onmetal-api/client-go/onmetalapi/typed/compute/v1alpha1"
+ fakecomputev1alpha1 "github.com/onmetal/onmetal-api/client-go/onmetalapi/typed/compute/v1alpha1/fake"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/client-go/onmetalapi/typed/ipam/v1alpha1"
+ fakeipamv1alpha1 "github.com/onmetal/onmetal-api/client-go/onmetalapi/typed/ipam/v1alpha1/fake"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/client-go/onmetalapi/typed/networking/v1alpha1"
+ fakenetworkingv1alpha1 "github.com/onmetal/onmetal-api/client-go/onmetalapi/typed/networking/v1alpha1/fake"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/client-go/onmetalapi/typed/storage/v1alpha1"
+ fakestoragev1alpha1 "github.com/onmetal/onmetal-api/client-go/onmetalapi/typed/storage/v1alpha1/fake"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/watch"
"k8s.io/client-go/discovery"
diff --git a/generated/clientset/internalversion/fake/doc.go b/client-go/onmetalapi/fake/doc.go
similarity index 100%
rename from generated/clientset/internalversion/fake/doc.go
rename to client-go/onmetalapi/fake/doc.go
diff --git a/generated/clientset/versioned/fake/register.go b/client-go/onmetalapi/fake/register.go
similarity index 86%
rename from generated/clientset/versioned/fake/register.go
rename to client-go/onmetalapi/fake/register.go
index 4101c7d10..3a47e254b 100644
--- a/generated/clientset/versioned/fake/register.go
+++ b/client-go/onmetalapi/fake/register.go
@@ -18,10 +18,10 @@
package fake
import (
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/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/generated/clientset/internalversion/scheme/doc.go b/client-go/onmetalapi/scheme/doc.go
similarity index 100%
rename from generated/clientset/internalversion/scheme/doc.go
rename to client-go/onmetalapi/scheme/doc.go
diff --git a/generated/clientset/versioned/scheme/register.go b/client-go/onmetalapi/scheme/register.go
similarity index 87%
rename from generated/clientset/versioned/scheme/register.go
rename to client-go/onmetalapi/scheme/register.go
index 5aa4e8436..6675acd47 100644
--- a/generated/clientset/versioned/scheme/register.go
+++ b/client-go/onmetalapi/scheme/register.go
@@ -18,10 +18,10 @@
package scheme
import (
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/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/generated/clientset/versioned/typed/compute/v1alpha1/compute_client.go b/client-go/onmetalapi/typed/compute/v1alpha1/compute_client.go
similarity index 96%
rename from generated/clientset/versioned/typed/compute/v1alpha1/compute_client.go
rename to client-go/onmetalapi/typed/compute/v1alpha1/compute_client.go
index ecb881dad..52099d299 100644
--- a/generated/clientset/versioned/typed/compute/v1alpha1/compute_client.go
+++ b/client-go/onmetalapi/typed/compute/v1alpha1/compute_client.go
@@ -20,8 +20,8 @@ package v1alpha1
import (
"net/http"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
rest "k8s.io/client-go/rest"
)
diff --git a/generated/clientset/versioned/typed/compute/v1alpha1/doc.go b/client-go/onmetalapi/typed/compute/v1alpha1/doc.go
similarity index 100%
rename from generated/clientset/versioned/typed/compute/v1alpha1/doc.go
rename to client-go/onmetalapi/typed/compute/v1alpha1/doc.go
diff --git a/generated/clientset/internalversion/typed/compute/internalversion/fake/doc.go b/client-go/onmetalapi/typed/compute/v1alpha1/fake/doc.go
similarity index 100%
rename from generated/clientset/internalversion/typed/compute/internalversion/fake/doc.go
rename to client-go/onmetalapi/typed/compute/v1alpha1/fake/doc.go
diff --git a/generated/clientset/versioned/typed/compute/v1alpha1/fake/fake_compute_client.go b/client-go/onmetalapi/typed/compute/v1alpha1/fake/fake_compute_client.go
similarity index 93%
rename from generated/clientset/versioned/typed/compute/v1alpha1/fake/fake_compute_client.go
rename to client-go/onmetalapi/typed/compute/v1alpha1/fake/fake_compute_client.go
index 4afb53e60..7a58d92a6 100644
--- a/generated/clientset/versioned/typed/compute/v1alpha1/fake/fake_compute_client.go
+++ b/client-go/onmetalapi/typed/compute/v1alpha1/fake/fake_compute_client.go
@@ -18,7 +18,7 @@
package fake
import (
- v1alpha1 "github.com/onmetal/onmetal-api/generated/clientset/versioned/typed/compute/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/onmetalapi/typed/compute/v1alpha1"
rest "k8s.io/client-go/rest"
testing "k8s.io/client-go/testing"
)
diff --git a/generated/clientset/versioned/typed/compute/v1alpha1/fake/fake_machine.go b/client-go/onmetalapi/typed/compute/v1alpha1/fake/fake_machine.go
similarity index 98%
rename from generated/clientset/versioned/typed/compute/v1alpha1/fake/fake_machine.go
rename to client-go/onmetalapi/typed/compute/v1alpha1/fake/fake_machine.go
index 5d36f4eb6..286237802 100644
--- a/generated/clientset/versioned/typed/compute/v1alpha1/fake/fake_machine.go
+++ b/client-go/onmetalapi/typed/compute/v1alpha1/fake/fake_machine.go
@@ -20,7 +20,7 @@ package fake
import (
"context"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/compute/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/generated/clientset/versioned/typed/compute/v1alpha1/fake/fake_machineclass.go b/client-go/onmetalapi/typed/compute/v1alpha1/fake/fake_machineclass.go
similarity index 98%
rename from generated/clientset/versioned/typed/compute/v1alpha1/fake/fake_machineclass.go
rename to client-go/onmetalapi/typed/compute/v1alpha1/fake/fake_machineclass.go
index 483123d82..76a5484c1 100644
--- a/generated/clientset/versioned/typed/compute/v1alpha1/fake/fake_machineclass.go
+++ b/client-go/onmetalapi/typed/compute/v1alpha1/fake/fake_machineclass.go
@@ -20,7 +20,7 @@ package fake
import (
"context"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/compute/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/generated/clientset/versioned/typed/compute/v1alpha1/fake/fake_machinepool.go b/client-go/onmetalapi/typed/compute/v1alpha1/fake/fake_machinepool.go
similarity index 98%
rename from generated/clientset/versioned/typed/compute/v1alpha1/fake/fake_machinepool.go
rename to client-go/onmetalapi/typed/compute/v1alpha1/fake/fake_machinepool.go
index 69adaa339..0f6ec6869 100644
--- a/generated/clientset/versioned/typed/compute/v1alpha1/fake/fake_machinepool.go
+++ b/client-go/onmetalapi/typed/compute/v1alpha1/fake/fake_machinepool.go
@@ -20,7 +20,7 @@ package fake
import (
"context"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/compute/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/generated/clientset/versioned/typed/compute/v1alpha1/generated_expansion.go b/client-go/onmetalapi/typed/compute/v1alpha1/generated_expansion.go
similarity index 100%
rename from generated/clientset/versioned/typed/compute/v1alpha1/generated_expansion.go
rename to client-go/onmetalapi/typed/compute/v1alpha1/generated_expansion.go
diff --git a/generated/clientset/versioned/typed/compute/v1alpha1/machine.go b/client-go/onmetalapi/typed/compute/v1alpha1/machine.go
similarity index 97%
rename from generated/clientset/versioned/typed/compute/v1alpha1/machine.go
rename to client-go/onmetalapi/typed/compute/v1alpha1/machine.go
index 52299fd4d..d593b689a 100644
--- a/generated/clientset/versioned/typed/compute/v1alpha1/machine.go
+++ b/client-go/onmetalapi/typed/compute/v1alpha1/machine.go
@@ -21,8 +21,8 @@ import (
"context"
"time"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ scheme "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
diff --git a/generated/clientset/versioned/typed/compute/v1alpha1/machineclass.go b/client-go/onmetalapi/typed/compute/v1alpha1/machineclass.go
similarity index 97%
rename from generated/clientset/versioned/typed/compute/v1alpha1/machineclass.go
rename to client-go/onmetalapi/typed/compute/v1alpha1/machineclass.go
index 2d0144dd9..b09e3ed7c 100644
--- a/generated/clientset/versioned/typed/compute/v1alpha1/machineclass.go
+++ b/client-go/onmetalapi/typed/compute/v1alpha1/machineclass.go
@@ -21,8 +21,8 @@ import (
"context"
"time"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ scheme "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
diff --git a/generated/clientset/versioned/typed/compute/v1alpha1/machinepool.go b/client-go/onmetalapi/typed/compute/v1alpha1/machinepool.go
similarity index 97%
rename from generated/clientset/versioned/typed/compute/v1alpha1/machinepool.go
rename to client-go/onmetalapi/typed/compute/v1alpha1/machinepool.go
index c28947003..71ebbee86 100644
--- a/generated/clientset/versioned/typed/compute/v1alpha1/machinepool.go
+++ b/client-go/onmetalapi/typed/compute/v1alpha1/machinepool.go
@@ -21,8 +21,8 @@ import (
"context"
"time"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ scheme "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
diff --git a/generated/clientset/versioned/typed/ipam/v1alpha1/doc.go b/client-go/onmetalapi/typed/ipam/v1alpha1/doc.go
similarity index 100%
rename from generated/clientset/versioned/typed/ipam/v1alpha1/doc.go
rename to client-go/onmetalapi/typed/ipam/v1alpha1/doc.go
diff --git a/generated/clientset/internalversion/typed/ipam/internalversion/fake/doc.go b/client-go/onmetalapi/typed/ipam/v1alpha1/fake/doc.go
similarity index 100%
rename from generated/clientset/internalversion/typed/ipam/internalversion/fake/doc.go
rename to client-go/onmetalapi/typed/ipam/v1alpha1/fake/doc.go
diff --git a/generated/clientset/versioned/typed/ipam/v1alpha1/fake/fake_ipam_client.go b/client-go/onmetalapi/typed/ipam/v1alpha1/fake/fake_ipam_client.go
similarity index 93%
rename from generated/clientset/versioned/typed/ipam/v1alpha1/fake/fake_ipam_client.go
rename to client-go/onmetalapi/typed/ipam/v1alpha1/fake/fake_ipam_client.go
index 03d5eb0f0..330aec6c8 100644
--- a/generated/clientset/versioned/typed/ipam/v1alpha1/fake/fake_ipam_client.go
+++ b/client-go/onmetalapi/typed/ipam/v1alpha1/fake/fake_ipam_client.go
@@ -18,7 +18,7 @@
package fake
import (
- v1alpha1 "github.com/onmetal/onmetal-api/generated/clientset/versioned/typed/ipam/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/onmetalapi/typed/ipam/v1alpha1"
rest "k8s.io/client-go/rest"
testing "k8s.io/client-go/testing"
)
diff --git a/generated/clientset/versioned/typed/ipam/v1alpha1/fake/fake_prefix.go b/client-go/onmetalapi/typed/ipam/v1alpha1/fake/fake_prefix.go
similarity index 98%
rename from generated/clientset/versioned/typed/ipam/v1alpha1/fake/fake_prefix.go
rename to client-go/onmetalapi/typed/ipam/v1alpha1/fake/fake_prefix.go
index 072f94888..26e8830de 100644
--- a/generated/clientset/versioned/typed/ipam/v1alpha1/fake/fake_prefix.go
+++ b/client-go/onmetalapi/typed/ipam/v1alpha1/fake/fake_prefix.go
@@ -20,7 +20,7 @@ package fake
import (
"context"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/ipam/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/generated/clientset/versioned/typed/ipam/v1alpha1/fake/fake_prefixallocation.go b/client-go/onmetalapi/typed/ipam/v1alpha1/fake/fake_prefixallocation.go
similarity index 98%
rename from generated/clientset/versioned/typed/ipam/v1alpha1/fake/fake_prefixallocation.go
rename to client-go/onmetalapi/typed/ipam/v1alpha1/fake/fake_prefixallocation.go
index cf017063c..b7f294339 100644
--- a/generated/clientset/versioned/typed/ipam/v1alpha1/fake/fake_prefixallocation.go
+++ b/client-go/onmetalapi/typed/ipam/v1alpha1/fake/fake_prefixallocation.go
@@ -20,7 +20,7 @@ package fake
import (
"context"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/ipam/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/generated/clientset/versioned/typed/ipam/v1alpha1/generated_expansion.go b/client-go/onmetalapi/typed/ipam/v1alpha1/generated_expansion.go
similarity index 100%
rename from generated/clientset/versioned/typed/ipam/v1alpha1/generated_expansion.go
rename to client-go/onmetalapi/typed/ipam/v1alpha1/generated_expansion.go
diff --git a/generated/clientset/versioned/typed/ipam/v1alpha1/ipam_client.go b/client-go/onmetalapi/typed/ipam/v1alpha1/ipam_client.go
similarity index 96%
rename from generated/clientset/versioned/typed/ipam/v1alpha1/ipam_client.go
rename to client-go/onmetalapi/typed/ipam/v1alpha1/ipam_client.go
index d6fc02310..0775e5d93 100644
--- a/generated/clientset/versioned/typed/ipam/v1alpha1/ipam_client.go
+++ b/client-go/onmetalapi/typed/ipam/v1alpha1/ipam_client.go
@@ -20,8 +20,8 @@ package v1alpha1
import (
"net/http"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
- "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
rest "k8s.io/client-go/rest"
)
diff --git a/generated/clientset/versioned/typed/ipam/v1alpha1/prefix.go b/client-go/onmetalapi/typed/ipam/v1alpha1/prefix.go
similarity index 97%
rename from generated/clientset/versioned/typed/ipam/v1alpha1/prefix.go
rename to client-go/onmetalapi/typed/ipam/v1alpha1/prefix.go
index ba3b33b3d..5dfaef528 100644
--- a/generated/clientset/versioned/typed/ipam/v1alpha1/prefix.go
+++ b/client-go/onmetalapi/typed/ipam/v1alpha1/prefix.go
@@ -21,8 +21,8 @@ import (
"context"
"time"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ scheme "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
diff --git a/generated/clientset/versioned/typed/ipam/v1alpha1/prefixallocation.go b/client-go/onmetalapi/typed/ipam/v1alpha1/prefixallocation.go
similarity index 98%
rename from generated/clientset/versioned/typed/ipam/v1alpha1/prefixallocation.go
rename to client-go/onmetalapi/typed/ipam/v1alpha1/prefixallocation.go
index cc196f74f..a82c34ce8 100644
--- a/generated/clientset/versioned/typed/ipam/v1alpha1/prefixallocation.go
+++ b/client-go/onmetalapi/typed/ipam/v1alpha1/prefixallocation.go
@@ -21,8 +21,8 @@ import (
"context"
"time"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ scheme "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
diff --git a/generated/clientset/versioned/typed/networking/v1alpha1/aliasprefix.go b/client-go/onmetalapi/typed/networking/v1alpha1/aliasprefix.go
similarity index 97%
rename from generated/clientset/versioned/typed/networking/v1alpha1/aliasprefix.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/aliasprefix.go
index 0eae37400..d297ef418 100644
--- a/generated/clientset/versioned/typed/networking/v1alpha1/aliasprefix.go
+++ b/client-go/onmetalapi/typed/networking/v1alpha1/aliasprefix.go
@@ -21,8 +21,8 @@ import (
"context"
"time"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ scheme "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
diff --git a/generated/clientset/versioned/typed/networking/v1alpha1/aliasprefixrouting.go b/client-go/onmetalapi/typed/networking/v1alpha1/aliasprefixrouting.go
similarity index 97%
rename from generated/clientset/versioned/typed/networking/v1alpha1/aliasprefixrouting.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/aliasprefixrouting.go
index cd3e92f96..a8821fdae 100644
--- a/generated/clientset/versioned/typed/networking/v1alpha1/aliasprefixrouting.go
+++ b/client-go/onmetalapi/typed/networking/v1alpha1/aliasprefixrouting.go
@@ -21,8 +21,8 @@ import (
"context"
"time"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ scheme "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
diff --git a/generated/clientset/versioned/typed/networking/v1alpha1/doc.go b/client-go/onmetalapi/typed/networking/v1alpha1/doc.go
similarity index 100%
rename from generated/clientset/versioned/typed/networking/v1alpha1/doc.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/doc.go
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/fake/doc.go b/client-go/onmetalapi/typed/networking/v1alpha1/fake/doc.go
similarity index 100%
rename from generated/clientset/internalversion/typed/networking/internalversion/fake/doc.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/fake/doc.go
diff --git a/generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_aliasprefix.go b/client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_aliasprefix.go
similarity index 98%
rename from generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_aliasprefix.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_aliasprefix.go
index 1b3881d82..1e89b21a2 100644
--- a/generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_aliasprefix.go
+++ b/client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_aliasprefix.go
@@ -20,7 +20,7 @@ package fake
import (
"context"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/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/generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_aliasprefixrouting.go b/client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_aliasprefixrouting.go
similarity index 98%
rename from generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_aliasprefixrouting.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_aliasprefixrouting.go
index aa6e61e45..41346228c 100644
--- a/generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_aliasprefixrouting.go
+++ b/client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_aliasprefixrouting.go
@@ -20,7 +20,7 @@ package fake
import (
"context"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/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/generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_loadbalancer.go b/client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_loadbalancer.go
similarity index 98%
rename from generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_loadbalancer.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_loadbalancer.go
index f1a730646..1ed2dddd8 100644
--- a/generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_loadbalancer.go
+++ b/client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_loadbalancer.go
@@ -20,7 +20,7 @@ package fake
import (
"context"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/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/generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_loadbalancerrouting.go b/client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_loadbalancerrouting.go
similarity index 98%
rename from generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_loadbalancerrouting.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_loadbalancerrouting.go
index 81fd5fe56..60e325da0 100644
--- a/generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_loadbalancerrouting.go
+++ b/client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_loadbalancerrouting.go
@@ -20,7 +20,7 @@ package fake
import (
"context"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/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/generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_natgateway.go b/client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_natgateway.go
similarity index 98%
rename from generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_natgateway.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_natgateway.go
index 291a4c56a..be54e8868 100644
--- a/generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_natgateway.go
+++ b/client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_natgateway.go
@@ -20,7 +20,7 @@ package fake
import (
"context"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/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/generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_natgatewayrouting.go b/client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_natgatewayrouting.go
similarity index 98%
rename from generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_natgatewayrouting.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_natgatewayrouting.go
index 70acf8acf..10f58adc8 100644
--- a/generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_natgatewayrouting.go
+++ b/client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_natgatewayrouting.go
@@ -20,7 +20,7 @@ package fake
import (
"context"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/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/generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_network.go b/client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_network.go
similarity index 98%
rename from generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_network.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_network.go
index 3d46d8b9b..90d622688 100644
--- a/generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_network.go
+++ b/client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_network.go
@@ -20,7 +20,7 @@ package fake
import (
"context"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/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/generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_networking_client.go b/client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_networking_client.go
similarity index 95%
rename from generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_networking_client.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_networking_client.go
index ed069753b..60bcbdcad 100644
--- a/generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_networking_client.go
+++ b/client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_networking_client.go
@@ -18,7 +18,7 @@
package fake
import (
- v1alpha1 "github.com/onmetal/onmetal-api/generated/clientset/versioned/typed/networking/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/onmetalapi/typed/networking/v1alpha1"
rest "k8s.io/client-go/rest"
testing "k8s.io/client-go/testing"
)
diff --git a/generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_networkinterface.go b/client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_networkinterface.go
similarity index 98%
rename from generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_networkinterface.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_networkinterface.go
index 376841617..b954f36e9 100644
--- a/generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_networkinterface.go
+++ b/client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_networkinterface.go
@@ -20,7 +20,7 @@ package fake
import (
"context"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/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/generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_virtualip.go b/client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_virtualip.go
similarity index 98%
rename from generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_virtualip.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_virtualip.go
index dc0d3baff..a04944ae3 100644
--- a/generated/clientset/versioned/typed/networking/v1alpha1/fake/fake_virtualip.go
+++ b/client-go/onmetalapi/typed/networking/v1alpha1/fake/fake_virtualip.go
@@ -20,7 +20,7 @@ package fake
import (
"context"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/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/generated/clientset/versioned/typed/networking/v1alpha1/generated_expansion.go b/client-go/onmetalapi/typed/networking/v1alpha1/generated_expansion.go
similarity index 100%
rename from generated/clientset/versioned/typed/networking/v1alpha1/generated_expansion.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/generated_expansion.go
diff --git a/generated/clientset/versioned/typed/networking/v1alpha1/loadbalancer.go b/client-go/onmetalapi/typed/networking/v1alpha1/loadbalancer.go
similarity index 97%
rename from generated/clientset/versioned/typed/networking/v1alpha1/loadbalancer.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/loadbalancer.go
index dcaa88c53..6b8475f7b 100644
--- a/generated/clientset/versioned/typed/networking/v1alpha1/loadbalancer.go
+++ b/client-go/onmetalapi/typed/networking/v1alpha1/loadbalancer.go
@@ -21,8 +21,8 @@ import (
"context"
"time"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ scheme "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
diff --git a/generated/clientset/versioned/typed/networking/v1alpha1/loadbalancerrouting.go b/client-go/onmetalapi/typed/networking/v1alpha1/loadbalancerrouting.go
similarity index 97%
rename from generated/clientset/versioned/typed/networking/v1alpha1/loadbalancerrouting.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/loadbalancerrouting.go
index cb1c76b1a..0419c40bc 100644
--- a/generated/clientset/versioned/typed/networking/v1alpha1/loadbalancerrouting.go
+++ b/client-go/onmetalapi/typed/networking/v1alpha1/loadbalancerrouting.go
@@ -21,8 +21,8 @@ import (
"context"
"time"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ scheme "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
diff --git a/generated/clientset/versioned/typed/networking/v1alpha1/natgateway.go b/client-go/onmetalapi/typed/networking/v1alpha1/natgateway.go
similarity index 97%
rename from generated/clientset/versioned/typed/networking/v1alpha1/natgateway.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/natgateway.go
index 4bd3dc3e7..f7bda39a7 100644
--- a/generated/clientset/versioned/typed/networking/v1alpha1/natgateway.go
+++ b/client-go/onmetalapi/typed/networking/v1alpha1/natgateway.go
@@ -21,8 +21,8 @@ import (
"context"
"time"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ scheme "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
diff --git a/generated/clientset/versioned/typed/networking/v1alpha1/natgatewayrouting.go b/client-go/onmetalapi/typed/networking/v1alpha1/natgatewayrouting.go
similarity index 97%
rename from generated/clientset/versioned/typed/networking/v1alpha1/natgatewayrouting.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/natgatewayrouting.go
index 590a25b01..70841f812 100644
--- a/generated/clientset/versioned/typed/networking/v1alpha1/natgatewayrouting.go
+++ b/client-go/onmetalapi/typed/networking/v1alpha1/natgatewayrouting.go
@@ -21,8 +21,8 @@ import (
"context"
"time"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ scheme "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
diff --git a/generated/clientset/versioned/typed/networking/v1alpha1/network.go b/client-go/onmetalapi/typed/networking/v1alpha1/network.go
similarity index 97%
rename from generated/clientset/versioned/typed/networking/v1alpha1/network.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/network.go
index bba8ecc1d..03045696c 100644
--- a/generated/clientset/versioned/typed/networking/v1alpha1/network.go
+++ b/client-go/onmetalapi/typed/networking/v1alpha1/network.go
@@ -21,8 +21,8 @@ import (
"context"
"time"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ scheme "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
diff --git a/generated/clientset/versioned/typed/networking/v1alpha1/networking_client.go b/client-go/onmetalapi/typed/networking/v1alpha1/networking_client.go
similarity index 96%
rename from generated/clientset/versioned/typed/networking/v1alpha1/networking_client.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/networking_client.go
index 37002a9e4..555671ada 100644
--- a/generated/clientset/versioned/typed/networking/v1alpha1/networking_client.go
+++ b/client-go/onmetalapi/typed/networking/v1alpha1/networking_client.go
@@ -20,8 +20,8 @@ package v1alpha1
import (
"net/http"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
rest "k8s.io/client-go/rest"
)
diff --git a/generated/clientset/versioned/typed/networking/v1alpha1/networkinterface.go b/client-go/onmetalapi/typed/networking/v1alpha1/networkinterface.go
similarity index 98%
rename from generated/clientset/versioned/typed/networking/v1alpha1/networkinterface.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/networkinterface.go
index 7196a6f67..af01354ce 100644
--- a/generated/clientset/versioned/typed/networking/v1alpha1/networkinterface.go
+++ b/client-go/onmetalapi/typed/networking/v1alpha1/networkinterface.go
@@ -21,8 +21,8 @@ import (
"context"
"time"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ scheme "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
diff --git a/generated/clientset/versioned/typed/networking/v1alpha1/virtualip.go b/client-go/onmetalapi/typed/networking/v1alpha1/virtualip.go
similarity index 97%
rename from generated/clientset/versioned/typed/networking/v1alpha1/virtualip.go
rename to client-go/onmetalapi/typed/networking/v1alpha1/virtualip.go
index 79bbf1551..30f4c7d8e 100644
--- a/generated/clientset/versioned/typed/networking/v1alpha1/virtualip.go
+++ b/client-go/onmetalapi/typed/networking/v1alpha1/virtualip.go
@@ -21,8 +21,8 @@ import (
"context"
"time"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ scheme "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
diff --git a/generated/clientset/versioned/typed/storage/v1alpha1/doc.go b/client-go/onmetalapi/typed/storage/v1alpha1/doc.go
similarity index 100%
rename from generated/clientset/versioned/typed/storage/v1alpha1/doc.go
rename to client-go/onmetalapi/typed/storage/v1alpha1/doc.go
diff --git a/generated/clientset/internalversion/typed/storage/internalversion/fake/doc.go b/client-go/onmetalapi/typed/storage/v1alpha1/fake/doc.go
similarity index 100%
rename from generated/clientset/internalversion/typed/storage/internalversion/fake/doc.go
rename to client-go/onmetalapi/typed/storage/v1alpha1/fake/doc.go
diff --git a/generated/clientset/versioned/typed/storage/v1alpha1/fake/fake_storage_client.go b/client-go/onmetalapi/typed/storage/v1alpha1/fake/fake_storage_client.go
similarity index 93%
rename from generated/clientset/versioned/typed/storage/v1alpha1/fake/fake_storage_client.go
rename to client-go/onmetalapi/typed/storage/v1alpha1/fake/fake_storage_client.go
index 0d8ca0b24..75a1c7d77 100644
--- a/generated/clientset/versioned/typed/storage/v1alpha1/fake/fake_storage_client.go
+++ b/client-go/onmetalapi/typed/storage/v1alpha1/fake/fake_storage_client.go
@@ -18,7 +18,7 @@
package fake
import (
- v1alpha1 "github.com/onmetal/onmetal-api/generated/clientset/versioned/typed/storage/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/client-go/onmetalapi/typed/storage/v1alpha1"
rest "k8s.io/client-go/rest"
testing "k8s.io/client-go/testing"
)
diff --git a/generated/clientset/versioned/typed/storage/v1alpha1/fake/fake_volume.go b/client-go/onmetalapi/typed/storage/v1alpha1/fake/fake_volume.go
similarity index 98%
rename from generated/clientset/versioned/typed/storage/v1alpha1/fake/fake_volume.go
rename to client-go/onmetalapi/typed/storage/v1alpha1/fake/fake_volume.go
index 9f80a3a3a..8b8d8be29 100644
--- a/generated/clientset/versioned/typed/storage/v1alpha1/fake/fake_volume.go
+++ b/client-go/onmetalapi/typed/storage/v1alpha1/fake/fake_volume.go
@@ -20,7 +20,7 @@ package fake
import (
"context"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/storage/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/generated/clientset/versioned/typed/storage/v1alpha1/fake/fake_volumeclass.go b/client-go/onmetalapi/typed/storage/v1alpha1/fake/fake_volumeclass.go
similarity index 98%
rename from generated/clientset/versioned/typed/storage/v1alpha1/fake/fake_volumeclass.go
rename to client-go/onmetalapi/typed/storage/v1alpha1/fake/fake_volumeclass.go
index 0f31a1b14..7fb585d78 100644
--- a/generated/clientset/versioned/typed/storage/v1alpha1/fake/fake_volumeclass.go
+++ b/client-go/onmetalapi/typed/storage/v1alpha1/fake/fake_volumeclass.go
@@ -20,7 +20,7 @@ package fake
import (
"context"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/storage/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/generated/clientset/versioned/typed/storage/v1alpha1/fake/fake_volumepool.go b/client-go/onmetalapi/typed/storage/v1alpha1/fake/fake_volumepool.go
similarity index 98%
rename from generated/clientset/versioned/typed/storage/v1alpha1/fake/fake_volumepool.go
rename to client-go/onmetalapi/typed/storage/v1alpha1/fake/fake_volumepool.go
index 92ed16cc9..38bb4a2a9 100644
--- a/generated/clientset/versioned/typed/storage/v1alpha1/fake/fake_volumepool.go
+++ b/client-go/onmetalapi/typed/storage/v1alpha1/fake/fake_volumepool.go
@@ -20,7 +20,7 @@ package fake
import (
"context"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/storage/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/generated/clientset/versioned/typed/storage/v1alpha1/generated_expansion.go b/client-go/onmetalapi/typed/storage/v1alpha1/generated_expansion.go
similarity index 100%
rename from generated/clientset/versioned/typed/storage/v1alpha1/generated_expansion.go
rename to client-go/onmetalapi/typed/storage/v1alpha1/generated_expansion.go
diff --git a/generated/clientset/versioned/typed/storage/v1alpha1/storage_client.go b/client-go/onmetalapi/typed/storage/v1alpha1/storage_client.go
similarity index 96%
rename from generated/clientset/versioned/typed/storage/v1alpha1/storage_client.go
rename to client-go/onmetalapi/typed/storage/v1alpha1/storage_client.go
index c69d05542..e4e653439 100644
--- a/generated/clientset/versioned/typed/storage/v1alpha1/storage_client.go
+++ b/client-go/onmetalapi/typed/storage/v1alpha1/storage_client.go
@@ -20,8 +20,8 @@ package v1alpha1
import (
"net/http"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
- "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
+ "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
rest "k8s.io/client-go/rest"
)
diff --git a/generated/clientset/versioned/typed/storage/v1alpha1/volume.go b/client-go/onmetalapi/typed/storage/v1alpha1/volume.go
similarity index 97%
rename from generated/clientset/versioned/typed/storage/v1alpha1/volume.go
rename to client-go/onmetalapi/typed/storage/v1alpha1/volume.go
index f6f219458..76ecf7ccd 100644
--- a/generated/clientset/versioned/typed/storage/v1alpha1/volume.go
+++ b/client-go/onmetalapi/typed/storage/v1alpha1/volume.go
@@ -21,8 +21,8 @@ import (
"context"
"time"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
+ scheme "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
diff --git a/generated/clientset/versioned/typed/storage/v1alpha1/volumeclass.go b/client-go/onmetalapi/typed/storage/v1alpha1/volumeclass.go
similarity index 97%
rename from generated/clientset/versioned/typed/storage/v1alpha1/volumeclass.go
rename to client-go/onmetalapi/typed/storage/v1alpha1/volumeclass.go
index 5918143bb..5ce89eb83 100644
--- a/generated/clientset/versioned/typed/storage/v1alpha1/volumeclass.go
+++ b/client-go/onmetalapi/typed/storage/v1alpha1/volumeclass.go
@@ -21,8 +21,8 @@ import (
"context"
"time"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
+ scheme "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
diff --git a/generated/clientset/versioned/typed/storage/v1alpha1/volumepool.go b/client-go/onmetalapi/typed/storage/v1alpha1/volumepool.go
similarity index 97%
rename from generated/clientset/versioned/typed/storage/v1alpha1/volumepool.go
rename to client-go/onmetalapi/typed/storage/v1alpha1/volumepool.go
index 21a00282d..f453022aa 100644
--- a/generated/clientset/versioned/typed/storage/v1alpha1/volumepool.go
+++ b/client-go/onmetalapi/typed/storage/v1alpha1/volumepool.go
@@ -21,8 +21,8 @@ import (
"context"
"time"
- v1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/versioned/scheme"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
+ scheme "github.com/onmetal/onmetal-api/client-go/onmetalapi/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
diff --git a/generated/openapi/api_violations.report b/client-go/openapi/api_violations.report
similarity index 88%
rename from generated/openapi/api_violations.report
rename to client-go/openapi/api_violations.report
index ed7d943a1..23907ef0b 100644
--- a/generated/openapi/api_violations.report
+++ b/client-go/openapi/api_violations.report
@@ -1,34 +1,34 @@
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/compute/v1alpha1,MachinePoolSpec,Taints
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/compute/v1alpha1,MachinePoolStatus,Addresses
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/compute/v1alpha1,MachinePoolStatus,AvailableMachineClasses
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/compute/v1alpha1,MachinePoolStatus,Conditions
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/compute/v1alpha1,MachineSpec,EFIVars
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/compute/v1alpha1,MachineSpec,NetworkInterfaces
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/compute/v1alpha1,MachineSpec,Tolerations
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/compute/v1alpha1,MachineSpec,Volumes
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/compute/v1alpha1,MachineStatus,Conditions
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/compute/v1alpha1,MachineStatus,NetworkInterfaces
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/compute/v1alpha1,MachineStatus,Volumes
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/compute/v1alpha1,NetworkInterfaceStatus,IPs
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/ipam/v1alpha1,PrefixStatus,Used
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,AliasPrefixRouting,Destinations
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,LoadBalancerRouting,Destinations
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,LoadBalancerSpec,IPFamilies
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,LoadBalancerSpec,Ports
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,LoadBalancerStatus,IPs
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,NATGatewayDestination,IPs
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,NATGatewayRouting,Destinations
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,NATGatewaySpec,IPFamilies
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,NATGatewaySpec,IPs
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,NATGatewayStatus,IPs
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,NetworkInterfaceSpec,IPFamilies
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,NetworkInterfaceSpec,IPs
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,NetworkInterfaceStatus,IPs
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/storage/v1alpha1,VolumePoolSpec,Taints
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/storage/v1alpha1,VolumePoolStatus,AvailableVolumeClasses
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/storage/v1alpha1,VolumePoolStatus,Conditions
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/storage/v1alpha1,VolumeSpec,Tolerations
-API rule violation: list_type_missing,github.com/onmetal/onmetal-api/apis/storage/v1alpha1,VolumeStatus,Conditions
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/compute/v1alpha1,MachinePoolSpec,Taints
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/compute/v1alpha1,MachinePoolStatus,Addresses
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/compute/v1alpha1,MachinePoolStatus,AvailableMachineClasses
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/compute/v1alpha1,MachinePoolStatus,Conditions
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/compute/v1alpha1,MachineSpec,EFIVars
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/compute/v1alpha1,MachineSpec,NetworkInterfaces
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/compute/v1alpha1,MachineSpec,Tolerations
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/compute/v1alpha1,MachineSpec,Volumes
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/compute/v1alpha1,MachineStatus,Conditions
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/compute/v1alpha1,MachineStatus,NetworkInterfaces
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/compute/v1alpha1,MachineStatus,Volumes
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/compute/v1alpha1,NetworkInterfaceStatus,IPs
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/ipam/v1alpha1,PrefixStatus,Used
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/networking/v1alpha1,AliasPrefixRouting,Destinations
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/networking/v1alpha1,LoadBalancerRouting,Destinations
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/networking/v1alpha1,LoadBalancerSpec,IPFamilies
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/networking/v1alpha1,LoadBalancerSpec,Ports
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/networking/v1alpha1,LoadBalancerStatus,IPs
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/networking/v1alpha1,NATGatewayDestination,IPs
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/networking/v1alpha1,NATGatewayRouting,Destinations
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/networking/v1alpha1,NATGatewaySpec,IPFamilies
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/networking/v1alpha1,NATGatewaySpec,IPs
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/networking/v1alpha1,NATGatewayStatus,IPs
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/networking/v1alpha1,NetworkInterfaceSpec,IPFamilies
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/networking/v1alpha1,NetworkInterfaceSpec,IPs
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/networking/v1alpha1,NetworkInterfaceStatus,IPs
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/storage/v1alpha1,VolumePoolSpec,Taints
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/storage/v1alpha1,VolumePoolStatus,AvailableVolumeClasses
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/storage/v1alpha1,VolumePoolStatus,Conditions
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/storage/v1alpha1,VolumeSpec,Tolerations
+API rule violation: list_type_missing,github.com/onmetal/onmetal-api/api/storage/v1alpha1,VolumeStatus,Conditions
API rule violation: list_type_missing,k8s.io/api/core/v1,AvoidPods,PreferAvoidPods
API rule violation: list_type_missing,k8s.io/api/core/v1,Capabilities,Add
API rule violation: list_type_missing,k8s.io/api/core/v1,Capabilities,Drop
@@ -152,16 +152,16 @@ API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,Table
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,UpdateOptions,DryRun
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/runtime,RawExtension,Raw
API rule violation: list_type_missing,k8s.io/apimachinery/pkg/runtime,Unknown,Raw
-API rule violation: names_match,github.com/onmetal/onmetal-api/apis/compute/v1alpha1,MachineSpec,ImagePullSecretRef
-API rule violation: names_match,github.com/onmetal/onmetal-api/apis/compute/v1alpha1,NetworkInterfaceStatus,IPs
-API rule violation: names_match,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,LoadBalancerStatus,IPs
-API rule violation: names_match,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,NATGatewayDestination,IPs
-API rule violation: names_match,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,NATGatewaySpec,IPs
-API rule violation: names_match,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,NATGatewayStatus,IPs
-API rule violation: names_match,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,NetworkInterfaceSpec,IPs
-API rule violation: names_match,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,NetworkInterfaceStatus,IPs
-API rule violation: names_match,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,NetworkInterfaceStatus,LastPhaseTransitionTime
-API rule violation: names_match,github.com/onmetal/onmetal-api/apis/networking/v1alpha1,VirtualIPStatus,LastPhaseTransitionTime
+API rule violation: names_match,github.com/onmetal/onmetal-api/api/compute/v1alpha1,MachineSpec,ImagePullSecretRef
+API rule violation: names_match,github.com/onmetal/onmetal-api/api/compute/v1alpha1,NetworkInterfaceStatus,IPs
+API rule violation: names_match,github.com/onmetal/onmetal-api/api/networking/v1alpha1,LoadBalancerStatus,IPs
+API rule violation: names_match,github.com/onmetal/onmetal-api/api/networking/v1alpha1,NATGatewayDestination,IPs
+API rule violation: names_match,github.com/onmetal/onmetal-api/api/networking/v1alpha1,NATGatewaySpec,IPs
+API rule violation: names_match,github.com/onmetal/onmetal-api/api/networking/v1alpha1,NATGatewayStatus,IPs
+API rule violation: names_match,github.com/onmetal/onmetal-api/api/networking/v1alpha1,NetworkInterfaceSpec,IPs
+API rule violation: names_match,github.com/onmetal/onmetal-api/api/networking/v1alpha1,NetworkInterfaceStatus,IPs
+API rule violation: names_match,github.com/onmetal/onmetal-api/api/networking/v1alpha1,NetworkInterfaceStatus,LastPhaseTransitionTime
+API rule violation: names_match,github.com/onmetal/onmetal-api/api/networking/v1alpha1,VirtualIPStatus,LastPhaseTransitionTime
API rule violation: names_match,k8s.io/api/core/v1,AzureDiskVolumeSource,DataDiskURI
API rule violation: names_match,k8s.io/api/core/v1,ContainerStatus,LastTerminationState
API rule violation: names_match,k8s.io/api/core/v1,DaemonEndpoint,Port
diff --git a/generated/openapi/zz_generated.openapi.go b/client-go/openapi/zz_generated.openapi.go
similarity index 92%
rename from generated/openapi/zz_generated.openapi.go
rename to client-go/openapi/zz_generated.openapi.go
index 2ff22e3c9..8cdc357b1 100644
--- a/generated/openapi/zz_generated.openapi.go
+++ b/client-go/openapi/zz_generated.openapi.go
@@ -23,7 +23,7 @@
package openapi
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
resource "k8s.io/apimachinery/pkg/api/resource"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
common "k8s.io/kube-openapi/pkg/common"
@@ -32,375 +32,375 @@ import (
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition {
return map[string]common.OpenAPIDefinition{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.ConfigMapKeySelector": schema_onmetal_api_apis_common_v1alpha1_ConfigMapKeySelector(ref),
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.IP": schema_onmetal_api_apis_common_v1alpha1_IP(ref),
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.IPPrefix": schema_onmetal_api_apis_common_v1alpha1_IPPrefix(ref),
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.IPRange": schema_onmetal_api_apis_common_v1alpha1_IPRange(ref),
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.LocalUIDReference": schema_onmetal_api_apis_common_v1alpha1_LocalUIDReference(ref),
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.SecretKeySelector": schema_onmetal_api_apis_common_v1alpha1_SecretKeySelector(ref),
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.Taint": schema_onmetal_api_apis_common_v1alpha1_Taint(ref),
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.Toleration": schema_onmetal_api_apis_common_v1alpha1_Toleration(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.DaemonEndpoint": schema_onmetal_api_apis_compute_v1alpha1_DaemonEndpoint(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EFIVar": schema_onmetal_api_apis_compute_v1alpha1_EFIVar(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EmptyDiskVolumeSource": schema_onmetal_api_apis_compute_v1alpha1_EmptyDiskVolumeSource(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EmptyDiskVolumeStatus": schema_onmetal_api_apis_compute_v1alpha1_EmptyDiskVolumeStatus(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EphemeralNetworkInterfaceSource": schema_onmetal_api_apis_compute_v1alpha1_EphemeralNetworkInterfaceSource(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EphemeralVolumeSource": schema_onmetal_api_apis_compute_v1alpha1_EphemeralVolumeSource(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.Machine": schema_onmetal_api_apis_compute_v1alpha1_Machine(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachineClass": schema_onmetal_api_apis_compute_v1alpha1_MachineClass(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachineClassList": schema_onmetal_api_apis_compute_v1alpha1_MachineClassList(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachineCondition": schema_onmetal_api_apis_compute_v1alpha1_MachineCondition(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachineExecOptions": schema_onmetal_api_apis_compute_v1alpha1_MachineExecOptions(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachineList": schema_onmetal_api_apis_compute_v1alpha1_MachineList(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachinePool": schema_onmetal_api_apis_compute_v1alpha1_MachinePool(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachinePoolAddress": schema_onmetal_api_apis_compute_v1alpha1_MachinePoolAddress(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachinePoolCondition": schema_onmetal_api_apis_compute_v1alpha1_MachinePoolCondition(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachinePoolDaemonEndpoints": schema_onmetal_api_apis_compute_v1alpha1_MachinePoolDaemonEndpoints(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachinePoolList": schema_onmetal_api_apis_compute_v1alpha1_MachinePoolList(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachinePoolSpec": schema_onmetal_api_apis_compute_v1alpha1_MachinePoolSpec(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachinePoolStatus": schema_onmetal_api_apis_compute_v1alpha1_MachinePoolStatus(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachineSpec": schema_onmetal_api_apis_compute_v1alpha1_MachineSpec(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachineStatus": schema_onmetal_api_apis_compute_v1alpha1_MachineStatus(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.NetworkInterface": schema_onmetal_api_apis_compute_v1alpha1_NetworkInterface(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.NetworkInterfaceSource": schema_onmetal_api_apis_compute_v1alpha1_NetworkInterfaceSource(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.NetworkInterfaceStatus": schema_onmetal_api_apis_compute_v1alpha1_NetworkInterfaceStatus(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.ReferencedVolumeStatus": schema_onmetal_api_apis_compute_v1alpha1_ReferencedVolumeStatus(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.Volume": schema_onmetal_api_apis_compute_v1alpha1_Volume(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.VolumeSource": schema_onmetal_api_apis_compute_v1alpha1_VolumeSource(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.VolumeSourceStatus": schema_onmetal_api_apis_compute_v1alpha1_VolumeSourceStatus(ref),
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.VolumeStatus": schema_onmetal_api_apis_compute_v1alpha1_VolumeStatus(ref),
- "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.Prefix": schema_onmetal_api_apis_ipam_v1alpha1_Prefix(ref),
- "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixAllocation": schema_onmetal_api_apis_ipam_v1alpha1_PrefixAllocation(ref),
- "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixAllocationList": schema_onmetal_api_apis_ipam_v1alpha1_PrefixAllocationList(ref),
- "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixAllocationSpec": schema_onmetal_api_apis_ipam_v1alpha1_PrefixAllocationSpec(ref),
- "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixAllocationStatus": schema_onmetal_api_apis_ipam_v1alpha1_PrefixAllocationStatus(ref),
- "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixList": schema_onmetal_api_apis_ipam_v1alpha1_PrefixList(ref),
- "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixSpec": schema_onmetal_api_apis_ipam_v1alpha1_PrefixSpec(ref),
- "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixStatus": schema_onmetal_api_apis_ipam_v1alpha1_PrefixStatus(ref),
- "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixTemplateSpec": schema_onmetal_api_apis_ipam_v1alpha1_PrefixTemplateSpec(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.AliasPrefix": schema_onmetal_api_apis_networking_v1alpha1_AliasPrefix(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.AliasPrefixList": schema_onmetal_api_apis_networking_v1alpha1_AliasPrefixList(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.AliasPrefixRouting": schema_onmetal_api_apis_networking_v1alpha1_AliasPrefixRouting(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.AliasPrefixRoutingList": schema_onmetal_api_apis_networking_v1alpha1_AliasPrefixRoutingList(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.AliasPrefixSpec": schema_onmetal_api_apis_networking_v1alpha1_AliasPrefixSpec(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.AliasPrefixStatus": schema_onmetal_api_apis_networking_v1alpha1_AliasPrefixStatus(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.EphemeralPrefixSource": schema_onmetal_api_apis_networking_v1alpha1_EphemeralPrefixSource(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.EphemeralVirtualIPSource": schema_onmetal_api_apis_networking_v1alpha1_EphemeralVirtualIPSource(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.IPSource": schema_onmetal_api_apis_networking_v1alpha1_IPSource(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.LoadBalancer": schema_onmetal_api_apis_networking_v1alpha1_LoadBalancer(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.LoadBalancerList": schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerList(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.LoadBalancerPort": schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerPort(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.LoadBalancerRouting": schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerRouting(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.LoadBalancerRoutingList": schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerRoutingList(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.LoadBalancerSpec": schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerSpec(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.LoadBalancerStatus": schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerStatus(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGateway": schema_onmetal_api_apis_networking_v1alpha1_NATGateway(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewayDestination": schema_onmetal_api_apis_networking_v1alpha1_NATGatewayDestination(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewayDestinationIP": schema_onmetal_api_apis_networking_v1alpha1_NATGatewayDestinationIP(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewayIP": schema_onmetal_api_apis_networking_v1alpha1_NATGatewayIP(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewayIPStatus": schema_onmetal_api_apis_networking_v1alpha1_NATGatewayIPStatus(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewayList": schema_onmetal_api_apis_networking_v1alpha1_NATGatewayList(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewayRouting": schema_onmetal_api_apis_networking_v1alpha1_NATGatewayRouting(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewayRoutingList": schema_onmetal_api_apis_networking_v1alpha1_NATGatewayRoutingList(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewaySpec": schema_onmetal_api_apis_networking_v1alpha1_NATGatewaySpec(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewayStatus": schema_onmetal_api_apis_networking_v1alpha1_NATGatewayStatus(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.Network": schema_onmetal_api_apis_networking_v1alpha1_Network(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkInterface": schema_onmetal_api_apis_networking_v1alpha1_NetworkInterface(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkInterfaceList": schema_onmetal_api_apis_networking_v1alpha1_NetworkInterfaceList(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkInterfaceSpec": schema_onmetal_api_apis_networking_v1alpha1_NetworkInterfaceSpec(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkInterfaceStatus": schema_onmetal_api_apis_networking_v1alpha1_NetworkInterfaceStatus(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkInterfaceTemplateSpec": schema_onmetal_api_apis_networking_v1alpha1_NetworkInterfaceTemplateSpec(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkList": schema_onmetal_api_apis_networking_v1alpha1_NetworkList(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkSpec": schema_onmetal_api_apis_networking_v1alpha1_NetworkSpec(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkStatus": schema_onmetal_api_apis_networking_v1alpha1_NetworkStatus(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.PrefixSource": schema_onmetal_api_apis_networking_v1alpha1_PrefixSource(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.VirtualIP": schema_onmetal_api_apis_networking_v1alpha1_VirtualIP(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.VirtualIPList": schema_onmetal_api_apis_networking_v1alpha1_VirtualIPList(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.VirtualIPSource": schema_onmetal_api_apis_networking_v1alpha1_VirtualIPSource(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.VirtualIPSpec": schema_onmetal_api_apis_networking_v1alpha1_VirtualIPSpec(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.VirtualIPStatus": schema_onmetal_api_apis_networking_v1alpha1_VirtualIPStatus(ref),
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.VirtualIPTemplateSpec": schema_onmetal_api_apis_networking_v1alpha1_VirtualIPTemplateSpec(ref),
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.Volume": schema_onmetal_api_apis_storage_v1alpha1_Volume(ref),
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeAccess": schema_onmetal_api_apis_storage_v1alpha1_VolumeAccess(ref),
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeClass": schema_onmetal_api_apis_storage_v1alpha1_VolumeClass(ref),
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeClassList": schema_onmetal_api_apis_storage_v1alpha1_VolumeClassList(ref),
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeCondition": schema_onmetal_api_apis_storage_v1alpha1_VolumeCondition(ref),
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeList": schema_onmetal_api_apis_storage_v1alpha1_VolumeList(ref),
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumePool": schema_onmetal_api_apis_storage_v1alpha1_VolumePool(ref),
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumePoolCondition": schema_onmetal_api_apis_storage_v1alpha1_VolumePoolCondition(ref),
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumePoolList": schema_onmetal_api_apis_storage_v1alpha1_VolumePoolList(ref),
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumePoolSpec": schema_onmetal_api_apis_storage_v1alpha1_VolumePoolSpec(ref),
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumePoolStatus": schema_onmetal_api_apis_storage_v1alpha1_VolumePoolStatus(ref),
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeSpec": schema_onmetal_api_apis_storage_v1alpha1_VolumeSpec(ref),
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeStatus": schema_onmetal_api_apis_storage_v1alpha1_VolumeStatus(ref),
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeTemplateSpec": schema_onmetal_api_apis_storage_v1alpha1_VolumeTemplateSpec(ref),
- "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource": schema_k8sio_api_core_v1_AWSElasticBlockStoreVolumeSource(ref),
- "k8s.io/api/core/v1.Affinity": schema_k8sio_api_core_v1_Affinity(ref),
- "k8s.io/api/core/v1.AttachedVolume": schema_k8sio_api_core_v1_AttachedVolume(ref),
- "k8s.io/api/core/v1.AvoidPods": schema_k8sio_api_core_v1_AvoidPods(ref),
- "k8s.io/api/core/v1.AzureDiskVolumeSource": schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref),
- "k8s.io/api/core/v1.AzureFilePersistentVolumeSource": schema_k8sio_api_core_v1_AzureFilePersistentVolumeSource(ref),
- "k8s.io/api/core/v1.AzureFileVolumeSource": schema_k8sio_api_core_v1_AzureFileVolumeSource(ref),
- "k8s.io/api/core/v1.Binding": schema_k8sio_api_core_v1_Binding(ref),
- "k8s.io/api/core/v1.CSIPersistentVolumeSource": schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref),
- "k8s.io/api/core/v1.CSIVolumeSource": schema_k8sio_api_core_v1_CSIVolumeSource(ref),
- "k8s.io/api/core/v1.Capabilities": schema_k8sio_api_core_v1_Capabilities(ref),
- "k8s.io/api/core/v1.CephFSPersistentVolumeSource": schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref),
- "k8s.io/api/core/v1.CephFSVolumeSource": schema_k8sio_api_core_v1_CephFSVolumeSource(ref),
- "k8s.io/api/core/v1.CinderPersistentVolumeSource": schema_k8sio_api_core_v1_CinderPersistentVolumeSource(ref),
- "k8s.io/api/core/v1.CinderVolumeSource": schema_k8sio_api_core_v1_CinderVolumeSource(ref),
- "k8s.io/api/core/v1.ClientIPConfig": schema_k8sio_api_core_v1_ClientIPConfig(ref),
- "k8s.io/api/core/v1.ComponentCondition": schema_k8sio_api_core_v1_ComponentCondition(ref),
- "k8s.io/api/core/v1.ComponentStatus": schema_k8sio_api_core_v1_ComponentStatus(ref),
- "k8s.io/api/core/v1.ComponentStatusList": schema_k8sio_api_core_v1_ComponentStatusList(ref),
- "k8s.io/api/core/v1.ConfigMap": schema_k8sio_api_core_v1_ConfigMap(ref),
- "k8s.io/api/core/v1.ConfigMapEnvSource": schema_k8sio_api_core_v1_ConfigMapEnvSource(ref),
- "k8s.io/api/core/v1.ConfigMapKeySelector": schema_k8sio_api_core_v1_ConfigMapKeySelector(ref),
- "k8s.io/api/core/v1.ConfigMapList": schema_k8sio_api_core_v1_ConfigMapList(ref),
- "k8s.io/api/core/v1.ConfigMapNodeConfigSource": schema_k8sio_api_core_v1_ConfigMapNodeConfigSource(ref),
- "k8s.io/api/core/v1.ConfigMapProjection": schema_k8sio_api_core_v1_ConfigMapProjection(ref),
- "k8s.io/api/core/v1.ConfigMapVolumeSource": schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref),
- "k8s.io/api/core/v1.Container": schema_k8sio_api_core_v1_Container(ref),
- "k8s.io/api/core/v1.ContainerImage": schema_k8sio_api_core_v1_ContainerImage(ref),
- "k8s.io/api/core/v1.ContainerPort": schema_k8sio_api_core_v1_ContainerPort(ref),
- "k8s.io/api/core/v1.ContainerState": schema_k8sio_api_core_v1_ContainerState(ref),
- "k8s.io/api/core/v1.ContainerStateRunning": schema_k8sio_api_core_v1_ContainerStateRunning(ref),
- "k8s.io/api/core/v1.ContainerStateTerminated": schema_k8sio_api_core_v1_ContainerStateTerminated(ref),
- "k8s.io/api/core/v1.ContainerStateWaiting": schema_k8sio_api_core_v1_ContainerStateWaiting(ref),
- "k8s.io/api/core/v1.ContainerStatus": schema_k8sio_api_core_v1_ContainerStatus(ref),
- "k8s.io/api/core/v1.DaemonEndpoint": schema_k8sio_api_core_v1_DaemonEndpoint(ref),
- "k8s.io/api/core/v1.DownwardAPIProjection": schema_k8sio_api_core_v1_DownwardAPIProjection(ref),
- "k8s.io/api/core/v1.DownwardAPIVolumeFile": schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref),
- "k8s.io/api/core/v1.DownwardAPIVolumeSource": schema_k8sio_api_core_v1_DownwardAPIVolumeSource(ref),
- "k8s.io/api/core/v1.EmptyDirVolumeSource": schema_k8sio_api_core_v1_EmptyDirVolumeSource(ref),
- "k8s.io/api/core/v1.EndpointAddress": schema_k8sio_api_core_v1_EndpointAddress(ref),
- "k8s.io/api/core/v1.EndpointPort": schema_k8sio_api_core_v1_EndpointPort(ref),
- "k8s.io/api/core/v1.EndpointSubset": schema_k8sio_api_core_v1_EndpointSubset(ref),
- "k8s.io/api/core/v1.Endpoints": schema_k8sio_api_core_v1_Endpoints(ref),
- "k8s.io/api/core/v1.EndpointsList": schema_k8sio_api_core_v1_EndpointsList(ref),
- "k8s.io/api/core/v1.EnvFromSource": schema_k8sio_api_core_v1_EnvFromSource(ref),
- "k8s.io/api/core/v1.EnvVar": schema_k8sio_api_core_v1_EnvVar(ref),
- "k8s.io/api/core/v1.EnvVarSource": schema_k8sio_api_core_v1_EnvVarSource(ref),
- "k8s.io/api/core/v1.EphemeralContainer": schema_k8sio_api_core_v1_EphemeralContainer(ref),
- "k8s.io/api/core/v1.EphemeralContainerCommon": schema_k8sio_api_core_v1_EphemeralContainerCommon(ref),
- "k8s.io/api/core/v1.EphemeralVolumeSource": schema_k8sio_api_core_v1_EphemeralVolumeSource(ref),
- "k8s.io/api/core/v1.Event": schema_k8sio_api_core_v1_Event(ref),
- "k8s.io/api/core/v1.EventList": schema_k8sio_api_core_v1_EventList(ref),
- "k8s.io/api/core/v1.EventSeries": schema_k8sio_api_core_v1_EventSeries(ref),
- "k8s.io/api/core/v1.EventSource": schema_k8sio_api_core_v1_EventSource(ref),
- "k8s.io/api/core/v1.ExecAction": schema_k8sio_api_core_v1_ExecAction(ref),
- "k8s.io/api/core/v1.FCVolumeSource": schema_k8sio_api_core_v1_FCVolumeSource(ref),
- "k8s.io/api/core/v1.FlexPersistentVolumeSource": schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref),
- "k8s.io/api/core/v1.FlexVolumeSource": schema_k8sio_api_core_v1_FlexVolumeSource(ref),
- "k8s.io/api/core/v1.FlockerVolumeSource": schema_k8sio_api_core_v1_FlockerVolumeSource(ref),
- "k8s.io/api/core/v1.GCEPersistentDiskVolumeSource": schema_k8sio_api_core_v1_GCEPersistentDiskVolumeSource(ref),
- "k8s.io/api/core/v1.GRPCAction": schema_k8sio_api_core_v1_GRPCAction(ref),
- "k8s.io/api/core/v1.GitRepoVolumeSource": schema_k8sio_api_core_v1_GitRepoVolumeSource(ref),
- "k8s.io/api/core/v1.GlusterfsPersistentVolumeSource": schema_k8sio_api_core_v1_GlusterfsPersistentVolumeSource(ref),
- "k8s.io/api/core/v1.GlusterfsVolumeSource": schema_k8sio_api_core_v1_GlusterfsVolumeSource(ref),
- "k8s.io/api/core/v1.HTTPGetAction": schema_k8sio_api_core_v1_HTTPGetAction(ref),
- "k8s.io/api/core/v1.HTTPHeader": schema_k8sio_api_core_v1_HTTPHeader(ref),
- "k8s.io/api/core/v1.HostAlias": schema_k8sio_api_core_v1_HostAlias(ref),
- "k8s.io/api/core/v1.HostPathVolumeSource": schema_k8sio_api_core_v1_HostPathVolumeSource(ref),
- "k8s.io/api/core/v1.ISCSIPersistentVolumeSource": schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref),
- "k8s.io/api/core/v1.ISCSIVolumeSource": schema_k8sio_api_core_v1_ISCSIVolumeSource(ref),
- "k8s.io/api/core/v1.KeyToPath": schema_k8sio_api_core_v1_KeyToPath(ref),
- "k8s.io/api/core/v1.Lifecycle": schema_k8sio_api_core_v1_Lifecycle(ref),
- "k8s.io/api/core/v1.LifecycleHandler": schema_k8sio_api_core_v1_LifecycleHandler(ref),
- "k8s.io/api/core/v1.LimitRange": schema_k8sio_api_core_v1_LimitRange(ref),
- "k8s.io/api/core/v1.LimitRangeItem": schema_k8sio_api_core_v1_LimitRangeItem(ref),
- "k8s.io/api/core/v1.LimitRangeList": schema_k8sio_api_core_v1_LimitRangeList(ref),
- "k8s.io/api/core/v1.LimitRangeSpec": schema_k8sio_api_core_v1_LimitRangeSpec(ref),
- "k8s.io/api/core/v1.List": schema_k8sio_api_core_v1_List(ref),
- "k8s.io/api/core/v1.LoadBalancerIngress": schema_k8sio_api_core_v1_LoadBalancerIngress(ref),
- "k8s.io/api/core/v1.LoadBalancerStatus": schema_k8sio_api_core_v1_LoadBalancerStatus(ref),
- "k8s.io/api/core/v1.LocalObjectReference": schema_k8sio_api_core_v1_LocalObjectReference(ref),
- "k8s.io/api/core/v1.LocalVolumeSource": schema_k8sio_api_core_v1_LocalVolumeSource(ref),
- "k8s.io/api/core/v1.NFSVolumeSource": schema_k8sio_api_core_v1_NFSVolumeSource(ref),
- "k8s.io/api/core/v1.Namespace": schema_k8sio_api_core_v1_Namespace(ref),
- "k8s.io/api/core/v1.NamespaceCondition": schema_k8sio_api_core_v1_NamespaceCondition(ref),
- "k8s.io/api/core/v1.NamespaceList": schema_k8sio_api_core_v1_NamespaceList(ref),
- "k8s.io/api/core/v1.NamespaceSpec": schema_k8sio_api_core_v1_NamespaceSpec(ref),
- "k8s.io/api/core/v1.NamespaceStatus": schema_k8sio_api_core_v1_NamespaceStatus(ref),
- "k8s.io/api/core/v1.Node": schema_k8sio_api_core_v1_Node(ref),
- "k8s.io/api/core/v1.NodeAddress": schema_k8sio_api_core_v1_NodeAddress(ref),
- "k8s.io/api/core/v1.NodeAffinity": schema_k8sio_api_core_v1_NodeAffinity(ref),
- "k8s.io/api/core/v1.NodeCondition": schema_k8sio_api_core_v1_NodeCondition(ref),
- "k8s.io/api/core/v1.NodeConfigSource": schema_k8sio_api_core_v1_NodeConfigSource(ref),
- "k8s.io/api/core/v1.NodeConfigStatus": schema_k8sio_api_core_v1_NodeConfigStatus(ref),
- "k8s.io/api/core/v1.NodeDaemonEndpoints": schema_k8sio_api_core_v1_NodeDaemonEndpoints(ref),
- "k8s.io/api/core/v1.NodeList": schema_k8sio_api_core_v1_NodeList(ref),
- "k8s.io/api/core/v1.NodeProxyOptions": schema_k8sio_api_core_v1_NodeProxyOptions(ref),
- "k8s.io/api/core/v1.NodeResources": schema_k8sio_api_core_v1_NodeResources(ref),
- "k8s.io/api/core/v1.NodeSelector": schema_k8sio_api_core_v1_NodeSelector(ref),
- "k8s.io/api/core/v1.NodeSelectorRequirement": schema_k8sio_api_core_v1_NodeSelectorRequirement(ref),
- "k8s.io/api/core/v1.NodeSelectorTerm": schema_k8sio_api_core_v1_NodeSelectorTerm(ref),
- "k8s.io/api/core/v1.NodeSpec": schema_k8sio_api_core_v1_NodeSpec(ref),
- "k8s.io/api/core/v1.NodeStatus": schema_k8sio_api_core_v1_NodeStatus(ref),
- "k8s.io/api/core/v1.NodeSystemInfo": schema_k8sio_api_core_v1_NodeSystemInfo(ref),
- "k8s.io/api/core/v1.ObjectFieldSelector": schema_k8sio_api_core_v1_ObjectFieldSelector(ref),
- "k8s.io/api/core/v1.ObjectReference": schema_k8sio_api_core_v1_ObjectReference(ref),
- "k8s.io/api/core/v1.PersistentVolume": schema_k8sio_api_core_v1_PersistentVolume(ref),
- "k8s.io/api/core/v1.PersistentVolumeClaim": schema_k8sio_api_core_v1_PersistentVolumeClaim(ref),
- "k8s.io/api/core/v1.PersistentVolumeClaimCondition": schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref),
- "k8s.io/api/core/v1.PersistentVolumeClaimList": schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref),
- "k8s.io/api/core/v1.PersistentVolumeClaimSpec": schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref),
- "k8s.io/api/core/v1.PersistentVolumeClaimStatus": schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref),
- "k8s.io/api/core/v1.PersistentVolumeClaimTemplate": schema_k8sio_api_core_v1_PersistentVolumeClaimTemplate(ref),
- "k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeClaimVolumeSource(ref),
- "k8s.io/api/core/v1.PersistentVolumeList": schema_k8sio_api_core_v1_PersistentVolumeList(ref),
- "k8s.io/api/core/v1.PersistentVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeSource(ref),
- "k8s.io/api/core/v1.PersistentVolumeSpec": schema_k8sio_api_core_v1_PersistentVolumeSpec(ref),
- "k8s.io/api/core/v1.PersistentVolumeStatus": schema_k8sio_api_core_v1_PersistentVolumeStatus(ref),
- "k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource": schema_k8sio_api_core_v1_PhotonPersistentDiskVolumeSource(ref),
- "k8s.io/api/core/v1.Pod": schema_k8sio_api_core_v1_Pod(ref),
- "k8s.io/api/core/v1.PodAffinity": schema_k8sio_api_core_v1_PodAffinity(ref),
- "k8s.io/api/core/v1.PodAffinityTerm": schema_k8sio_api_core_v1_PodAffinityTerm(ref),
- "k8s.io/api/core/v1.PodAntiAffinity": schema_k8sio_api_core_v1_PodAntiAffinity(ref),
- "k8s.io/api/core/v1.PodAttachOptions": schema_k8sio_api_core_v1_PodAttachOptions(ref),
- "k8s.io/api/core/v1.PodCondition": schema_k8sio_api_core_v1_PodCondition(ref),
- "k8s.io/api/core/v1.PodDNSConfig": schema_k8sio_api_core_v1_PodDNSConfig(ref),
- "k8s.io/api/core/v1.PodDNSConfigOption": schema_k8sio_api_core_v1_PodDNSConfigOption(ref),
- "k8s.io/api/core/v1.PodExecOptions": schema_k8sio_api_core_v1_PodExecOptions(ref),
- "k8s.io/api/core/v1.PodIP": schema_k8sio_api_core_v1_PodIP(ref),
- "k8s.io/api/core/v1.PodList": schema_k8sio_api_core_v1_PodList(ref),
- "k8s.io/api/core/v1.PodLogOptions": schema_k8sio_api_core_v1_PodLogOptions(ref),
- "k8s.io/api/core/v1.PodOS": schema_k8sio_api_core_v1_PodOS(ref),
- "k8s.io/api/core/v1.PodPortForwardOptions": schema_k8sio_api_core_v1_PodPortForwardOptions(ref),
- "k8s.io/api/core/v1.PodProxyOptions": schema_k8sio_api_core_v1_PodProxyOptions(ref),
- "k8s.io/api/core/v1.PodReadinessGate": schema_k8sio_api_core_v1_PodReadinessGate(ref),
- "k8s.io/api/core/v1.PodSecurityContext": schema_k8sio_api_core_v1_PodSecurityContext(ref),
- "k8s.io/api/core/v1.PodSignature": schema_k8sio_api_core_v1_PodSignature(ref),
- "k8s.io/api/core/v1.PodSpec": schema_k8sio_api_core_v1_PodSpec(ref),
- "k8s.io/api/core/v1.PodStatus": schema_k8sio_api_core_v1_PodStatus(ref),
- "k8s.io/api/core/v1.PodStatusResult": schema_k8sio_api_core_v1_PodStatusResult(ref),
- "k8s.io/api/core/v1.PodTemplate": schema_k8sio_api_core_v1_PodTemplate(ref),
- "k8s.io/api/core/v1.PodTemplateList": schema_k8sio_api_core_v1_PodTemplateList(ref),
- "k8s.io/api/core/v1.PodTemplateSpec": schema_k8sio_api_core_v1_PodTemplateSpec(ref),
- "k8s.io/api/core/v1.PortStatus": schema_k8sio_api_core_v1_PortStatus(ref),
- "k8s.io/api/core/v1.PortworxVolumeSource": schema_k8sio_api_core_v1_PortworxVolumeSource(ref),
- "k8s.io/api/core/v1.PreferAvoidPodsEntry": schema_k8sio_api_core_v1_PreferAvoidPodsEntry(ref),
- "k8s.io/api/core/v1.PreferredSchedulingTerm": schema_k8sio_api_core_v1_PreferredSchedulingTerm(ref),
- "k8s.io/api/core/v1.Probe": schema_k8sio_api_core_v1_Probe(ref),
- "k8s.io/api/core/v1.ProbeHandler": schema_k8sio_api_core_v1_ProbeHandler(ref),
- "k8s.io/api/core/v1.ProjectedVolumeSource": schema_k8sio_api_core_v1_ProjectedVolumeSource(ref),
- "k8s.io/api/core/v1.QuobyteVolumeSource": schema_k8sio_api_core_v1_QuobyteVolumeSource(ref),
- "k8s.io/api/core/v1.RBDPersistentVolumeSource": schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref),
- "k8s.io/api/core/v1.RBDVolumeSource": schema_k8sio_api_core_v1_RBDVolumeSource(ref),
- "k8s.io/api/core/v1.RangeAllocation": schema_k8sio_api_core_v1_RangeAllocation(ref),
- "k8s.io/api/core/v1.ReplicationController": schema_k8sio_api_core_v1_ReplicationController(ref),
- "k8s.io/api/core/v1.ReplicationControllerCondition": schema_k8sio_api_core_v1_ReplicationControllerCondition(ref),
- "k8s.io/api/core/v1.ReplicationControllerList": schema_k8sio_api_core_v1_ReplicationControllerList(ref),
- "k8s.io/api/core/v1.ReplicationControllerSpec": schema_k8sio_api_core_v1_ReplicationControllerSpec(ref),
- "k8s.io/api/core/v1.ReplicationControllerStatus": schema_k8sio_api_core_v1_ReplicationControllerStatus(ref),
- "k8s.io/api/core/v1.ResourceFieldSelector": schema_k8sio_api_core_v1_ResourceFieldSelector(ref),
- "k8s.io/api/core/v1.ResourceQuota": schema_k8sio_api_core_v1_ResourceQuota(ref),
- "k8s.io/api/core/v1.ResourceQuotaList": schema_k8sio_api_core_v1_ResourceQuotaList(ref),
- "k8s.io/api/core/v1.ResourceQuotaSpec": schema_k8sio_api_core_v1_ResourceQuotaSpec(ref),
- "k8s.io/api/core/v1.ResourceQuotaStatus": schema_k8sio_api_core_v1_ResourceQuotaStatus(ref),
- "k8s.io/api/core/v1.ResourceRequirements": schema_k8sio_api_core_v1_ResourceRequirements(ref),
- "k8s.io/api/core/v1.SELinuxOptions": schema_k8sio_api_core_v1_SELinuxOptions(ref),
- "k8s.io/api/core/v1.ScaleIOPersistentVolumeSource": schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref),
- "k8s.io/api/core/v1.ScaleIOVolumeSource": schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref),
- "k8s.io/api/core/v1.ScopeSelector": schema_k8sio_api_core_v1_ScopeSelector(ref),
- "k8s.io/api/core/v1.ScopedResourceSelectorRequirement": schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref),
- "k8s.io/api/core/v1.SeccompProfile": schema_k8sio_api_core_v1_SeccompProfile(ref),
- "k8s.io/api/core/v1.Secret": schema_k8sio_api_core_v1_Secret(ref),
- "k8s.io/api/core/v1.SecretEnvSource": schema_k8sio_api_core_v1_SecretEnvSource(ref),
- "k8s.io/api/core/v1.SecretKeySelector": schema_k8sio_api_core_v1_SecretKeySelector(ref),
- "k8s.io/api/core/v1.SecretList": schema_k8sio_api_core_v1_SecretList(ref),
- "k8s.io/api/core/v1.SecretProjection": schema_k8sio_api_core_v1_SecretProjection(ref),
- "k8s.io/api/core/v1.SecretReference": schema_k8sio_api_core_v1_SecretReference(ref),
- "k8s.io/api/core/v1.SecretVolumeSource": schema_k8sio_api_core_v1_SecretVolumeSource(ref),
- "k8s.io/api/core/v1.SecurityContext": schema_k8sio_api_core_v1_SecurityContext(ref),
- "k8s.io/api/core/v1.SerializedReference": schema_k8sio_api_core_v1_SerializedReference(ref),
- "k8s.io/api/core/v1.Service": schema_k8sio_api_core_v1_Service(ref),
- "k8s.io/api/core/v1.ServiceAccount": schema_k8sio_api_core_v1_ServiceAccount(ref),
- "k8s.io/api/core/v1.ServiceAccountList": schema_k8sio_api_core_v1_ServiceAccountList(ref),
- "k8s.io/api/core/v1.ServiceAccountTokenProjection": schema_k8sio_api_core_v1_ServiceAccountTokenProjection(ref),
- "k8s.io/api/core/v1.ServiceList": schema_k8sio_api_core_v1_ServiceList(ref),
- "k8s.io/api/core/v1.ServicePort": schema_k8sio_api_core_v1_ServicePort(ref),
- "k8s.io/api/core/v1.ServiceProxyOptions": schema_k8sio_api_core_v1_ServiceProxyOptions(ref),
- "k8s.io/api/core/v1.ServiceSpec": schema_k8sio_api_core_v1_ServiceSpec(ref),
- "k8s.io/api/core/v1.ServiceStatus": schema_k8sio_api_core_v1_ServiceStatus(ref),
- "k8s.io/api/core/v1.SessionAffinityConfig": schema_k8sio_api_core_v1_SessionAffinityConfig(ref),
- "k8s.io/api/core/v1.StorageOSPersistentVolumeSource": schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref),
- "k8s.io/api/core/v1.StorageOSVolumeSource": schema_k8sio_api_core_v1_StorageOSVolumeSource(ref),
- "k8s.io/api/core/v1.Sysctl": schema_k8sio_api_core_v1_Sysctl(ref),
- "k8s.io/api/core/v1.TCPSocketAction": schema_k8sio_api_core_v1_TCPSocketAction(ref),
- "k8s.io/api/core/v1.Taint": schema_k8sio_api_core_v1_Taint(ref),
- "k8s.io/api/core/v1.Toleration": schema_k8sio_api_core_v1_Toleration(ref),
- "k8s.io/api/core/v1.TopologySelectorLabelRequirement": schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref),
- "k8s.io/api/core/v1.TopologySelectorTerm": schema_k8sio_api_core_v1_TopologySelectorTerm(ref),
- "k8s.io/api/core/v1.TopologySpreadConstraint": schema_k8sio_api_core_v1_TopologySpreadConstraint(ref),
- "k8s.io/api/core/v1.TypedLocalObjectReference": schema_k8sio_api_core_v1_TypedLocalObjectReference(ref),
- "k8s.io/api/core/v1.Volume": schema_k8sio_api_core_v1_Volume(ref),
- "k8s.io/api/core/v1.VolumeDevice": schema_k8sio_api_core_v1_VolumeDevice(ref),
- "k8s.io/api/core/v1.VolumeMount": schema_k8sio_api_core_v1_VolumeMount(ref),
- "k8s.io/api/core/v1.VolumeNodeAffinity": schema_k8sio_api_core_v1_VolumeNodeAffinity(ref),
- "k8s.io/api/core/v1.VolumeProjection": schema_k8sio_api_core_v1_VolumeProjection(ref),
- "k8s.io/api/core/v1.VolumeSource": schema_k8sio_api_core_v1_VolumeSource(ref),
- "k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource": schema_k8sio_api_core_v1_VsphereVirtualDiskVolumeSource(ref),
- "k8s.io/api/core/v1.WeightedPodAffinityTerm": schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref),
- "k8s.io/api/core/v1.WindowsSecurityContextOptions": schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref),
- "k8s.io/apimachinery/pkg/api/resource.Quantity": schema_apimachinery_pkg_api_resource_Quantity(ref),
- "k8s.io/apimachinery/pkg/api/resource.int64Amount": schema_apimachinery_pkg_api_resource_int64Amount(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_onmetal_api_apis_common_v1alpha1_ConfigMapKeySelector(ref common.ReferenceCallback) common.OpenAPIDefinition {
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.ConfigMapKeySelector": schema_onmetal_api_api_common_v1alpha1_ConfigMapKeySelector(ref),
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.IP": schema_onmetal_api_api_common_v1alpha1_IP(ref),
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.IPPrefix": schema_onmetal_api_api_common_v1alpha1_IPPrefix(ref),
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.IPRange": schema_onmetal_api_api_common_v1alpha1_IPRange(ref),
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.LocalUIDReference": schema_onmetal_api_api_common_v1alpha1_LocalUIDReference(ref),
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.SecretKeySelector": schema_onmetal_api_api_common_v1alpha1_SecretKeySelector(ref),
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.Taint": schema_onmetal_api_api_common_v1alpha1_Taint(ref),
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.Toleration": schema_onmetal_api_api_common_v1alpha1_Toleration(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.DaemonEndpoint": schema_onmetal_api_api_compute_v1alpha1_DaemonEndpoint(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.EFIVar": schema_onmetal_api_api_compute_v1alpha1_EFIVar(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.EmptyDiskVolumeSource": schema_onmetal_api_api_compute_v1alpha1_EmptyDiskVolumeSource(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.EmptyDiskVolumeStatus": schema_onmetal_api_api_compute_v1alpha1_EmptyDiskVolumeStatus(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.EphemeralNetworkInterfaceSource": schema_onmetal_api_api_compute_v1alpha1_EphemeralNetworkInterfaceSource(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.EphemeralVolumeSource": schema_onmetal_api_api_compute_v1alpha1_EphemeralVolumeSource(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.Machine": schema_onmetal_api_api_compute_v1alpha1_Machine(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachineClass": schema_onmetal_api_api_compute_v1alpha1_MachineClass(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachineClassList": schema_onmetal_api_api_compute_v1alpha1_MachineClassList(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachineCondition": schema_onmetal_api_api_compute_v1alpha1_MachineCondition(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachineExecOptions": schema_onmetal_api_api_compute_v1alpha1_MachineExecOptions(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachineList": schema_onmetal_api_api_compute_v1alpha1_MachineList(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachinePool": schema_onmetal_api_api_compute_v1alpha1_MachinePool(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachinePoolAddress": schema_onmetal_api_api_compute_v1alpha1_MachinePoolAddress(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachinePoolCondition": schema_onmetal_api_api_compute_v1alpha1_MachinePoolCondition(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachinePoolDaemonEndpoints": schema_onmetal_api_api_compute_v1alpha1_MachinePoolDaemonEndpoints(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachinePoolList": schema_onmetal_api_api_compute_v1alpha1_MachinePoolList(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachinePoolSpec": schema_onmetal_api_api_compute_v1alpha1_MachinePoolSpec(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachinePoolStatus": schema_onmetal_api_api_compute_v1alpha1_MachinePoolStatus(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachineSpec": schema_onmetal_api_api_compute_v1alpha1_MachineSpec(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachineStatus": schema_onmetal_api_api_compute_v1alpha1_MachineStatus(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.NetworkInterface": schema_onmetal_api_api_compute_v1alpha1_NetworkInterface(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.NetworkInterfaceSource": schema_onmetal_api_api_compute_v1alpha1_NetworkInterfaceSource(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.NetworkInterfaceStatus": schema_onmetal_api_api_compute_v1alpha1_NetworkInterfaceStatus(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.ReferencedVolumeStatus": schema_onmetal_api_api_compute_v1alpha1_ReferencedVolumeStatus(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.Volume": schema_onmetal_api_api_compute_v1alpha1_Volume(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.VolumeSource": schema_onmetal_api_api_compute_v1alpha1_VolumeSource(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.VolumeSourceStatus": schema_onmetal_api_api_compute_v1alpha1_VolumeSourceStatus(ref),
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.VolumeStatus": schema_onmetal_api_api_compute_v1alpha1_VolumeStatus(ref),
+ "github.com/onmetal/onmetal-api/api/ipam/v1alpha1.Prefix": schema_onmetal_api_api_ipam_v1alpha1_Prefix(ref),
+ "github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixAllocation": schema_onmetal_api_api_ipam_v1alpha1_PrefixAllocation(ref),
+ "github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixAllocationList": schema_onmetal_api_api_ipam_v1alpha1_PrefixAllocationList(ref),
+ "github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixAllocationSpec": schema_onmetal_api_api_ipam_v1alpha1_PrefixAllocationSpec(ref),
+ "github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixAllocationStatus": schema_onmetal_api_api_ipam_v1alpha1_PrefixAllocationStatus(ref),
+ "github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixList": schema_onmetal_api_api_ipam_v1alpha1_PrefixList(ref),
+ "github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixSpec": schema_onmetal_api_api_ipam_v1alpha1_PrefixSpec(ref),
+ "github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixStatus": schema_onmetal_api_api_ipam_v1alpha1_PrefixStatus(ref),
+ "github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixTemplateSpec": schema_onmetal_api_api_ipam_v1alpha1_PrefixTemplateSpec(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.AliasPrefix": schema_onmetal_api_api_networking_v1alpha1_AliasPrefix(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.AliasPrefixList": schema_onmetal_api_api_networking_v1alpha1_AliasPrefixList(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.AliasPrefixRouting": schema_onmetal_api_api_networking_v1alpha1_AliasPrefixRouting(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.AliasPrefixRoutingList": schema_onmetal_api_api_networking_v1alpha1_AliasPrefixRoutingList(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.AliasPrefixSpec": schema_onmetal_api_api_networking_v1alpha1_AliasPrefixSpec(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.AliasPrefixStatus": schema_onmetal_api_api_networking_v1alpha1_AliasPrefixStatus(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.EphemeralPrefixSource": schema_onmetal_api_api_networking_v1alpha1_EphemeralPrefixSource(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.EphemeralVirtualIPSource": schema_onmetal_api_api_networking_v1alpha1_EphemeralVirtualIPSource(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.IPSource": schema_onmetal_api_api_networking_v1alpha1_IPSource(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.LoadBalancer": schema_onmetal_api_api_networking_v1alpha1_LoadBalancer(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.LoadBalancerList": schema_onmetal_api_api_networking_v1alpha1_LoadBalancerList(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.LoadBalancerPort": schema_onmetal_api_api_networking_v1alpha1_LoadBalancerPort(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.LoadBalancerRouting": schema_onmetal_api_api_networking_v1alpha1_LoadBalancerRouting(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.LoadBalancerRoutingList": schema_onmetal_api_api_networking_v1alpha1_LoadBalancerRoutingList(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.LoadBalancerSpec": schema_onmetal_api_api_networking_v1alpha1_LoadBalancerSpec(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.LoadBalancerStatus": schema_onmetal_api_api_networking_v1alpha1_LoadBalancerStatus(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGateway": schema_onmetal_api_api_networking_v1alpha1_NATGateway(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewayDestination": schema_onmetal_api_api_networking_v1alpha1_NATGatewayDestination(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewayDestinationIP": schema_onmetal_api_api_networking_v1alpha1_NATGatewayDestinationIP(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewayIP": schema_onmetal_api_api_networking_v1alpha1_NATGatewayIP(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewayIPStatus": schema_onmetal_api_api_networking_v1alpha1_NATGatewayIPStatus(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewayList": schema_onmetal_api_api_networking_v1alpha1_NATGatewayList(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewayRouting": schema_onmetal_api_api_networking_v1alpha1_NATGatewayRouting(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewayRoutingList": schema_onmetal_api_api_networking_v1alpha1_NATGatewayRoutingList(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewaySpec": schema_onmetal_api_api_networking_v1alpha1_NATGatewaySpec(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewayStatus": schema_onmetal_api_api_networking_v1alpha1_NATGatewayStatus(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.Network": schema_onmetal_api_api_networking_v1alpha1_Network(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkInterface": schema_onmetal_api_api_networking_v1alpha1_NetworkInterface(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkInterfaceList": schema_onmetal_api_api_networking_v1alpha1_NetworkInterfaceList(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkInterfaceSpec": schema_onmetal_api_api_networking_v1alpha1_NetworkInterfaceSpec(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkInterfaceStatus": schema_onmetal_api_api_networking_v1alpha1_NetworkInterfaceStatus(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkInterfaceTemplateSpec": schema_onmetal_api_api_networking_v1alpha1_NetworkInterfaceTemplateSpec(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkList": schema_onmetal_api_api_networking_v1alpha1_NetworkList(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkSpec": schema_onmetal_api_api_networking_v1alpha1_NetworkSpec(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkStatus": schema_onmetal_api_api_networking_v1alpha1_NetworkStatus(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.PrefixSource": schema_onmetal_api_api_networking_v1alpha1_PrefixSource(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.VirtualIP": schema_onmetal_api_api_networking_v1alpha1_VirtualIP(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.VirtualIPList": schema_onmetal_api_api_networking_v1alpha1_VirtualIPList(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.VirtualIPSource": schema_onmetal_api_api_networking_v1alpha1_VirtualIPSource(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.VirtualIPSpec": schema_onmetal_api_api_networking_v1alpha1_VirtualIPSpec(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.VirtualIPStatus": schema_onmetal_api_api_networking_v1alpha1_VirtualIPStatus(ref),
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.VirtualIPTemplateSpec": schema_onmetal_api_api_networking_v1alpha1_VirtualIPTemplateSpec(ref),
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.Volume": schema_onmetal_api_api_storage_v1alpha1_Volume(ref),
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeAccess": schema_onmetal_api_api_storage_v1alpha1_VolumeAccess(ref),
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeClass": schema_onmetal_api_api_storage_v1alpha1_VolumeClass(ref),
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeClassList": schema_onmetal_api_api_storage_v1alpha1_VolumeClassList(ref),
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeCondition": schema_onmetal_api_api_storage_v1alpha1_VolumeCondition(ref),
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeList": schema_onmetal_api_api_storage_v1alpha1_VolumeList(ref),
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumePool": schema_onmetal_api_api_storage_v1alpha1_VolumePool(ref),
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumePoolCondition": schema_onmetal_api_api_storage_v1alpha1_VolumePoolCondition(ref),
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumePoolList": schema_onmetal_api_api_storage_v1alpha1_VolumePoolList(ref),
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumePoolSpec": schema_onmetal_api_api_storage_v1alpha1_VolumePoolSpec(ref),
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumePoolStatus": schema_onmetal_api_api_storage_v1alpha1_VolumePoolStatus(ref),
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeSpec": schema_onmetal_api_api_storage_v1alpha1_VolumeSpec(ref),
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeStatus": schema_onmetal_api_api_storage_v1alpha1_VolumeStatus(ref),
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeTemplateSpec": schema_onmetal_api_api_storage_v1alpha1_VolumeTemplateSpec(ref),
+ "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource": schema_k8sio_api_core_v1_AWSElasticBlockStoreVolumeSource(ref),
+ "k8s.io/api/core/v1.Affinity": schema_k8sio_api_core_v1_Affinity(ref),
+ "k8s.io/api/core/v1.AttachedVolume": schema_k8sio_api_core_v1_AttachedVolume(ref),
+ "k8s.io/api/core/v1.AvoidPods": schema_k8sio_api_core_v1_AvoidPods(ref),
+ "k8s.io/api/core/v1.AzureDiskVolumeSource": schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref),
+ "k8s.io/api/core/v1.AzureFilePersistentVolumeSource": schema_k8sio_api_core_v1_AzureFilePersistentVolumeSource(ref),
+ "k8s.io/api/core/v1.AzureFileVolumeSource": schema_k8sio_api_core_v1_AzureFileVolumeSource(ref),
+ "k8s.io/api/core/v1.Binding": schema_k8sio_api_core_v1_Binding(ref),
+ "k8s.io/api/core/v1.CSIPersistentVolumeSource": schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref),
+ "k8s.io/api/core/v1.CSIVolumeSource": schema_k8sio_api_core_v1_CSIVolumeSource(ref),
+ "k8s.io/api/core/v1.Capabilities": schema_k8sio_api_core_v1_Capabilities(ref),
+ "k8s.io/api/core/v1.CephFSPersistentVolumeSource": schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref),
+ "k8s.io/api/core/v1.CephFSVolumeSource": schema_k8sio_api_core_v1_CephFSVolumeSource(ref),
+ "k8s.io/api/core/v1.CinderPersistentVolumeSource": schema_k8sio_api_core_v1_CinderPersistentVolumeSource(ref),
+ "k8s.io/api/core/v1.CinderVolumeSource": schema_k8sio_api_core_v1_CinderVolumeSource(ref),
+ "k8s.io/api/core/v1.ClientIPConfig": schema_k8sio_api_core_v1_ClientIPConfig(ref),
+ "k8s.io/api/core/v1.ComponentCondition": schema_k8sio_api_core_v1_ComponentCondition(ref),
+ "k8s.io/api/core/v1.ComponentStatus": schema_k8sio_api_core_v1_ComponentStatus(ref),
+ "k8s.io/api/core/v1.ComponentStatusList": schema_k8sio_api_core_v1_ComponentStatusList(ref),
+ "k8s.io/api/core/v1.ConfigMap": schema_k8sio_api_core_v1_ConfigMap(ref),
+ "k8s.io/api/core/v1.ConfigMapEnvSource": schema_k8sio_api_core_v1_ConfigMapEnvSource(ref),
+ "k8s.io/api/core/v1.ConfigMapKeySelector": schema_k8sio_api_core_v1_ConfigMapKeySelector(ref),
+ "k8s.io/api/core/v1.ConfigMapList": schema_k8sio_api_core_v1_ConfigMapList(ref),
+ "k8s.io/api/core/v1.ConfigMapNodeConfigSource": schema_k8sio_api_core_v1_ConfigMapNodeConfigSource(ref),
+ "k8s.io/api/core/v1.ConfigMapProjection": schema_k8sio_api_core_v1_ConfigMapProjection(ref),
+ "k8s.io/api/core/v1.ConfigMapVolumeSource": schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref),
+ "k8s.io/api/core/v1.Container": schema_k8sio_api_core_v1_Container(ref),
+ "k8s.io/api/core/v1.ContainerImage": schema_k8sio_api_core_v1_ContainerImage(ref),
+ "k8s.io/api/core/v1.ContainerPort": schema_k8sio_api_core_v1_ContainerPort(ref),
+ "k8s.io/api/core/v1.ContainerState": schema_k8sio_api_core_v1_ContainerState(ref),
+ "k8s.io/api/core/v1.ContainerStateRunning": schema_k8sio_api_core_v1_ContainerStateRunning(ref),
+ "k8s.io/api/core/v1.ContainerStateTerminated": schema_k8sio_api_core_v1_ContainerStateTerminated(ref),
+ "k8s.io/api/core/v1.ContainerStateWaiting": schema_k8sio_api_core_v1_ContainerStateWaiting(ref),
+ "k8s.io/api/core/v1.ContainerStatus": schema_k8sio_api_core_v1_ContainerStatus(ref),
+ "k8s.io/api/core/v1.DaemonEndpoint": schema_k8sio_api_core_v1_DaemonEndpoint(ref),
+ "k8s.io/api/core/v1.DownwardAPIProjection": schema_k8sio_api_core_v1_DownwardAPIProjection(ref),
+ "k8s.io/api/core/v1.DownwardAPIVolumeFile": schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref),
+ "k8s.io/api/core/v1.DownwardAPIVolumeSource": schema_k8sio_api_core_v1_DownwardAPIVolumeSource(ref),
+ "k8s.io/api/core/v1.EmptyDirVolumeSource": schema_k8sio_api_core_v1_EmptyDirVolumeSource(ref),
+ "k8s.io/api/core/v1.EndpointAddress": schema_k8sio_api_core_v1_EndpointAddress(ref),
+ "k8s.io/api/core/v1.EndpointPort": schema_k8sio_api_core_v1_EndpointPort(ref),
+ "k8s.io/api/core/v1.EndpointSubset": schema_k8sio_api_core_v1_EndpointSubset(ref),
+ "k8s.io/api/core/v1.Endpoints": schema_k8sio_api_core_v1_Endpoints(ref),
+ "k8s.io/api/core/v1.EndpointsList": schema_k8sio_api_core_v1_EndpointsList(ref),
+ "k8s.io/api/core/v1.EnvFromSource": schema_k8sio_api_core_v1_EnvFromSource(ref),
+ "k8s.io/api/core/v1.EnvVar": schema_k8sio_api_core_v1_EnvVar(ref),
+ "k8s.io/api/core/v1.EnvVarSource": schema_k8sio_api_core_v1_EnvVarSource(ref),
+ "k8s.io/api/core/v1.EphemeralContainer": schema_k8sio_api_core_v1_EphemeralContainer(ref),
+ "k8s.io/api/core/v1.EphemeralContainerCommon": schema_k8sio_api_core_v1_EphemeralContainerCommon(ref),
+ "k8s.io/api/core/v1.EphemeralVolumeSource": schema_k8sio_api_core_v1_EphemeralVolumeSource(ref),
+ "k8s.io/api/core/v1.Event": schema_k8sio_api_core_v1_Event(ref),
+ "k8s.io/api/core/v1.EventList": schema_k8sio_api_core_v1_EventList(ref),
+ "k8s.io/api/core/v1.EventSeries": schema_k8sio_api_core_v1_EventSeries(ref),
+ "k8s.io/api/core/v1.EventSource": schema_k8sio_api_core_v1_EventSource(ref),
+ "k8s.io/api/core/v1.ExecAction": schema_k8sio_api_core_v1_ExecAction(ref),
+ "k8s.io/api/core/v1.FCVolumeSource": schema_k8sio_api_core_v1_FCVolumeSource(ref),
+ "k8s.io/api/core/v1.FlexPersistentVolumeSource": schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref),
+ "k8s.io/api/core/v1.FlexVolumeSource": schema_k8sio_api_core_v1_FlexVolumeSource(ref),
+ "k8s.io/api/core/v1.FlockerVolumeSource": schema_k8sio_api_core_v1_FlockerVolumeSource(ref),
+ "k8s.io/api/core/v1.GCEPersistentDiskVolumeSource": schema_k8sio_api_core_v1_GCEPersistentDiskVolumeSource(ref),
+ "k8s.io/api/core/v1.GRPCAction": schema_k8sio_api_core_v1_GRPCAction(ref),
+ "k8s.io/api/core/v1.GitRepoVolumeSource": schema_k8sio_api_core_v1_GitRepoVolumeSource(ref),
+ "k8s.io/api/core/v1.GlusterfsPersistentVolumeSource": schema_k8sio_api_core_v1_GlusterfsPersistentVolumeSource(ref),
+ "k8s.io/api/core/v1.GlusterfsVolumeSource": schema_k8sio_api_core_v1_GlusterfsVolumeSource(ref),
+ "k8s.io/api/core/v1.HTTPGetAction": schema_k8sio_api_core_v1_HTTPGetAction(ref),
+ "k8s.io/api/core/v1.HTTPHeader": schema_k8sio_api_core_v1_HTTPHeader(ref),
+ "k8s.io/api/core/v1.HostAlias": schema_k8sio_api_core_v1_HostAlias(ref),
+ "k8s.io/api/core/v1.HostPathVolumeSource": schema_k8sio_api_core_v1_HostPathVolumeSource(ref),
+ "k8s.io/api/core/v1.ISCSIPersistentVolumeSource": schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref),
+ "k8s.io/api/core/v1.ISCSIVolumeSource": schema_k8sio_api_core_v1_ISCSIVolumeSource(ref),
+ "k8s.io/api/core/v1.KeyToPath": schema_k8sio_api_core_v1_KeyToPath(ref),
+ "k8s.io/api/core/v1.Lifecycle": schema_k8sio_api_core_v1_Lifecycle(ref),
+ "k8s.io/api/core/v1.LifecycleHandler": schema_k8sio_api_core_v1_LifecycleHandler(ref),
+ "k8s.io/api/core/v1.LimitRange": schema_k8sio_api_core_v1_LimitRange(ref),
+ "k8s.io/api/core/v1.LimitRangeItem": schema_k8sio_api_core_v1_LimitRangeItem(ref),
+ "k8s.io/api/core/v1.LimitRangeList": schema_k8sio_api_core_v1_LimitRangeList(ref),
+ "k8s.io/api/core/v1.LimitRangeSpec": schema_k8sio_api_core_v1_LimitRangeSpec(ref),
+ "k8s.io/api/core/v1.List": schema_k8sio_api_core_v1_List(ref),
+ "k8s.io/api/core/v1.LoadBalancerIngress": schema_k8sio_api_core_v1_LoadBalancerIngress(ref),
+ "k8s.io/api/core/v1.LoadBalancerStatus": schema_k8sio_api_core_v1_LoadBalancerStatus(ref),
+ "k8s.io/api/core/v1.LocalObjectReference": schema_k8sio_api_core_v1_LocalObjectReference(ref),
+ "k8s.io/api/core/v1.LocalVolumeSource": schema_k8sio_api_core_v1_LocalVolumeSource(ref),
+ "k8s.io/api/core/v1.NFSVolumeSource": schema_k8sio_api_core_v1_NFSVolumeSource(ref),
+ "k8s.io/api/core/v1.Namespace": schema_k8sio_api_core_v1_Namespace(ref),
+ "k8s.io/api/core/v1.NamespaceCondition": schema_k8sio_api_core_v1_NamespaceCondition(ref),
+ "k8s.io/api/core/v1.NamespaceList": schema_k8sio_api_core_v1_NamespaceList(ref),
+ "k8s.io/api/core/v1.NamespaceSpec": schema_k8sio_api_core_v1_NamespaceSpec(ref),
+ "k8s.io/api/core/v1.NamespaceStatus": schema_k8sio_api_core_v1_NamespaceStatus(ref),
+ "k8s.io/api/core/v1.Node": schema_k8sio_api_core_v1_Node(ref),
+ "k8s.io/api/core/v1.NodeAddress": schema_k8sio_api_core_v1_NodeAddress(ref),
+ "k8s.io/api/core/v1.NodeAffinity": schema_k8sio_api_core_v1_NodeAffinity(ref),
+ "k8s.io/api/core/v1.NodeCondition": schema_k8sio_api_core_v1_NodeCondition(ref),
+ "k8s.io/api/core/v1.NodeConfigSource": schema_k8sio_api_core_v1_NodeConfigSource(ref),
+ "k8s.io/api/core/v1.NodeConfigStatus": schema_k8sio_api_core_v1_NodeConfigStatus(ref),
+ "k8s.io/api/core/v1.NodeDaemonEndpoints": schema_k8sio_api_core_v1_NodeDaemonEndpoints(ref),
+ "k8s.io/api/core/v1.NodeList": schema_k8sio_api_core_v1_NodeList(ref),
+ "k8s.io/api/core/v1.NodeProxyOptions": schema_k8sio_api_core_v1_NodeProxyOptions(ref),
+ "k8s.io/api/core/v1.NodeResources": schema_k8sio_api_core_v1_NodeResources(ref),
+ "k8s.io/api/core/v1.NodeSelector": schema_k8sio_api_core_v1_NodeSelector(ref),
+ "k8s.io/api/core/v1.NodeSelectorRequirement": schema_k8sio_api_core_v1_NodeSelectorRequirement(ref),
+ "k8s.io/api/core/v1.NodeSelectorTerm": schema_k8sio_api_core_v1_NodeSelectorTerm(ref),
+ "k8s.io/api/core/v1.NodeSpec": schema_k8sio_api_core_v1_NodeSpec(ref),
+ "k8s.io/api/core/v1.NodeStatus": schema_k8sio_api_core_v1_NodeStatus(ref),
+ "k8s.io/api/core/v1.NodeSystemInfo": schema_k8sio_api_core_v1_NodeSystemInfo(ref),
+ "k8s.io/api/core/v1.ObjectFieldSelector": schema_k8sio_api_core_v1_ObjectFieldSelector(ref),
+ "k8s.io/api/core/v1.ObjectReference": schema_k8sio_api_core_v1_ObjectReference(ref),
+ "k8s.io/api/core/v1.PersistentVolume": schema_k8sio_api_core_v1_PersistentVolume(ref),
+ "k8s.io/api/core/v1.PersistentVolumeClaim": schema_k8sio_api_core_v1_PersistentVolumeClaim(ref),
+ "k8s.io/api/core/v1.PersistentVolumeClaimCondition": schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref),
+ "k8s.io/api/core/v1.PersistentVolumeClaimList": schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref),
+ "k8s.io/api/core/v1.PersistentVolumeClaimSpec": schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref),
+ "k8s.io/api/core/v1.PersistentVolumeClaimStatus": schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref),
+ "k8s.io/api/core/v1.PersistentVolumeClaimTemplate": schema_k8sio_api_core_v1_PersistentVolumeClaimTemplate(ref),
+ "k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeClaimVolumeSource(ref),
+ "k8s.io/api/core/v1.PersistentVolumeList": schema_k8sio_api_core_v1_PersistentVolumeList(ref),
+ "k8s.io/api/core/v1.PersistentVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeSource(ref),
+ "k8s.io/api/core/v1.PersistentVolumeSpec": schema_k8sio_api_core_v1_PersistentVolumeSpec(ref),
+ "k8s.io/api/core/v1.PersistentVolumeStatus": schema_k8sio_api_core_v1_PersistentVolumeStatus(ref),
+ "k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource": schema_k8sio_api_core_v1_PhotonPersistentDiskVolumeSource(ref),
+ "k8s.io/api/core/v1.Pod": schema_k8sio_api_core_v1_Pod(ref),
+ "k8s.io/api/core/v1.PodAffinity": schema_k8sio_api_core_v1_PodAffinity(ref),
+ "k8s.io/api/core/v1.PodAffinityTerm": schema_k8sio_api_core_v1_PodAffinityTerm(ref),
+ "k8s.io/api/core/v1.PodAntiAffinity": schema_k8sio_api_core_v1_PodAntiAffinity(ref),
+ "k8s.io/api/core/v1.PodAttachOptions": schema_k8sio_api_core_v1_PodAttachOptions(ref),
+ "k8s.io/api/core/v1.PodCondition": schema_k8sio_api_core_v1_PodCondition(ref),
+ "k8s.io/api/core/v1.PodDNSConfig": schema_k8sio_api_core_v1_PodDNSConfig(ref),
+ "k8s.io/api/core/v1.PodDNSConfigOption": schema_k8sio_api_core_v1_PodDNSConfigOption(ref),
+ "k8s.io/api/core/v1.PodExecOptions": schema_k8sio_api_core_v1_PodExecOptions(ref),
+ "k8s.io/api/core/v1.PodIP": schema_k8sio_api_core_v1_PodIP(ref),
+ "k8s.io/api/core/v1.PodList": schema_k8sio_api_core_v1_PodList(ref),
+ "k8s.io/api/core/v1.PodLogOptions": schema_k8sio_api_core_v1_PodLogOptions(ref),
+ "k8s.io/api/core/v1.PodOS": schema_k8sio_api_core_v1_PodOS(ref),
+ "k8s.io/api/core/v1.PodPortForwardOptions": schema_k8sio_api_core_v1_PodPortForwardOptions(ref),
+ "k8s.io/api/core/v1.PodProxyOptions": schema_k8sio_api_core_v1_PodProxyOptions(ref),
+ "k8s.io/api/core/v1.PodReadinessGate": schema_k8sio_api_core_v1_PodReadinessGate(ref),
+ "k8s.io/api/core/v1.PodSecurityContext": schema_k8sio_api_core_v1_PodSecurityContext(ref),
+ "k8s.io/api/core/v1.PodSignature": schema_k8sio_api_core_v1_PodSignature(ref),
+ "k8s.io/api/core/v1.PodSpec": schema_k8sio_api_core_v1_PodSpec(ref),
+ "k8s.io/api/core/v1.PodStatus": schema_k8sio_api_core_v1_PodStatus(ref),
+ "k8s.io/api/core/v1.PodStatusResult": schema_k8sio_api_core_v1_PodStatusResult(ref),
+ "k8s.io/api/core/v1.PodTemplate": schema_k8sio_api_core_v1_PodTemplate(ref),
+ "k8s.io/api/core/v1.PodTemplateList": schema_k8sio_api_core_v1_PodTemplateList(ref),
+ "k8s.io/api/core/v1.PodTemplateSpec": schema_k8sio_api_core_v1_PodTemplateSpec(ref),
+ "k8s.io/api/core/v1.PortStatus": schema_k8sio_api_core_v1_PortStatus(ref),
+ "k8s.io/api/core/v1.PortworxVolumeSource": schema_k8sio_api_core_v1_PortworxVolumeSource(ref),
+ "k8s.io/api/core/v1.PreferAvoidPodsEntry": schema_k8sio_api_core_v1_PreferAvoidPodsEntry(ref),
+ "k8s.io/api/core/v1.PreferredSchedulingTerm": schema_k8sio_api_core_v1_PreferredSchedulingTerm(ref),
+ "k8s.io/api/core/v1.Probe": schema_k8sio_api_core_v1_Probe(ref),
+ "k8s.io/api/core/v1.ProbeHandler": schema_k8sio_api_core_v1_ProbeHandler(ref),
+ "k8s.io/api/core/v1.ProjectedVolumeSource": schema_k8sio_api_core_v1_ProjectedVolumeSource(ref),
+ "k8s.io/api/core/v1.QuobyteVolumeSource": schema_k8sio_api_core_v1_QuobyteVolumeSource(ref),
+ "k8s.io/api/core/v1.RBDPersistentVolumeSource": schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref),
+ "k8s.io/api/core/v1.RBDVolumeSource": schema_k8sio_api_core_v1_RBDVolumeSource(ref),
+ "k8s.io/api/core/v1.RangeAllocation": schema_k8sio_api_core_v1_RangeAllocation(ref),
+ "k8s.io/api/core/v1.ReplicationController": schema_k8sio_api_core_v1_ReplicationController(ref),
+ "k8s.io/api/core/v1.ReplicationControllerCondition": schema_k8sio_api_core_v1_ReplicationControllerCondition(ref),
+ "k8s.io/api/core/v1.ReplicationControllerList": schema_k8sio_api_core_v1_ReplicationControllerList(ref),
+ "k8s.io/api/core/v1.ReplicationControllerSpec": schema_k8sio_api_core_v1_ReplicationControllerSpec(ref),
+ "k8s.io/api/core/v1.ReplicationControllerStatus": schema_k8sio_api_core_v1_ReplicationControllerStatus(ref),
+ "k8s.io/api/core/v1.ResourceFieldSelector": schema_k8sio_api_core_v1_ResourceFieldSelector(ref),
+ "k8s.io/api/core/v1.ResourceQuota": schema_k8sio_api_core_v1_ResourceQuota(ref),
+ "k8s.io/api/core/v1.ResourceQuotaList": schema_k8sio_api_core_v1_ResourceQuotaList(ref),
+ "k8s.io/api/core/v1.ResourceQuotaSpec": schema_k8sio_api_core_v1_ResourceQuotaSpec(ref),
+ "k8s.io/api/core/v1.ResourceQuotaStatus": schema_k8sio_api_core_v1_ResourceQuotaStatus(ref),
+ "k8s.io/api/core/v1.ResourceRequirements": schema_k8sio_api_core_v1_ResourceRequirements(ref),
+ "k8s.io/api/core/v1.SELinuxOptions": schema_k8sio_api_core_v1_SELinuxOptions(ref),
+ "k8s.io/api/core/v1.ScaleIOPersistentVolumeSource": schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref),
+ "k8s.io/api/core/v1.ScaleIOVolumeSource": schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref),
+ "k8s.io/api/core/v1.ScopeSelector": schema_k8sio_api_core_v1_ScopeSelector(ref),
+ "k8s.io/api/core/v1.ScopedResourceSelectorRequirement": schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref),
+ "k8s.io/api/core/v1.SeccompProfile": schema_k8sio_api_core_v1_SeccompProfile(ref),
+ "k8s.io/api/core/v1.Secret": schema_k8sio_api_core_v1_Secret(ref),
+ "k8s.io/api/core/v1.SecretEnvSource": schema_k8sio_api_core_v1_SecretEnvSource(ref),
+ "k8s.io/api/core/v1.SecretKeySelector": schema_k8sio_api_core_v1_SecretKeySelector(ref),
+ "k8s.io/api/core/v1.SecretList": schema_k8sio_api_core_v1_SecretList(ref),
+ "k8s.io/api/core/v1.SecretProjection": schema_k8sio_api_core_v1_SecretProjection(ref),
+ "k8s.io/api/core/v1.SecretReference": schema_k8sio_api_core_v1_SecretReference(ref),
+ "k8s.io/api/core/v1.SecretVolumeSource": schema_k8sio_api_core_v1_SecretVolumeSource(ref),
+ "k8s.io/api/core/v1.SecurityContext": schema_k8sio_api_core_v1_SecurityContext(ref),
+ "k8s.io/api/core/v1.SerializedReference": schema_k8sio_api_core_v1_SerializedReference(ref),
+ "k8s.io/api/core/v1.Service": schema_k8sio_api_core_v1_Service(ref),
+ "k8s.io/api/core/v1.ServiceAccount": schema_k8sio_api_core_v1_ServiceAccount(ref),
+ "k8s.io/api/core/v1.ServiceAccountList": schema_k8sio_api_core_v1_ServiceAccountList(ref),
+ "k8s.io/api/core/v1.ServiceAccountTokenProjection": schema_k8sio_api_core_v1_ServiceAccountTokenProjection(ref),
+ "k8s.io/api/core/v1.ServiceList": schema_k8sio_api_core_v1_ServiceList(ref),
+ "k8s.io/api/core/v1.ServicePort": schema_k8sio_api_core_v1_ServicePort(ref),
+ "k8s.io/api/core/v1.ServiceProxyOptions": schema_k8sio_api_core_v1_ServiceProxyOptions(ref),
+ "k8s.io/api/core/v1.ServiceSpec": schema_k8sio_api_core_v1_ServiceSpec(ref),
+ "k8s.io/api/core/v1.ServiceStatus": schema_k8sio_api_core_v1_ServiceStatus(ref),
+ "k8s.io/api/core/v1.SessionAffinityConfig": schema_k8sio_api_core_v1_SessionAffinityConfig(ref),
+ "k8s.io/api/core/v1.StorageOSPersistentVolumeSource": schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref),
+ "k8s.io/api/core/v1.StorageOSVolumeSource": schema_k8sio_api_core_v1_StorageOSVolumeSource(ref),
+ "k8s.io/api/core/v1.Sysctl": schema_k8sio_api_core_v1_Sysctl(ref),
+ "k8s.io/api/core/v1.TCPSocketAction": schema_k8sio_api_core_v1_TCPSocketAction(ref),
+ "k8s.io/api/core/v1.Taint": schema_k8sio_api_core_v1_Taint(ref),
+ "k8s.io/api/core/v1.Toleration": schema_k8sio_api_core_v1_Toleration(ref),
+ "k8s.io/api/core/v1.TopologySelectorLabelRequirement": schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref),
+ "k8s.io/api/core/v1.TopologySelectorTerm": schema_k8sio_api_core_v1_TopologySelectorTerm(ref),
+ "k8s.io/api/core/v1.TopologySpreadConstraint": schema_k8sio_api_core_v1_TopologySpreadConstraint(ref),
+ "k8s.io/api/core/v1.TypedLocalObjectReference": schema_k8sio_api_core_v1_TypedLocalObjectReference(ref),
+ "k8s.io/api/core/v1.Volume": schema_k8sio_api_core_v1_Volume(ref),
+ "k8s.io/api/core/v1.VolumeDevice": schema_k8sio_api_core_v1_VolumeDevice(ref),
+ "k8s.io/api/core/v1.VolumeMount": schema_k8sio_api_core_v1_VolumeMount(ref),
+ "k8s.io/api/core/v1.VolumeNodeAffinity": schema_k8sio_api_core_v1_VolumeNodeAffinity(ref),
+ "k8s.io/api/core/v1.VolumeProjection": schema_k8sio_api_core_v1_VolumeProjection(ref),
+ "k8s.io/api/core/v1.VolumeSource": schema_k8sio_api_core_v1_VolumeSource(ref),
+ "k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource": schema_k8sio_api_core_v1_VsphereVirtualDiskVolumeSource(ref),
+ "k8s.io/api/core/v1.WeightedPodAffinityTerm": schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref),
+ "k8s.io/api/core/v1.WindowsSecurityContextOptions": schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref),
+ "k8s.io/apimachinery/pkg/api/resource.Quantity": schema_apimachinery_pkg_api_resource_Quantity(ref),
+ "k8s.io/apimachinery/pkg/api/resource.int64Amount": schema_apimachinery_pkg_api_resource_int64Amount(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_onmetal_api_api_common_v1alpha1_ConfigMapKeySelector(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -427,7 +427,7 @@ func schema_onmetal_api_apis_common_v1alpha1_ConfigMapKeySelector(ref common.Ref
}
}
-func schema_onmetal_api_apis_common_v1alpha1_IP(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_common_v1alpha1_IP(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -439,7 +439,7 @@ func schema_onmetal_api_apis_common_v1alpha1_IP(ref common.ReferenceCallback) co
}
}
-func schema_onmetal_api_apis_common_v1alpha1_IPPrefix(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_common_v1alpha1_IPPrefix(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -451,7 +451,7 @@ func schema_onmetal_api_apis_common_v1alpha1_IPPrefix(ref common.ReferenceCallba
}
}
-func schema_onmetal_api_apis_common_v1alpha1_IPRange(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_common_v1alpha1_IPRange(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -461,13 +461,13 @@ func schema_onmetal_api_apis_common_v1alpha1_IPRange(ref common.ReferenceCallbac
"from": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.IP"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.IP"),
},
},
"to": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.IP"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.IP"),
},
},
},
@@ -475,11 +475,11 @@ func schema_onmetal_api_apis_common_v1alpha1_IPRange(ref common.ReferenceCallbac
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.IP"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.IP"},
}
}
-func schema_onmetal_api_apis_common_v1alpha1_LocalUIDReference(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_common_v1alpha1_LocalUIDReference(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -509,7 +509,7 @@ func schema_onmetal_api_apis_common_v1alpha1_LocalUIDReference(ref common.Refere
}
}
-func schema_onmetal_api_apis_common_v1alpha1_SecretKeySelector(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_common_v1alpha1_SecretKeySelector(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -536,7 +536,7 @@ func schema_onmetal_api_apis_common_v1alpha1_SecretKeySelector(ref common.Refere
}
}
-func schema_onmetal_api_apis_common_v1alpha1_Taint(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_common_v1alpha1_Taint(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -573,7 +573,7 @@ func schema_onmetal_api_apis_common_v1alpha1_Taint(ref common.ReferenceCallback)
}
}
-func schema_onmetal_api_apis_common_v1alpha1_Toleration(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_common_v1alpha1_Toleration(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -614,7 +614,7 @@ func schema_onmetal_api_apis_common_v1alpha1_Toleration(ref common.ReferenceCall
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_DaemonEndpoint(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_DaemonEndpoint(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -636,7 +636,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_DaemonEndpoint(ref common.Referenc
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_EFIVar(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_EFIVar(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -674,7 +674,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_EFIVar(ref common.ReferenceCallbac
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_EmptyDiskVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_EmptyDiskVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -695,7 +695,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_EmptyDiskVolumeSource(ref common.R
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_EmptyDiskVolumeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_EmptyDiskVolumeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -716,7 +716,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_EmptyDiskVolumeStatus(ref common.R
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_EphemeralNetworkInterfaceSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_EphemeralNetworkInterfaceSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -726,18 +726,18 @@ func schema_onmetal_api_apis_compute_v1alpha1_EphemeralNetworkInterfaceSource(re
"networkInterfaceTemplate": {
SchemaProps: spec.SchemaProps{
Description: "NetworkInterfaceTemplate is the template definition of the networking.NetworkInterface.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkInterfaceTemplateSpec"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkInterfaceTemplateSpec"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkInterfaceTemplateSpec"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkInterfaceTemplateSpec"},
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_EphemeralVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_EphemeralVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -747,18 +747,18 @@ func schema_onmetal_api_apis_compute_v1alpha1_EphemeralVolumeSource(ref common.R
"volumeTemplate": {
SchemaProps: spec.SchemaProps{
Description: "VolumeTemplate is the template definition of the storage.Volume.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeTemplateSpec"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeTemplateSpec"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeTemplateSpec"},
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeTemplateSpec"},
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_Machine(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_Machine(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -788,24 +788,24 @@ func schema_onmetal_api_apis_compute_v1alpha1_Machine(ref common.ReferenceCallba
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachineSpec"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachineSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachineStatus"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachineStatus"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachineSpec", "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachineStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachineSpec", "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachineStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_MachineClass(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_MachineClass(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -854,7 +854,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachineClass(ref common.ReferenceC
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_MachineClassList(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_MachineClassList(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -888,7 +888,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachineClassList(ref common.Refere
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachineClass"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachineClass"),
},
},
},
@@ -899,11 +899,11 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachineClassList(ref common.Refere
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachineClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachineClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_MachineCondition(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_MachineCondition(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -963,7 +963,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachineCondition(ref common.Refere
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_MachineExecOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_MachineExecOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -996,7 +996,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachineExecOptions(ref common.Refe
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_MachineList(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_MachineList(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1030,7 +1030,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachineList(ref common.ReferenceCa
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.Machine"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.Machine"),
},
},
},
@@ -1041,11 +1041,11 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachineList(ref common.ReferenceCa
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.Machine", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.Machine", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_MachinePool(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_MachinePool(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1075,24 +1075,24 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachinePool(ref common.ReferenceCa
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachinePoolSpec"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachinePoolSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachinePoolStatus"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachinePoolStatus"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachinePoolSpec", "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachinePoolStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachinePoolSpec", "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachinePoolStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_MachinePoolAddress(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_MachinePoolAddress(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1119,7 +1119,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachinePoolAddress(ref common.Refe
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_MachinePoolCondition(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_MachinePoolCondition(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1181,7 +1181,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachinePoolCondition(ref common.Re
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_MachinePoolDaemonEndpoints(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_MachinePoolDaemonEndpoints(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1192,18 +1192,18 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachinePoolDaemonEndpoints(ref com
SchemaProps: spec.SchemaProps{
Description: "Endpoint on which machinepoollet is listening.",
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.DaemonEndpoint"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.DaemonEndpoint"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.DaemonEndpoint"},
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.DaemonEndpoint"},
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_MachinePoolList(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_MachinePoolList(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1237,7 +1237,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachinePoolList(ref common.Referen
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachinePool"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachinePool"),
},
},
},
@@ -1248,11 +1248,11 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachinePoolList(ref common.Referen
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachinePool", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachinePool", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_MachinePoolSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_MachinePoolSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1275,7 +1275,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachinePoolSpec(ref common.Referen
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.Taint"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.Taint"),
},
},
},
@@ -1286,11 +1286,11 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachinePoolSpec(ref common.Referen
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.Taint"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.Taint"},
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_MachinePoolStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_MachinePoolStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1311,7 +1311,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachinePoolStatus(ref common.Refer
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachinePoolCondition"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachinePoolCondition"),
},
},
},
@@ -1337,7 +1337,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachinePoolStatus(ref common.Refer
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachinePoolAddress"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachinePoolAddress"),
},
},
},
@@ -1346,18 +1346,18 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachinePoolStatus(ref common.Refer
"daemonEndpoints": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachinePoolDaemonEndpoints"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachinePoolDaemonEndpoints"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachinePoolAddress", "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachinePoolCondition", "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachinePoolDaemonEndpoints", "k8s.io/api/core/v1.LocalObjectReference"},
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachinePoolAddress", "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachinePoolCondition", "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachinePoolDaemonEndpoints", "k8s.io/api/core/v1.LocalObjectReference"},
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_MachineSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_MachineSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1414,7 +1414,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachineSpec(ref common.ReferenceCa
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.NetworkInterface"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.NetworkInterface"),
},
},
},
@@ -1428,7 +1428,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachineSpec(ref common.ReferenceCa
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.Volume"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.Volume"),
},
},
},
@@ -1437,7 +1437,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachineSpec(ref common.ReferenceCa
"ignitionRef": {
SchemaProps: spec.SchemaProps{
Description: "IgnitionRef is a reference to a secret containing the ignition YAML for the machine to boot up. If key is empty, DefaultIgnitionKey will be used as fallback.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.SecretKeySelector"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.SecretKeySelector"),
},
},
"efiVars": {
@@ -1448,7 +1448,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachineSpec(ref common.ReferenceCa
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EFIVar"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.EFIVar"),
},
},
},
@@ -1462,7 +1462,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachineSpec(ref common.ReferenceCa
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.Toleration"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.Toleration"),
},
},
},
@@ -1473,11 +1473,11 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachineSpec(ref common.ReferenceCa
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.SecretKeySelector", "github.com/onmetal/onmetal-api/apis/common/v1alpha1.Toleration", "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EFIVar", "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.NetworkInterface", "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.Volume", "k8s.io/api/core/v1.LocalObjectReference"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.SecretKeySelector", "github.com/onmetal/onmetal-api/api/common/v1alpha1.Toleration", "github.com/onmetal/onmetal-api/api/compute/v1alpha1.EFIVar", "github.com/onmetal/onmetal-api/api/compute/v1alpha1.NetworkInterface", "github.com/onmetal/onmetal-api/api/compute/v1alpha1.Volume", "k8s.io/api/core/v1.LocalObjectReference"},
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_MachineStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_MachineStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1499,7 +1499,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachineStatus(ref common.Reference
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachineCondition"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachineCondition"),
},
},
},
@@ -1513,7 +1513,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachineStatus(ref common.Reference
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.NetworkInterfaceStatus"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.NetworkInterfaceStatus"),
},
},
},
@@ -1527,7 +1527,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachineStatus(ref common.Reference
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.VolumeStatus"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.VolumeStatus"),
},
},
},
@@ -1537,11 +1537,11 @@ func schema_onmetal_api_apis_compute_v1alpha1_MachineStatus(ref common.Reference
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.MachineCondition", "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.NetworkInterfaceStatus", "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.VolumeStatus"},
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.MachineCondition", "github.com/onmetal/onmetal-api/api/compute/v1alpha1.NetworkInterfaceStatus", "github.com/onmetal/onmetal-api/api/compute/v1alpha1.VolumeStatus"},
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_NetworkInterface(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_NetworkInterface(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1565,7 +1565,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_NetworkInterface(ref common.Refere
"ephemeral": {
SchemaProps: spec.SchemaProps{
Description: "Ephemeral instructs to create an ephemeral (i.e. coupled to the lifetime of the surrounding object) NetworkInterface to use.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EphemeralNetworkInterfaceSource"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.EphemeralNetworkInterfaceSource"),
},
},
},
@@ -1573,11 +1573,11 @@ func schema_onmetal_api_apis_compute_v1alpha1_NetworkInterface(ref common.Refere
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EphemeralNetworkInterfaceSource", "k8s.io/api/core/v1.LocalObjectReference"},
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.EphemeralNetworkInterfaceSource", "k8s.io/api/core/v1.LocalObjectReference"},
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_NetworkInterfaceSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_NetworkInterfaceSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1592,18 +1592,18 @@ func schema_onmetal_api_apis_compute_v1alpha1_NetworkInterfaceSource(ref common.
"ephemeral": {
SchemaProps: spec.SchemaProps{
Description: "Ephemeral instructs to create an ephemeral (i.e. coupled to the lifetime of the surrounding object) NetworkInterface to use.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EphemeralNetworkInterfaceSource"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.EphemeralNetworkInterfaceSource"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EphemeralNetworkInterfaceSource", "k8s.io/api/core/v1.LocalObjectReference"},
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.EphemeralNetworkInterfaceSource", "k8s.io/api/core/v1.LocalObjectReference"},
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_NetworkInterfaceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_NetworkInterfaceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1633,7 +1633,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_NetworkInterfaceStatus(ref common.
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.IP"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.IP"),
},
},
},
@@ -1642,7 +1642,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_NetworkInterfaceStatus(ref common.
"virtualIP": {
SchemaProps: spec.SchemaProps{
Description: "VirtualIP is the virtual ip allocated for the network interface.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.IP"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.IP"),
},
},
"state": {
@@ -1676,11 +1676,11 @@ func schema_onmetal_api_apis_compute_v1alpha1_NetworkInterfaceStatus(ref common.
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.IP", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.IP", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_ReferencedVolumeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_ReferencedVolumeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1706,7 +1706,7 @@ func schema_onmetal_api_apis_compute_v1alpha1_ReferencedVolumeStatus(ref common.
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_Volume(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_Volume(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1737,13 +1737,13 @@ func schema_onmetal_api_apis_compute_v1alpha1_Volume(ref common.ReferenceCallbac
"emptyDisk": {
SchemaProps: spec.SchemaProps{
Description: "EmptyDisk instructs to use a Volume offered by the machine pool provider.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EmptyDiskVolumeSource"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.EmptyDiskVolumeSource"),
},
},
"ephemeral": {
SchemaProps: spec.SchemaProps{
Description: "Ephemeral instructs to create an ephemeral (i.e. coupled to the lifetime of the surrounding object) Volume to use.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EphemeralVolumeSource"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.EphemeralVolumeSource"),
},
},
},
@@ -1751,11 +1751,11 @@ func schema_onmetal_api_apis_compute_v1alpha1_Volume(ref common.ReferenceCallbac
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EmptyDiskVolumeSource", "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EphemeralVolumeSource", "k8s.io/api/core/v1.LocalObjectReference"},
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.EmptyDiskVolumeSource", "github.com/onmetal/onmetal-api/api/compute/v1alpha1.EphemeralVolumeSource", "k8s.io/api/core/v1.LocalObjectReference"},
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_VolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_VolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1771,24 +1771,24 @@ func schema_onmetal_api_apis_compute_v1alpha1_VolumeSource(ref common.ReferenceC
"emptyDisk": {
SchemaProps: spec.SchemaProps{
Description: "EmptyDisk instructs to use a Volume offered by the machine pool provider.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EmptyDiskVolumeSource"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.EmptyDiskVolumeSource"),
},
},
"ephemeral": {
SchemaProps: spec.SchemaProps{
Description: "Ephemeral instructs to create an ephemeral (i.e. coupled to the lifetime of the surrounding object) Volume to use.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EphemeralVolumeSource"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.EphemeralVolumeSource"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EmptyDiskVolumeSource", "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EphemeralVolumeSource", "k8s.io/api/core/v1.LocalObjectReference"},
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.EmptyDiskVolumeSource", "github.com/onmetal/onmetal-api/api/compute/v1alpha1.EphemeralVolumeSource", "k8s.io/api/core/v1.LocalObjectReference"},
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_VolumeSourceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_VolumeSourceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1797,24 +1797,24 @@ func schema_onmetal_api_apis_compute_v1alpha1_VolumeSourceStatus(ref common.Refe
"emptyDisk": {
SchemaProps: spec.SchemaProps{
Description: "EmptyDisk indicates the empty disk status of the volume if it's from an empty disk source.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EmptyDiskVolumeStatus"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.EmptyDiskVolumeStatus"),
},
},
"referenced": {
SchemaProps: spec.SchemaProps{
Description: "Referenced is the status of a referenced volume (either VolumeSource.Ephemeral or VolumeSource.VolumeRef).",
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.ReferencedVolumeStatus"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.ReferencedVolumeStatus"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EmptyDiskVolumeStatus", "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.ReferencedVolumeStatus"},
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.EmptyDiskVolumeStatus", "github.com/onmetal/onmetal-api/api/compute/v1alpha1.ReferencedVolumeStatus"},
}
}
-func schema_onmetal_api_apis_compute_v1alpha1_VolumeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_compute_v1alpha1_VolumeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1839,13 +1839,13 @@ func schema_onmetal_api_apis_compute_v1alpha1_VolumeStatus(ref common.ReferenceC
"emptyDisk": {
SchemaProps: spec.SchemaProps{
Description: "EmptyDisk indicates the empty disk status of the volume if it's from an empty disk source.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EmptyDiskVolumeStatus"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.EmptyDiskVolumeStatus"),
},
},
"referenced": {
SchemaProps: spec.SchemaProps{
Description: "Referenced is the status of a referenced volume (either VolumeSource.Ephemeral or VolumeSource.VolumeRef).",
- Ref: ref("github.com/onmetal/onmetal-api/apis/compute/v1alpha1.ReferencedVolumeStatus"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/compute/v1alpha1.ReferencedVolumeStatus"),
},
},
"state": {
@@ -1879,11 +1879,11 @@ func schema_onmetal_api_apis_compute_v1alpha1_VolumeStatus(ref common.ReferenceC
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.EmptyDiskVolumeStatus", "github.com/onmetal/onmetal-api/apis/compute/v1alpha1.ReferencedVolumeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1.EmptyDiskVolumeStatus", "github.com/onmetal/onmetal-api/api/compute/v1alpha1.ReferencedVolumeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
}
}
-func schema_onmetal_api_apis_ipam_v1alpha1_Prefix(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_ipam_v1alpha1_Prefix(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1913,24 +1913,24 @@ func schema_onmetal_api_apis_ipam_v1alpha1_Prefix(ref common.ReferenceCallback)
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixSpec"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixStatus"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixStatus"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixSpec", "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
+ "github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixSpec", "github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
}
}
-func schema_onmetal_api_apis_ipam_v1alpha1_PrefixAllocation(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_ipam_v1alpha1_PrefixAllocation(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1960,24 +1960,24 @@ func schema_onmetal_api_apis_ipam_v1alpha1_PrefixAllocation(ref common.Reference
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixAllocationSpec"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixAllocationSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixAllocationStatus"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixAllocationStatus"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixAllocationSpec", "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixAllocationStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
+ "github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixAllocationSpec", "github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixAllocationStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
}
}
-func schema_onmetal_api_apis_ipam_v1alpha1_PrefixAllocationList(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_ipam_v1alpha1_PrefixAllocationList(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2011,7 +2011,7 @@ func schema_onmetal_api_apis_ipam_v1alpha1_PrefixAllocationList(ref common.Refer
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixAllocation"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixAllocation"),
},
},
},
@@ -2022,11 +2022,11 @@ func schema_onmetal_api_apis_ipam_v1alpha1_PrefixAllocationList(ref common.Refer
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixAllocation", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
+ "github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixAllocation", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
}
}
-func schema_onmetal_api_apis_ipam_v1alpha1_PrefixAllocationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_ipam_v1alpha1_PrefixAllocationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2043,7 +2043,7 @@ func schema_onmetal_api_apis_ipam_v1alpha1_PrefixAllocationSpec(ref common.Refer
"prefix": {
SchemaProps: spec.SchemaProps{
Description: "Prefix is the prefix to allocate for this Prefix.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.IPPrefix"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.IPPrefix"),
},
},
"prefixLength": {
@@ -2069,11 +2069,11 @@ func schema_onmetal_api_apis_ipam_v1alpha1_PrefixAllocationSpec(ref common.Refer
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.IPPrefix", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.IPPrefix", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"},
}
}
-func schema_onmetal_api_apis_ipam_v1alpha1_PrefixAllocationStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_ipam_v1alpha1_PrefixAllocationStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2083,7 +2083,7 @@ func schema_onmetal_api_apis_ipam_v1alpha1_PrefixAllocationStatus(ref common.Ref
"prefix": {
SchemaProps: spec.SchemaProps{
Description: "Prefix is the allocated prefix, if any",
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.IPPrefix"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.IPPrefix"),
},
},
"phase": {
@@ -2103,11 +2103,11 @@ func schema_onmetal_api_apis_ipam_v1alpha1_PrefixAllocationStatus(ref common.Ref
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.IPPrefix", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.IPPrefix", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
}
}
-func schema_onmetal_api_apis_ipam_v1alpha1_PrefixList(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_ipam_v1alpha1_PrefixList(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2141,7 +2141,7 @@ func schema_onmetal_api_apis_ipam_v1alpha1_PrefixList(ref common.ReferenceCallba
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.Prefix"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/ipam/v1alpha1.Prefix"),
},
},
},
@@ -2152,11 +2152,11 @@ func schema_onmetal_api_apis_ipam_v1alpha1_PrefixList(ref common.ReferenceCallba
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.Prefix", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
+ "github.com/onmetal/onmetal-api/api/ipam/v1alpha1.Prefix", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
}
}
-func schema_onmetal_api_apis_ipam_v1alpha1_PrefixSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_ipam_v1alpha1_PrefixSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2173,7 +2173,7 @@ func schema_onmetal_api_apis_ipam_v1alpha1_PrefixSpec(ref common.ReferenceCallba
"prefix": {
SchemaProps: spec.SchemaProps{
Description: "Prefix is the prefix to allocate for this Prefix.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.IPPrefix"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.IPPrefix"),
},
},
"prefixLength": {
@@ -2199,11 +2199,11 @@ func schema_onmetal_api_apis_ipam_v1alpha1_PrefixSpec(ref common.ReferenceCallba
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.IPPrefix", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.IPPrefix", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"},
}
}
-func schema_onmetal_api_apis_ipam_v1alpha1_PrefixStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_ipam_v1alpha1_PrefixStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2231,7 +2231,7 @@ func schema_onmetal_api_apis_ipam_v1alpha1_PrefixStatus(ref common.ReferenceCall
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.IPPrefix"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.IPPrefix"),
},
},
},
@@ -2241,11 +2241,11 @@ func schema_onmetal_api_apis_ipam_v1alpha1_PrefixStatus(ref common.ReferenceCall
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.IPPrefix", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.IPPrefix", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
}
}
-func schema_onmetal_api_apis_ipam_v1alpha1_PrefixTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_ipam_v1alpha1_PrefixTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2260,18 +2260,18 @@ func schema_onmetal_api_apis_ipam_v1alpha1_PrefixTemplateSpec(ref common.Referen
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixSpec"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixSpec"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
+ "github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_AliasPrefix(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_AliasPrefix(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2301,24 +2301,24 @@ func schema_onmetal_api_apis_networking_v1alpha1_AliasPrefix(ref common.Referenc
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.AliasPrefixSpec"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.AliasPrefixSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.AliasPrefixStatus"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.AliasPrefixStatus"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.AliasPrefixSpec", "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.AliasPrefixStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.AliasPrefixSpec", "github.com/onmetal/onmetal-api/api/networking/v1alpha1.AliasPrefixStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_AliasPrefixList(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_AliasPrefixList(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2352,7 +2352,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_AliasPrefixList(ref common.Refe
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.AliasPrefix"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.AliasPrefix"),
},
},
},
@@ -2363,11 +2363,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_AliasPrefixList(ref common.Refe
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.AliasPrefix", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.AliasPrefix", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_AliasPrefixRouting(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_AliasPrefixRouting(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2402,7 +2402,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_AliasPrefixRouting(ref common.R
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.LocalUIDReference"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.LocalUIDReference"),
},
},
},
@@ -2413,11 +2413,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_AliasPrefixRouting(ref common.R
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.LocalUIDReference", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.LocalUIDReference", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_AliasPrefixRoutingList(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_AliasPrefixRoutingList(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2451,7 +2451,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_AliasPrefixRoutingList(ref comm
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.AliasPrefixRouting"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.AliasPrefixRouting"),
},
},
},
@@ -2462,11 +2462,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_AliasPrefixRoutingList(ref comm
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.AliasPrefixRouting", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.AliasPrefixRouting", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_AliasPrefixSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_AliasPrefixSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2490,7 +2490,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_AliasPrefixSpec(ref common.Refe
SchemaProps: spec.SchemaProps{
Description: "Prefix is the provided Prefix or Ephemeral which should be used by this AliasPrefix",
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.PrefixSource"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.PrefixSource"),
},
},
},
@@ -2498,11 +2498,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_AliasPrefixSpec(ref common.Refe
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.PrefixSource", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.PrefixSource", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_AliasPrefixStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_AliasPrefixStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2512,18 +2512,18 @@ func schema_onmetal_api_apis_networking_v1alpha1_AliasPrefixStatus(ref common.Re
"prefix": {
SchemaProps: spec.SchemaProps{
Description: "Prefix is the Prefix reserved by this AliasPrefix",
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.IPPrefix"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.IPPrefix"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.IPPrefix"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.IPPrefix"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_EphemeralPrefixSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_EphemeralPrefixSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2533,18 +2533,18 @@ func schema_onmetal_api_apis_networking_v1alpha1_EphemeralPrefixSource(ref commo
"prefixTemplate": {
SchemaProps: spec.SchemaProps{
Description: "PrefixTemplate is the template for the Prefix.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixTemplateSpec"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixTemplateSpec"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1.PrefixTemplateSpec"},
+ "github.com/onmetal/onmetal-api/api/ipam/v1alpha1.PrefixTemplateSpec"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_EphemeralVirtualIPSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_EphemeralVirtualIPSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2554,18 +2554,18 @@ func schema_onmetal_api_apis_networking_v1alpha1_EphemeralVirtualIPSource(ref co
"virtualIPTemplate": {
SchemaProps: spec.SchemaProps{
Description: "VirtualIPTemplate is the template for the VirtualIP.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.VirtualIPTemplateSpec"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.VirtualIPTemplateSpec"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.VirtualIPTemplateSpec"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.VirtualIPTemplateSpec"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_IPSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_IPSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2575,24 +2575,24 @@ func schema_onmetal_api_apis_networking_v1alpha1_IPSource(ref common.ReferenceCa
"value": {
SchemaProps: spec.SchemaProps{
Description: "Value specifies an IP by using an IP literal.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.IP"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.IP"),
},
},
"ephemeral": {
SchemaProps: spec.SchemaProps{
Description: "Ephemeral specifies an IP by creating an ephemeral Prefix to allocate the IP with.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.EphemeralPrefixSource"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.EphemeralPrefixSource"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.IP", "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.EphemeralPrefixSource"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.IP", "github.com/onmetal/onmetal-api/api/networking/v1alpha1.EphemeralPrefixSource"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_LoadBalancer(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_LoadBalancer(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2622,24 +2622,24 @@ func schema_onmetal_api_apis_networking_v1alpha1_LoadBalancer(ref common.Referen
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.LoadBalancerSpec"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.LoadBalancerSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.LoadBalancerStatus"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.LoadBalancerStatus"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.LoadBalancerSpec", "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.LoadBalancerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.LoadBalancerSpec", "github.com/onmetal/onmetal-api/api/networking/v1alpha1.LoadBalancerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerList(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_LoadBalancerList(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2673,7 +2673,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerList(ref common.Ref
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.LoadBalancer"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.LoadBalancer"),
},
},
},
@@ -2684,11 +2684,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerList(ref common.Ref
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.LoadBalancer", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.LoadBalancer", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerPort(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_LoadBalancerPort(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2723,7 +2723,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerPort(ref common.Ref
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerRouting(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_LoadBalancerRouting(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2754,7 +2754,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerRouting(ref common.
SchemaProps: spec.SchemaProps{
Description: "NetworkRef is the network the load balancer is assigned to.",
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.LocalUIDReference"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.LocalUIDReference"),
},
},
"destinations": {
@@ -2765,7 +2765,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerRouting(ref common.
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.LocalUIDReference"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.LocalUIDReference"),
},
},
},
@@ -2776,11 +2776,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerRouting(ref common.
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.LocalUIDReference", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.LocalUIDReference", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerRoutingList(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_LoadBalancerRoutingList(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2814,7 +2814,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerRoutingList(ref com
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.LoadBalancerRouting"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.LoadBalancerRouting"),
},
},
},
@@ -2825,11 +2825,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerRoutingList(ref com
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.LoadBalancerRouting", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.LoadBalancerRouting", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_LoadBalancerSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2880,7 +2880,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerSpec(ref common.Ref
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.LoadBalancerPort"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.LoadBalancerPort"),
},
},
},
@@ -2891,11 +2891,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerSpec(ref common.Ref
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.LoadBalancerPort", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.LoadBalancerPort", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_LoadBalancerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2910,7 +2910,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerStatus(ref common.R
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.IP"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.IP"),
},
},
},
@@ -2920,11 +2920,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_LoadBalancerStatus(ref common.R
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.IP"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.IP"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_NATGateway(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_NATGateway(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2954,24 +2954,24 @@ func schema_onmetal_api_apis_networking_v1alpha1_NATGateway(ref common.Reference
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewaySpec"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewaySpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewayStatus"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewayStatus"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewaySpec", "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewayStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewaySpec", "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewayStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayDestination(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_NATGatewayDestination(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3001,7 +3001,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayDestination(ref commo
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewayDestinationIP"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewayDestinationIP"),
},
},
},
@@ -3012,11 +3012,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayDestination(ref commo
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewayDestinationIP"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewayDestinationIP"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayDestinationIP(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_NATGatewayDestinationIP(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3026,7 +3026,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayDestinationIP(ref com
SchemaProps: spec.SchemaProps{
Description: "IP is the ip used for the NAT gateway.",
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.IP"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.IP"),
},
},
"port": {
@@ -3050,11 +3050,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayDestinationIP(ref com
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.IP"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.IP"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayIP(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_NATGatewayIP(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3075,7 +3075,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayIP(ref common.Referen
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayIPStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_NATGatewayIPStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3091,7 +3091,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayIPStatus(ref common.R
"ip": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.IP"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.IP"),
},
},
},
@@ -3099,11 +3099,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayIPStatus(ref common.R
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.IP"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.IP"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayList(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_NATGatewayList(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3137,7 +3137,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayList(ref common.Refer
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGateway"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGateway"),
},
},
},
@@ -3148,11 +3148,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayList(ref common.Refer
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGateway", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGateway", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayRouting(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_NATGatewayRouting(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3183,7 +3183,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayRouting(ref common.Re
SchemaProps: spec.SchemaProps{
Description: "NetworkRef is the network the NAT gateway is assigned to.",
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.LocalUIDReference"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.LocalUIDReference"),
},
},
"destinations": {
@@ -3194,7 +3194,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayRouting(ref common.Re
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewayDestination"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewayDestination"),
},
},
},
@@ -3205,11 +3205,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayRouting(ref common.Re
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.LocalUIDReference", "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewayDestination", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.LocalUIDReference", "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewayDestination", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayRoutingList(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_NATGatewayRoutingList(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3243,7 +3243,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayRoutingList(ref commo
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewayRouting"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewayRouting"),
},
},
},
@@ -3254,11 +3254,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayRoutingList(ref commo
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewayRouting", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewayRouting", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_NATGatewaySpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_NATGatewaySpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3296,7 +3296,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_NATGatewaySpec(ref common.Refer
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewayIP"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewayIP"),
},
},
},
@@ -3327,11 +3327,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_NATGatewaySpec(ref common.Refer
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewayIP", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewayIP", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_NATGatewayStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3346,7 +3346,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayStatus(ref common.Ref
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewayIPStatus"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewayIPStatus"),
},
},
},
@@ -3363,11 +3363,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_NATGatewayStatus(ref common.Ref
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NATGatewayIPStatus"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NATGatewayIPStatus"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_Network(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_Network(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3397,24 +3397,24 @@ func schema_onmetal_api_apis_networking_v1alpha1_Network(ref common.ReferenceCal
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkSpec"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkStatus"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkStatus"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkSpec", "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkSpec", "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_NetworkInterface(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_NetworkInterface(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3444,24 +3444,24 @@ func schema_onmetal_api_apis_networking_v1alpha1_NetworkInterface(ref common.Ref
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkInterfaceSpec"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkInterfaceSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkInterfaceStatus"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkInterfaceStatus"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkInterfaceSpec", "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkInterfaceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkInterfaceSpec", "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkInterfaceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_NetworkInterfaceList(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_NetworkInterfaceList(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3495,7 +3495,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_NetworkInterfaceList(ref common
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkInterface"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkInterface"),
},
},
},
@@ -3506,11 +3506,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_NetworkInterfaceList(ref common
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkInterface", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkInterface", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_NetworkInterfaceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_NetworkInterfaceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3527,7 +3527,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_NetworkInterfaceSpec(ref common
"machineRef": {
SchemaProps: spec.SchemaProps{
Description: "MachineRef is the Machine this NetworkInterface is used by",
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.LocalUIDReference"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.LocalUIDReference"),
},
},
"ipFamilies": {
@@ -3553,7 +3553,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_NetworkInterfaceSpec(ref common
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.IPSource"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.IPSource"),
},
},
},
@@ -3562,7 +3562,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_NetworkInterfaceSpec(ref common
"virtualIP": {
SchemaProps: spec.SchemaProps{
Description: "VirtualIP specifies the virtual ip that should be assigned to this NetworkInterface.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.VirtualIPSource"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.VirtualIPSource"),
},
},
},
@@ -3570,11 +3570,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_NetworkInterfaceSpec(ref common
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.LocalUIDReference", "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.IPSource", "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.VirtualIPSource", "k8s.io/api/core/v1.LocalObjectReference"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.LocalUIDReference", "github.com/onmetal/onmetal-api/api/networking/v1alpha1.IPSource", "github.com/onmetal/onmetal-api/api/networking/v1alpha1.VirtualIPSource", "k8s.io/api/core/v1.LocalObjectReference"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_NetworkInterfaceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_NetworkInterfaceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3596,7 +3596,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_NetworkInterfaceStatus(ref comm
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.IP"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.IP"),
},
},
},
@@ -3605,7 +3605,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_NetworkInterfaceStatus(ref comm
"virtualIP": {
SchemaProps: spec.SchemaProps{
Description: "VirtualIP is any virtual ip assigned to the NetworkInterface.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.IP"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.IP"),
},
},
"phase": {
@@ -3625,11 +3625,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_NetworkInterfaceStatus(ref comm
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.IP", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.IP", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_NetworkInterfaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_NetworkInterfaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3645,18 +3645,18 @@ func schema_onmetal_api_apis_networking_v1alpha1_NetworkInterfaceTemplateSpec(re
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkInterfaceSpec"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkInterfaceSpec"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.NetworkInterfaceSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.NetworkInterfaceSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_NetworkList(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_NetworkList(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3690,7 +3690,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_NetworkList(ref common.Referenc
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.Network"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.Network"),
},
},
},
@@ -3701,11 +3701,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_NetworkList(ref common.Referenc
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.Network", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.Network", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_NetworkSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_NetworkSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3727,7 +3727,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_NetworkSpec(ref common.Referenc
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_NetworkStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_NetworkStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3747,7 +3747,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_NetworkStatus(ref common.Refere
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_PrefixSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_PrefixSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3757,24 +3757,24 @@ func schema_onmetal_api_apis_networking_v1alpha1_PrefixSource(ref common.Referen
"value": {
SchemaProps: spec.SchemaProps{
Description: "Value is a single IPPrefix value as defined in the AliasPrefix",
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.IPPrefix"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.IPPrefix"),
},
},
"ephemeral": {
SchemaProps: spec.SchemaProps{
Description: "Ephemeral defines the Prefix which should be allocated by the AliasPrefix",
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.EphemeralPrefixSource"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.EphemeralPrefixSource"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.IPPrefix", "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.EphemeralPrefixSource"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.IPPrefix", "github.com/onmetal/onmetal-api/api/networking/v1alpha1.EphemeralPrefixSource"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_VirtualIP(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_VirtualIP(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3804,24 +3804,24 @@ func schema_onmetal_api_apis_networking_v1alpha1_VirtualIP(ref common.ReferenceC
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.VirtualIPSpec"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.VirtualIPSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.VirtualIPStatus"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.VirtualIPStatus"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.VirtualIPSpec", "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.VirtualIPStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.VirtualIPSpec", "github.com/onmetal/onmetal-api/api/networking/v1alpha1.VirtualIPStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_VirtualIPList(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_VirtualIPList(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3855,7 +3855,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_VirtualIPList(ref common.Refere
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.VirtualIP"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.VirtualIP"),
},
},
},
@@ -3866,11 +3866,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_VirtualIPList(ref common.Refere
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.VirtualIP", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.VirtualIP", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_VirtualIPSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_VirtualIPSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3886,18 +3886,18 @@ func schema_onmetal_api_apis_networking_v1alpha1_VirtualIPSource(ref common.Refe
"ephemeral": {
SchemaProps: spec.SchemaProps{
Description: "Ephemeral instructs to create an ephemeral (i.e. coupled to the lifetime of the surrounding object) VirtualIP.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.EphemeralVirtualIPSource"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.EphemeralVirtualIPSource"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.EphemeralVirtualIPSource", "k8s.io/api/core/v1.LocalObjectReference"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.EphemeralVirtualIPSource", "k8s.io/api/core/v1.LocalObjectReference"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_VirtualIPSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_VirtualIPSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3923,7 +3923,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_VirtualIPSpec(ref common.Refere
"targetRef": {
SchemaProps: spec.SchemaProps{
Description: "TargetRef references the target for this VirtualIP (currently only NetworkInterface).",
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.LocalUIDReference"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.LocalUIDReference"),
},
},
},
@@ -3931,11 +3931,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_VirtualIPSpec(ref common.Refere
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.LocalUIDReference"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.LocalUIDReference"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_VirtualIPStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_VirtualIPStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3945,7 +3945,7 @@ func schema_onmetal_api_apis_networking_v1alpha1_VirtualIPStatus(ref common.Refe
"ip": {
SchemaProps: spec.SchemaProps{
Description: "IP is the allocated IP, if any.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.IP"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.IP"),
},
},
"phase": {
@@ -3965,11 +3965,11 @@ func schema_onmetal_api_apis_networking_v1alpha1_VirtualIPStatus(ref common.Refe
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.IP", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.IP", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
}
}
-func schema_onmetal_api_apis_networking_v1alpha1_VirtualIPTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_networking_v1alpha1_VirtualIPTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -3985,18 +3985,18 @@ func schema_onmetal_api_apis_networking_v1alpha1_VirtualIPTemplateSpec(ref commo
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/networking/v1alpha1.VirtualIPSpec"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/networking/v1alpha1.VirtualIPSpec"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1.VirtualIPSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1.VirtualIPSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
}
}
-func schema_onmetal_api_apis_storage_v1alpha1_Volume(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_storage_v1alpha1_Volume(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -4026,24 +4026,24 @@ func schema_onmetal_api_apis_storage_v1alpha1_Volume(ref common.ReferenceCallbac
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeSpec"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeStatus"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeStatus"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeSpec", "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeSpec", "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
}
}
-func schema_onmetal_api_apis_storage_v1alpha1_VolumeAccess(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_storage_v1alpha1_VolumeAccess(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -4097,7 +4097,7 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumeAccess(ref common.ReferenceC
}
}
-func schema_onmetal_api_apis_storage_v1alpha1_VolumeClass(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_storage_v1alpha1_VolumeClass(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -4147,7 +4147,7 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumeClass(ref common.ReferenceCa
}
}
-func schema_onmetal_api_apis_storage_v1alpha1_VolumeClassList(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_storage_v1alpha1_VolumeClassList(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -4181,7 +4181,7 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumeClassList(ref common.Referen
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeClass"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeClass"),
},
},
},
@@ -4192,11 +4192,11 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumeClassList(ref common.Referen
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
}
}
-func schema_onmetal_api_apis_storage_v1alpha1_VolumeCondition(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_storage_v1alpha1_VolumeCondition(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -4256,7 +4256,7 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumeCondition(ref common.Referen
}
}
-func schema_onmetal_api_apis_storage_v1alpha1_VolumeList(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_storage_v1alpha1_VolumeList(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -4290,7 +4290,7 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumeList(ref common.ReferenceCal
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/storage/v1alpha1.Volume"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/storage/v1alpha1.Volume"),
},
},
},
@@ -4301,11 +4301,11 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumeList(ref common.ReferenceCal
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.Volume", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.Volume", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
}
}
-func schema_onmetal_api_apis_storage_v1alpha1_VolumePool(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_storage_v1alpha1_VolumePool(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -4335,24 +4335,24 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumePool(ref common.ReferenceCal
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumePoolSpec"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumePoolSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumePoolStatus"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumePoolStatus"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumePoolSpec", "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumePoolStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumePoolSpec", "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumePoolStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
}
}
-func schema_onmetal_api_apis_storage_v1alpha1_VolumePoolCondition(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_storage_v1alpha1_VolumePoolCondition(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -4414,7 +4414,7 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumePoolCondition(ref common.Ref
}
}
-func schema_onmetal_api_apis_storage_v1alpha1_VolumePoolList(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_storage_v1alpha1_VolumePoolList(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -4448,7 +4448,7 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumePoolList(ref common.Referenc
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumePool"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumePool"),
},
},
},
@@ -4459,11 +4459,11 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumePoolList(ref common.Referenc
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumePool", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumePool", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
}
}
-func schema_onmetal_api_apis_storage_v1alpha1_VolumePoolSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_storage_v1alpha1_VolumePoolSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -4486,7 +4486,7 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumePoolSpec(ref common.Referenc
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.Taint"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.Taint"),
},
},
},
@@ -4497,11 +4497,11 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumePoolSpec(ref common.Referenc
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.Taint"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.Taint"},
}
}
-func schema_onmetal_api_apis_storage_v1alpha1_VolumePoolStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_storage_v1alpha1_VolumePoolStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -4521,7 +4521,7 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumePoolStatus(ref common.Refere
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumePoolCondition"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumePoolCondition"),
},
},
},
@@ -4575,11 +4575,11 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumePoolStatus(ref common.Refere
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumePoolCondition", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/api/resource.Quantity"},
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumePoolCondition", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/api/resource.Quantity"},
}
}
-func schema_onmetal_api_apis_storage_v1alpha1_VolumeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_storage_v1alpha1_VolumeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -4617,7 +4617,7 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumeSpec(ref common.ReferenceCal
"claimRef": {
SchemaProps: spec.SchemaProps{
Description: "ClaimRef is the reference to the claiming entity of the Volume.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.LocalUIDReference"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.LocalUIDReference"),
},
},
"resources": {
@@ -4663,7 +4663,7 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumeSpec(ref common.ReferenceCal
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/common/v1alpha1.Toleration"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/common/v1alpha1.Toleration"),
},
},
},
@@ -4673,11 +4673,11 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumeSpec(ref common.ReferenceCal
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1.LocalUIDReference", "github.com/onmetal/onmetal-api/apis/common/v1alpha1.Toleration", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/api/resource.Quantity"},
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1.LocalUIDReference", "github.com/onmetal/onmetal-api/api/common/v1alpha1.Toleration", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/apimachinery/pkg/api/resource.Quantity"},
}
}
-func schema_onmetal_api_apis_storage_v1alpha1_VolumeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_storage_v1alpha1_VolumeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -4713,7 +4713,7 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumeStatus(ref common.ReferenceC
"access": {
SchemaProps: spec.SchemaProps{
Description: "Access specifies how to access a Volume. This is set by the volume provider when the volume is provisioned.",
- Ref: ref("github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeAccess"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeAccess"),
},
},
"conditions": {
@@ -4724,7 +4724,7 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumeStatus(ref common.ReferenceC
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeCondition"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeCondition"),
},
},
},
@@ -4734,11 +4734,11 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumeStatus(ref common.ReferenceC
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeAccess", "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeCondition", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeAccess", "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeCondition", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
}
}
-func schema_onmetal_api_apis_storage_v1alpha1_VolumeTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_onmetal_api_api_storage_v1alpha1_VolumeTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -4754,14 +4754,14 @@ func schema_onmetal_api_apis_storage_v1alpha1_VolumeTemplateSpec(ref common.Refe
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
- Ref: ref("github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeSpec"),
+ Ref: ref("github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeSpec"),
},
},
},
},
},
Dependencies: []string{
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1.VolumeSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1.VolumeSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
}
}
diff --git a/docs/api-reference/compute.md b/docs/api-reference/compute.md
index 4e21603cb..95c83b32e 100644
--- a/docs/api-reference/compute.md
+++ b/docs/api-reference/compute.md
@@ -166,13 +166,11 @@ Kubernetes core/v1.LocalObjectReference
@@ -1118,9 +1120,7 @@ If unset, the scheduler will figure out a suitable VolumePoolRef.
claimRef
-
-github.com/onmetal/onmetal-api/apis/common/v1alpha1.LocalUIDReference
-
+github.com/onmetal/onmetal-api/api/common/v1alpha1.LocalUIDReference
|
@@ -1179,9 +1179,7 @@ bool
|
tolerations
-
-[]github.com/onmetal/onmetal-api/apis/common/v1alpha1.Toleration
-
+[]github.com/onmetal/onmetal-api/api/common/v1alpha1.Toleration
|
diff --git a/generated/clientset/internalversion/clientset.go b/generated/clientset/internalversion/clientset.go
deleted file mode 100644
index 239a86c4e..000000000
--- a/generated/clientset/internalversion/clientset.go
+++ /dev/null
@@ -1,159 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "fmt"
- "net/http"
-
- computeinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion/typed/compute/internalversion"
- ipaminternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion/typed/ipam/internalversion"
- networkinginternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion/typed/networking/internalversion"
- storageinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion/typed/storage/internalversion"
- discovery "k8s.io/client-go/discovery"
- rest "k8s.io/client-go/rest"
- flowcontrol "k8s.io/client-go/util/flowcontrol"
-)
-
-type Interface interface {
- Discovery() discovery.DiscoveryInterface
- Compute() computeinternalversion.ComputeInterface
- Ipam() ipaminternalversion.IpamInterface
- Networking() networkinginternalversion.NetworkingInterface
- Storage() storageinternalversion.StorageInterface
-}
-
-// Clientset contains the clients for groups. Each group has exactly one
-// version included in a Clientset.
-type Clientset struct {
- *discovery.DiscoveryClient
- compute *computeinternalversion.ComputeClient
- ipam *ipaminternalversion.IpamClient
- networking *networkinginternalversion.NetworkingClient
- storage *storageinternalversion.StorageClient
-}
-
-// Compute retrieves the ComputeClient
-func (c *Clientset) Compute() computeinternalversion.ComputeInterface {
- return c.compute
-}
-
-// Ipam retrieves the IpamClient
-func (c *Clientset) Ipam() ipaminternalversion.IpamInterface {
- return c.ipam
-}
-
-// Networking retrieves the NetworkingClient
-func (c *Clientset) Networking() networkinginternalversion.NetworkingInterface {
- return c.networking
-}
-
-// Storage retrieves the StorageClient
-func (c *Clientset) Storage() storageinternalversion.StorageInterface {
- return c.storage
-}
-
-// Discovery retrieves the DiscoveryClient
-func (c *Clientset) Discovery() discovery.DiscoveryInterface {
- if c == nil {
- return nil
- }
- return c.DiscoveryClient
-}
-
-// NewForConfig creates a new Clientset for the given config.
-// If config's RateLimiter is not set and QPS and Burst are acceptable,
-// NewForConfig will generate a rate-limiter in configShallowCopy.
-// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
-// where httpClient was generated with rest.HTTPClientFor(c).
-func NewForConfig(c *rest.Config) (*Clientset, error) {
- configShallowCopy := *c
-
- if configShallowCopy.UserAgent == "" {
- configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent()
- }
-
- // share the transport between all clients
- httpClient, err := rest.HTTPClientFor(&configShallowCopy)
- if err != nil {
- return nil, err
- }
-
- return NewForConfigAndClient(&configShallowCopy, httpClient)
-}
-
-// NewForConfigAndClient creates a new Clientset for the given config and http client.
-// Note the http client provided takes precedence over the configured transport values.
-// If config's RateLimiter is not set and QPS and Burst are acceptable,
-// NewForConfigAndClient will generate a rate-limiter in configShallowCopy.
-func NewForConfigAndClient(c *rest.Config, httpClient *http.Client) (*Clientset, error) {
- configShallowCopy := *c
- if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
- if configShallowCopy.Burst <= 0 {
- return nil, fmt.Errorf("burst is required to be greater than 0 when RateLimiter is not set and QPS is set to greater than 0")
- }
- configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
- }
-
- var cs Clientset
- var err error
- cs.compute, err = computeinternalversion.NewForConfigAndClient(&configShallowCopy, httpClient)
- if err != nil {
- return nil, err
- }
- cs.ipam, err = ipaminternalversion.NewForConfigAndClient(&configShallowCopy, httpClient)
- if err != nil {
- return nil, err
- }
- cs.networking, err = networkinginternalversion.NewForConfigAndClient(&configShallowCopy, httpClient)
- if err != nil {
- return nil, err
- }
- cs.storage, err = storageinternalversion.NewForConfigAndClient(&configShallowCopy, httpClient)
- if err != nil {
- return nil, err
- }
-
- cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfigAndClient(&configShallowCopy, httpClient)
- if err != nil {
- return nil, err
- }
- return &cs, nil
-}
-
-// NewForConfigOrDie creates a new Clientset for the given config and
-// panics if there is an error in the config.
-func NewForConfigOrDie(c *rest.Config) *Clientset {
- cs, err := NewForConfig(c)
- if err != nil {
- panic(err)
- }
- return cs
-}
-
-// New creates a new Clientset for the given RESTClient.
-func New(c rest.Interface) *Clientset {
- var cs Clientset
- cs.compute = computeinternalversion.New(c)
- cs.ipam = ipaminternalversion.New(c)
- cs.networking = networkinginternalversion.New(c)
- cs.storage = storageinternalversion.New(c)
-
- cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
- return &cs
-}
diff --git a/generated/clientset/internalversion/doc.go b/generated/clientset/internalversion/doc.go
deleted file mode 100644
index 8b6f4edc5..000000000
--- a/generated/clientset/internalversion/doc.go
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-// This package has the automatically generated clientset.
-package internalversion
diff --git a/generated/clientset/internalversion/fake/clientset_generated.go b/generated/clientset/internalversion/fake/clientset_generated.go
deleted file mode 100644
index 58471b178..000000000
--- a/generated/clientset/internalversion/fake/clientset_generated.go
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- clientset "github.com/onmetal/onmetal-api/generated/clientset/internalversion"
- computeinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion/typed/compute/internalversion"
- fakecomputeinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion/typed/compute/internalversion/fake"
- ipaminternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion/typed/ipam/internalversion"
- fakeipaminternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion/typed/ipam/internalversion/fake"
- networkinginternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion/typed/networking/internalversion"
- fakenetworkinginternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion/typed/networking/internalversion/fake"
- storageinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion/typed/storage/internalversion"
- fakestorageinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion/typed/storage/internalversion/fake"
- "k8s.io/apimachinery/pkg/runtime"
- "k8s.io/apimachinery/pkg/watch"
- "k8s.io/client-go/discovery"
- fakediscovery "k8s.io/client-go/discovery/fake"
- "k8s.io/client-go/testing"
-)
-
-// NewSimpleClientset returns a clientset that will respond with the provided objects.
-// It's backed by a very simple object tracker that processes creates, updates and deletions as-is,
-// without applying any validations and/or defaults. It shouldn't be considered a replacement
-// for a real clientset and is mostly useful in simple unit tests.
-func NewSimpleClientset(objects ...runtime.Object) *Clientset {
- o := testing.NewObjectTracker(scheme, codecs.UniversalDecoder())
- for _, obj := range objects {
- if err := o.Add(obj); err != nil {
- panic(err)
- }
- }
-
- cs := &Clientset{tracker: o}
- cs.discovery = &fakediscovery.FakeDiscovery{Fake: &cs.Fake}
- cs.AddReactor("*", "*", testing.ObjectReaction(o))
- cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) {
- gvr := action.GetResource()
- ns := action.GetNamespace()
- watch, err := o.Watch(gvr, ns)
- if err != nil {
- return false, nil, err
- }
- return true, watch, nil
- })
-
- return cs
-}
-
-// Clientset implements clientset.Interface. Meant to be embedded into a
-// struct to get a default implementation. This makes faking out just the method
-// you want to test easier.
-type Clientset struct {
- testing.Fake
- discovery *fakediscovery.FakeDiscovery
- tracker testing.ObjectTracker
-}
-
-func (c *Clientset) Discovery() discovery.DiscoveryInterface {
- return c.discovery
-}
-
-func (c *Clientset) Tracker() testing.ObjectTracker {
- return c.tracker
-}
-
-var (
- _ clientset.Interface = &Clientset{}
- _ testing.FakeClient = &Clientset{}
-)
-
-// Compute retrieves the ComputeClient
-func (c *Clientset) Compute() computeinternalversion.ComputeInterface {
- return &fakecomputeinternalversion.FakeCompute{Fake: &c.Fake}
-}
-
-// Ipam retrieves the IpamClient
-func (c *Clientset) Ipam() ipaminternalversion.IpamInterface {
- return &fakeipaminternalversion.FakeIpam{Fake: &c.Fake}
-}
-
-// Networking retrieves the NetworkingClient
-func (c *Clientset) Networking() networkinginternalversion.NetworkingInterface {
- return &fakenetworkinginternalversion.FakeNetworking{Fake: &c.Fake}
-}
-
-// Storage retrieves the StorageClient
-func (c *Clientset) Storage() storageinternalversion.StorageInterface {
- return &fakestorageinternalversion.FakeStorage{Fake: &c.Fake}
-}
diff --git a/generated/clientset/internalversion/fake/register.go b/generated/clientset/internalversion/fake/register.go
deleted file mode 100644
index 29bb48a66..000000000
--- a/generated/clientset/internalversion/fake/register.go
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- computeinternalversion "github.com/onmetal/onmetal-api/apis/compute"
- ipaminternalversion "github.com/onmetal/onmetal-api/apis/ipam"
- networkinginternalversion "github.com/onmetal/onmetal-api/apis/networking"
- storageinternalversion "github.com/onmetal/onmetal-api/apis/storage"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- serializer "k8s.io/apimachinery/pkg/runtime/serializer"
- utilruntime "k8s.io/apimachinery/pkg/util/runtime"
-)
-
-var scheme = runtime.NewScheme()
-var codecs = serializer.NewCodecFactory(scheme)
-
-var localSchemeBuilder = runtime.SchemeBuilder{
- computeinternalversion.AddToScheme,
- ipaminternalversion.AddToScheme,
- networkinginternalversion.AddToScheme,
- storageinternalversion.AddToScheme,
-}
-
-// AddToScheme adds all types of this clientset into the given scheme. This allows composition
-// of clientsets, like in:
-//
-// import (
-// "k8s.io/client-go/kubernetes"
-// clientsetscheme "k8s.io/client-go/kubernetes/scheme"
-// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
-// )
-//
-// kclientset, _ := kubernetes.NewForConfig(c)
-// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
-//
-// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
-// correctly.
-var AddToScheme = localSchemeBuilder.AddToScheme
-
-func init() {
- v1.AddToGroupVersion(scheme, schema.GroupVersion{Version: "v1"})
- utilruntime.Must(AddToScheme(scheme))
-}
diff --git a/generated/clientset/internalversion/scheme/register.go b/generated/clientset/internalversion/scheme/register.go
deleted file mode 100644
index cefeb249b..000000000
--- a/generated/clientset/internalversion/scheme/register.go
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package scheme
-
-import (
- compute "github.com/onmetal/onmetal-api/apis/compute/install"
- ipam "github.com/onmetal/onmetal-api/apis/ipam/install"
- networking "github.com/onmetal/onmetal-api/apis/networking/install"
- storage "github.com/onmetal/onmetal-api/apis/storage/install"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- serializer "k8s.io/apimachinery/pkg/runtime/serializer"
-)
-
-var Scheme = runtime.NewScheme()
-var Codecs = serializer.NewCodecFactory(Scheme)
-var ParameterCodec = runtime.NewParameterCodec(Scheme)
-
-func init() {
- v1.AddToGroupVersion(Scheme, schema.GroupVersion{Version: "v1"})
- Install(Scheme)
-}
-
-// Install registers the API group and adds types to a scheme
-func Install(scheme *runtime.Scheme) {
- compute.Install(scheme)
- ipam.Install(scheme)
- networking.Install(scheme)
- storage.Install(scheme)
-}
diff --git a/generated/clientset/internalversion/typed/compute/internalversion/compute_client.go b/generated/clientset/internalversion/typed/compute/internalversion/compute_client.go
deleted file mode 100644
index 25025f9ff..000000000
--- a/generated/clientset/internalversion/typed/compute/internalversion/compute_client.go
+++ /dev/null
@@ -1,123 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "net/http"
-
- "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- rest "k8s.io/client-go/rest"
-)
-
-type ComputeInterface interface {
- RESTClient() rest.Interface
- MachinesGetter
- MachineClassesGetter
- MachinePoolsGetter
-}
-
-// ComputeClient is used to interact with features provided by the compute.api.onmetal.de group.
-type ComputeClient struct {
- restClient rest.Interface
-}
-
-func (c *ComputeClient) Machines(namespace string) MachineInterface {
- return newMachines(c, namespace)
-}
-
-func (c *ComputeClient) MachineClasses(namespace string) MachineClassInterface {
- return newMachineClasses(c, namespace)
-}
-
-func (c *ComputeClient) MachinePools() MachinePoolInterface {
- return newMachinePools(c)
-}
-
-// NewForConfig creates a new ComputeClient for the given config.
-// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
-// where httpClient was generated with rest.HTTPClientFor(c).
-func NewForConfig(c *rest.Config) (*ComputeClient, error) {
- config := *c
- if err := setConfigDefaults(&config); err != nil {
- return nil, err
- }
- httpClient, err := rest.HTTPClientFor(&config)
- if err != nil {
- return nil, err
- }
- return NewForConfigAndClient(&config, httpClient)
-}
-
-// NewForConfigAndClient creates a new ComputeClient for the given config and http client.
-// Note the http client provided takes precedence over the configured transport values.
-func NewForConfigAndClient(c *rest.Config, h *http.Client) (*ComputeClient, error) {
- config := *c
- if err := setConfigDefaults(&config); err != nil {
- return nil, err
- }
- client, err := rest.RESTClientForConfigAndClient(&config, h)
- if err != nil {
- return nil, err
- }
- return &ComputeClient{client}, nil
-}
-
-// NewForConfigOrDie creates a new ComputeClient for the given config and
-// panics if there is an error in the config.
-func NewForConfigOrDie(c *rest.Config) *ComputeClient {
- client, err := NewForConfig(c)
- if err != nil {
- panic(err)
- }
- return client
-}
-
-// New creates a new ComputeClient for the given RESTClient.
-func New(c rest.Interface) *ComputeClient {
- return &ComputeClient{c}
-}
-
-func setConfigDefaults(config *rest.Config) error {
- config.APIPath = "/apis"
- if config.UserAgent == "" {
- config.UserAgent = rest.DefaultKubernetesUserAgent()
- }
- if config.GroupVersion == nil || config.GroupVersion.Group != scheme.Scheme.PrioritizedVersionsForGroup("compute.api.onmetal.de")[0].Group {
- gv := scheme.Scheme.PrioritizedVersionsForGroup("compute.api.onmetal.de")[0]
- config.GroupVersion = &gv
- }
- config.NegotiatedSerializer = scheme.Codecs
-
- if config.QPS == 0 {
- config.QPS = 5
- }
- if config.Burst == 0 {
- config.Burst = 10
- }
-
- return nil
-}
-
-// RESTClient returns a RESTClient that is used to communicate
-// with API server by this client implementation.
-func (c *ComputeClient) RESTClient() rest.Interface {
- if c == nil {
- return nil
- }
- return c.restClient
-}
diff --git a/generated/clientset/internalversion/typed/compute/internalversion/doc.go b/generated/clientset/internalversion/typed/compute/internalversion/doc.go
deleted file mode 100644
index a7621fd4c..000000000
--- a/generated/clientset/internalversion/typed/compute/internalversion/doc.go
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-// This package has the automatically generated typed clients.
-package internalversion
diff --git a/generated/clientset/internalversion/typed/compute/internalversion/fake/fake_compute_client.go b/generated/clientset/internalversion/typed/compute/internalversion/fake/fake_compute_client.go
deleted file mode 100644
index 9bdb732d6..000000000
--- a/generated/clientset/internalversion/typed/compute/internalversion/fake/fake_compute_client.go
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- internalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion/typed/compute/internalversion"
- rest "k8s.io/client-go/rest"
- testing "k8s.io/client-go/testing"
-)
-
-type FakeCompute struct {
- *testing.Fake
-}
-
-func (c *FakeCompute) Machines(namespace string) internalversion.MachineInterface {
- return &FakeMachines{c, namespace}
-}
-
-func (c *FakeCompute) MachineClasses(namespace string) internalversion.MachineClassInterface {
- return &FakeMachineClasses{c, namespace}
-}
-
-func (c *FakeCompute) MachinePools() internalversion.MachinePoolInterface {
- return &FakeMachinePools{c}
-}
-
-// RESTClient returns a RESTClient that is used to communicate
-// with API server by this client implementation.
-func (c *FakeCompute) RESTClient() rest.Interface {
- var ret *rest.RESTClient
- return ret
-}
diff --git a/generated/clientset/internalversion/typed/compute/internalversion/fake/fake_machine.go b/generated/clientset/internalversion/typed/compute/internalversion/fake/fake_machine.go
deleted file mode 100644
index 76f769475..000000000
--- a/generated/clientset/internalversion/typed/compute/internalversion/fake/fake_machine.go
+++ /dev/null
@@ -1,141 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- "context"
-
- compute "github.com/onmetal/onmetal-api/apis/compute"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
-)
-
-// FakeMachines implements MachineInterface
-type FakeMachines struct {
- Fake *FakeCompute
- ns string
-}
-
-var machinesResource = schema.GroupVersionResource{Group: "compute.api.onmetal.de", Version: "", Resource: "machines"}
-
-var machinesKind = schema.GroupVersionKind{Group: "compute.api.onmetal.de", Version: "", Kind: "Machine"}
-
-// Get takes name of the machine, and returns the corresponding machine object, and an error if there is any.
-func (c *FakeMachines) Get(ctx context.Context, name string, options v1.GetOptions) (result *compute.Machine, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewGetAction(machinesResource, c.ns, name), &compute.Machine{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*compute.Machine), err
-}
-
-// List takes label and field selectors, and returns the list of Machines that match those selectors.
-func (c *FakeMachines) List(ctx context.Context, opts v1.ListOptions) (result *compute.MachineList, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewListAction(machinesResource, machinesKind, c.ns, opts), &compute.MachineList{})
-
- if obj == nil {
- return nil, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &compute.MachineList{ListMeta: obj.(*compute.MachineList).ListMeta}
- for _, item := range obj.(*compute.MachineList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested machines.
-func (c *FakeMachines) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchAction(machinesResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a machine and creates it. Returns the server's representation of the machine, and an error, if there is any.
-func (c *FakeMachines) Create(ctx context.Context, machine *compute.Machine, opts v1.CreateOptions) (result *compute.Machine, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewCreateAction(machinesResource, c.ns, machine), &compute.Machine{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*compute.Machine), err
-}
-
-// Update takes the representation of a machine and updates it. Returns the server's representation of the machine, and an error, if there is any.
-func (c *FakeMachines) Update(ctx context.Context, machine *compute.Machine, opts v1.UpdateOptions) (result *compute.Machine, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateAction(machinesResource, c.ns, machine), &compute.Machine{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*compute.Machine), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeMachines) UpdateStatus(ctx context.Context, machine *compute.Machine, opts v1.UpdateOptions) (*compute.Machine, error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceAction(machinesResource, "status", c.ns, machine), &compute.Machine{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*compute.Machine), err
-}
-
-// Delete takes name of the machine and deletes it. Returns an error if one occurs.
-func (c *FakeMachines) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(machinesResource, c.ns, name, opts), &compute.Machine{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeMachines) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionAction(machinesResource, c.ns, listOpts)
-
- _, err := c.Fake.Invokes(action, &compute.MachineList{})
- return err
-}
-
-// Patch applies the patch and returns the patched machine.
-func (c *FakeMachines) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *compute.Machine, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceAction(machinesResource, c.ns, name, pt, data, subresources...), &compute.Machine{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*compute.Machine), err
-}
diff --git a/generated/clientset/internalversion/typed/compute/internalversion/fake/fake_machineclass.go b/generated/clientset/internalversion/typed/compute/internalversion/fake/fake_machineclass.go
deleted file mode 100644
index 04811b767..000000000
--- a/generated/clientset/internalversion/typed/compute/internalversion/fake/fake_machineclass.go
+++ /dev/null
@@ -1,129 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- "context"
-
- compute "github.com/onmetal/onmetal-api/apis/compute"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
-)
-
-// FakeMachineClasses implements MachineClassInterface
-type FakeMachineClasses struct {
- Fake *FakeCompute
- ns string
-}
-
-var machineclassesResource = schema.GroupVersionResource{Group: "compute.api.onmetal.de", Version: "", Resource: "machineclasses"}
-
-var machineclassesKind = schema.GroupVersionKind{Group: "compute.api.onmetal.de", Version: "", Kind: "MachineClass"}
-
-// Get takes name of the machineClass, and returns the corresponding machineClass object, and an error if there is any.
-func (c *FakeMachineClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *compute.MachineClass, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewGetAction(machineclassesResource, c.ns, name), &compute.MachineClass{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*compute.MachineClass), err
-}
-
-// List takes label and field selectors, and returns the list of MachineClasses that match those selectors.
-func (c *FakeMachineClasses) List(ctx context.Context, opts v1.ListOptions) (result *compute.MachineClassList, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewListAction(machineclassesResource, machineclassesKind, c.ns, opts), &compute.MachineClassList{})
-
- if obj == nil {
- return nil, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &compute.MachineClassList{ListMeta: obj.(*compute.MachineClassList).ListMeta}
- for _, item := range obj.(*compute.MachineClassList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested machineClasses.
-func (c *FakeMachineClasses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchAction(machineclassesResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a machineClass and creates it. Returns the server's representation of the machineClass, and an error, if there is any.
-func (c *FakeMachineClasses) Create(ctx context.Context, machineClass *compute.MachineClass, opts v1.CreateOptions) (result *compute.MachineClass, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewCreateAction(machineclassesResource, c.ns, machineClass), &compute.MachineClass{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*compute.MachineClass), err
-}
-
-// Update takes the representation of a machineClass and updates it. Returns the server's representation of the machineClass, and an error, if there is any.
-func (c *FakeMachineClasses) Update(ctx context.Context, machineClass *compute.MachineClass, opts v1.UpdateOptions) (result *compute.MachineClass, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateAction(machineclassesResource, c.ns, machineClass), &compute.MachineClass{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*compute.MachineClass), err
-}
-
-// Delete takes name of the machineClass and deletes it. Returns an error if one occurs.
-func (c *FakeMachineClasses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(machineclassesResource, c.ns, name, opts), &compute.MachineClass{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeMachineClasses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionAction(machineclassesResource, c.ns, listOpts)
-
- _, err := c.Fake.Invokes(action, &compute.MachineClassList{})
- return err
-}
-
-// Patch applies the patch and returns the patched machineClass.
-func (c *FakeMachineClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *compute.MachineClass, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceAction(machineclassesResource, c.ns, name, pt, data, subresources...), &compute.MachineClass{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*compute.MachineClass), err
-}
diff --git a/generated/clientset/internalversion/typed/compute/internalversion/fake/fake_machinepool.go b/generated/clientset/internalversion/typed/compute/internalversion/fake/fake_machinepool.go
deleted file mode 100644
index 955e9db68..000000000
--- a/generated/clientset/internalversion/typed/compute/internalversion/fake/fake_machinepool.go
+++ /dev/null
@@ -1,132 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- "context"
-
- compute "github.com/onmetal/onmetal-api/apis/compute"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
-)
-
-// FakeMachinePools implements MachinePoolInterface
-type FakeMachinePools struct {
- Fake *FakeCompute
-}
-
-var machinepoolsResource = schema.GroupVersionResource{Group: "compute.api.onmetal.de", Version: "", Resource: "machinepools"}
-
-var machinepoolsKind = schema.GroupVersionKind{Group: "compute.api.onmetal.de", Version: "", Kind: "MachinePool"}
-
-// Get takes name of the machinePool, and returns the corresponding machinePool object, and an error if there is any.
-func (c *FakeMachinePools) Get(ctx context.Context, name string, options v1.GetOptions) (result *compute.MachinePool, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewRootGetAction(machinepoolsResource, name), &compute.MachinePool{})
- if obj == nil {
- return nil, err
- }
- return obj.(*compute.MachinePool), err
-}
-
-// List takes label and field selectors, and returns the list of MachinePools that match those selectors.
-func (c *FakeMachinePools) List(ctx context.Context, opts v1.ListOptions) (result *compute.MachinePoolList, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewRootListAction(machinepoolsResource, machinepoolsKind, opts), &compute.MachinePoolList{})
- if obj == nil {
- return nil, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &compute.MachinePoolList{ListMeta: obj.(*compute.MachinePoolList).ListMeta}
- for _, item := range obj.(*compute.MachinePoolList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested machinePools.
-func (c *FakeMachinePools) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchAction(machinepoolsResource, opts))
-}
-
-// Create takes the representation of a machinePool and creates it. Returns the server's representation of the machinePool, and an error, if there is any.
-func (c *FakeMachinePools) Create(ctx context.Context, machinePool *compute.MachinePool, opts v1.CreateOptions) (result *compute.MachinePool, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateAction(machinepoolsResource, machinePool), &compute.MachinePool{})
- if obj == nil {
- return nil, err
- }
- return obj.(*compute.MachinePool), err
-}
-
-// Update takes the representation of a machinePool and updates it. Returns the server's representation of the machinePool, and an error, if there is any.
-func (c *FakeMachinePools) Update(ctx context.Context, machinePool *compute.MachinePool, opts v1.UpdateOptions) (result *compute.MachinePool, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateAction(machinepoolsResource, machinePool), &compute.MachinePool{})
- if obj == nil {
- return nil, err
- }
- return obj.(*compute.MachinePool), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeMachinePools) UpdateStatus(ctx context.Context, machinePool *compute.MachinePool, opts v1.UpdateOptions) (*compute.MachinePool, error) {
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceAction(machinepoolsResource, "status", machinePool), &compute.MachinePool{})
- if obj == nil {
- return nil, err
- }
- return obj.(*compute.MachinePool), err
-}
-
-// Delete takes name of the machinePool and deletes it. Returns an error if one occurs.
-func (c *FakeMachinePools) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(machinepoolsResource, name, opts), &compute.MachinePool{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeMachinePools) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewRootDeleteCollectionAction(machinepoolsResource, listOpts)
-
- _, err := c.Fake.Invokes(action, &compute.MachinePoolList{})
- return err
-}
-
-// Patch applies the patch and returns the patched machinePool.
-func (c *FakeMachinePools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *compute.MachinePool, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceAction(machinepoolsResource, name, pt, data, subresources...), &compute.MachinePool{})
- if obj == nil {
- return nil, err
- }
- return obj.(*compute.MachinePool), err
-}
diff --git a/generated/clientset/internalversion/typed/compute/internalversion/generated_expansion.go b/generated/clientset/internalversion/typed/compute/internalversion/generated_expansion.go
deleted file mode 100644
index cee0e86c8..000000000
--- a/generated/clientset/internalversion/typed/compute/internalversion/generated_expansion.go
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-type MachineExpansion interface{}
-
-type MachineClassExpansion interface{}
-
-type MachinePoolExpansion interface{}
diff --git a/generated/clientset/internalversion/typed/compute/internalversion/machine.go b/generated/clientset/internalversion/typed/compute/internalversion/machine.go
deleted file mode 100644
index 7737cb085..000000000
--- a/generated/clientset/internalversion/typed/compute/internalversion/machine.go
+++ /dev/null
@@ -1,194 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- "time"
-
- compute "github.com/onmetal/onmetal-api/apis/compute"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- rest "k8s.io/client-go/rest"
-)
-
-// MachinesGetter has a method to return a MachineInterface.
-// A group's client should implement this interface.
-type MachinesGetter interface {
- Machines(namespace string) MachineInterface
-}
-
-// MachineInterface has methods to work with Machine resources.
-type MachineInterface interface {
- Create(ctx context.Context, machine *compute.Machine, opts v1.CreateOptions) (*compute.Machine, error)
- Update(ctx context.Context, machine *compute.Machine, opts v1.UpdateOptions) (*compute.Machine, error)
- UpdateStatus(ctx context.Context, machine *compute.Machine, opts v1.UpdateOptions) (*compute.Machine, error)
- Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*compute.Machine, error)
- List(ctx context.Context, opts v1.ListOptions) (*compute.MachineList, error)
- Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *compute.Machine, err error)
- MachineExpansion
-}
-
-// machines implements MachineInterface
-type machines struct {
- client rest.Interface
- ns string
-}
-
-// newMachines returns a Machines
-func newMachines(c *ComputeClient, namespace string) *machines {
- return &machines{
- client: c.RESTClient(),
- ns: namespace,
- }
-}
-
-// Get takes name of the machine, and returns the corresponding machine object, and an error if there is any.
-func (c *machines) Get(ctx context.Context, name string, options v1.GetOptions) (result *compute.Machine, err error) {
- result = &compute.Machine{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("machines").
- Name(name).
- VersionedParams(&options, scheme.ParameterCodec).
- Do(ctx).
- Into(result)
- return
-}
-
-// List takes label and field selectors, and returns the list of Machines that match those selectors.
-func (c *machines) List(ctx context.Context, opts v1.ListOptions) (result *compute.MachineList, err error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- result = &compute.MachineList{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("machines").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Do(ctx).
- Into(result)
- return
-}
-
-// Watch returns a watch.Interface that watches the requested machines.
-func (c *machines) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- opts.Watch = true
- return c.client.Get().
- Namespace(c.ns).
- Resource("machines").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Watch(ctx)
-}
-
-// Create takes the representation of a machine and creates it. Returns the server's representation of the machine, and an error, if there is any.
-func (c *machines) Create(ctx context.Context, machine *compute.Machine, opts v1.CreateOptions) (result *compute.Machine, err error) {
- result = &compute.Machine{}
- err = c.client.Post().
- Namespace(c.ns).
- Resource("machines").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(machine).
- Do(ctx).
- Into(result)
- return
-}
-
-// Update takes the representation of a machine and updates it. Returns the server's representation of the machine, and an error, if there is any.
-func (c *machines) Update(ctx context.Context, machine *compute.Machine, opts v1.UpdateOptions) (result *compute.Machine, err error) {
- result = &compute.Machine{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("machines").
- Name(machine.Name).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(machine).
- Do(ctx).
- Into(result)
- return
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *machines) UpdateStatus(ctx context.Context, machine *compute.Machine, opts v1.UpdateOptions) (result *compute.Machine, err error) {
- result = &compute.Machine{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("machines").
- Name(machine.Name).
- SubResource("status").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(machine).
- Do(ctx).
- Into(result)
- return
-}
-
-// Delete takes name of the machine and deletes it. Returns an error if one occurs.
-func (c *machines) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- return c.client.Delete().
- Namespace(c.ns).
- Resource("machines").
- Name(name).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *machines) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- var timeout time.Duration
- if listOpts.TimeoutSeconds != nil {
- timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
- }
- return c.client.Delete().
- Namespace(c.ns).
- Resource("machines").
- VersionedParams(&listOpts, scheme.ParameterCodec).
- Timeout(timeout).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// Patch applies the patch and returns the patched machine.
-func (c *machines) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *compute.Machine, err error) {
- result = &compute.Machine{}
- err = c.client.Patch(pt).
- Namespace(c.ns).
- Resource("machines").
- Name(name).
- SubResource(subresources...).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(data).
- Do(ctx).
- Into(result)
- return
-}
diff --git a/generated/clientset/internalversion/typed/compute/internalversion/machineclass.go b/generated/clientset/internalversion/typed/compute/internalversion/machineclass.go
deleted file mode 100644
index 453955410..000000000
--- a/generated/clientset/internalversion/typed/compute/internalversion/machineclass.go
+++ /dev/null
@@ -1,177 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- "time"
-
- compute "github.com/onmetal/onmetal-api/apis/compute"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- rest "k8s.io/client-go/rest"
-)
-
-// MachineClassesGetter has a method to return a MachineClassInterface.
-// A group's client should implement this interface.
-type MachineClassesGetter interface {
- MachineClasses(namespace string) MachineClassInterface
-}
-
-// MachineClassInterface has methods to work with MachineClass resources.
-type MachineClassInterface interface {
- Create(ctx context.Context, machineClass *compute.MachineClass, opts v1.CreateOptions) (*compute.MachineClass, error)
- Update(ctx context.Context, machineClass *compute.MachineClass, opts v1.UpdateOptions) (*compute.MachineClass, error)
- Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*compute.MachineClass, error)
- List(ctx context.Context, opts v1.ListOptions) (*compute.MachineClassList, error)
- Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *compute.MachineClass, err error)
- MachineClassExpansion
-}
-
-// machineClasses implements MachineClassInterface
-type machineClasses struct {
- client rest.Interface
- ns string
-}
-
-// newMachineClasses returns a MachineClasses
-func newMachineClasses(c *ComputeClient, namespace string) *machineClasses {
- return &machineClasses{
- client: c.RESTClient(),
- ns: namespace,
- }
-}
-
-// Get takes name of the machineClass, and returns the corresponding machineClass object, and an error if there is any.
-func (c *machineClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *compute.MachineClass, err error) {
- result = &compute.MachineClass{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("machineclasses").
- Name(name).
- VersionedParams(&options, scheme.ParameterCodec).
- Do(ctx).
- Into(result)
- return
-}
-
-// List takes label and field selectors, and returns the list of MachineClasses that match those selectors.
-func (c *machineClasses) List(ctx context.Context, opts v1.ListOptions) (result *compute.MachineClassList, err error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- result = &compute.MachineClassList{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("machineclasses").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Do(ctx).
- Into(result)
- return
-}
-
-// Watch returns a watch.Interface that watches the requested machineClasses.
-func (c *machineClasses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- opts.Watch = true
- return c.client.Get().
- Namespace(c.ns).
- Resource("machineclasses").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Watch(ctx)
-}
-
-// Create takes the representation of a machineClass and creates it. Returns the server's representation of the machineClass, and an error, if there is any.
-func (c *machineClasses) Create(ctx context.Context, machineClass *compute.MachineClass, opts v1.CreateOptions) (result *compute.MachineClass, err error) {
- result = &compute.MachineClass{}
- err = c.client.Post().
- Namespace(c.ns).
- Resource("machineclasses").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(machineClass).
- Do(ctx).
- Into(result)
- return
-}
-
-// Update takes the representation of a machineClass and updates it. Returns the server's representation of the machineClass, and an error, if there is any.
-func (c *machineClasses) Update(ctx context.Context, machineClass *compute.MachineClass, opts v1.UpdateOptions) (result *compute.MachineClass, err error) {
- result = &compute.MachineClass{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("machineclasses").
- Name(machineClass.Name).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(machineClass).
- Do(ctx).
- Into(result)
- return
-}
-
-// Delete takes name of the machineClass and deletes it. Returns an error if one occurs.
-func (c *machineClasses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- return c.client.Delete().
- Namespace(c.ns).
- Resource("machineclasses").
- Name(name).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *machineClasses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- var timeout time.Duration
- if listOpts.TimeoutSeconds != nil {
- timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
- }
- return c.client.Delete().
- Namespace(c.ns).
- Resource("machineclasses").
- VersionedParams(&listOpts, scheme.ParameterCodec).
- Timeout(timeout).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// Patch applies the patch and returns the patched machineClass.
-func (c *machineClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *compute.MachineClass, err error) {
- result = &compute.MachineClass{}
- err = c.client.Patch(pt).
- Namespace(c.ns).
- Resource("machineclasses").
- Name(name).
- SubResource(subresources...).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(data).
- Do(ctx).
- Into(result)
- return
-}
diff --git a/generated/clientset/internalversion/typed/compute/internalversion/machinepool.go b/generated/clientset/internalversion/typed/compute/internalversion/machinepool.go
deleted file mode 100644
index ae11c05aa..000000000
--- a/generated/clientset/internalversion/typed/compute/internalversion/machinepool.go
+++ /dev/null
@@ -1,183 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- "time"
-
- compute "github.com/onmetal/onmetal-api/apis/compute"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- rest "k8s.io/client-go/rest"
-)
-
-// MachinePoolsGetter has a method to return a MachinePoolInterface.
-// A group's client should implement this interface.
-type MachinePoolsGetter interface {
- MachinePools() MachinePoolInterface
-}
-
-// MachinePoolInterface has methods to work with MachinePool resources.
-type MachinePoolInterface interface {
- Create(ctx context.Context, machinePool *compute.MachinePool, opts v1.CreateOptions) (*compute.MachinePool, error)
- Update(ctx context.Context, machinePool *compute.MachinePool, opts v1.UpdateOptions) (*compute.MachinePool, error)
- UpdateStatus(ctx context.Context, machinePool *compute.MachinePool, opts v1.UpdateOptions) (*compute.MachinePool, error)
- Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*compute.MachinePool, error)
- List(ctx context.Context, opts v1.ListOptions) (*compute.MachinePoolList, error)
- Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *compute.MachinePool, err error)
- MachinePoolExpansion
-}
-
-// machinePools implements MachinePoolInterface
-type machinePools struct {
- client rest.Interface
-}
-
-// newMachinePools returns a MachinePools
-func newMachinePools(c *ComputeClient) *machinePools {
- return &machinePools{
- client: c.RESTClient(),
- }
-}
-
-// Get takes name of the machinePool, and returns the corresponding machinePool object, and an error if there is any.
-func (c *machinePools) Get(ctx context.Context, name string, options v1.GetOptions) (result *compute.MachinePool, err error) {
- result = &compute.MachinePool{}
- err = c.client.Get().
- Resource("machinepools").
- Name(name).
- VersionedParams(&options, scheme.ParameterCodec).
- Do(ctx).
- Into(result)
- return
-}
-
-// List takes label and field selectors, and returns the list of MachinePools that match those selectors.
-func (c *machinePools) List(ctx context.Context, opts v1.ListOptions) (result *compute.MachinePoolList, err error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- result = &compute.MachinePoolList{}
- err = c.client.Get().
- Resource("machinepools").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Do(ctx).
- Into(result)
- return
-}
-
-// Watch returns a watch.Interface that watches the requested machinePools.
-func (c *machinePools) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- opts.Watch = true
- return c.client.Get().
- Resource("machinepools").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Watch(ctx)
-}
-
-// Create takes the representation of a machinePool and creates it. Returns the server's representation of the machinePool, and an error, if there is any.
-func (c *machinePools) Create(ctx context.Context, machinePool *compute.MachinePool, opts v1.CreateOptions) (result *compute.MachinePool, err error) {
- result = &compute.MachinePool{}
- err = c.client.Post().
- Resource("machinepools").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(machinePool).
- Do(ctx).
- Into(result)
- return
-}
-
-// Update takes the representation of a machinePool and updates it. Returns the server's representation of the machinePool, and an error, if there is any.
-func (c *machinePools) Update(ctx context.Context, machinePool *compute.MachinePool, opts v1.UpdateOptions) (result *compute.MachinePool, err error) {
- result = &compute.MachinePool{}
- err = c.client.Put().
- Resource("machinepools").
- Name(machinePool.Name).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(machinePool).
- Do(ctx).
- Into(result)
- return
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *machinePools) UpdateStatus(ctx context.Context, machinePool *compute.MachinePool, opts v1.UpdateOptions) (result *compute.MachinePool, err error) {
- result = &compute.MachinePool{}
- err = c.client.Put().
- Resource("machinepools").
- Name(machinePool.Name).
- SubResource("status").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(machinePool).
- Do(ctx).
- Into(result)
- return
-}
-
-// Delete takes name of the machinePool and deletes it. Returns an error if one occurs.
-func (c *machinePools) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- return c.client.Delete().
- Resource("machinepools").
- Name(name).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *machinePools) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- var timeout time.Duration
- if listOpts.TimeoutSeconds != nil {
- timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
- }
- return c.client.Delete().
- Resource("machinepools").
- VersionedParams(&listOpts, scheme.ParameterCodec).
- Timeout(timeout).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// Patch applies the patch and returns the patched machinePool.
-func (c *machinePools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *compute.MachinePool, err error) {
- result = &compute.MachinePool{}
- err = c.client.Patch(pt).
- Resource("machinepools").
- Name(name).
- SubResource(subresources...).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(data).
- Do(ctx).
- Into(result)
- return
-}
diff --git a/generated/clientset/internalversion/typed/ipam/internalversion/doc.go b/generated/clientset/internalversion/typed/ipam/internalversion/doc.go
deleted file mode 100644
index a7621fd4c..000000000
--- a/generated/clientset/internalversion/typed/ipam/internalversion/doc.go
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-// This package has the automatically generated typed clients.
-package internalversion
diff --git a/generated/clientset/internalversion/typed/ipam/internalversion/fake/fake_ipam_client.go b/generated/clientset/internalversion/typed/ipam/internalversion/fake/fake_ipam_client.go
deleted file mode 100644
index 2476298fc..000000000
--- a/generated/clientset/internalversion/typed/ipam/internalversion/fake/fake_ipam_client.go
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- internalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion/typed/ipam/internalversion"
- rest "k8s.io/client-go/rest"
- testing "k8s.io/client-go/testing"
-)
-
-type FakeIpam struct {
- *testing.Fake
-}
-
-func (c *FakeIpam) Prefixes(namespace string) internalversion.PrefixInterface {
- return &FakePrefixes{c, namespace}
-}
-
-func (c *FakeIpam) PrefixAllocations(namespace string) internalversion.PrefixAllocationInterface {
- return &FakePrefixAllocations{c, namespace}
-}
-
-// RESTClient returns a RESTClient that is used to communicate
-// with API server by this client implementation.
-func (c *FakeIpam) RESTClient() rest.Interface {
- var ret *rest.RESTClient
- return ret
-}
diff --git a/generated/clientset/internalversion/typed/ipam/internalversion/fake/fake_prefix.go b/generated/clientset/internalversion/typed/ipam/internalversion/fake/fake_prefix.go
deleted file mode 100644
index 608b6db15..000000000
--- a/generated/clientset/internalversion/typed/ipam/internalversion/fake/fake_prefix.go
+++ /dev/null
@@ -1,141 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- "context"
-
- ipam "github.com/onmetal/onmetal-api/apis/ipam"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
-)
-
-// FakePrefixes implements PrefixInterface
-type FakePrefixes struct {
- Fake *FakeIpam
- ns string
-}
-
-var prefixesResource = schema.GroupVersionResource{Group: "ipam.api.onmetal.de", Version: "", Resource: "prefixes"}
-
-var prefixesKind = schema.GroupVersionKind{Group: "ipam.api.onmetal.de", Version: "", Kind: "Prefix"}
-
-// Get takes name of the prefix, and returns the corresponding prefix object, and an error if there is any.
-func (c *FakePrefixes) Get(ctx context.Context, name string, options v1.GetOptions) (result *ipam.Prefix, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewGetAction(prefixesResource, c.ns, name), &ipam.Prefix{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*ipam.Prefix), err
-}
-
-// List takes label and field selectors, and returns the list of Prefixes that match those selectors.
-func (c *FakePrefixes) List(ctx context.Context, opts v1.ListOptions) (result *ipam.PrefixList, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewListAction(prefixesResource, prefixesKind, c.ns, opts), &ipam.PrefixList{})
-
- if obj == nil {
- return nil, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &ipam.PrefixList{ListMeta: obj.(*ipam.PrefixList).ListMeta}
- for _, item := range obj.(*ipam.PrefixList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested prefixes.
-func (c *FakePrefixes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchAction(prefixesResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a prefix and creates it. Returns the server's representation of the prefix, and an error, if there is any.
-func (c *FakePrefixes) Create(ctx context.Context, prefix *ipam.Prefix, opts v1.CreateOptions) (result *ipam.Prefix, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewCreateAction(prefixesResource, c.ns, prefix), &ipam.Prefix{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*ipam.Prefix), err
-}
-
-// Update takes the representation of a prefix and updates it. Returns the server's representation of the prefix, and an error, if there is any.
-func (c *FakePrefixes) Update(ctx context.Context, prefix *ipam.Prefix, opts v1.UpdateOptions) (result *ipam.Prefix, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateAction(prefixesResource, c.ns, prefix), &ipam.Prefix{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*ipam.Prefix), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakePrefixes) UpdateStatus(ctx context.Context, prefix *ipam.Prefix, opts v1.UpdateOptions) (*ipam.Prefix, error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceAction(prefixesResource, "status", c.ns, prefix), &ipam.Prefix{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*ipam.Prefix), err
-}
-
-// Delete takes name of the prefix and deletes it. Returns an error if one occurs.
-func (c *FakePrefixes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(prefixesResource, c.ns, name, opts), &ipam.Prefix{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakePrefixes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionAction(prefixesResource, c.ns, listOpts)
-
- _, err := c.Fake.Invokes(action, &ipam.PrefixList{})
- return err
-}
-
-// Patch applies the patch and returns the patched prefix.
-func (c *FakePrefixes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ipam.Prefix, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceAction(prefixesResource, c.ns, name, pt, data, subresources...), &ipam.Prefix{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*ipam.Prefix), err
-}
diff --git a/generated/clientset/internalversion/typed/ipam/internalversion/fake/fake_prefixallocation.go b/generated/clientset/internalversion/typed/ipam/internalversion/fake/fake_prefixallocation.go
deleted file mode 100644
index 54d61ed44..000000000
--- a/generated/clientset/internalversion/typed/ipam/internalversion/fake/fake_prefixallocation.go
+++ /dev/null
@@ -1,141 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- "context"
-
- ipam "github.com/onmetal/onmetal-api/apis/ipam"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
-)
-
-// FakePrefixAllocations implements PrefixAllocationInterface
-type FakePrefixAllocations struct {
- Fake *FakeIpam
- ns string
-}
-
-var prefixallocationsResource = schema.GroupVersionResource{Group: "ipam.api.onmetal.de", Version: "", Resource: "prefixallocations"}
-
-var prefixallocationsKind = schema.GroupVersionKind{Group: "ipam.api.onmetal.de", Version: "", Kind: "PrefixAllocation"}
-
-// Get takes name of the prefixAllocation, and returns the corresponding prefixAllocation object, and an error if there is any.
-func (c *FakePrefixAllocations) Get(ctx context.Context, name string, options v1.GetOptions) (result *ipam.PrefixAllocation, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewGetAction(prefixallocationsResource, c.ns, name), &ipam.PrefixAllocation{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*ipam.PrefixAllocation), err
-}
-
-// List takes label and field selectors, and returns the list of PrefixAllocations that match those selectors.
-func (c *FakePrefixAllocations) List(ctx context.Context, opts v1.ListOptions) (result *ipam.PrefixAllocationList, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewListAction(prefixallocationsResource, prefixallocationsKind, c.ns, opts), &ipam.PrefixAllocationList{})
-
- if obj == nil {
- return nil, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &ipam.PrefixAllocationList{ListMeta: obj.(*ipam.PrefixAllocationList).ListMeta}
- for _, item := range obj.(*ipam.PrefixAllocationList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested prefixAllocations.
-func (c *FakePrefixAllocations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchAction(prefixallocationsResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a prefixAllocation and creates it. Returns the server's representation of the prefixAllocation, and an error, if there is any.
-func (c *FakePrefixAllocations) Create(ctx context.Context, prefixAllocation *ipam.PrefixAllocation, opts v1.CreateOptions) (result *ipam.PrefixAllocation, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewCreateAction(prefixallocationsResource, c.ns, prefixAllocation), &ipam.PrefixAllocation{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*ipam.PrefixAllocation), err
-}
-
-// Update takes the representation of a prefixAllocation and updates it. Returns the server's representation of the prefixAllocation, and an error, if there is any.
-func (c *FakePrefixAllocations) Update(ctx context.Context, prefixAllocation *ipam.PrefixAllocation, opts v1.UpdateOptions) (result *ipam.PrefixAllocation, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateAction(prefixallocationsResource, c.ns, prefixAllocation), &ipam.PrefixAllocation{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*ipam.PrefixAllocation), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakePrefixAllocations) UpdateStatus(ctx context.Context, prefixAllocation *ipam.PrefixAllocation, opts v1.UpdateOptions) (*ipam.PrefixAllocation, error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceAction(prefixallocationsResource, "status", c.ns, prefixAllocation), &ipam.PrefixAllocation{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*ipam.PrefixAllocation), err
-}
-
-// Delete takes name of the prefixAllocation and deletes it. Returns an error if one occurs.
-func (c *FakePrefixAllocations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(prefixallocationsResource, c.ns, name, opts), &ipam.PrefixAllocation{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakePrefixAllocations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionAction(prefixallocationsResource, c.ns, listOpts)
-
- _, err := c.Fake.Invokes(action, &ipam.PrefixAllocationList{})
- return err
-}
-
-// Patch applies the patch and returns the patched prefixAllocation.
-func (c *FakePrefixAllocations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ipam.PrefixAllocation, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceAction(prefixallocationsResource, c.ns, name, pt, data, subresources...), &ipam.PrefixAllocation{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*ipam.PrefixAllocation), err
-}
diff --git a/generated/clientset/internalversion/typed/ipam/internalversion/generated_expansion.go b/generated/clientset/internalversion/typed/ipam/internalversion/generated_expansion.go
deleted file mode 100644
index 453628177..000000000
--- a/generated/clientset/internalversion/typed/ipam/internalversion/generated_expansion.go
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-type PrefixExpansion interface{}
-
-type PrefixAllocationExpansion interface{}
diff --git a/generated/clientset/internalversion/typed/ipam/internalversion/ipam_client.go b/generated/clientset/internalversion/typed/ipam/internalversion/ipam_client.go
deleted file mode 100644
index 646d4e0df..000000000
--- a/generated/clientset/internalversion/typed/ipam/internalversion/ipam_client.go
+++ /dev/null
@@ -1,118 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "net/http"
-
- "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- rest "k8s.io/client-go/rest"
-)
-
-type IpamInterface interface {
- RESTClient() rest.Interface
- PrefixesGetter
- PrefixAllocationsGetter
-}
-
-// IpamClient is used to interact with features provided by the ipam.api.onmetal.de group.
-type IpamClient struct {
- restClient rest.Interface
-}
-
-func (c *IpamClient) Prefixes(namespace string) PrefixInterface {
- return newPrefixes(c, namespace)
-}
-
-func (c *IpamClient) PrefixAllocations(namespace string) PrefixAllocationInterface {
- return newPrefixAllocations(c, namespace)
-}
-
-// NewForConfig creates a new IpamClient for the given config.
-// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
-// where httpClient was generated with rest.HTTPClientFor(c).
-func NewForConfig(c *rest.Config) (*IpamClient, error) {
- config := *c
- if err := setConfigDefaults(&config); err != nil {
- return nil, err
- }
- httpClient, err := rest.HTTPClientFor(&config)
- if err != nil {
- return nil, err
- }
- return NewForConfigAndClient(&config, httpClient)
-}
-
-// NewForConfigAndClient creates a new IpamClient for the given config and http client.
-// Note the http client provided takes precedence over the configured transport values.
-func NewForConfigAndClient(c *rest.Config, h *http.Client) (*IpamClient, error) {
- config := *c
- if err := setConfigDefaults(&config); err != nil {
- return nil, err
- }
- client, err := rest.RESTClientForConfigAndClient(&config, h)
- if err != nil {
- return nil, err
- }
- return &IpamClient{client}, nil
-}
-
-// NewForConfigOrDie creates a new IpamClient for the given config and
-// panics if there is an error in the config.
-func NewForConfigOrDie(c *rest.Config) *IpamClient {
- client, err := NewForConfig(c)
- if err != nil {
- panic(err)
- }
- return client
-}
-
-// New creates a new IpamClient for the given RESTClient.
-func New(c rest.Interface) *IpamClient {
- return &IpamClient{c}
-}
-
-func setConfigDefaults(config *rest.Config) error {
- config.APIPath = "/apis"
- if config.UserAgent == "" {
- config.UserAgent = rest.DefaultKubernetesUserAgent()
- }
- if config.GroupVersion == nil || config.GroupVersion.Group != scheme.Scheme.PrioritizedVersionsForGroup("ipam.api.onmetal.de")[0].Group {
- gv := scheme.Scheme.PrioritizedVersionsForGroup("ipam.api.onmetal.de")[0]
- config.GroupVersion = &gv
- }
- config.NegotiatedSerializer = scheme.Codecs
-
- if config.QPS == 0 {
- config.QPS = 5
- }
- if config.Burst == 0 {
- config.Burst = 10
- }
-
- return nil
-}
-
-// RESTClient returns a RESTClient that is used to communicate
-// with API server by this client implementation.
-func (c *IpamClient) RESTClient() rest.Interface {
- if c == nil {
- return nil
- }
- return c.restClient
-}
diff --git a/generated/clientset/internalversion/typed/ipam/internalversion/prefix.go b/generated/clientset/internalversion/typed/ipam/internalversion/prefix.go
deleted file mode 100644
index 20da9424b..000000000
--- a/generated/clientset/internalversion/typed/ipam/internalversion/prefix.go
+++ /dev/null
@@ -1,194 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- "time"
-
- ipam "github.com/onmetal/onmetal-api/apis/ipam"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- rest "k8s.io/client-go/rest"
-)
-
-// PrefixesGetter has a method to return a PrefixInterface.
-// A group's client should implement this interface.
-type PrefixesGetter interface {
- Prefixes(namespace string) PrefixInterface
-}
-
-// PrefixInterface has methods to work with Prefix resources.
-type PrefixInterface interface {
- Create(ctx context.Context, prefix *ipam.Prefix, opts v1.CreateOptions) (*ipam.Prefix, error)
- Update(ctx context.Context, prefix *ipam.Prefix, opts v1.UpdateOptions) (*ipam.Prefix, error)
- UpdateStatus(ctx context.Context, prefix *ipam.Prefix, opts v1.UpdateOptions) (*ipam.Prefix, error)
- Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*ipam.Prefix, error)
- List(ctx context.Context, opts v1.ListOptions) (*ipam.PrefixList, error)
- Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ipam.Prefix, err error)
- PrefixExpansion
-}
-
-// prefixes implements PrefixInterface
-type prefixes struct {
- client rest.Interface
- ns string
-}
-
-// newPrefixes returns a Prefixes
-func newPrefixes(c *IpamClient, namespace string) *prefixes {
- return &prefixes{
- client: c.RESTClient(),
- ns: namespace,
- }
-}
-
-// Get takes name of the prefix, and returns the corresponding prefix object, and an error if there is any.
-func (c *prefixes) Get(ctx context.Context, name string, options v1.GetOptions) (result *ipam.Prefix, err error) {
- result = &ipam.Prefix{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("prefixes").
- Name(name).
- VersionedParams(&options, scheme.ParameterCodec).
- Do(ctx).
- Into(result)
- return
-}
-
-// List takes label and field selectors, and returns the list of Prefixes that match those selectors.
-func (c *prefixes) List(ctx context.Context, opts v1.ListOptions) (result *ipam.PrefixList, err error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- result = &ipam.PrefixList{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("prefixes").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Do(ctx).
- Into(result)
- return
-}
-
-// Watch returns a watch.Interface that watches the requested prefixes.
-func (c *prefixes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- opts.Watch = true
- return c.client.Get().
- Namespace(c.ns).
- Resource("prefixes").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Watch(ctx)
-}
-
-// Create takes the representation of a prefix and creates it. Returns the server's representation of the prefix, and an error, if there is any.
-func (c *prefixes) Create(ctx context.Context, prefix *ipam.Prefix, opts v1.CreateOptions) (result *ipam.Prefix, err error) {
- result = &ipam.Prefix{}
- err = c.client.Post().
- Namespace(c.ns).
- Resource("prefixes").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(prefix).
- Do(ctx).
- Into(result)
- return
-}
-
-// Update takes the representation of a prefix and updates it. Returns the server's representation of the prefix, and an error, if there is any.
-func (c *prefixes) Update(ctx context.Context, prefix *ipam.Prefix, opts v1.UpdateOptions) (result *ipam.Prefix, err error) {
- result = &ipam.Prefix{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("prefixes").
- Name(prefix.Name).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(prefix).
- Do(ctx).
- Into(result)
- return
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *prefixes) UpdateStatus(ctx context.Context, prefix *ipam.Prefix, opts v1.UpdateOptions) (result *ipam.Prefix, err error) {
- result = &ipam.Prefix{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("prefixes").
- Name(prefix.Name).
- SubResource("status").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(prefix).
- Do(ctx).
- Into(result)
- return
-}
-
-// Delete takes name of the prefix and deletes it. Returns an error if one occurs.
-func (c *prefixes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- return c.client.Delete().
- Namespace(c.ns).
- Resource("prefixes").
- Name(name).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *prefixes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- var timeout time.Duration
- if listOpts.TimeoutSeconds != nil {
- timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
- }
- return c.client.Delete().
- Namespace(c.ns).
- Resource("prefixes").
- VersionedParams(&listOpts, scheme.ParameterCodec).
- Timeout(timeout).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// Patch applies the patch and returns the patched prefix.
-func (c *prefixes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ipam.Prefix, err error) {
- result = &ipam.Prefix{}
- err = c.client.Patch(pt).
- Namespace(c.ns).
- Resource("prefixes").
- Name(name).
- SubResource(subresources...).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(data).
- Do(ctx).
- Into(result)
- return
-}
diff --git a/generated/clientset/internalversion/typed/ipam/internalversion/prefixallocation.go b/generated/clientset/internalversion/typed/ipam/internalversion/prefixallocation.go
deleted file mode 100644
index 1a0ee0d03..000000000
--- a/generated/clientset/internalversion/typed/ipam/internalversion/prefixallocation.go
+++ /dev/null
@@ -1,194 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- "time"
-
- ipam "github.com/onmetal/onmetal-api/apis/ipam"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- rest "k8s.io/client-go/rest"
-)
-
-// PrefixAllocationsGetter has a method to return a PrefixAllocationInterface.
-// A group's client should implement this interface.
-type PrefixAllocationsGetter interface {
- PrefixAllocations(namespace string) PrefixAllocationInterface
-}
-
-// PrefixAllocationInterface has methods to work with PrefixAllocation resources.
-type PrefixAllocationInterface interface {
- Create(ctx context.Context, prefixAllocation *ipam.PrefixAllocation, opts v1.CreateOptions) (*ipam.PrefixAllocation, error)
- Update(ctx context.Context, prefixAllocation *ipam.PrefixAllocation, opts v1.UpdateOptions) (*ipam.PrefixAllocation, error)
- UpdateStatus(ctx context.Context, prefixAllocation *ipam.PrefixAllocation, opts v1.UpdateOptions) (*ipam.PrefixAllocation, error)
- Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*ipam.PrefixAllocation, error)
- List(ctx context.Context, opts v1.ListOptions) (*ipam.PrefixAllocationList, error)
- Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ipam.PrefixAllocation, err error)
- PrefixAllocationExpansion
-}
-
-// prefixAllocations implements PrefixAllocationInterface
-type prefixAllocations struct {
- client rest.Interface
- ns string
-}
-
-// newPrefixAllocations returns a PrefixAllocations
-func newPrefixAllocations(c *IpamClient, namespace string) *prefixAllocations {
- return &prefixAllocations{
- client: c.RESTClient(),
- ns: namespace,
- }
-}
-
-// Get takes name of the prefixAllocation, and returns the corresponding prefixAllocation object, and an error if there is any.
-func (c *prefixAllocations) Get(ctx context.Context, name string, options v1.GetOptions) (result *ipam.PrefixAllocation, err error) {
- result = &ipam.PrefixAllocation{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("prefixallocations").
- Name(name).
- VersionedParams(&options, scheme.ParameterCodec).
- Do(ctx).
- Into(result)
- return
-}
-
-// List takes label and field selectors, and returns the list of PrefixAllocations that match those selectors.
-func (c *prefixAllocations) List(ctx context.Context, opts v1.ListOptions) (result *ipam.PrefixAllocationList, err error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- result = &ipam.PrefixAllocationList{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("prefixallocations").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Do(ctx).
- Into(result)
- return
-}
-
-// Watch returns a watch.Interface that watches the requested prefixAllocations.
-func (c *prefixAllocations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- opts.Watch = true
- return c.client.Get().
- Namespace(c.ns).
- Resource("prefixallocations").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Watch(ctx)
-}
-
-// Create takes the representation of a prefixAllocation and creates it. Returns the server's representation of the prefixAllocation, and an error, if there is any.
-func (c *prefixAllocations) Create(ctx context.Context, prefixAllocation *ipam.PrefixAllocation, opts v1.CreateOptions) (result *ipam.PrefixAllocation, err error) {
- result = &ipam.PrefixAllocation{}
- err = c.client.Post().
- Namespace(c.ns).
- Resource("prefixallocations").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(prefixAllocation).
- Do(ctx).
- Into(result)
- return
-}
-
-// Update takes the representation of a prefixAllocation and updates it. Returns the server's representation of the prefixAllocation, and an error, if there is any.
-func (c *prefixAllocations) Update(ctx context.Context, prefixAllocation *ipam.PrefixAllocation, opts v1.UpdateOptions) (result *ipam.PrefixAllocation, err error) {
- result = &ipam.PrefixAllocation{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("prefixallocations").
- Name(prefixAllocation.Name).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(prefixAllocation).
- Do(ctx).
- Into(result)
- return
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *prefixAllocations) UpdateStatus(ctx context.Context, prefixAllocation *ipam.PrefixAllocation, opts v1.UpdateOptions) (result *ipam.PrefixAllocation, err error) {
- result = &ipam.PrefixAllocation{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("prefixallocations").
- Name(prefixAllocation.Name).
- SubResource("status").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(prefixAllocation).
- Do(ctx).
- Into(result)
- return
-}
-
-// Delete takes name of the prefixAllocation and deletes it. Returns an error if one occurs.
-func (c *prefixAllocations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- return c.client.Delete().
- Namespace(c.ns).
- Resource("prefixallocations").
- Name(name).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *prefixAllocations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- var timeout time.Duration
- if listOpts.TimeoutSeconds != nil {
- timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
- }
- return c.client.Delete().
- Namespace(c.ns).
- Resource("prefixallocations").
- VersionedParams(&listOpts, scheme.ParameterCodec).
- Timeout(timeout).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// Patch applies the patch and returns the patched prefixAllocation.
-func (c *prefixAllocations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ipam.PrefixAllocation, err error) {
- result = &ipam.PrefixAllocation{}
- err = c.client.Patch(pt).
- Namespace(c.ns).
- Resource("prefixallocations").
- Name(name).
- SubResource(subresources...).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(data).
- Do(ctx).
- Into(result)
- return
-}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/aliasprefix.go b/generated/clientset/internalversion/typed/networking/internalversion/aliasprefix.go
deleted file mode 100644
index 2648a5eb4..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/aliasprefix.go
+++ /dev/null
@@ -1,194 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- "time"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- rest "k8s.io/client-go/rest"
-)
-
-// AliasPrefixesGetter has a method to return a AliasPrefixInterface.
-// A group's client should implement this interface.
-type AliasPrefixesGetter interface {
- AliasPrefixes(namespace string) AliasPrefixInterface
-}
-
-// AliasPrefixInterface has methods to work with AliasPrefix resources.
-type AliasPrefixInterface interface {
- Create(ctx context.Context, aliasPrefix *networking.AliasPrefix, opts v1.CreateOptions) (*networking.AliasPrefix, error)
- Update(ctx context.Context, aliasPrefix *networking.AliasPrefix, opts v1.UpdateOptions) (*networking.AliasPrefix, error)
- UpdateStatus(ctx context.Context, aliasPrefix *networking.AliasPrefix, opts v1.UpdateOptions) (*networking.AliasPrefix, error)
- Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*networking.AliasPrefix, error)
- List(ctx context.Context, opts v1.ListOptions) (*networking.AliasPrefixList, error)
- Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.AliasPrefix, err error)
- AliasPrefixExpansion
-}
-
-// aliasPrefixes implements AliasPrefixInterface
-type aliasPrefixes struct {
- client rest.Interface
- ns string
-}
-
-// newAliasPrefixes returns a AliasPrefixes
-func newAliasPrefixes(c *NetworkingClient, namespace string) *aliasPrefixes {
- return &aliasPrefixes{
- client: c.RESTClient(),
- ns: namespace,
- }
-}
-
-// Get takes name of the aliasPrefix, and returns the corresponding aliasPrefix object, and an error if there is any.
-func (c *aliasPrefixes) Get(ctx context.Context, name string, options v1.GetOptions) (result *networking.AliasPrefix, err error) {
- result = &networking.AliasPrefix{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("aliasprefixes").
- Name(name).
- VersionedParams(&options, scheme.ParameterCodec).
- Do(ctx).
- Into(result)
- return
-}
-
-// List takes label and field selectors, and returns the list of AliasPrefixes that match those selectors.
-func (c *aliasPrefixes) List(ctx context.Context, opts v1.ListOptions) (result *networking.AliasPrefixList, err error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- result = &networking.AliasPrefixList{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("aliasprefixes").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Do(ctx).
- Into(result)
- return
-}
-
-// Watch returns a watch.Interface that watches the requested aliasPrefixes.
-func (c *aliasPrefixes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- opts.Watch = true
- return c.client.Get().
- Namespace(c.ns).
- Resource("aliasprefixes").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Watch(ctx)
-}
-
-// Create takes the representation of a aliasPrefix and creates it. Returns the server's representation of the aliasPrefix, and an error, if there is any.
-func (c *aliasPrefixes) Create(ctx context.Context, aliasPrefix *networking.AliasPrefix, opts v1.CreateOptions) (result *networking.AliasPrefix, err error) {
- result = &networking.AliasPrefix{}
- err = c.client.Post().
- Namespace(c.ns).
- Resource("aliasprefixes").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(aliasPrefix).
- Do(ctx).
- Into(result)
- return
-}
-
-// Update takes the representation of a aliasPrefix and updates it. Returns the server's representation of the aliasPrefix, and an error, if there is any.
-func (c *aliasPrefixes) Update(ctx context.Context, aliasPrefix *networking.AliasPrefix, opts v1.UpdateOptions) (result *networking.AliasPrefix, err error) {
- result = &networking.AliasPrefix{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("aliasprefixes").
- Name(aliasPrefix.Name).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(aliasPrefix).
- Do(ctx).
- Into(result)
- return
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *aliasPrefixes) UpdateStatus(ctx context.Context, aliasPrefix *networking.AliasPrefix, opts v1.UpdateOptions) (result *networking.AliasPrefix, err error) {
- result = &networking.AliasPrefix{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("aliasprefixes").
- Name(aliasPrefix.Name).
- SubResource("status").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(aliasPrefix).
- Do(ctx).
- Into(result)
- return
-}
-
-// Delete takes name of the aliasPrefix and deletes it. Returns an error if one occurs.
-func (c *aliasPrefixes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- return c.client.Delete().
- Namespace(c.ns).
- Resource("aliasprefixes").
- Name(name).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *aliasPrefixes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- var timeout time.Duration
- if listOpts.TimeoutSeconds != nil {
- timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
- }
- return c.client.Delete().
- Namespace(c.ns).
- Resource("aliasprefixes").
- VersionedParams(&listOpts, scheme.ParameterCodec).
- Timeout(timeout).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// Patch applies the patch and returns the patched aliasPrefix.
-func (c *aliasPrefixes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.AliasPrefix, err error) {
- result = &networking.AliasPrefix{}
- err = c.client.Patch(pt).
- Namespace(c.ns).
- Resource("aliasprefixes").
- Name(name).
- SubResource(subresources...).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(data).
- Do(ctx).
- Into(result)
- return
-}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/aliasprefixrouting.go b/generated/clientset/internalversion/typed/networking/internalversion/aliasprefixrouting.go
deleted file mode 100644
index bff501d83..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/aliasprefixrouting.go
+++ /dev/null
@@ -1,177 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- "time"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- rest "k8s.io/client-go/rest"
-)
-
-// AliasPrefixRoutingsGetter has a method to return a AliasPrefixRoutingInterface.
-// A group's client should implement this interface.
-type AliasPrefixRoutingsGetter interface {
- AliasPrefixRoutings(namespace string) AliasPrefixRoutingInterface
-}
-
-// AliasPrefixRoutingInterface has methods to work with AliasPrefixRouting resources.
-type AliasPrefixRoutingInterface interface {
- Create(ctx context.Context, aliasPrefixRouting *networking.AliasPrefixRouting, opts v1.CreateOptions) (*networking.AliasPrefixRouting, error)
- Update(ctx context.Context, aliasPrefixRouting *networking.AliasPrefixRouting, opts v1.UpdateOptions) (*networking.AliasPrefixRouting, error)
- Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*networking.AliasPrefixRouting, error)
- List(ctx context.Context, opts v1.ListOptions) (*networking.AliasPrefixRoutingList, error)
- Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.AliasPrefixRouting, err error)
- AliasPrefixRoutingExpansion
-}
-
-// aliasPrefixRoutings implements AliasPrefixRoutingInterface
-type aliasPrefixRoutings struct {
- client rest.Interface
- ns string
-}
-
-// newAliasPrefixRoutings returns a AliasPrefixRoutings
-func newAliasPrefixRoutings(c *NetworkingClient, namespace string) *aliasPrefixRoutings {
- return &aliasPrefixRoutings{
- client: c.RESTClient(),
- ns: namespace,
- }
-}
-
-// Get takes name of the aliasPrefixRouting, and returns the corresponding aliasPrefixRouting object, and an error if there is any.
-func (c *aliasPrefixRoutings) Get(ctx context.Context, name string, options v1.GetOptions) (result *networking.AliasPrefixRouting, err error) {
- result = &networking.AliasPrefixRouting{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("aliasprefixroutings").
- Name(name).
- VersionedParams(&options, scheme.ParameterCodec).
- Do(ctx).
- Into(result)
- return
-}
-
-// List takes label and field selectors, and returns the list of AliasPrefixRoutings that match those selectors.
-func (c *aliasPrefixRoutings) List(ctx context.Context, opts v1.ListOptions) (result *networking.AliasPrefixRoutingList, err error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- result = &networking.AliasPrefixRoutingList{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("aliasprefixroutings").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Do(ctx).
- Into(result)
- return
-}
-
-// Watch returns a watch.Interface that watches the requested aliasPrefixRoutings.
-func (c *aliasPrefixRoutings) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- opts.Watch = true
- return c.client.Get().
- Namespace(c.ns).
- Resource("aliasprefixroutings").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Watch(ctx)
-}
-
-// Create takes the representation of a aliasPrefixRouting and creates it. Returns the server's representation of the aliasPrefixRouting, and an error, if there is any.
-func (c *aliasPrefixRoutings) Create(ctx context.Context, aliasPrefixRouting *networking.AliasPrefixRouting, opts v1.CreateOptions) (result *networking.AliasPrefixRouting, err error) {
- result = &networking.AliasPrefixRouting{}
- err = c.client.Post().
- Namespace(c.ns).
- Resource("aliasprefixroutings").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(aliasPrefixRouting).
- Do(ctx).
- Into(result)
- return
-}
-
-// Update takes the representation of a aliasPrefixRouting and updates it. Returns the server's representation of the aliasPrefixRouting, and an error, if there is any.
-func (c *aliasPrefixRoutings) Update(ctx context.Context, aliasPrefixRouting *networking.AliasPrefixRouting, opts v1.UpdateOptions) (result *networking.AliasPrefixRouting, err error) {
- result = &networking.AliasPrefixRouting{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("aliasprefixroutings").
- Name(aliasPrefixRouting.Name).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(aliasPrefixRouting).
- Do(ctx).
- Into(result)
- return
-}
-
-// Delete takes name of the aliasPrefixRouting and deletes it. Returns an error if one occurs.
-func (c *aliasPrefixRoutings) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- return c.client.Delete().
- Namespace(c.ns).
- Resource("aliasprefixroutings").
- Name(name).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *aliasPrefixRoutings) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- var timeout time.Duration
- if listOpts.TimeoutSeconds != nil {
- timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
- }
- return c.client.Delete().
- Namespace(c.ns).
- Resource("aliasprefixroutings").
- VersionedParams(&listOpts, scheme.ParameterCodec).
- Timeout(timeout).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// Patch applies the patch and returns the patched aliasPrefixRouting.
-func (c *aliasPrefixRoutings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.AliasPrefixRouting, err error) {
- result = &networking.AliasPrefixRouting{}
- err = c.client.Patch(pt).
- Namespace(c.ns).
- Resource("aliasprefixroutings").
- Name(name).
- SubResource(subresources...).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(data).
- Do(ctx).
- Into(result)
- return
-}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/doc.go b/generated/clientset/internalversion/typed/networking/internalversion/doc.go
deleted file mode 100644
index a7621fd4c..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/doc.go
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-// This package has the automatically generated typed clients.
-package internalversion
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_aliasprefix.go b/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_aliasprefix.go
deleted file mode 100644
index 470224c93..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_aliasprefix.go
+++ /dev/null
@@ -1,141 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- "context"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
-)
-
-// FakeAliasPrefixes implements AliasPrefixInterface
-type FakeAliasPrefixes struct {
- Fake *FakeNetworking
- ns string
-}
-
-var aliasprefixesResource = schema.GroupVersionResource{Group: "networking.api.onmetal.de", Version: "", Resource: "aliasprefixes"}
-
-var aliasprefixesKind = schema.GroupVersionKind{Group: "networking.api.onmetal.de", Version: "", Kind: "AliasPrefix"}
-
-// Get takes name of the aliasPrefix, and returns the corresponding aliasPrefix object, and an error if there is any.
-func (c *FakeAliasPrefixes) Get(ctx context.Context, name string, options v1.GetOptions) (result *networking.AliasPrefix, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewGetAction(aliasprefixesResource, c.ns, name), &networking.AliasPrefix{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.AliasPrefix), err
-}
-
-// List takes label and field selectors, and returns the list of AliasPrefixes that match those selectors.
-func (c *FakeAliasPrefixes) List(ctx context.Context, opts v1.ListOptions) (result *networking.AliasPrefixList, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewListAction(aliasprefixesResource, aliasprefixesKind, c.ns, opts), &networking.AliasPrefixList{})
-
- if obj == nil {
- return nil, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &networking.AliasPrefixList{ListMeta: obj.(*networking.AliasPrefixList).ListMeta}
- for _, item := range obj.(*networking.AliasPrefixList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested aliasPrefixes.
-func (c *FakeAliasPrefixes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchAction(aliasprefixesResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a aliasPrefix and creates it. Returns the server's representation of the aliasPrefix, and an error, if there is any.
-func (c *FakeAliasPrefixes) Create(ctx context.Context, aliasPrefix *networking.AliasPrefix, opts v1.CreateOptions) (result *networking.AliasPrefix, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewCreateAction(aliasprefixesResource, c.ns, aliasPrefix), &networking.AliasPrefix{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.AliasPrefix), err
-}
-
-// Update takes the representation of a aliasPrefix and updates it. Returns the server's representation of the aliasPrefix, and an error, if there is any.
-func (c *FakeAliasPrefixes) Update(ctx context.Context, aliasPrefix *networking.AliasPrefix, opts v1.UpdateOptions) (result *networking.AliasPrefix, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateAction(aliasprefixesResource, c.ns, aliasPrefix), &networking.AliasPrefix{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.AliasPrefix), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeAliasPrefixes) UpdateStatus(ctx context.Context, aliasPrefix *networking.AliasPrefix, opts v1.UpdateOptions) (*networking.AliasPrefix, error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceAction(aliasprefixesResource, "status", c.ns, aliasPrefix), &networking.AliasPrefix{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.AliasPrefix), err
-}
-
-// Delete takes name of the aliasPrefix and deletes it. Returns an error if one occurs.
-func (c *FakeAliasPrefixes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(aliasprefixesResource, c.ns, name, opts), &networking.AliasPrefix{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeAliasPrefixes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionAction(aliasprefixesResource, c.ns, listOpts)
-
- _, err := c.Fake.Invokes(action, &networking.AliasPrefixList{})
- return err
-}
-
-// Patch applies the patch and returns the patched aliasPrefix.
-func (c *FakeAliasPrefixes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.AliasPrefix, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceAction(aliasprefixesResource, c.ns, name, pt, data, subresources...), &networking.AliasPrefix{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.AliasPrefix), err
-}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_aliasprefixrouting.go b/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_aliasprefixrouting.go
deleted file mode 100644
index e26cb120c..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_aliasprefixrouting.go
+++ /dev/null
@@ -1,129 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- "context"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
-)
-
-// FakeAliasPrefixRoutings implements AliasPrefixRoutingInterface
-type FakeAliasPrefixRoutings struct {
- Fake *FakeNetworking
- ns string
-}
-
-var aliasprefixroutingsResource = schema.GroupVersionResource{Group: "networking.api.onmetal.de", Version: "", Resource: "aliasprefixroutings"}
-
-var aliasprefixroutingsKind = schema.GroupVersionKind{Group: "networking.api.onmetal.de", Version: "", Kind: "AliasPrefixRouting"}
-
-// Get takes name of the aliasPrefixRouting, and returns the corresponding aliasPrefixRouting object, and an error if there is any.
-func (c *FakeAliasPrefixRoutings) Get(ctx context.Context, name string, options v1.GetOptions) (result *networking.AliasPrefixRouting, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewGetAction(aliasprefixroutingsResource, c.ns, name), &networking.AliasPrefixRouting{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.AliasPrefixRouting), err
-}
-
-// List takes label and field selectors, and returns the list of AliasPrefixRoutings that match those selectors.
-func (c *FakeAliasPrefixRoutings) List(ctx context.Context, opts v1.ListOptions) (result *networking.AliasPrefixRoutingList, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewListAction(aliasprefixroutingsResource, aliasprefixroutingsKind, c.ns, opts), &networking.AliasPrefixRoutingList{})
-
- if obj == nil {
- return nil, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &networking.AliasPrefixRoutingList{ListMeta: obj.(*networking.AliasPrefixRoutingList).ListMeta}
- for _, item := range obj.(*networking.AliasPrefixRoutingList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested aliasPrefixRoutings.
-func (c *FakeAliasPrefixRoutings) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchAction(aliasprefixroutingsResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a aliasPrefixRouting and creates it. Returns the server's representation of the aliasPrefixRouting, and an error, if there is any.
-func (c *FakeAliasPrefixRoutings) Create(ctx context.Context, aliasPrefixRouting *networking.AliasPrefixRouting, opts v1.CreateOptions) (result *networking.AliasPrefixRouting, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewCreateAction(aliasprefixroutingsResource, c.ns, aliasPrefixRouting), &networking.AliasPrefixRouting{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.AliasPrefixRouting), err
-}
-
-// Update takes the representation of a aliasPrefixRouting and updates it. Returns the server's representation of the aliasPrefixRouting, and an error, if there is any.
-func (c *FakeAliasPrefixRoutings) Update(ctx context.Context, aliasPrefixRouting *networking.AliasPrefixRouting, opts v1.UpdateOptions) (result *networking.AliasPrefixRouting, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateAction(aliasprefixroutingsResource, c.ns, aliasPrefixRouting), &networking.AliasPrefixRouting{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.AliasPrefixRouting), err
-}
-
-// Delete takes name of the aliasPrefixRouting and deletes it. Returns an error if one occurs.
-func (c *FakeAliasPrefixRoutings) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(aliasprefixroutingsResource, c.ns, name, opts), &networking.AliasPrefixRouting{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeAliasPrefixRoutings) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionAction(aliasprefixroutingsResource, c.ns, listOpts)
-
- _, err := c.Fake.Invokes(action, &networking.AliasPrefixRoutingList{})
- return err
-}
-
-// Patch applies the patch and returns the patched aliasPrefixRouting.
-func (c *FakeAliasPrefixRoutings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.AliasPrefixRouting, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceAction(aliasprefixroutingsResource, c.ns, name, pt, data, subresources...), &networking.AliasPrefixRouting{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.AliasPrefixRouting), err
-}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_loadbalancer.go b/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_loadbalancer.go
deleted file mode 100644
index 117d5f659..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_loadbalancer.go
+++ /dev/null
@@ -1,141 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- "context"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
-)
-
-// FakeLoadBalancers implements LoadBalancerInterface
-type FakeLoadBalancers struct {
- Fake *FakeNetworking
- ns string
-}
-
-var loadbalancersResource = schema.GroupVersionResource{Group: "networking.api.onmetal.de", Version: "", Resource: "loadbalancers"}
-
-var loadbalancersKind = schema.GroupVersionKind{Group: "networking.api.onmetal.de", Version: "", Kind: "LoadBalancer"}
-
-// Get takes name of the loadBalancer, and returns the corresponding loadBalancer object, and an error if there is any.
-func (c *FakeLoadBalancers) Get(ctx context.Context, name string, options v1.GetOptions) (result *networking.LoadBalancer, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewGetAction(loadbalancersResource, c.ns, name), &networking.LoadBalancer{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.LoadBalancer), err
-}
-
-// List takes label and field selectors, and returns the list of LoadBalancers that match those selectors.
-func (c *FakeLoadBalancers) List(ctx context.Context, opts v1.ListOptions) (result *networking.LoadBalancerList, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewListAction(loadbalancersResource, loadbalancersKind, c.ns, opts), &networking.LoadBalancerList{})
-
- if obj == nil {
- return nil, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &networking.LoadBalancerList{ListMeta: obj.(*networking.LoadBalancerList).ListMeta}
- for _, item := range obj.(*networking.LoadBalancerList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested loadBalancers.
-func (c *FakeLoadBalancers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchAction(loadbalancersResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a loadBalancer and creates it. Returns the server's representation of the loadBalancer, and an error, if there is any.
-func (c *FakeLoadBalancers) Create(ctx context.Context, loadBalancer *networking.LoadBalancer, opts v1.CreateOptions) (result *networking.LoadBalancer, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewCreateAction(loadbalancersResource, c.ns, loadBalancer), &networking.LoadBalancer{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.LoadBalancer), err
-}
-
-// Update takes the representation of a loadBalancer and updates it. Returns the server's representation of the loadBalancer, and an error, if there is any.
-func (c *FakeLoadBalancers) Update(ctx context.Context, loadBalancer *networking.LoadBalancer, opts v1.UpdateOptions) (result *networking.LoadBalancer, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateAction(loadbalancersResource, c.ns, loadBalancer), &networking.LoadBalancer{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.LoadBalancer), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeLoadBalancers) UpdateStatus(ctx context.Context, loadBalancer *networking.LoadBalancer, opts v1.UpdateOptions) (*networking.LoadBalancer, error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceAction(loadbalancersResource, "status", c.ns, loadBalancer), &networking.LoadBalancer{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.LoadBalancer), err
-}
-
-// Delete takes name of the loadBalancer and deletes it. Returns an error if one occurs.
-func (c *FakeLoadBalancers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(loadbalancersResource, c.ns, name, opts), &networking.LoadBalancer{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeLoadBalancers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionAction(loadbalancersResource, c.ns, listOpts)
-
- _, err := c.Fake.Invokes(action, &networking.LoadBalancerList{})
- return err
-}
-
-// Patch applies the patch and returns the patched loadBalancer.
-func (c *FakeLoadBalancers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.LoadBalancer, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceAction(loadbalancersResource, c.ns, name, pt, data, subresources...), &networking.LoadBalancer{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.LoadBalancer), err
-}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_loadbalancerrouting.go b/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_loadbalancerrouting.go
deleted file mode 100644
index c3b6d4d43..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_loadbalancerrouting.go
+++ /dev/null
@@ -1,129 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- "context"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
-)
-
-// FakeLoadBalancerRoutings implements LoadBalancerRoutingInterface
-type FakeLoadBalancerRoutings struct {
- Fake *FakeNetworking
- ns string
-}
-
-var loadbalancerroutingsResource = schema.GroupVersionResource{Group: "networking.api.onmetal.de", Version: "", Resource: "loadbalancerroutings"}
-
-var loadbalancerroutingsKind = schema.GroupVersionKind{Group: "networking.api.onmetal.de", Version: "", Kind: "LoadBalancerRouting"}
-
-// Get takes name of the loadBalancerRouting, and returns the corresponding loadBalancerRouting object, and an error if there is any.
-func (c *FakeLoadBalancerRoutings) Get(ctx context.Context, name string, options v1.GetOptions) (result *networking.LoadBalancerRouting, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewGetAction(loadbalancerroutingsResource, c.ns, name), &networking.LoadBalancerRouting{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.LoadBalancerRouting), err
-}
-
-// List takes label and field selectors, and returns the list of LoadBalancerRoutings that match those selectors.
-func (c *FakeLoadBalancerRoutings) List(ctx context.Context, opts v1.ListOptions) (result *networking.LoadBalancerRoutingList, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewListAction(loadbalancerroutingsResource, loadbalancerroutingsKind, c.ns, opts), &networking.LoadBalancerRoutingList{})
-
- if obj == nil {
- return nil, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &networking.LoadBalancerRoutingList{ListMeta: obj.(*networking.LoadBalancerRoutingList).ListMeta}
- for _, item := range obj.(*networking.LoadBalancerRoutingList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested loadBalancerRoutings.
-func (c *FakeLoadBalancerRoutings) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchAction(loadbalancerroutingsResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a loadBalancerRouting and creates it. Returns the server's representation of the loadBalancerRouting, and an error, if there is any.
-func (c *FakeLoadBalancerRoutings) Create(ctx context.Context, loadBalancerRouting *networking.LoadBalancerRouting, opts v1.CreateOptions) (result *networking.LoadBalancerRouting, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewCreateAction(loadbalancerroutingsResource, c.ns, loadBalancerRouting), &networking.LoadBalancerRouting{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.LoadBalancerRouting), err
-}
-
-// Update takes the representation of a loadBalancerRouting and updates it. Returns the server's representation of the loadBalancerRouting, and an error, if there is any.
-func (c *FakeLoadBalancerRoutings) Update(ctx context.Context, loadBalancerRouting *networking.LoadBalancerRouting, opts v1.UpdateOptions) (result *networking.LoadBalancerRouting, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateAction(loadbalancerroutingsResource, c.ns, loadBalancerRouting), &networking.LoadBalancerRouting{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.LoadBalancerRouting), err
-}
-
-// Delete takes name of the loadBalancerRouting and deletes it. Returns an error if one occurs.
-func (c *FakeLoadBalancerRoutings) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(loadbalancerroutingsResource, c.ns, name, opts), &networking.LoadBalancerRouting{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeLoadBalancerRoutings) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionAction(loadbalancerroutingsResource, c.ns, listOpts)
-
- _, err := c.Fake.Invokes(action, &networking.LoadBalancerRoutingList{})
- return err
-}
-
-// Patch applies the patch and returns the patched loadBalancerRouting.
-func (c *FakeLoadBalancerRoutings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.LoadBalancerRouting, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceAction(loadbalancerroutingsResource, c.ns, name, pt, data, subresources...), &networking.LoadBalancerRouting{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.LoadBalancerRouting), err
-}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_natgateway.go b/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_natgateway.go
deleted file mode 100644
index 2f3de1125..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_natgateway.go
+++ /dev/null
@@ -1,141 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- "context"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
-)
-
-// FakeNATGateways implements NATGatewayInterface
-type FakeNATGateways struct {
- Fake *FakeNetworking
- ns string
-}
-
-var natgatewaysResource = schema.GroupVersionResource{Group: "networking.api.onmetal.de", Version: "", Resource: "natgateways"}
-
-var natgatewaysKind = schema.GroupVersionKind{Group: "networking.api.onmetal.de", Version: "", Kind: "NATGateway"}
-
-// Get takes name of the nATGateway, and returns the corresponding nATGateway object, and an error if there is any.
-func (c *FakeNATGateways) Get(ctx context.Context, name string, options v1.GetOptions) (result *networking.NATGateway, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewGetAction(natgatewaysResource, c.ns, name), &networking.NATGateway{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.NATGateway), err
-}
-
-// List takes label and field selectors, and returns the list of NATGateways that match those selectors.
-func (c *FakeNATGateways) List(ctx context.Context, opts v1.ListOptions) (result *networking.NATGatewayList, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewListAction(natgatewaysResource, natgatewaysKind, c.ns, opts), &networking.NATGatewayList{})
-
- if obj == nil {
- return nil, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &networking.NATGatewayList{ListMeta: obj.(*networking.NATGatewayList).ListMeta}
- for _, item := range obj.(*networking.NATGatewayList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested nATGateways.
-func (c *FakeNATGateways) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchAction(natgatewaysResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a nATGateway and creates it. Returns the server's representation of the nATGateway, and an error, if there is any.
-func (c *FakeNATGateways) Create(ctx context.Context, nATGateway *networking.NATGateway, opts v1.CreateOptions) (result *networking.NATGateway, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewCreateAction(natgatewaysResource, c.ns, nATGateway), &networking.NATGateway{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.NATGateway), err
-}
-
-// Update takes the representation of a nATGateway and updates it. Returns the server's representation of the nATGateway, and an error, if there is any.
-func (c *FakeNATGateways) Update(ctx context.Context, nATGateway *networking.NATGateway, opts v1.UpdateOptions) (result *networking.NATGateway, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateAction(natgatewaysResource, c.ns, nATGateway), &networking.NATGateway{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.NATGateway), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeNATGateways) UpdateStatus(ctx context.Context, nATGateway *networking.NATGateway, opts v1.UpdateOptions) (*networking.NATGateway, error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceAction(natgatewaysResource, "status", c.ns, nATGateway), &networking.NATGateway{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.NATGateway), err
-}
-
-// Delete takes name of the nATGateway and deletes it. Returns an error if one occurs.
-func (c *FakeNATGateways) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(natgatewaysResource, c.ns, name, opts), &networking.NATGateway{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeNATGateways) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionAction(natgatewaysResource, c.ns, listOpts)
-
- _, err := c.Fake.Invokes(action, &networking.NATGatewayList{})
- return err
-}
-
-// Patch applies the patch and returns the patched nATGateway.
-func (c *FakeNATGateways) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.NATGateway, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceAction(natgatewaysResource, c.ns, name, pt, data, subresources...), &networking.NATGateway{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.NATGateway), err
-}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_natgatewayrouting.go b/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_natgatewayrouting.go
deleted file mode 100644
index 765239cbe..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_natgatewayrouting.go
+++ /dev/null
@@ -1,129 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- "context"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
-)
-
-// FakeNATGatewayRoutings implements NATGatewayRoutingInterface
-type FakeNATGatewayRoutings struct {
- Fake *FakeNetworking
- ns string
-}
-
-var natgatewayroutingsResource = schema.GroupVersionResource{Group: "networking.api.onmetal.de", Version: "", Resource: "natgatewayroutings"}
-
-var natgatewayroutingsKind = schema.GroupVersionKind{Group: "networking.api.onmetal.de", Version: "", Kind: "NATGatewayRouting"}
-
-// Get takes name of the nATGatewayRouting, and returns the corresponding nATGatewayRouting object, and an error if there is any.
-func (c *FakeNATGatewayRoutings) Get(ctx context.Context, name string, options v1.GetOptions) (result *networking.NATGatewayRouting, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewGetAction(natgatewayroutingsResource, c.ns, name), &networking.NATGatewayRouting{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.NATGatewayRouting), err
-}
-
-// List takes label and field selectors, and returns the list of NATGatewayRoutings that match those selectors.
-func (c *FakeNATGatewayRoutings) List(ctx context.Context, opts v1.ListOptions) (result *networking.NATGatewayRoutingList, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewListAction(natgatewayroutingsResource, natgatewayroutingsKind, c.ns, opts), &networking.NATGatewayRoutingList{})
-
- if obj == nil {
- return nil, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &networking.NATGatewayRoutingList{ListMeta: obj.(*networking.NATGatewayRoutingList).ListMeta}
- for _, item := range obj.(*networking.NATGatewayRoutingList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested nATGatewayRoutings.
-func (c *FakeNATGatewayRoutings) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchAction(natgatewayroutingsResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a nATGatewayRouting and creates it. Returns the server's representation of the nATGatewayRouting, and an error, if there is any.
-func (c *FakeNATGatewayRoutings) Create(ctx context.Context, nATGatewayRouting *networking.NATGatewayRouting, opts v1.CreateOptions) (result *networking.NATGatewayRouting, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewCreateAction(natgatewayroutingsResource, c.ns, nATGatewayRouting), &networking.NATGatewayRouting{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.NATGatewayRouting), err
-}
-
-// Update takes the representation of a nATGatewayRouting and updates it. Returns the server's representation of the nATGatewayRouting, and an error, if there is any.
-func (c *FakeNATGatewayRoutings) Update(ctx context.Context, nATGatewayRouting *networking.NATGatewayRouting, opts v1.UpdateOptions) (result *networking.NATGatewayRouting, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateAction(natgatewayroutingsResource, c.ns, nATGatewayRouting), &networking.NATGatewayRouting{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.NATGatewayRouting), err
-}
-
-// Delete takes name of the nATGatewayRouting and deletes it. Returns an error if one occurs.
-func (c *FakeNATGatewayRoutings) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(natgatewayroutingsResource, c.ns, name, opts), &networking.NATGatewayRouting{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeNATGatewayRoutings) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionAction(natgatewayroutingsResource, c.ns, listOpts)
-
- _, err := c.Fake.Invokes(action, &networking.NATGatewayRoutingList{})
- return err
-}
-
-// Patch applies the patch and returns the patched nATGatewayRouting.
-func (c *FakeNATGatewayRoutings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.NATGatewayRouting, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceAction(natgatewayroutingsResource, c.ns, name, pt, data, subresources...), &networking.NATGatewayRouting{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.NATGatewayRouting), err
-}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_network.go b/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_network.go
deleted file mode 100644
index 1b03cc2df..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_network.go
+++ /dev/null
@@ -1,141 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- "context"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
-)
-
-// FakeNetworks implements NetworkInterface
-type FakeNetworks struct {
- Fake *FakeNetworking
- ns string
-}
-
-var networksResource = schema.GroupVersionResource{Group: "networking.api.onmetal.de", Version: "", Resource: "networks"}
-
-var networksKind = schema.GroupVersionKind{Group: "networking.api.onmetal.de", Version: "", Kind: "Network"}
-
-// Get takes name of the network, and returns the corresponding network object, and an error if there is any.
-func (c *FakeNetworks) Get(ctx context.Context, name string, options v1.GetOptions) (result *networking.Network, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewGetAction(networksResource, c.ns, name), &networking.Network{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.Network), err
-}
-
-// List takes label and field selectors, and returns the list of Networks that match those selectors.
-func (c *FakeNetworks) List(ctx context.Context, opts v1.ListOptions) (result *networking.NetworkList, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewListAction(networksResource, networksKind, c.ns, opts), &networking.NetworkList{})
-
- if obj == nil {
- return nil, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &networking.NetworkList{ListMeta: obj.(*networking.NetworkList).ListMeta}
- for _, item := range obj.(*networking.NetworkList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested networks.
-func (c *FakeNetworks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchAction(networksResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a network and creates it. Returns the server's representation of the network, and an error, if there is any.
-func (c *FakeNetworks) Create(ctx context.Context, network *networking.Network, opts v1.CreateOptions) (result *networking.Network, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewCreateAction(networksResource, c.ns, network), &networking.Network{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.Network), err
-}
-
-// Update takes the representation of a network and updates it. Returns the server's representation of the network, and an error, if there is any.
-func (c *FakeNetworks) Update(ctx context.Context, network *networking.Network, opts v1.UpdateOptions) (result *networking.Network, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateAction(networksResource, c.ns, network), &networking.Network{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.Network), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeNetworks) UpdateStatus(ctx context.Context, network *networking.Network, opts v1.UpdateOptions) (*networking.Network, error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceAction(networksResource, "status", c.ns, network), &networking.Network{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.Network), err
-}
-
-// Delete takes name of the network and deletes it. Returns an error if one occurs.
-func (c *FakeNetworks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(networksResource, c.ns, name, opts), &networking.Network{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeNetworks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionAction(networksResource, c.ns, listOpts)
-
- _, err := c.Fake.Invokes(action, &networking.NetworkList{})
- return err
-}
-
-// Patch applies the patch and returns the patched network.
-func (c *FakeNetworks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.Network, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceAction(networksResource, c.ns, name, pt, data, subresources...), &networking.Network{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.Network), err
-}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_networking_client.go b/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_networking_client.go
deleted file mode 100644
index 75e64fda9..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_networking_client.go
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- internalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion/typed/networking/internalversion"
- rest "k8s.io/client-go/rest"
- testing "k8s.io/client-go/testing"
-)
-
-type FakeNetworking struct {
- *testing.Fake
-}
-
-func (c *FakeNetworking) AliasPrefixes(namespace string) internalversion.AliasPrefixInterface {
- return &FakeAliasPrefixes{c, namespace}
-}
-
-func (c *FakeNetworking) AliasPrefixRoutings(namespace string) internalversion.AliasPrefixRoutingInterface {
- return &FakeAliasPrefixRoutings{c, namespace}
-}
-
-func (c *FakeNetworking) LoadBalancers(namespace string) internalversion.LoadBalancerInterface {
- return &FakeLoadBalancers{c, namespace}
-}
-
-func (c *FakeNetworking) LoadBalancerRoutings(namespace string) internalversion.LoadBalancerRoutingInterface {
- return &FakeLoadBalancerRoutings{c, namespace}
-}
-
-func (c *FakeNetworking) NATGateways(namespace string) internalversion.NATGatewayInterface {
- return &FakeNATGateways{c, namespace}
-}
-
-func (c *FakeNetworking) NATGatewayRoutings(namespace string) internalversion.NATGatewayRoutingInterface {
- return &FakeNATGatewayRoutings{c, namespace}
-}
-
-func (c *FakeNetworking) Networks(namespace string) internalversion.NetworkInterface {
- return &FakeNetworks{c, namespace}
-}
-
-func (c *FakeNetworking) NetworkInterfaces(namespace string) internalversion.NetworkInterfaceInterface {
- return &FakeNetworkInterfaces{c, namespace}
-}
-
-func (c *FakeNetworking) VirtualIPs(namespace string) internalversion.VirtualIPInterface {
- return &FakeVirtualIPs{c, namespace}
-}
-
-// RESTClient returns a RESTClient that is used to communicate
-// with API server by this client implementation.
-func (c *FakeNetworking) RESTClient() rest.Interface {
- var ret *rest.RESTClient
- return ret
-}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_networkinterface.go b/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_networkinterface.go
deleted file mode 100644
index 7418f3cdd..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_networkinterface.go
+++ /dev/null
@@ -1,141 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- "context"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
-)
-
-// FakeNetworkInterfaces implements NetworkInterfaceInterface
-type FakeNetworkInterfaces struct {
- Fake *FakeNetworking
- ns string
-}
-
-var networkinterfacesResource = schema.GroupVersionResource{Group: "networking.api.onmetal.de", Version: "", Resource: "networkinterfaces"}
-
-var networkinterfacesKind = schema.GroupVersionKind{Group: "networking.api.onmetal.de", Version: "", Kind: "NetworkInterface"}
-
-// Get takes name of the networkInterface, and returns the corresponding networkInterface object, and an error if there is any.
-func (c *FakeNetworkInterfaces) Get(ctx context.Context, name string, options v1.GetOptions) (result *networking.NetworkInterface, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewGetAction(networkinterfacesResource, c.ns, name), &networking.NetworkInterface{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.NetworkInterface), err
-}
-
-// List takes label and field selectors, and returns the list of NetworkInterfaces that match those selectors.
-func (c *FakeNetworkInterfaces) List(ctx context.Context, opts v1.ListOptions) (result *networking.NetworkInterfaceList, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewListAction(networkinterfacesResource, networkinterfacesKind, c.ns, opts), &networking.NetworkInterfaceList{})
-
- if obj == nil {
- return nil, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &networking.NetworkInterfaceList{ListMeta: obj.(*networking.NetworkInterfaceList).ListMeta}
- for _, item := range obj.(*networking.NetworkInterfaceList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested networkInterfaces.
-func (c *FakeNetworkInterfaces) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchAction(networkinterfacesResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a networkInterface and creates it. Returns the server's representation of the networkInterface, and an error, if there is any.
-func (c *FakeNetworkInterfaces) Create(ctx context.Context, networkInterface *networking.NetworkInterface, opts v1.CreateOptions) (result *networking.NetworkInterface, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewCreateAction(networkinterfacesResource, c.ns, networkInterface), &networking.NetworkInterface{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.NetworkInterface), err
-}
-
-// Update takes the representation of a networkInterface and updates it. Returns the server's representation of the networkInterface, and an error, if there is any.
-func (c *FakeNetworkInterfaces) Update(ctx context.Context, networkInterface *networking.NetworkInterface, opts v1.UpdateOptions) (result *networking.NetworkInterface, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateAction(networkinterfacesResource, c.ns, networkInterface), &networking.NetworkInterface{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.NetworkInterface), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeNetworkInterfaces) UpdateStatus(ctx context.Context, networkInterface *networking.NetworkInterface, opts v1.UpdateOptions) (*networking.NetworkInterface, error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceAction(networkinterfacesResource, "status", c.ns, networkInterface), &networking.NetworkInterface{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.NetworkInterface), err
-}
-
-// Delete takes name of the networkInterface and deletes it. Returns an error if one occurs.
-func (c *FakeNetworkInterfaces) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(networkinterfacesResource, c.ns, name, opts), &networking.NetworkInterface{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeNetworkInterfaces) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionAction(networkinterfacesResource, c.ns, listOpts)
-
- _, err := c.Fake.Invokes(action, &networking.NetworkInterfaceList{})
- return err
-}
-
-// Patch applies the patch and returns the patched networkInterface.
-func (c *FakeNetworkInterfaces) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.NetworkInterface, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceAction(networkinterfacesResource, c.ns, name, pt, data, subresources...), &networking.NetworkInterface{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.NetworkInterface), err
-}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_virtualip.go b/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_virtualip.go
deleted file mode 100644
index c738ed761..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/fake/fake_virtualip.go
+++ /dev/null
@@ -1,141 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- "context"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
-)
-
-// FakeVirtualIPs implements VirtualIPInterface
-type FakeVirtualIPs struct {
- Fake *FakeNetworking
- ns string
-}
-
-var virtualipsResource = schema.GroupVersionResource{Group: "networking.api.onmetal.de", Version: "", Resource: "virtualips"}
-
-var virtualipsKind = schema.GroupVersionKind{Group: "networking.api.onmetal.de", Version: "", Kind: "VirtualIP"}
-
-// Get takes name of the virtualIP, and returns the corresponding virtualIP object, and an error if there is any.
-func (c *FakeVirtualIPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *networking.VirtualIP, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewGetAction(virtualipsResource, c.ns, name), &networking.VirtualIP{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.VirtualIP), err
-}
-
-// List takes label and field selectors, and returns the list of VirtualIPs that match those selectors.
-func (c *FakeVirtualIPs) List(ctx context.Context, opts v1.ListOptions) (result *networking.VirtualIPList, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewListAction(virtualipsResource, virtualipsKind, c.ns, opts), &networking.VirtualIPList{})
-
- if obj == nil {
- return nil, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &networking.VirtualIPList{ListMeta: obj.(*networking.VirtualIPList).ListMeta}
- for _, item := range obj.(*networking.VirtualIPList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested virtualIPs.
-func (c *FakeVirtualIPs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchAction(virtualipsResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a virtualIP and creates it. Returns the server's representation of the virtualIP, and an error, if there is any.
-func (c *FakeVirtualIPs) Create(ctx context.Context, virtualIP *networking.VirtualIP, opts v1.CreateOptions) (result *networking.VirtualIP, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewCreateAction(virtualipsResource, c.ns, virtualIP), &networking.VirtualIP{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.VirtualIP), err
-}
-
-// Update takes the representation of a virtualIP and updates it. Returns the server's representation of the virtualIP, and an error, if there is any.
-func (c *FakeVirtualIPs) Update(ctx context.Context, virtualIP *networking.VirtualIP, opts v1.UpdateOptions) (result *networking.VirtualIP, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateAction(virtualipsResource, c.ns, virtualIP), &networking.VirtualIP{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.VirtualIP), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeVirtualIPs) UpdateStatus(ctx context.Context, virtualIP *networking.VirtualIP, opts v1.UpdateOptions) (*networking.VirtualIP, error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceAction(virtualipsResource, "status", c.ns, virtualIP), &networking.VirtualIP{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.VirtualIP), err
-}
-
-// Delete takes name of the virtualIP and deletes it. Returns an error if one occurs.
-func (c *FakeVirtualIPs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(virtualipsResource, c.ns, name, opts), &networking.VirtualIP{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeVirtualIPs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionAction(virtualipsResource, c.ns, listOpts)
-
- _, err := c.Fake.Invokes(action, &networking.VirtualIPList{})
- return err
-}
-
-// Patch applies the patch and returns the patched virtualIP.
-func (c *FakeVirtualIPs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.VirtualIP, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceAction(virtualipsResource, c.ns, name, pt, data, subresources...), &networking.VirtualIP{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*networking.VirtualIP), err
-}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/generated_expansion.go b/generated/clientset/internalversion/typed/networking/internalversion/generated_expansion.go
deleted file mode 100644
index 544f13f61..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/generated_expansion.go
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-type AliasPrefixExpansion interface{}
-
-type AliasPrefixRoutingExpansion interface{}
-
-type LoadBalancerExpansion interface{}
-
-type LoadBalancerRoutingExpansion interface{}
-
-type NATGatewayExpansion interface{}
-
-type NATGatewayRoutingExpansion interface{}
-
-type NetworkExpansion interface{}
-
-type NetworkInterfaceExpansion interface{}
-
-type VirtualIPExpansion interface{}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/loadbalancer.go b/generated/clientset/internalversion/typed/networking/internalversion/loadbalancer.go
deleted file mode 100644
index 77f5f22b2..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/loadbalancer.go
+++ /dev/null
@@ -1,194 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- "time"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- rest "k8s.io/client-go/rest"
-)
-
-// LoadBalancersGetter has a method to return a LoadBalancerInterface.
-// A group's client should implement this interface.
-type LoadBalancersGetter interface {
- LoadBalancers(namespace string) LoadBalancerInterface
-}
-
-// LoadBalancerInterface has methods to work with LoadBalancer resources.
-type LoadBalancerInterface interface {
- Create(ctx context.Context, loadBalancer *networking.LoadBalancer, opts v1.CreateOptions) (*networking.LoadBalancer, error)
- Update(ctx context.Context, loadBalancer *networking.LoadBalancer, opts v1.UpdateOptions) (*networking.LoadBalancer, error)
- UpdateStatus(ctx context.Context, loadBalancer *networking.LoadBalancer, opts v1.UpdateOptions) (*networking.LoadBalancer, error)
- Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*networking.LoadBalancer, error)
- List(ctx context.Context, opts v1.ListOptions) (*networking.LoadBalancerList, error)
- Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.LoadBalancer, err error)
- LoadBalancerExpansion
-}
-
-// loadBalancers implements LoadBalancerInterface
-type loadBalancers struct {
- client rest.Interface
- ns string
-}
-
-// newLoadBalancers returns a LoadBalancers
-func newLoadBalancers(c *NetworkingClient, namespace string) *loadBalancers {
- return &loadBalancers{
- client: c.RESTClient(),
- ns: namespace,
- }
-}
-
-// Get takes name of the loadBalancer, and returns the corresponding loadBalancer object, and an error if there is any.
-func (c *loadBalancers) Get(ctx context.Context, name string, options v1.GetOptions) (result *networking.LoadBalancer, err error) {
- result = &networking.LoadBalancer{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("loadbalancers").
- Name(name).
- VersionedParams(&options, scheme.ParameterCodec).
- Do(ctx).
- Into(result)
- return
-}
-
-// List takes label and field selectors, and returns the list of LoadBalancers that match those selectors.
-func (c *loadBalancers) List(ctx context.Context, opts v1.ListOptions) (result *networking.LoadBalancerList, err error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- result = &networking.LoadBalancerList{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("loadbalancers").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Do(ctx).
- Into(result)
- return
-}
-
-// Watch returns a watch.Interface that watches the requested loadBalancers.
-func (c *loadBalancers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- opts.Watch = true
- return c.client.Get().
- Namespace(c.ns).
- Resource("loadbalancers").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Watch(ctx)
-}
-
-// Create takes the representation of a loadBalancer and creates it. Returns the server's representation of the loadBalancer, and an error, if there is any.
-func (c *loadBalancers) Create(ctx context.Context, loadBalancer *networking.LoadBalancer, opts v1.CreateOptions) (result *networking.LoadBalancer, err error) {
- result = &networking.LoadBalancer{}
- err = c.client.Post().
- Namespace(c.ns).
- Resource("loadbalancers").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(loadBalancer).
- Do(ctx).
- Into(result)
- return
-}
-
-// Update takes the representation of a loadBalancer and updates it. Returns the server's representation of the loadBalancer, and an error, if there is any.
-func (c *loadBalancers) Update(ctx context.Context, loadBalancer *networking.LoadBalancer, opts v1.UpdateOptions) (result *networking.LoadBalancer, err error) {
- result = &networking.LoadBalancer{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("loadbalancers").
- Name(loadBalancer.Name).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(loadBalancer).
- Do(ctx).
- Into(result)
- return
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *loadBalancers) UpdateStatus(ctx context.Context, loadBalancer *networking.LoadBalancer, opts v1.UpdateOptions) (result *networking.LoadBalancer, err error) {
- result = &networking.LoadBalancer{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("loadbalancers").
- Name(loadBalancer.Name).
- SubResource("status").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(loadBalancer).
- Do(ctx).
- Into(result)
- return
-}
-
-// Delete takes name of the loadBalancer and deletes it. Returns an error if one occurs.
-func (c *loadBalancers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- return c.client.Delete().
- Namespace(c.ns).
- Resource("loadbalancers").
- Name(name).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *loadBalancers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- var timeout time.Duration
- if listOpts.TimeoutSeconds != nil {
- timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
- }
- return c.client.Delete().
- Namespace(c.ns).
- Resource("loadbalancers").
- VersionedParams(&listOpts, scheme.ParameterCodec).
- Timeout(timeout).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// Patch applies the patch and returns the patched loadBalancer.
-func (c *loadBalancers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.LoadBalancer, err error) {
- result = &networking.LoadBalancer{}
- err = c.client.Patch(pt).
- Namespace(c.ns).
- Resource("loadbalancers").
- Name(name).
- SubResource(subresources...).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(data).
- Do(ctx).
- Into(result)
- return
-}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/loadbalancerrouting.go b/generated/clientset/internalversion/typed/networking/internalversion/loadbalancerrouting.go
deleted file mode 100644
index cc7dd1d99..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/loadbalancerrouting.go
+++ /dev/null
@@ -1,177 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- "time"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- rest "k8s.io/client-go/rest"
-)
-
-// LoadBalancerRoutingsGetter has a method to return a LoadBalancerRoutingInterface.
-// A group's client should implement this interface.
-type LoadBalancerRoutingsGetter interface {
- LoadBalancerRoutings(namespace string) LoadBalancerRoutingInterface
-}
-
-// LoadBalancerRoutingInterface has methods to work with LoadBalancerRouting resources.
-type LoadBalancerRoutingInterface interface {
- Create(ctx context.Context, loadBalancerRouting *networking.LoadBalancerRouting, opts v1.CreateOptions) (*networking.LoadBalancerRouting, error)
- Update(ctx context.Context, loadBalancerRouting *networking.LoadBalancerRouting, opts v1.UpdateOptions) (*networking.LoadBalancerRouting, error)
- Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*networking.LoadBalancerRouting, error)
- List(ctx context.Context, opts v1.ListOptions) (*networking.LoadBalancerRoutingList, error)
- Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.LoadBalancerRouting, err error)
- LoadBalancerRoutingExpansion
-}
-
-// loadBalancerRoutings implements LoadBalancerRoutingInterface
-type loadBalancerRoutings struct {
- client rest.Interface
- ns string
-}
-
-// newLoadBalancerRoutings returns a LoadBalancerRoutings
-func newLoadBalancerRoutings(c *NetworkingClient, namespace string) *loadBalancerRoutings {
- return &loadBalancerRoutings{
- client: c.RESTClient(),
- ns: namespace,
- }
-}
-
-// Get takes name of the loadBalancerRouting, and returns the corresponding loadBalancerRouting object, and an error if there is any.
-func (c *loadBalancerRoutings) Get(ctx context.Context, name string, options v1.GetOptions) (result *networking.LoadBalancerRouting, err error) {
- result = &networking.LoadBalancerRouting{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("loadbalancerroutings").
- Name(name).
- VersionedParams(&options, scheme.ParameterCodec).
- Do(ctx).
- Into(result)
- return
-}
-
-// List takes label and field selectors, and returns the list of LoadBalancerRoutings that match those selectors.
-func (c *loadBalancerRoutings) List(ctx context.Context, opts v1.ListOptions) (result *networking.LoadBalancerRoutingList, err error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- result = &networking.LoadBalancerRoutingList{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("loadbalancerroutings").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Do(ctx).
- Into(result)
- return
-}
-
-// Watch returns a watch.Interface that watches the requested loadBalancerRoutings.
-func (c *loadBalancerRoutings) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- opts.Watch = true
- return c.client.Get().
- Namespace(c.ns).
- Resource("loadbalancerroutings").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Watch(ctx)
-}
-
-// Create takes the representation of a loadBalancerRouting and creates it. Returns the server's representation of the loadBalancerRouting, and an error, if there is any.
-func (c *loadBalancerRoutings) Create(ctx context.Context, loadBalancerRouting *networking.LoadBalancerRouting, opts v1.CreateOptions) (result *networking.LoadBalancerRouting, err error) {
- result = &networking.LoadBalancerRouting{}
- err = c.client.Post().
- Namespace(c.ns).
- Resource("loadbalancerroutings").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(loadBalancerRouting).
- Do(ctx).
- Into(result)
- return
-}
-
-// Update takes the representation of a loadBalancerRouting and updates it. Returns the server's representation of the loadBalancerRouting, and an error, if there is any.
-func (c *loadBalancerRoutings) Update(ctx context.Context, loadBalancerRouting *networking.LoadBalancerRouting, opts v1.UpdateOptions) (result *networking.LoadBalancerRouting, err error) {
- result = &networking.LoadBalancerRouting{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("loadbalancerroutings").
- Name(loadBalancerRouting.Name).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(loadBalancerRouting).
- Do(ctx).
- Into(result)
- return
-}
-
-// Delete takes name of the loadBalancerRouting and deletes it. Returns an error if one occurs.
-func (c *loadBalancerRoutings) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- return c.client.Delete().
- Namespace(c.ns).
- Resource("loadbalancerroutings").
- Name(name).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *loadBalancerRoutings) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- var timeout time.Duration
- if listOpts.TimeoutSeconds != nil {
- timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
- }
- return c.client.Delete().
- Namespace(c.ns).
- Resource("loadbalancerroutings").
- VersionedParams(&listOpts, scheme.ParameterCodec).
- Timeout(timeout).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// Patch applies the patch and returns the patched loadBalancerRouting.
-func (c *loadBalancerRoutings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.LoadBalancerRouting, err error) {
- result = &networking.LoadBalancerRouting{}
- err = c.client.Patch(pt).
- Namespace(c.ns).
- Resource("loadbalancerroutings").
- Name(name).
- SubResource(subresources...).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(data).
- Do(ctx).
- Into(result)
- return
-}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/natgateway.go b/generated/clientset/internalversion/typed/networking/internalversion/natgateway.go
deleted file mode 100644
index 3f3617843..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/natgateway.go
+++ /dev/null
@@ -1,194 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- "time"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- rest "k8s.io/client-go/rest"
-)
-
-// NATGatewaysGetter has a method to return a NATGatewayInterface.
-// A group's client should implement this interface.
-type NATGatewaysGetter interface {
- NATGateways(namespace string) NATGatewayInterface
-}
-
-// NATGatewayInterface has methods to work with NATGateway resources.
-type NATGatewayInterface interface {
- Create(ctx context.Context, nATGateway *networking.NATGateway, opts v1.CreateOptions) (*networking.NATGateway, error)
- Update(ctx context.Context, nATGateway *networking.NATGateway, opts v1.UpdateOptions) (*networking.NATGateway, error)
- UpdateStatus(ctx context.Context, nATGateway *networking.NATGateway, opts v1.UpdateOptions) (*networking.NATGateway, error)
- Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*networking.NATGateway, error)
- List(ctx context.Context, opts v1.ListOptions) (*networking.NATGatewayList, error)
- Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.NATGateway, err error)
- NATGatewayExpansion
-}
-
-// nATGateways implements NATGatewayInterface
-type nATGateways struct {
- client rest.Interface
- ns string
-}
-
-// newNATGateways returns a NATGateways
-func newNATGateways(c *NetworkingClient, namespace string) *nATGateways {
- return &nATGateways{
- client: c.RESTClient(),
- ns: namespace,
- }
-}
-
-// Get takes name of the nATGateway, and returns the corresponding nATGateway object, and an error if there is any.
-func (c *nATGateways) Get(ctx context.Context, name string, options v1.GetOptions) (result *networking.NATGateway, err error) {
- result = &networking.NATGateway{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("natgateways").
- Name(name).
- VersionedParams(&options, scheme.ParameterCodec).
- Do(ctx).
- Into(result)
- return
-}
-
-// List takes label and field selectors, and returns the list of NATGateways that match those selectors.
-func (c *nATGateways) List(ctx context.Context, opts v1.ListOptions) (result *networking.NATGatewayList, err error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- result = &networking.NATGatewayList{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("natgateways").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Do(ctx).
- Into(result)
- return
-}
-
-// Watch returns a watch.Interface that watches the requested nATGateways.
-func (c *nATGateways) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- opts.Watch = true
- return c.client.Get().
- Namespace(c.ns).
- Resource("natgateways").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Watch(ctx)
-}
-
-// Create takes the representation of a nATGateway and creates it. Returns the server's representation of the nATGateway, and an error, if there is any.
-func (c *nATGateways) Create(ctx context.Context, nATGateway *networking.NATGateway, opts v1.CreateOptions) (result *networking.NATGateway, err error) {
- result = &networking.NATGateway{}
- err = c.client.Post().
- Namespace(c.ns).
- Resource("natgateways").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(nATGateway).
- Do(ctx).
- Into(result)
- return
-}
-
-// Update takes the representation of a nATGateway and updates it. Returns the server's representation of the nATGateway, and an error, if there is any.
-func (c *nATGateways) Update(ctx context.Context, nATGateway *networking.NATGateway, opts v1.UpdateOptions) (result *networking.NATGateway, err error) {
- result = &networking.NATGateway{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("natgateways").
- Name(nATGateway.Name).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(nATGateway).
- Do(ctx).
- Into(result)
- return
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *nATGateways) UpdateStatus(ctx context.Context, nATGateway *networking.NATGateway, opts v1.UpdateOptions) (result *networking.NATGateway, err error) {
- result = &networking.NATGateway{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("natgateways").
- Name(nATGateway.Name).
- SubResource("status").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(nATGateway).
- Do(ctx).
- Into(result)
- return
-}
-
-// Delete takes name of the nATGateway and deletes it. Returns an error if one occurs.
-func (c *nATGateways) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- return c.client.Delete().
- Namespace(c.ns).
- Resource("natgateways").
- Name(name).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *nATGateways) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- var timeout time.Duration
- if listOpts.TimeoutSeconds != nil {
- timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
- }
- return c.client.Delete().
- Namespace(c.ns).
- Resource("natgateways").
- VersionedParams(&listOpts, scheme.ParameterCodec).
- Timeout(timeout).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// Patch applies the patch and returns the patched nATGateway.
-func (c *nATGateways) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.NATGateway, err error) {
- result = &networking.NATGateway{}
- err = c.client.Patch(pt).
- Namespace(c.ns).
- Resource("natgateways").
- Name(name).
- SubResource(subresources...).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(data).
- Do(ctx).
- Into(result)
- return
-}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/natgatewayrouting.go b/generated/clientset/internalversion/typed/networking/internalversion/natgatewayrouting.go
deleted file mode 100644
index a02e88db3..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/natgatewayrouting.go
+++ /dev/null
@@ -1,177 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- "time"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- rest "k8s.io/client-go/rest"
-)
-
-// NATGatewayRoutingsGetter has a method to return a NATGatewayRoutingInterface.
-// A group's client should implement this interface.
-type NATGatewayRoutingsGetter interface {
- NATGatewayRoutings(namespace string) NATGatewayRoutingInterface
-}
-
-// NATGatewayRoutingInterface has methods to work with NATGatewayRouting resources.
-type NATGatewayRoutingInterface interface {
- Create(ctx context.Context, nATGatewayRouting *networking.NATGatewayRouting, opts v1.CreateOptions) (*networking.NATGatewayRouting, error)
- Update(ctx context.Context, nATGatewayRouting *networking.NATGatewayRouting, opts v1.UpdateOptions) (*networking.NATGatewayRouting, error)
- Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*networking.NATGatewayRouting, error)
- List(ctx context.Context, opts v1.ListOptions) (*networking.NATGatewayRoutingList, error)
- Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.NATGatewayRouting, err error)
- NATGatewayRoutingExpansion
-}
-
-// nATGatewayRoutings implements NATGatewayRoutingInterface
-type nATGatewayRoutings struct {
- client rest.Interface
- ns string
-}
-
-// newNATGatewayRoutings returns a NATGatewayRoutings
-func newNATGatewayRoutings(c *NetworkingClient, namespace string) *nATGatewayRoutings {
- return &nATGatewayRoutings{
- client: c.RESTClient(),
- ns: namespace,
- }
-}
-
-// Get takes name of the nATGatewayRouting, and returns the corresponding nATGatewayRouting object, and an error if there is any.
-func (c *nATGatewayRoutings) Get(ctx context.Context, name string, options v1.GetOptions) (result *networking.NATGatewayRouting, err error) {
- result = &networking.NATGatewayRouting{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("natgatewayroutings").
- Name(name).
- VersionedParams(&options, scheme.ParameterCodec).
- Do(ctx).
- Into(result)
- return
-}
-
-// List takes label and field selectors, and returns the list of NATGatewayRoutings that match those selectors.
-func (c *nATGatewayRoutings) List(ctx context.Context, opts v1.ListOptions) (result *networking.NATGatewayRoutingList, err error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- result = &networking.NATGatewayRoutingList{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("natgatewayroutings").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Do(ctx).
- Into(result)
- return
-}
-
-// Watch returns a watch.Interface that watches the requested nATGatewayRoutings.
-func (c *nATGatewayRoutings) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- opts.Watch = true
- return c.client.Get().
- Namespace(c.ns).
- Resource("natgatewayroutings").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Watch(ctx)
-}
-
-// Create takes the representation of a nATGatewayRouting and creates it. Returns the server's representation of the nATGatewayRouting, and an error, if there is any.
-func (c *nATGatewayRoutings) Create(ctx context.Context, nATGatewayRouting *networking.NATGatewayRouting, opts v1.CreateOptions) (result *networking.NATGatewayRouting, err error) {
- result = &networking.NATGatewayRouting{}
- err = c.client.Post().
- Namespace(c.ns).
- Resource("natgatewayroutings").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(nATGatewayRouting).
- Do(ctx).
- Into(result)
- return
-}
-
-// Update takes the representation of a nATGatewayRouting and updates it. Returns the server's representation of the nATGatewayRouting, and an error, if there is any.
-func (c *nATGatewayRoutings) Update(ctx context.Context, nATGatewayRouting *networking.NATGatewayRouting, opts v1.UpdateOptions) (result *networking.NATGatewayRouting, err error) {
- result = &networking.NATGatewayRouting{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("natgatewayroutings").
- Name(nATGatewayRouting.Name).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(nATGatewayRouting).
- Do(ctx).
- Into(result)
- return
-}
-
-// Delete takes name of the nATGatewayRouting and deletes it. Returns an error if one occurs.
-func (c *nATGatewayRoutings) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- return c.client.Delete().
- Namespace(c.ns).
- Resource("natgatewayroutings").
- Name(name).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *nATGatewayRoutings) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- var timeout time.Duration
- if listOpts.TimeoutSeconds != nil {
- timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
- }
- return c.client.Delete().
- Namespace(c.ns).
- Resource("natgatewayroutings").
- VersionedParams(&listOpts, scheme.ParameterCodec).
- Timeout(timeout).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// Patch applies the patch and returns the patched nATGatewayRouting.
-func (c *nATGatewayRoutings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.NATGatewayRouting, err error) {
- result = &networking.NATGatewayRouting{}
- err = c.client.Patch(pt).
- Namespace(c.ns).
- Resource("natgatewayroutings").
- Name(name).
- SubResource(subresources...).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(data).
- Do(ctx).
- Into(result)
- return
-}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/network.go b/generated/clientset/internalversion/typed/networking/internalversion/network.go
deleted file mode 100644
index b855a6539..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/network.go
+++ /dev/null
@@ -1,194 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- "time"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- rest "k8s.io/client-go/rest"
-)
-
-// NetworksGetter has a method to return a NetworkInterface.
-// A group's client should implement this interface.
-type NetworksGetter interface {
- Networks(namespace string) NetworkInterface
-}
-
-// NetworkInterface has methods to work with Network resources.
-type NetworkInterface interface {
- Create(ctx context.Context, network *networking.Network, opts v1.CreateOptions) (*networking.Network, error)
- Update(ctx context.Context, network *networking.Network, opts v1.UpdateOptions) (*networking.Network, error)
- UpdateStatus(ctx context.Context, network *networking.Network, opts v1.UpdateOptions) (*networking.Network, error)
- Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*networking.Network, error)
- List(ctx context.Context, opts v1.ListOptions) (*networking.NetworkList, error)
- Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.Network, err error)
- NetworkExpansion
-}
-
-// networks implements NetworkInterface
-type networks struct {
- client rest.Interface
- ns string
-}
-
-// newNetworks returns a Networks
-func newNetworks(c *NetworkingClient, namespace string) *networks {
- return &networks{
- client: c.RESTClient(),
- ns: namespace,
- }
-}
-
-// Get takes name of the network, and returns the corresponding network object, and an error if there is any.
-func (c *networks) Get(ctx context.Context, name string, options v1.GetOptions) (result *networking.Network, err error) {
- result = &networking.Network{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("networks").
- Name(name).
- VersionedParams(&options, scheme.ParameterCodec).
- Do(ctx).
- Into(result)
- return
-}
-
-// List takes label and field selectors, and returns the list of Networks that match those selectors.
-func (c *networks) List(ctx context.Context, opts v1.ListOptions) (result *networking.NetworkList, err error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- result = &networking.NetworkList{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("networks").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Do(ctx).
- Into(result)
- return
-}
-
-// Watch returns a watch.Interface that watches the requested networks.
-func (c *networks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- opts.Watch = true
- return c.client.Get().
- Namespace(c.ns).
- Resource("networks").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Watch(ctx)
-}
-
-// Create takes the representation of a network and creates it. Returns the server's representation of the network, and an error, if there is any.
-func (c *networks) Create(ctx context.Context, network *networking.Network, opts v1.CreateOptions) (result *networking.Network, err error) {
- result = &networking.Network{}
- err = c.client.Post().
- Namespace(c.ns).
- Resource("networks").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(network).
- Do(ctx).
- Into(result)
- return
-}
-
-// Update takes the representation of a network and updates it. Returns the server's representation of the network, and an error, if there is any.
-func (c *networks) Update(ctx context.Context, network *networking.Network, opts v1.UpdateOptions) (result *networking.Network, err error) {
- result = &networking.Network{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("networks").
- Name(network.Name).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(network).
- Do(ctx).
- Into(result)
- return
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *networks) UpdateStatus(ctx context.Context, network *networking.Network, opts v1.UpdateOptions) (result *networking.Network, err error) {
- result = &networking.Network{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("networks").
- Name(network.Name).
- SubResource("status").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(network).
- Do(ctx).
- Into(result)
- return
-}
-
-// Delete takes name of the network and deletes it. Returns an error if one occurs.
-func (c *networks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- return c.client.Delete().
- Namespace(c.ns).
- Resource("networks").
- Name(name).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *networks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- var timeout time.Duration
- if listOpts.TimeoutSeconds != nil {
- timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
- }
- return c.client.Delete().
- Namespace(c.ns).
- Resource("networks").
- VersionedParams(&listOpts, scheme.ParameterCodec).
- Timeout(timeout).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// Patch applies the patch and returns the patched network.
-func (c *networks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.Network, err error) {
- result = &networking.Network{}
- err = c.client.Patch(pt).
- Namespace(c.ns).
- Resource("networks").
- Name(name).
- SubResource(subresources...).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(data).
- Do(ctx).
- Into(result)
- return
-}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/networking_client.go b/generated/clientset/internalversion/typed/networking/internalversion/networking_client.go
deleted file mode 100644
index 7f810e8d5..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/networking_client.go
+++ /dev/null
@@ -1,153 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "net/http"
-
- "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- rest "k8s.io/client-go/rest"
-)
-
-type NetworkingInterface interface {
- RESTClient() rest.Interface
- AliasPrefixesGetter
- AliasPrefixRoutingsGetter
- LoadBalancersGetter
- LoadBalancerRoutingsGetter
- NATGatewaysGetter
- NATGatewayRoutingsGetter
- NetworksGetter
- NetworkInterfacesGetter
- VirtualIPsGetter
-}
-
-// NetworkingClient is used to interact with features provided by the networking.api.onmetal.de group.
-type NetworkingClient struct {
- restClient rest.Interface
-}
-
-func (c *NetworkingClient) AliasPrefixes(namespace string) AliasPrefixInterface {
- return newAliasPrefixes(c, namespace)
-}
-
-func (c *NetworkingClient) AliasPrefixRoutings(namespace string) AliasPrefixRoutingInterface {
- return newAliasPrefixRoutings(c, namespace)
-}
-
-func (c *NetworkingClient) LoadBalancers(namespace string) LoadBalancerInterface {
- return newLoadBalancers(c, namespace)
-}
-
-func (c *NetworkingClient) LoadBalancerRoutings(namespace string) LoadBalancerRoutingInterface {
- return newLoadBalancerRoutings(c, namespace)
-}
-
-func (c *NetworkingClient) NATGateways(namespace string) NATGatewayInterface {
- return newNATGateways(c, namespace)
-}
-
-func (c *NetworkingClient) NATGatewayRoutings(namespace string) NATGatewayRoutingInterface {
- return newNATGatewayRoutings(c, namespace)
-}
-
-func (c *NetworkingClient) Networks(namespace string) NetworkInterface {
- return newNetworks(c, namespace)
-}
-
-func (c *NetworkingClient) NetworkInterfaces(namespace string) NetworkInterfaceInterface {
- return newNetworkInterfaces(c, namespace)
-}
-
-func (c *NetworkingClient) VirtualIPs(namespace string) VirtualIPInterface {
- return newVirtualIPs(c, namespace)
-}
-
-// NewForConfig creates a new NetworkingClient for the given config.
-// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
-// where httpClient was generated with rest.HTTPClientFor(c).
-func NewForConfig(c *rest.Config) (*NetworkingClient, error) {
- config := *c
- if err := setConfigDefaults(&config); err != nil {
- return nil, err
- }
- httpClient, err := rest.HTTPClientFor(&config)
- if err != nil {
- return nil, err
- }
- return NewForConfigAndClient(&config, httpClient)
-}
-
-// NewForConfigAndClient creates a new NetworkingClient for the given config and http client.
-// Note the http client provided takes precedence over the configured transport values.
-func NewForConfigAndClient(c *rest.Config, h *http.Client) (*NetworkingClient, error) {
- config := *c
- if err := setConfigDefaults(&config); err != nil {
- return nil, err
- }
- client, err := rest.RESTClientForConfigAndClient(&config, h)
- if err != nil {
- return nil, err
- }
- return &NetworkingClient{client}, nil
-}
-
-// NewForConfigOrDie creates a new NetworkingClient for the given config and
-// panics if there is an error in the config.
-func NewForConfigOrDie(c *rest.Config) *NetworkingClient {
- client, err := NewForConfig(c)
- if err != nil {
- panic(err)
- }
- return client
-}
-
-// New creates a new NetworkingClient for the given RESTClient.
-func New(c rest.Interface) *NetworkingClient {
- return &NetworkingClient{c}
-}
-
-func setConfigDefaults(config *rest.Config) error {
- config.APIPath = "/apis"
- if config.UserAgent == "" {
- config.UserAgent = rest.DefaultKubernetesUserAgent()
- }
- if config.GroupVersion == nil || config.GroupVersion.Group != scheme.Scheme.PrioritizedVersionsForGroup("networking.api.onmetal.de")[0].Group {
- gv := scheme.Scheme.PrioritizedVersionsForGroup("networking.api.onmetal.de")[0]
- config.GroupVersion = &gv
- }
- config.NegotiatedSerializer = scheme.Codecs
-
- if config.QPS == 0 {
- config.QPS = 5
- }
- if config.Burst == 0 {
- config.Burst = 10
- }
-
- return nil
-}
-
-// RESTClient returns a RESTClient that is used to communicate
-// with API server by this client implementation.
-func (c *NetworkingClient) RESTClient() rest.Interface {
- if c == nil {
- return nil
- }
- return c.restClient
-}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/networkinterface.go b/generated/clientset/internalversion/typed/networking/internalversion/networkinterface.go
deleted file mode 100644
index 3562493a5..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/networkinterface.go
+++ /dev/null
@@ -1,194 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- "time"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- rest "k8s.io/client-go/rest"
-)
-
-// NetworkInterfacesGetter has a method to return a NetworkInterfaceInterface.
-// A group's client should implement this interface.
-type NetworkInterfacesGetter interface {
- NetworkInterfaces(namespace string) NetworkInterfaceInterface
-}
-
-// NetworkInterfaceInterface has methods to work with NetworkInterface resources.
-type NetworkInterfaceInterface interface {
- Create(ctx context.Context, networkInterface *networking.NetworkInterface, opts v1.CreateOptions) (*networking.NetworkInterface, error)
- Update(ctx context.Context, networkInterface *networking.NetworkInterface, opts v1.UpdateOptions) (*networking.NetworkInterface, error)
- UpdateStatus(ctx context.Context, networkInterface *networking.NetworkInterface, opts v1.UpdateOptions) (*networking.NetworkInterface, error)
- Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*networking.NetworkInterface, error)
- List(ctx context.Context, opts v1.ListOptions) (*networking.NetworkInterfaceList, error)
- Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.NetworkInterface, err error)
- NetworkInterfaceExpansion
-}
-
-// networkInterfaces implements NetworkInterfaceInterface
-type networkInterfaces struct {
- client rest.Interface
- ns string
-}
-
-// newNetworkInterfaces returns a NetworkInterfaces
-func newNetworkInterfaces(c *NetworkingClient, namespace string) *networkInterfaces {
- return &networkInterfaces{
- client: c.RESTClient(),
- ns: namespace,
- }
-}
-
-// Get takes name of the networkInterface, and returns the corresponding networkInterface object, and an error if there is any.
-func (c *networkInterfaces) Get(ctx context.Context, name string, options v1.GetOptions) (result *networking.NetworkInterface, err error) {
- result = &networking.NetworkInterface{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("networkinterfaces").
- Name(name).
- VersionedParams(&options, scheme.ParameterCodec).
- Do(ctx).
- Into(result)
- return
-}
-
-// List takes label and field selectors, and returns the list of NetworkInterfaces that match those selectors.
-func (c *networkInterfaces) List(ctx context.Context, opts v1.ListOptions) (result *networking.NetworkInterfaceList, err error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- result = &networking.NetworkInterfaceList{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("networkinterfaces").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Do(ctx).
- Into(result)
- return
-}
-
-// Watch returns a watch.Interface that watches the requested networkInterfaces.
-func (c *networkInterfaces) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- opts.Watch = true
- return c.client.Get().
- Namespace(c.ns).
- Resource("networkinterfaces").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Watch(ctx)
-}
-
-// Create takes the representation of a networkInterface and creates it. Returns the server's representation of the networkInterface, and an error, if there is any.
-func (c *networkInterfaces) Create(ctx context.Context, networkInterface *networking.NetworkInterface, opts v1.CreateOptions) (result *networking.NetworkInterface, err error) {
- result = &networking.NetworkInterface{}
- err = c.client.Post().
- Namespace(c.ns).
- Resource("networkinterfaces").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(networkInterface).
- Do(ctx).
- Into(result)
- return
-}
-
-// Update takes the representation of a networkInterface and updates it. Returns the server's representation of the networkInterface, and an error, if there is any.
-func (c *networkInterfaces) Update(ctx context.Context, networkInterface *networking.NetworkInterface, opts v1.UpdateOptions) (result *networking.NetworkInterface, err error) {
- result = &networking.NetworkInterface{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("networkinterfaces").
- Name(networkInterface.Name).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(networkInterface).
- Do(ctx).
- Into(result)
- return
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *networkInterfaces) UpdateStatus(ctx context.Context, networkInterface *networking.NetworkInterface, opts v1.UpdateOptions) (result *networking.NetworkInterface, err error) {
- result = &networking.NetworkInterface{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("networkinterfaces").
- Name(networkInterface.Name).
- SubResource("status").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(networkInterface).
- Do(ctx).
- Into(result)
- return
-}
-
-// Delete takes name of the networkInterface and deletes it. Returns an error if one occurs.
-func (c *networkInterfaces) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- return c.client.Delete().
- Namespace(c.ns).
- Resource("networkinterfaces").
- Name(name).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *networkInterfaces) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- var timeout time.Duration
- if listOpts.TimeoutSeconds != nil {
- timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
- }
- return c.client.Delete().
- Namespace(c.ns).
- Resource("networkinterfaces").
- VersionedParams(&listOpts, scheme.ParameterCodec).
- Timeout(timeout).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// Patch applies the patch and returns the patched networkInterface.
-func (c *networkInterfaces) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.NetworkInterface, err error) {
- result = &networking.NetworkInterface{}
- err = c.client.Patch(pt).
- Namespace(c.ns).
- Resource("networkinterfaces").
- Name(name).
- SubResource(subresources...).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(data).
- Do(ctx).
- Into(result)
- return
-}
diff --git a/generated/clientset/internalversion/typed/networking/internalversion/virtualip.go b/generated/clientset/internalversion/typed/networking/internalversion/virtualip.go
deleted file mode 100644
index 95e9eec54..000000000
--- a/generated/clientset/internalversion/typed/networking/internalversion/virtualip.go
+++ /dev/null
@@ -1,194 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- "time"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- rest "k8s.io/client-go/rest"
-)
-
-// VirtualIPsGetter has a method to return a VirtualIPInterface.
-// A group's client should implement this interface.
-type VirtualIPsGetter interface {
- VirtualIPs(namespace string) VirtualIPInterface
-}
-
-// VirtualIPInterface has methods to work with VirtualIP resources.
-type VirtualIPInterface interface {
- Create(ctx context.Context, virtualIP *networking.VirtualIP, opts v1.CreateOptions) (*networking.VirtualIP, error)
- Update(ctx context.Context, virtualIP *networking.VirtualIP, opts v1.UpdateOptions) (*networking.VirtualIP, error)
- UpdateStatus(ctx context.Context, virtualIP *networking.VirtualIP, opts v1.UpdateOptions) (*networking.VirtualIP, error)
- Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*networking.VirtualIP, error)
- List(ctx context.Context, opts v1.ListOptions) (*networking.VirtualIPList, error)
- Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.VirtualIP, err error)
- VirtualIPExpansion
-}
-
-// virtualIPs implements VirtualIPInterface
-type virtualIPs struct {
- client rest.Interface
- ns string
-}
-
-// newVirtualIPs returns a VirtualIPs
-func newVirtualIPs(c *NetworkingClient, namespace string) *virtualIPs {
- return &virtualIPs{
- client: c.RESTClient(),
- ns: namespace,
- }
-}
-
-// Get takes name of the virtualIP, and returns the corresponding virtualIP object, and an error if there is any.
-func (c *virtualIPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *networking.VirtualIP, err error) {
- result = &networking.VirtualIP{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("virtualips").
- Name(name).
- VersionedParams(&options, scheme.ParameterCodec).
- Do(ctx).
- Into(result)
- return
-}
-
-// List takes label and field selectors, and returns the list of VirtualIPs that match those selectors.
-func (c *virtualIPs) List(ctx context.Context, opts v1.ListOptions) (result *networking.VirtualIPList, err error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- result = &networking.VirtualIPList{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("virtualips").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Do(ctx).
- Into(result)
- return
-}
-
-// Watch returns a watch.Interface that watches the requested virtualIPs.
-func (c *virtualIPs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- opts.Watch = true
- return c.client.Get().
- Namespace(c.ns).
- Resource("virtualips").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Watch(ctx)
-}
-
-// Create takes the representation of a virtualIP and creates it. Returns the server's representation of the virtualIP, and an error, if there is any.
-func (c *virtualIPs) Create(ctx context.Context, virtualIP *networking.VirtualIP, opts v1.CreateOptions) (result *networking.VirtualIP, err error) {
- result = &networking.VirtualIP{}
- err = c.client.Post().
- Namespace(c.ns).
- Resource("virtualips").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(virtualIP).
- Do(ctx).
- Into(result)
- return
-}
-
-// Update takes the representation of a virtualIP and updates it. Returns the server's representation of the virtualIP, and an error, if there is any.
-func (c *virtualIPs) Update(ctx context.Context, virtualIP *networking.VirtualIP, opts v1.UpdateOptions) (result *networking.VirtualIP, err error) {
- result = &networking.VirtualIP{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("virtualips").
- Name(virtualIP.Name).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(virtualIP).
- Do(ctx).
- Into(result)
- return
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *virtualIPs) UpdateStatus(ctx context.Context, virtualIP *networking.VirtualIP, opts v1.UpdateOptions) (result *networking.VirtualIP, err error) {
- result = &networking.VirtualIP{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("virtualips").
- Name(virtualIP.Name).
- SubResource("status").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(virtualIP).
- Do(ctx).
- Into(result)
- return
-}
-
-// Delete takes name of the virtualIP and deletes it. Returns an error if one occurs.
-func (c *virtualIPs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- return c.client.Delete().
- Namespace(c.ns).
- Resource("virtualips").
- Name(name).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *virtualIPs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- var timeout time.Duration
- if listOpts.TimeoutSeconds != nil {
- timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
- }
- return c.client.Delete().
- Namespace(c.ns).
- Resource("virtualips").
- VersionedParams(&listOpts, scheme.ParameterCodec).
- Timeout(timeout).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// Patch applies the patch and returns the patched virtualIP.
-func (c *virtualIPs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networking.VirtualIP, err error) {
- result = &networking.VirtualIP{}
- err = c.client.Patch(pt).
- Namespace(c.ns).
- Resource("virtualips").
- Name(name).
- SubResource(subresources...).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(data).
- Do(ctx).
- Into(result)
- return
-}
diff --git a/generated/clientset/internalversion/typed/storage/internalversion/doc.go b/generated/clientset/internalversion/typed/storage/internalversion/doc.go
deleted file mode 100644
index a7621fd4c..000000000
--- a/generated/clientset/internalversion/typed/storage/internalversion/doc.go
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-// This package has the automatically generated typed clients.
-package internalversion
diff --git a/generated/clientset/internalversion/typed/storage/internalversion/fake/fake_storage_client.go b/generated/clientset/internalversion/typed/storage/internalversion/fake/fake_storage_client.go
deleted file mode 100644
index 89f916b0c..000000000
--- a/generated/clientset/internalversion/typed/storage/internalversion/fake/fake_storage_client.go
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- internalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion/typed/storage/internalversion"
- rest "k8s.io/client-go/rest"
- testing "k8s.io/client-go/testing"
-)
-
-type FakeStorage struct {
- *testing.Fake
-}
-
-func (c *FakeStorage) Volumes(namespace string) internalversion.VolumeInterface {
- return &FakeVolumes{c, namespace}
-}
-
-func (c *FakeStorage) VolumeClasses() internalversion.VolumeClassInterface {
- return &FakeVolumeClasses{c}
-}
-
-func (c *FakeStorage) VolumePools() internalversion.VolumePoolInterface {
- return &FakeVolumePools{c}
-}
-
-// RESTClient returns a RESTClient that is used to communicate
-// with API server by this client implementation.
-func (c *FakeStorage) RESTClient() rest.Interface {
- var ret *rest.RESTClient
- return ret
-}
diff --git a/generated/clientset/internalversion/typed/storage/internalversion/fake/fake_volume.go b/generated/clientset/internalversion/typed/storage/internalversion/fake/fake_volume.go
deleted file mode 100644
index 95c2d5e31..000000000
--- a/generated/clientset/internalversion/typed/storage/internalversion/fake/fake_volume.go
+++ /dev/null
@@ -1,141 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- "context"
-
- storage "github.com/onmetal/onmetal-api/apis/storage"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
-)
-
-// FakeVolumes implements VolumeInterface
-type FakeVolumes struct {
- Fake *FakeStorage
- ns string
-}
-
-var volumesResource = schema.GroupVersionResource{Group: "storage.api.onmetal.de", Version: "", Resource: "volumes"}
-
-var volumesKind = schema.GroupVersionKind{Group: "storage.api.onmetal.de", Version: "", Kind: "Volume"}
-
-// Get takes name of the volume, and returns the corresponding volume object, and an error if there is any.
-func (c *FakeVolumes) Get(ctx context.Context, name string, options v1.GetOptions) (result *storage.Volume, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewGetAction(volumesResource, c.ns, name), &storage.Volume{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*storage.Volume), err
-}
-
-// List takes label and field selectors, and returns the list of Volumes that match those selectors.
-func (c *FakeVolumes) List(ctx context.Context, opts v1.ListOptions) (result *storage.VolumeList, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewListAction(volumesResource, volumesKind, c.ns, opts), &storage.VolumeList{})
-
- if obj == nil {
- return nil, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &storage.VolumeList{ListMeta: obj.(*storage.VolumeList).ListMeta}
- for _, item := range obj.(*storage.VolumeList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested volumes.
-func (c *FakeVolumes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchAction(volumesResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a volume and creates it. Returns the server's representation of the volume, and an error, if there is any.
-func (c *FakeVolumes) Create(ctx context.Context, volume *storage.Volume, opts v1.CreateOptions) (result *storage.Volume, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewCreateAction(volumesResource, c.ns, volume), &storage.Volume{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*storage.Volume), err
-}
-
-// Update takes the representation of a volume and updates it. Returns the server's representation of the volume, and an error, if there is any.
-func (c *FakeVolumes) Update(ctx context.Context, volume *storage.Volume, opts v1.UpdateOptions) (result *storage.Volume, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateAction(volumesResource, c.ns, volume), &storage.Volume{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*storage.Volume), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeVolumes) UpdateStatus(ctx context.Context, volume *storage.Volume, opts v1.UpdateOptions) (*storage.Volume, error) {
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceAction(volumesResource, "status", c.ns, volume), &storage.Volume{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*storage.Volume), err
-}
-
-// Delete takes name of the volume and deletes it. Returns an error if one occurs.
-func (c *FakeVolumes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(volumesResource, c.ns, name, opts), &storage.Volume{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeVolumes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionAction(volumesResource, c.ns, listOpts)
-
- _, err := c.Fake.Invokes(action, &storage.VolumeList{})
- return err
-}
-
-// Patch applies the patch and returns the patched volume.
-func (c *FakeVolumes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *storage.Volume, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceAction(volumesResource, c.ns, name, pt, data, subresources...), &storage.Volume{})
-
- if obj == nil {
- return nil, err
- }
- return obj.(*storage.Volume), err
-}
diff --git a/generated/clientset/internalversion/typed/storage/internalversion/fake/fake_volumeclass.go b/generated/clientset/internalversion/typed/storage/internalversion/fake/fake_volumeclass.go
deleted file mode 100644
index cfbb5e636..000000000
--- a/generated/clientset/internalversion/typed/storage/internalversion/fake/fake_volumeclass.go
+++ /dev/null
@@ -1,121 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- "context"
-
- storage "github.com/onmetal/onmetal-api/apis/storage"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
-)
-
-// FakeVolumeClasses implements VolumeClassInterface
-type FakeVolumeClasses struct {
- Fake *FakeStorage
-}
-
-var volumeclassesResource = schema.GroupVersionResource{Group: "storage.api.onmetal.de", Version: "", Resource: "volumeclasses"}
-
-var volumeclassesKind = schema.GroupVersionKind{Group: "storage.api.onmetal.de", Version: "", Kind: "VolumeClass"}
-
-// Get takes name of the volumeClass, and returns the corresponding volumeClass object, and an error if there is any.
-func (c *FakeVolumeClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *storage.VolumeClass, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewRootGetAction(volumeclassesResource, name), &storage.VolumeClass{})
- if obj == nil {
- return nil, err
- }
- return obj.(*storage.VolumeClass), err
-}
-
-// List takes label and field selectors, and returns the list of VolumeClasses that match those selectors.
-func (c *FakeVolumeClasses) List(ctx context.Context, opts v1.ListOptions) (result *storage.VolumeClassList, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewRootListAction(volumeclassesResource, volumeclassesKind, opts), &storage.VolumeClassList{})
- if obj == nil {
- return nil, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &storage.VolumeClassList{ListMeta: obj.(*storage.VolumeClassList).ListMeta}
- for _, item := range obj.(*storage.VolumeClassList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested volumeClasses.
-func (c *FakeVolumeClasses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchAction(volumeclassesResource, opts))
-}
-
-// Create takes the representation of a volumeClass and creates it. Returns the server's representation of the volumeClass, and an error, if there is any.
-func (c *FakeVolumeClasses) Create(ctx context.Context, volumeClass *storage.VolumeClass, opts v1.CreateOptions) (result *storage.VolumeClass, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateAction(volumeclassesResource, volumeClass), &storage.VolumeClass{})
- if obj == nil {
- return nil, err
- }
- return obj.(*storage.VolumeClass), err
-}
-
-// Update takes the representation of a volumeClass and updates it. Returns the server's representation of the volumeClass, and an error, if there is any.
-func (c *FakeVolumeClasses) Update(ctx context.Context, volumeClass *storage.VolumeClass, opts v1.UpdateOptions) (result *storage.VolumeClass, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateAction(volumeclassesResource, volumeClass), &storage.VolumeClass{})
- if obj == nil {
- return nil, err
- }
- return obj.(*storage.VolumeClass), err
-}
-
-// Delete takes name of the volumeClass and deletes it. Returns an error if one occurs.
-func (c *FakeVolumeClasses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(volumeclassesResource, name, opts), &storage.VolumeClass{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeVolumeClasses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewRootDeleteCollectionAction(volumeclassesResource, listOpts)
-
- _, err := c.Fake.Invokes(action, &storage.VolumeClassList{})
- return err
-}
-
-// Patch applies the patch and returns the patched volumeClass.
-func (c *FakeVolumeClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *storage.VolumeClass, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceAction(volumeclassesResource, name, pt, data, subresources...), &storage.VolumeClass{})
- if obj == nil {
- return nil, err
- }
- return obj.(*storage.VolumeClass), err
-}
diff --git a/generated/clientset/internalversion/typed/storage/internalversion/fake/fake_volumepool.go b/generated/clientset/internalversion/typed/storage/internalversion/fake/fake_volumepool.go
deleted file mode 100644
index 811cc91b8..000000000
--- a/generated/clientset/internalversion/typed/storage/internalversion/fake/fake_volumepool.go
+++ /dev/null
@@ -1,132 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- "context"
-
- storage "github.com/onmetal/onmetal-api/apis/storage"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
-)
-
-// FakeVolumePools implements VolumePoolInterface
-type FakeVolumePools struct {
- Fake *FakeStorage
-}
-
-var volumepoolsResource = schema.GroupVersionResource{Group: "storage.api.onmetal.de", Version: "", Resource: "volumepools"}
-
-var volumepoolsKind = schema.GroupVersionKind{Group: "storage.api.onmetal.de", Version: "", Kind: "VolumePool"}
-
-// Get takes name of the volumePool, and returns the corresponding volumePool object, and an error if there is any.
-func (c *FakeVolumePools) Get(ctx context.Context, name string, options v1.GetOptions) (result *storage.VolumePool, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewRootGetAction(volumepoolsResource, name), &storage.VolumePool{})
- if obj == nil {
- return nil, err
- }
- return obj.(*storage.VolumePool), err
-}
-
-// List takes label and field selectors, and returns the list of VolumePools that match those selectors.
-func (c *FakeVolumePools) List(ctx context.Context, opts v1.ListOptions) (result *storage.VolumePoolList, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewRootListAction(volumepoolsResource, volumepoolsKind, opts), &storage.VolumePoolList{})
- if obj == nil {
- return nil, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &storage.VolumePoolList{ListMeta: obj.(*storage.VolumePoolList).ListMeta}
- for _, item := range obj.(*storage.VolumePoolList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested volumePools.
-func (c *FakeVolumePools) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchAction(volumepoolsResource, opts))
-}
-
-// Create takes the representation of a volumePool and creates it. Returns the server's representation of the volumePool, and an error, if there is any.
-func (c *FakeVolumePools) Create(ctx context.Context, volumePool *storage.VolumePool, opts v1.CreateOptions) (result *storage.VolumePool, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateAction(volumepoolsResource, volumePool), &storage.VolumePool{})
- if obj == nil {
- return nil, err
- }
- return obj.(*storage.VolumePool), err
-}
-
-// Update takes the representation of a volumePool and updates it. Returns the server's representation of the volumePool, and an error, if there is any.
-func (c *FakeVolumePools) Update(ctx context.Context, volumePool *storage.VolumePool, opts v1.UpdateOptions) (result *storage.VolumePool, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateAction(volumepoolsResource, volumePool), &storage.VolumePool{})
- if obj == nil {
- return nil, err
- }
- return obj.(*storage.VolumePool), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeVolumePools) UpdateStatus(ctx context.Context, volumePool *storage.VolumePool, opts v1.UpdateOptions) (*storage.VolumePool, error) {
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceAction(volumepoolsResource, "status", volumePool), &storage.VolumePool{})
- if obj == nil {
- return nil, err
- }
- return obj.(*storage.VolumePool), err
-}
-
-// Delete takes name of the volumePool and deletes it. Returns an error if one occurs.
-func (c *FakeVolumePools) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(volumepoolsResource, name, opts), &storage.VolumePool{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeVolumePools) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewRootDeleteCollectionAction(volumepoolsResource, listOpts)
-
- _, err := c.Fake.Invokes(action, &storage.VolumePoolList{})
- return err
-}
-
-// Patch applies the patch and returns the patched volumePool.
-func (c *FakeVolumePools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *storage.VolumePool, err error) {
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceAction(volumepoolsResource, name, pt, data, subresources...), &storage.VolumePool{})
- if obj == nil {
- return nil, err
- }
- return obj.(*storage.VolumePool), err
-}
diff --git a/generated/clientset/internalversion/typed/storage/internalversion/generated_expansion.go b/generated/clientset/internalversion/typed/storage/internalversion/generated_expansion.go
deleted file mode 100644
index 09d4725d0..000000000
--- a/generated/clientset/internalversion/typed/storage/internalversion/generated_expansion.go
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-type VolumeExpansion interface{}
-
-type VolumeClassExpansion interface{}
-
-type VolumePoolExpansion interface{}
diff --git a/generated/clientset/internalversion/typed/storage/internalversion/storage_client.go b/generated/clientset/internalversion/typed/storage/internalversion/storage_client.go
deleted file mode 100644
index 8856ca19d..000000000
--- a/generated/clientset/internalversion/typed/storage/internalversion/storage_client.go
+++ /dev/null
@@ -1,123 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "net/http"
-
- "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- rest "k8s.io/client-go/rest"
-)
-
-type StorageInterface interface {
- RESTClient() rest.Interface
- VolumesGetter
- VolumeClassesGetter
- VolumePoolsGetter
-}
-
-// StorageClient is used to interact with features provided by the storage.api.onmetal.de group.
-type StorageClient struct {
- restClient rest.Interface
-}
-
-func (c *StorageClient) Volumes(namespace string) VolumeInterface {
- return newVolumes(c, namespace)
-}
-
-func (c *StorageClient) VolumeClasses() VolumeClassInterface {
- return newVolumeClasses(c)
-}
-
-func (c *StorageClient) VolumePools() VolumePoolInterface {
- return newVolumePools(c)
-}
-
-// NewForConfig creates a new StorageClient for the given config.
-// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
-// where httpClient was generated with rest.HTTPClientFor(c).
-func NewForConfig(c *rest.Config) (*StorageClient, error) {
- config := *c
- if err := setConfigDefaults(&config); err != nil {
- return nil, err
- }
- httpClient, err := rest.HTTPClientFor(&config)
- if err != nil {
- return nil, err
- }
- return NewForConfigAndClient(&config, httpClient)
-}
-
-// NewForConfigAndClient creates a new StorageClient for the given config and http client.
-// Note the http client provided takes precedence over the configured transport values.
-func NewForConfigAndClient(c *rest.Config, h *http.Client) (*StorageClient, error) {
- config := *c
- if err := setConfigDefaults(&config); err != nil {
- return nil, err
- }
- client, err := rest.RESTClientForConfigAndClient(&config, h)
- if err != nil {
- return nil, err
- }
- return &StorageClient{client}, nil
-}
-
-// NewForConfigOrDie creates a new StorageClient for the given config and
-// panics if there is an error in the config.
-func NewForConfigOrDie(c *rest.Config) *StorageClient {
- client, err := NewForConfig(c)
- if err != nil {
- panic(err)
- }
- return client
-}
-
-// New creates a new StorageClient for the given RESTClient.
-func New(c rest.Interface) *StorageClient {
- return &StorageClient{c}
-}
-
-func setConfigDefaults(config *rest.Config) error {
- config.APIPath = "/apis"
- if config.UserAgent == "" {
- config.UserAgent = rest.DefaultKubernetesUserAgent()
- }
- if config.GroupVersion == nil || config.GroupVersion.Group != scheme.Scheme.PrioritizedVersionsForGroup("storage.api.onmetal.de")[0].Group {
- gv := scheme.Scheme.PrioritizedVersionsForGroup("storage.api.onmetal.de")[0]
- config.GroupVersion = &gv
- }
- config.NegotiatedSerializer = scheme.Codecs
-
- if config.QPS == 0 {
- config.QPS = 5
- }
- if config.Burst == 0 {
- config.Burst = 10
- }
-
- return nil
-}
-
-// RESTClient returns a RESTClient that is used to communicate
-// with API server by this client implementation.
-func (c *StorageClient) RESTClient() rest.Interface {
- if c == nil {
- return nil
- }
- return c.restClient
-}
diff --git a/generated/clientset/internalversion/typed/storage/internalversion/volume.go b/generated/clientset/internalversion/typed/storage/internalversion/volume.go
deleted file mode 100644
index 169f44759..000000000
--- a/generated/clientset/internalversion/typed/storage/internalversion/volume.go
+++ /dev/null
@@ -1,194 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- "time"
-
- storage "github.com/onmetal/onmetal-api/apis/storage"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- rest "k8s.io/client-go/rest"
-)
-
-// VolumesGetter has a method to return a VolumeInterface.
-// A group's client should implement this interface.
-type VolumesGetter interface {
- Volumes(namespace string) VolumeInterface
-}
-
-// VolumeInterface has methods to work with Volume resources.
-type VolumeInterface interface {
- Create(ctx context.Context, volume *storage.Volume, opts v1.CreateOptions) (*storage.Volume, error)
- Update(ctx context.Context, volume *storage.Volume, opts v1.UpdateOptions) (*storage.Volume, error)
- UpdateStatus(ctx context.Context, volume *storage.Volume, opts v1.UpdateOptions) (*storage.Volume, error)
- Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*storage.Volume, error)
- List(ctx context.Context, opts v1.ListOptions) (*storage.VolumeList, error)
- Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *storage.Volume, err error)
- VolumeExpansion
-}
-
-// volumes implements VolumeInterface
-type volumes struct {
- client rest.Interface
- ns string
-}
-
-// newVolumes returns a Volumes
-func newVolumes(c *StorageClient, namespace string) *volumes {
- return &volumes{
- client: c.RESTClient(),
- ns: namespace,
- }
-}
-
-// Get takes name of the volume, and returns the corresponding volume object, and an error if there is any.
-func (c *volumes) Get(ctx context.Context, name string, options v1.GetOptions) (result *storage.Volume, err error) {
- result = &storage.Volume{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("volumes").
- Name(name).
- VersionedParams(&options, scheme.ParameterCodec).
- Do(ctx).
- Into(result)
- return
-}
-
-// List takes label and field selectors, and returns the list of Volumes that match those selectors.
-func (c *volumes) List(ctx context.Context, opts v1.ListOptions) (result *storage.VolumeList, err error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- result = &storage.VolumeList{}
- err = c.client.Get().
- Namespace(c.ns).
- Resource("volumes").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Do(ctx).
- Into(result)
- return
-}
-
-// Watch returns a watch.Interface that watches the requested volumes.
-func (c *volumes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- opts.Watch = true
- return c.client.Get().
- Namespace(c.ns).
- Resource("volumes").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Watch(ctx)
-}
-
-// Create takes the representation of a volume and creates it. Returns the server's representation of the volume, and an error, if there is any.
-func (c *volumes) Create(ctx context.Context, volume *storage.Volume, opts v1.CreateOptions) (result *storage.Volume, err error) {
- result = &storage.Volume{}
- err = c.client.Post().
- Namespace(c.ns).
- Resource("volumes").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(volume).
- Do(ctx).
- Into(result)
- return
-}
-
-// Update takes the representation of a volume and updates it. Returns the server's representation of the volume, and an error, if there is any.
-func (c *volumes) Update(ctx context.Context, volume *storage.Volume, opts v1.UpdateOptions) (result *storage.Volume, err error) {
- result = &storage.Volume{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("volumes").
- Name(volume.Name).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(volume).
- Do(ctx).
- Into(result)
- return
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *volumes) UpdateStatus(ctx context.Context, volume *storage.Volume, opts v1.UpdateOptions) (result *storage.Volume, err error) {
- result = &storage.Volume{}
- err = c.client.Put().
- Namespace(c.ns).
- Resource("volumes").
- Name(volume.Name).
- SubResource("status").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(volume).
- Do(ctx).
- Into(result)
- return
-}
-
-// Delete takes name of the volume and deletes it. Returns an error if one occurs.
-func (c *volumes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- return c.client.Delete().
- Namespace(c.ns).
- Resource("volumes").
- Name(name).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *volumes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- var timeout time.Duration
- if listOpts.TimeoutSeconds != nil {
- timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
- }
- return c.client.Delete().
- Namespace(c.ns).
- Resource("volumes").
- VersionedParams(&listOpts, scheme.ParameterCodec).
- Timeout(timeout).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// Patch applies the patch and returns the patched volume.
-func (c *volumes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *storage.Volume, err error) {
- result = &storage.Volume{}
- err = c.client.Patch(pt).
- Namespace(c.ns).
- Resource("volumes").
- Name(name).
- SubResource(subresources...).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(data).
- Do(ctx).
- Into(result)
- return
-}
diff --git a/generated/clientset/internalversion/typed/storage/internalversion/volumeclass.go b/generated/clientset/internalversion/typed/storage/internalversion/volumeclass.go
deleted file mode 100644
index 683914139..000000000
--- a/generated/clientset/internalversion/typed/storage/internalversion/volumeclass.go
+++ /dev/null
@@ -1,167 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- "time"
-
- storage "github.com/onmetal/onmetal-api/apis/storage"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- rest "k8s.io/client-go/rest"
-)
-
-// VolumeClassesGetter has a method to return a VolumeClassInterface.
-// A group's client should implement this interface.
-type VolumeClassesGetter interface {
- VolumeClasses() VolumeClassInterface
-}
-
-// VolumeClassInterface has methods to work with VolumeClass resources.
-type VolumeClassInterface interface {
- Create(ctx context.Context, volumeClass *storage.VolumeClass, opts v1.CreateOptions) (*storage.VolumeClass, error)
- Update(ctx context.Context, volumeClass *storage.VolumeClass, opts v1.UpdateOptions) (*storage.VolumeClass, error)
- Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*storage.VolumeClass, error)
- List(ctx context.Context, opts v1.ListOptions) (*storage.VolumeClassList, error)
- Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *storage.VolumeClass, err error)
- VolumeClassExpansion
-}
-
-// volumeClasses implements VolumeClassInterface
-type volumeClasses struct {
- client rest.Interface
-}
-
-// newVolumeClasses returns a VolumeClasses
-func newVolumeClasses(c *StorageClient) *volumeClasses {
- return &volumeClasses{
- client: c.RESTClient(),
- }
-}
-
-// Get takes name of the volumeClass, and returns the corresponding volumeClass object, and an error if there is any.
-func (c *volumeClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *storage.VolumeClass, err error) {
- result = &storage.VolumeClass{}
- err = c.client.Get().
- Resource("volumeclasses").
- Name(name).
- VersionedParams(&options, scheme.ParameterCodec).
- Do(ctx).
- Into(result)
- return
-}
-
-// List takes label and field selectors, and returns the list of VolumeClasses that match those selectors.
-func (c *volumeClasses) List(ctx context.Context, opts v1.ListOptions) (result *storage.VolumeClassList, err error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- result = &storage.VolumeClassList{}
- err = c.client.Get().
- Resource("volumeclasses").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Do(ctx).
- Into(result)
- return
-}
-
-// Watch returns a watch.Interface that watches the requested volumeClasses.
-func (c *volumeClasses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- opts.Watch = true
- return c.client.Get().
- Resource("volumeclasses").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Watch(ctx)
-}
-
-// Create takes the representation of a volumeClass and creates it. Returns the server's representation of the volumeClass, and an error, if there is any.
-func (c *volumeClasses) Create(ctx context.Context, volumeClass *storage.VolumeClass, opts v1.CreateOptions) (result *storage.VolumeClass, err error) {
- result = &storage.VolumeClass{}
- err = c.client.Post().
- Resource("volumeclasses").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(volumeClass).
- Do(ctx).
- Into(result)
- return
-}
-
-// Update takes the representation of a volumeClass and updates it. Returns the server's representation of the volumeClass, and an error, if there is any.
-func (c *volumeClasses) Update(ctx context.Context, volumeClass *storage.VolumeClass, opts v1.UpdateOptions) (result *storage.VolumeClass, err error) {
- result = &storage.VolumeClass{}
- err = c.client.Put().
- Resource("volumeclasses").
- Name(volumeClass.Name).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(volumeClass).
- Do(ctx).
- Into(result)
- return
-}
-
-// Delete takes name of the volumeClass and deletes it. Returns an error if one occurs.
-func (c *volumeClasses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- return c.client.Delete().
- Resource("volumeclasses").
- Name(name).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *volumeClasses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- var timeout time.Duration
- if listOpts.TimeoutSeconds != nil {
- timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
- }
- return c.client.Delete().
- Resource("volumeclasses").
- VersionedParams(&listOpts, scheme.ParameterCodec).
- Timeout(timeout).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// Patch applies the patch and returns the patched volumeClass.
-func (c *volumeClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *storage.VolumeClass, err error) {
- result = &storage.VolumeClass{}
- err = c.client.Patch(pt).
- Resource("volumeclasses").
- Name(name).
- SubResource(subresources...).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(data).
- Do(ctx).
- Into(result)
- return
-}
diff --git a/generated/clientset/internalversion/typed/storage/internalversion/volumepool.go b/generated/clientset/internalversion/typed/storage/internalversion/volumepool.go
deleted file mode 100644
index 55bd5d343..000000000
--- a/generated/clientset/internalversion/typed/storage/internalversion/volumepool.go
+++ /dev/null
@@ -1,183 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- "time"
-
- storage "github.com/onmetal/onmetal-api/apis/storage"
- scheme "github.com/onmetal/onmetal-api/generated/clientset/internalversion/scheme"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- rest "k8s.io/client-go/rest"
-)
-
-// VolumePoolsGetter has a method to return a VolumePoolInterface.
-// A group's client should implement this interface.
-type VolumePoolsGetter interface {
- VolumePools() VolumePoolInterface
-}
-
-// VolumePoolInterface has methods to work with VolumePool resources.
-type VolumePoolInterface interface {
- Create(ctx context.Context, volumePool *storage.VolumePool, opts v1.CreateOptions) (*storage.VolumePool, error)
- Update(ctx context.Context, volumePool *storage.VolumePool, opts v1.UpdateOptions) (*storage.VolumePool, error)
- UpdateStatus(ctx context.Context, volumePool *storage.VolumePool, opts v1.UpdateOptions) (*storage.VolumePool, error)
- Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*storage.VolumePool, error)
- List(ctx context.Context, opts v1.ListOptions) (*storage.VolumePoolList, error)
- Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *storage.VolumePool, err error)
- VolumePoolExpansion
-}
-
-// volumePools implements VolumePoolInterface
-type volumePools struct {
- client rest.Interface
-}
-
-// newVolumePools returns a VolumePools
-func newVolumePools(c *StorageClient) *volumePools {
- return &volumePools{
- client: c.RESTClient(),
- }
-}
-
-// Get takes name of the volumePool, and returns the corresponding volumePool object, and an error if there is any.
-func (c *volumePools) Get(ctx context.Context, name string, options v1.GetOptions) (result *storage.VolumePool, err error) {
- result = &storage.VolumePool{}
- err = c.client.Get().
- Resource("volumepools").
- Name(name).
- VersionedParams(&options, scheme.ParameterCodec).
- Do(ctx).
- Into(result)
- return
-}
-
-// List takes label and field selectors, and returns the list of VolumePools that match those selectors.
-func (c *volumePools) List(ctx context.Context, opts v1.ListOptions) (result *storage.VolumePoolList, err error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- result = &storage.VolumePoolList{}
- err = c.client.Get().
- Resource("volumepools").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Do(ctx).
- Into(result)
- return
-}
-
-// Watch returns a watch.Interface that watches the requested volumePools.
-func (c *volumePools) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- var timeout time.Duration
- if opts.TimeoutSeconds != nil {
- timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
- }
- opts.Watch = true
- return c.client.Get().
- Resource("volumepools").
- VersionedParams(&opts, scheme.ParameterCodec).
- Timeout(timeout).
- Watch(ctx)
-}
-
-// Create takes the representation of a volumePool and creates it. Returns the server's representation of the volumePool, and an error, if there is any.
-func (c *volumePools) Create(ctx context.Context, volumePool *storage.VolumePool, opts v1.CreateOptions) (result *storage.VolumePool, err error) {
- result = &storage.VolumePool{}
- err = c.client.Post().
- Resource("volumepools").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(volumePool).
- Do(ctx).
- Into(result)
- return
-}
-
-// Update takes the representation of a volumePool and updates it. Returns the server's representation of the volumePool, and an error, if there is any.
-func (c *volumePools) Update(ctx context.Context, volumePool *storage.VolumePool, opts v1.UpdateOptions) (result *storage.VolumePool, err error) {
- result = &storage.VolumePool{}
- err = c.client.Put().
- Resource("volumepools").
- Name(volumePool.Name).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(volumePool).
- Do(ctx).
- Into(result)
- return
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *volumePools) UpdateStatus(ctx context.Context, volumePool *storage.VolumePool, opts v1.UpdateOptions) (result *storage.VolumePool, err error) {
- result = &storage.VolumePool{}
- err = c.client.Put().
- Resource("volumepools").
- Name(volumePool.Name).
- SubResource("status").
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(volumePool).
- Do(ctx).
- Into(result)
- return
-}
-
-// Delete takes name of the volumePool and deletes it. Returns an error if one occurs.
-func (c *volumePools) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- return c.client.Delete().
- Resource("volumepools").
- Name(name).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *volumePools) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- var timeout time.Duration
- if listOpts.TimeoutSeconds != nil {
- timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
- }
- return c.client.Delete().
- Resource("volumepools").
- VersionedParams(&listOpts, scheme.ParameterCodec).
- Timeout(timeout).
- Body(&opts).
- Do(ctx).
- Error()
-}
-
-// Patch applies the patch and returns the patched volumePool.
-func (c *volumePools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *storage.VolumePool, err error) {
- result = &storage.VolumePool{}
- err = c.client.Patch(pt).
- Resource("volumepools").
- Name(name).
- SubResource(subresources...).
- VersionedParams(&opts, scheme.ParameterCodec).
- Body(data).
- Do(ctx).
- Into(result)
- return
-}
diff --git a/generated/clientset/versioned/fake/doc.go b/generated/clientset/versioned/fake/doc.go
deleted file mode 100644
index 4f36e72c1..000000000
--- a/generated/clientset/versioned/fake/doc.go
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-// This package has the automatically generated fake clientset.
-package fake
diff --git a/generated/clientset/versioned/scheme/doc.go b/generated/clientset/versioned/scheme/doc.go
deleted file mode 100644
index d2ec82246..000000000
--- a/generated/clientset/versioned/scheme/doc.go
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-// This package contains the scheme of the automatically generated clientset.
-package scheme
diff --git a/generated/clientset/versioned/typed/compute/v1alpha1/fake/doc.go b/generated/clientset/versioned/typed/compute/v1alpha1/fake/doc.go
deleted file mode 100644
index 51a90c3e1..000000000
--- a/generated/clientset/versioned/typed/compute/v1alpha1/fake/doc.go
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-// Package fake has the automatically generated clients.
-package fake
diff --git a/generated/clientset/versioned/typed/ipam/v1alpha1/fake/doc.go b/generated/clientset/versioned/typed/ipam/v1alpha1/fake/doc.go
deleted file mode 100644
index 51a90c3e1..000000000
--- a/generated/clientset/versioned/typed/ipam/v1alpha1/fake/doc.go
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-// Package fake has the automatically generated clients.
-package fake
diff --git a/generated/clientset/versioned/typed/networking/v1alpha1/fake/doc.go b/generated/clientset/versioned/typed/networking/v1alpha1/fake/doc.go
deleted file mode 100644
index 51a90c3e1..000000000
--- a/generated/clientset/versioned/typed/networking/v1alpha1/fake/doc.go
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-// Package fake has the automatically generated clients.
-package fake
diff --git a/generated/clientset/versioned/typed/storage/v1alpha1/fake/doc.go b/generated/clientset/versioned/typed/storage/v1alpha1/fake/doc.go
deleted file mode 100644
index 51a90c3e1..000000000
--- a/generated/clientset/versioned/typed/storage/v1alpha1/fake/doc.go
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by client-gen. DO NOT EDIT.
-
-// Package fake has the automatically generated clients.
-package fake
diff --git a/generated/informers/internalversion/compute/interface.go b/generated/informers/internalversion/compute/interface.go
deleted file mode 100644
index cf6b108e2..000000000
--- a/generated/informers/internalversion/compute/interface.go
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package compute
-
-import (
- internalversion "github.com/onmetal/onmetal-api/generated/informers/internalversion/compute/internalversion"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
-)
-
-// Interface provides access to each of this group's versions.
-type Interface interface {
- // InternalVersion provides access to shared informers for resources in InternalVersion.
- InternalVersion() internalversion.Interface
-}
-
-type group struct {
- factory internalinterfaces.SharedInformerFactory
- namespace string
- tweakListOptions internalinterfaces.TweakListOptionsFunc
-}
-
-// New returns a new Interface.
-func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
- return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
-}
-
-// InternalVersion returns a new internalversion.Interface.
-func (g *group) InternalVersion() internalversion.Interface {
- return internalversion.New(g.factory, g.namespace, g.tweakListOptions)
-}
diff --git a/generated/informers/internalversion/compute/internalversion/interface.go b/generated/informers/internalversion/compute/internalversion/interface.go
deleted file mode 100644
index 93b8a7e1e..000000000
--- a/generated/informers/internalversion/compute/internalversion/interface.go
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
-)
-
-// Interface provides access to all the informers in this group version.
-type Interface interface {
- // Machines returns a MachineInformer.
- Machines() MachineInformer
- // MachineClasses returns a MachineClassInformer.
- MachineClasses() MachineClassInformer
- // MachinePools returns a MachinePoolInformer.
- MachinePools() MachinePoolInformer
-}
-
-type version struct {
- factory internalinterfaces.SharedInformerFactory
- namespace string
- tweakListOptions internalinterfaces.TweakListOptionsFunc
-}
-
-// New returns a new Interface.
-func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
- return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
-}
-
-// Machines returns a MachineInformer.
-func (v *version) Machines() MachineInformer {
- return &machineInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
-}
-
-// MachineClasses returns a MachineClassInformer.
-func (v *version) MachineClasses() MachineClassInformer {
- return &machineClassInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
-}
-
-// MachinePools returns a MachinePoolInformer.
-func (v *version) MachinePools() MachinePoolInformer {
- return &machinePoolInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
-}
diff --git a/generated/informers/internalversion/compute/internalversion/machine.go b/generated/informers/internalversion/compute/internalversion/machine.go
deleted file mode 100644
index 6bc88fb66..000000000
--- a/generated/informers/internalversion/compute/internalversion/machine.go
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- time "time"
-
- compute "github.com/onmetal/onmetal-api/apis/compute"
- clientsetinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- internalversion "github.com/onmetal/onmetal-api/generated/listers/compute/internalversion"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- watch "k8s.io/apimachinery/pkg/watch"
- cache "k8s.io/client-go/tools/cache"
-)
-
-// MachineInformer provides access to a shared informer and lister for
-// Machines.
-type MachineInformer interface {
- Informer() cache.SharedIndexInformer
- Lister() internalversion.MachineLister
-}
-
-type machineInformer struct {
- factory internalinterfaces.SharedInformerFactory
- tweakListOptions internalinterfaces.TweakListOptionsFunc
- namespace string
-}
-
-// NewMachineInformer constructs a new informer for Machine type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewMachineInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
- return NewFilteredMachineInformer(client, namespace, resyncPeriod, indexers, nil)
-}
-
-// NewFilteredMachineInformer constructs a new informer for Machine type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredMachineInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
- return cache.NewSharedIndexInformer(
- &cache.ListWatch{
- ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Compute().Machines(namespace).List(context.TODO(), options)
- },
- WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Compute().Machines(namespace).Watch(context.TODO(), options)
- },
- },
- &compute.Machine{},
- resyncPeriod,
- indexers,
- )
-}
-
-func (f *machineInformer) defaultInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
- return NewFilteredMachineInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
-}
-
-func (f *machineInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&compute.Machine{}, f.defaultInformer)
-}
-
-func (f *machineInformer) Lister() internalversion.MachineLister {
- return internalversion.NewMachineLister(f.Informer().GetIndexer())
-}
diff --git a/generated/informers/internalversion/compute/internalversion/machineclass.go b/generated/informers/internalversion/compute/internalversion/machineclass.go
deleted file mode 100644
index c511c516f..000000000
--- a/generated/informers/internalversion/compute/internalversion/machineclass.go
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- time "time"
-
- compute "github.com/onmetal/onmetal-api/apis/compute"
- clientsetinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- internalversion "github.com/onmetal/onmetal-api/generated/listers/compute/internalversion"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- watch "k8s.io/apimachinery/pkg/watch"
- cache "k8s.io/client-go/tools/cache"
-)
-
-// MachineClassInformer provides access to a shared informer and lister for
-// MachineClasses.
-type MachineClassInformer interface {
- Informer() cache.SharedIndexInformer
- Lister() internalversion.MachineClassLister
-}
-
-type machineClassInformer struct {
- factory internalinterfaces.SharedInformerFactory
- tweakListOptions internalinterfaces.TweakListOptionsFunc
- namespace string
-}
-
-// NewMachineClassInformer constructs a new informer for MachineClass type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewMachineClassInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
- return NewFilteredMachineClassInformer(client, namespace, resyncPeriod, indexers, nil)
-}
-
-// NewFilteredMachineClassInformer constructs a new informer for MachineClass type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredMachineClassInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
- return cache.NewSharedIndexInformer(
- &cache.ListWatch{
- ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Compute().MachineClasses(namespace).List(context.TODO(), options)
- },
- WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Compute().MachineClasses(namespace).Watch(context.TODO(), options)
- },
- },
- &compute.MachineClass{},
- resyncPeriod,
- indexers,
- )
-}
-
-func (f *machineClassInformer) defaultInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
- return NewFilteredMachineClassInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
-}
-
-func (f *machineClassInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&compute.MachineClass{}, f.defaultInformer)
-}
-
-func (f *machineClassInformer) Lister() internalversion.MachineClassLister {
- return internalversion.NewMachineClassLister(f.Informer().GetIndexer())
-}
diff --git a/generated/informers/internalversion/compute/internalversion/machinepool.go b/generated/informers/internalversion/compute/internalversion/machinepool.go
deleted file mode 100644
index 980ba4eaf..000000000
--- a/generated/informers/internalversion/compute/internalversion/machinepool.go
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- time "time"
-
- compute "github.com/onmetal/onmetal-api/apis/compute"
- clientsetinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- internalversion "github.com/onmetal/onmetal-api/generated/listers/compute/internalversion"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- watch "k8s.io/apimachinery/pkg/watch"
- cache "k8s.io/client-go/tools/cache"
-)
-
-// MachinePoolInformer provides access to a shared informer and lister for
-// MachinePools.
-type MachinePoolInformer interface {
- Informer() cache.SharedIndexInformer
- Lister() internalversion.MachinePoolLister
-}
-
-type machinePoolInformer struct {
- factory internalinterfaces.SharedInformerFactory
- tweakListOptions internalinterfaces.TweakListOptionsFunc
-}
-
-// NewMachinePoolInformer constructs a new informer for MachinePool type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewMachinePoolInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
- return NewFilteredMachinePoolInformer(client, resyncPeriod, indexers, nil)
-}
-
-// NewFilteredMachinePoolInformer constructs a new informer for MachinePool type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredMachinePoolInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
- return cache.NewSharedIndexInformer(
- &cache.ListWatch{
- ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Compute().MachinePools().List(context.TODO(), options)
- },
- WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Compute().MachinePools().Watch(context.TODO(), options)
- },
- },
- &compute.MachinePool{},
- resyncPeriod,
- indexers,
- )
-}
-
-func (f *machinePoolInformer) defaultInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
- return NewFilteredMachinePoolInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
-}
-
-func (f *machinePoolInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&compute.MachinePool{}, f.defaultInformer)
-}
-
-func (f *machinePoolInformer) Lister() internalversion.MachinePoolLister {
- return internalversion.NewMachinePoolLister(f.Informer().GetIndexer())
-}
diff --git a/generated/informers/internalversion/factory.go b/generated/informers/internalversion/factory.go
deleted file mode 100644
index 51f57f049..000000000
--- a/generated/informers/internalversion/factory.go
+++ /dev/null
@@ -1,197 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- reflect "reflect"
- sync "sync"
- time "time"
-
- internalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion"
- compute "github.com/onmetal/onmetal-api/generated/informers/internalversion/compute"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- ipam "github.com/onmetal/onmetal-api/generated/informers/internalversion/ipam"
- networking "github.com/onmetal/onmetal-api/generated/informers/internalversion/networking"
- storage "github.com/onmetal/onmetal-api/generated/informers/internalversion/storage"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- cache "k8s.io/client-go/tools/cache"
-)
-
-// SharedInformerOption defines the functional option type for SharedInformerFactory.
-type SharedInformerOption func(*sharedInformerFactory) *sharedInformerFactory
-
-type sharedInformerFactory struct {
- client internalversion.Interface
- namespace string
- tweakListOptions internalinterfaces.TweakListOptionsFunc
- lock sync.Mutex
- defaultResync time.Duration
- customResync map[reflect.Type]time.Duration
-
- informers map[reflect.Type]cache.SharedIndexInformer
- // startedInformers is used for tracking which informers have been started.
- // This allows Start() to be called multiple times safely.
- startedInformers map[reflect.Type]bool
-}
-
-// WithCustomResyncConfig sets a custom resync period for the specified informer types.
-func WithCustomResyncConfig(resyncConfig map[v1.Object]time.Duration) SharedInformerOption {
- return func(factory *sharedInformerFactory) *sharedInformerFactory {
- for k, v := range resyncConfig {
- factory.customResync[reflect.TypeOf(k)] = v
- }
- return factory
- }
-}
-
-// WithTweakListOptions sets a custom filter on all listers of the configured SharedInformerFactory.
-func WithTweakListOptions(tweakListOptions internalinterfaces.TweakListOptionsFunc) SharedInformerOption {
- return func(factory *sharedInformerFactory) *sharedInformerFactory {
- factory.tweakListOptions = tweakListOptions
- return factory
- }
-}
-
-// WithNamespace limits the SharedInformerFactory to the specified namespace.
-func WithNamespace(namespace string) SharedInformerOption {
- return func(factory *sharedInformerFactory) *sharedInformerFactory {
- factory.namespace = namespace
- return factory
- }
-}
-
-// NewSharedInformerFactory constructs a new instance of sharedInformerFactory for all namespaces.
-func NewSharedInformerFactory(client internalversion.Interface, defaultResync time.Duration) SharedInformerFactory {
- return NewSharedInformerFactoryWithOptions(client, defaultResync)
-}
-
-// NewFilteredSharedInformerFactory constructs a new instance of sharedInformerFactory.
-// Listers obtained via this SharedInformerFactory will be subject to the same filters
-// as specified here.
-// Deprecated: Please use NewSharedInformerFactoryWithOptions instead
-func NewFilteredSharedInformerFactory(client internalversion.Interface, defaultResync time.Duration, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) SharedInformerFactory {
- return NewSharedInformerFactoryWithOptions(client, defaultResync, WithNamespace(namespace), WithTweakListOptions(tweakListOptions))
-}
-
-// NewSharedInformerFactoryWithOptions constructs a new instance of a SharedInformerFactory with additional options.
-func NewSharedInformerFactoryWithOptions(client internalversion.Interface, defaultResync time.Duration, options ...SharedInformerOption) SharedInformerFactory {
- factory := &sharedInformerFactory{
- client: client,
- namespace: v1.NamespaceAll,
- defaultResync: defaultResync,
- informers: make(map[reflect.Type]cache.SharedIndexInformer),
- startedInformers: make(map[reflect.Type]bool),
- customResync: make(map[reflect.Type]time.Duration),
- }
-
- // Apply all options
- for _, opt := range options {
- factory = opt(factory)
- }
-
- return factory
-}
-
-// Start initializes all requested informers.
-func (f *sharedInformerFactory) Start(stopCh <-chan struct{}) {
- f.lock.Lock()
- defer f.lock.Unlock()
-
- for informerType, informer := range f.informers {
- if !f.startedInformers[informerType] {
- go informer.Run(stopCh)
- f.startedInformers[informerType] = true
- }
- }
-}
-
-// WaitForCacheSync waits for all started informers' cache were synced.
-func (f *sharedInformerFactory) WaitForCacheSync(stopCh <-chan struct{}) map[reflect.Type]bool {
- informers := func() map[reflect.Type]cache.SharedIndexInformer {
- f.lock.Lock()
- defer f.lock.Unlock()
-
- informers := map[reflect.Type]cache.SharedIndexInformer{}
- for informerType, informer := range f.informers {
- if f.startedInformers[informerType] {
- informers[informerType] = informer
- }
- }
- return informers
- }()
-
- res := map[reflect.Type]bool{}
- for informType, informer := range informers {
- res[informType] = cache.WaitForCacheSync(stopCh, informer.HasSynced)
- }
- return res
-}
-
-// InternalInformerFor returns the SharedIndexInformer for obj using an internal
-// client.
-func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
- f.lock.Lock()
- defer f.lock.Unlock()
-
- informerType := reflect.TypeOf(obj)
- informer, exists := f.informers[informerType]
- if exists {
- return informer
- }
-
- resyncPeriod, exists := f.customResync[informerType]
- if !exists {
- resyncPeriod = f.defaultResync
- }
-
- informer = newFunc(f.client, resyncPeriod)
- f.informers[informerType] = informer
-
- return informer
-}
-
-// SharedInformerFactory provides shared informers for resources in all known
-// API group versions.
-type SharedInformerFactory interface {
- internalinterfaces.SharedInformerFactory
- ForResource(resource schema.GroupVersionResource) (GenericInformer, error)
- WaitForCacheSync(stopCh <-chan struct{}) map[reflect.Type]bool
-
- Compute() compute.Interface
- Ipam() ipam.Interface
- Networking() networking.Interface
- Storage() storage.Interface
-}
-
-func (f *sharedInformerFactory) Compute() compute.Interface {
- return compute.New(f, f.namespace, f.tweakListOptions)
-}
-
-func (f *sharedInformerFactory) Ipam() ipam.Interface {
- return ipam.New(f, f.namespace, f.tweakListOptions)
-}
-
-func (f *sharedInformerFactory) Networking() networking.Interface {
- return networking.New(f, f.namespace, f.tweakListOptions)
-}
-
-func (f *sharedInformerFactory) Storage() storage.Interface {
- return storage.New(f, f.namespace, f.tweakListOptions)
-}
diff --git a/generated/informers/internalversion/generic.go b/generated/informers/internalversion/generic.go
deleted file mode 100644
index 257852de3..000000000
--- a/generated/informers/internalversion/generic.go
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "fmt"
-
- compute "github.com/onmetal/onmetal-api/apis/compute"
- ipam "github.com/onmetal/onmetal-api/apis/ipam"
- networking "github.com/onmetal/onmetal-api/apis/networking"
- storage "github.com/onmetal/onmetal-api/apis/storage"
- schema "k8s.io/apimachinery/pkg/runtime/schema"
- cache "k8s.io/client-go/tools/cache"
-)
-
-// GenericInformer is type of SharedIndexInformer which will locate and delegate to other
-// sharedInformers based on type
-type GenericInformer interface {
- Informer() cache.SharedIndexInformer
- Lister() cache.GenericLister
-}
-
-type genericInformer struct {
- informer cache.SharedIndexInformer
- resource schema.GroupResource
-}
-
-// Informer returns the SharedIndexInformer.
-func (f *genericInformer) Informer() cache.SharedIndexInformer {
- return f.informer
-}
-
-// Lister returns the GenericLister.
-func (f *genericInformer) Lister() cache.GenericLister {
- return cache.NewGenericLister(f.Informer().GetIndexer(), f.resource)
-}
-
-// ForResource gives generic access to a shared informer of the matching type
-// TODO extend this to unknown resources with a client pool
-func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource) (GenericInformer, error) {
- switch resource {
- // Group=compute.api.onmetal.de, Version=internalVersion
- case compute.SchemeGroupVersion.WithResource("machines"):
- return &genericInformer{resource: resource.GroupResource(), informer: f.Compute().InternalVersion().Machines().Informer()}, nil
- case compute.SchemeGroupVersion.WithResource("machineclasses"):
- return &genericInformer{resource: resource.GroupResource(), informer: f.Compute().InternalVersion().MachineClasses().Informer()}, nil
- case compute.SchemeGroupVersion.WithResource("machinepools"):
- return &genericInformer{resource: resource.GroupResource(), informer: f.Compute().InternalVersion().MachinePools().Informer()}, nil
-
- // Group=ipam.api.onmetal.de, Version=internalVersion
- case ipam.SchemeGroupVersion.WithResource("prefixes"):
- return &genericInformer{resource: resource.GroupResource(), informer: f.Ipam().InternalVersion().Prefixes().Informer()}, nil
- case ipam.SchemeGroupVersion.WithResource("prefixallocations"):
- return &genericInformer{resource: resource.GroupResource(), informer: f.Ipam().InternalVersion().PrefixAllocations().Informer()}, nil
-
- // Group=networking.api.onmetal.de, Version=internalVersion
- case networking.SchemeGroupVersion.WithResource("aliasprefixes"):
- return &genericInformer{resource: resource.GroupResource(), informer: f.Networking().InternalVersion().AliasPrefixes().Informer()}, nil
- case networking.SchemeGroupVersion.WithResource("aliasprefixroutings"):
- return &genericInformer{resource: resource.GroupResource(), informer: f.Networking().InternalVersion().AliasPrefixRoutings().Informer()}, nil
- case networking.SchemeGroupVersion.WithResource("loadbalancers"):
- return &genericInformer{resource: resource.GroupResource(), informer: f.Networking().InternalVersion().LoadBalancers().Informer()}, nil
- case networking.SchemeGroupVersion.WithResource("loadbalancerroutings"):
- return &genericInformer{resource: resource.GroupResource(), informer: f.Networking().InternalVersion().LoadBalancerRoutings().Informer()}, nil
- case networking.SchemeGroupVersion.WithResource("natgateways"):
- return &genericInformer{resource: resource.GroupResource(), informer: f.Networking().InternalVersion().NATGateways().Informer()}, nil
- case networking.SchemeGroupVersion.WithResource("natgatewayroutings"):
- return &genericInformer{resource: resource.GroupResource(), informer: f.Networking().InternalVersion().NATGatewayRoutings().Informer()}, nil
- case networking.SchemeGroupVersion.WithResource("networks"):
- return &genericInformer{resource: resource.GroupResource(), informer: f.Networking().InternalVersion().Networks().Informer()}, nil
- case networking.SchemeGroupVersion.WithResource("networkinterfaces"):
- return &genericInformer{resource: resource.GroupResource(), informer: f.Networking().InternalVersion().NetworkInterfaces().Informer()}, nil
- case networking.SchemeGroupVersion.WithResource("virtualips"):
- return &genericInformer{resource: resource.GroupResource(), informer: f.Networking().InternalVersion().VirtualIPs().Informer()}, nil
-
- // Group=storage.api.onmetal.de, Version=internalVersion
- case storage.SchemeGroupVersion.WithResource("volumes"):
- return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().InternalVersion().Volumes().Informer()}, nil
- case storage.SchemeGroupVersion.WithResource("volumeclasses"):
- return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().InternalVersion().VolumeClasses().Informer()}, nil
- case storage.SchemeGroupVersion.WithResource("volumepools"):
- return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().InternalVersion().VolumePools().Informer()}, nil
-
- }
-
- return nil, fmt.Errorf("no informer found for %v", resource)
-}
diff --git a/generated/informers/internalversion/internalinterfaces/factory_interfaces.go b/generated/informers/internalversion/internalinterfaces/factory_interfaces.go
deleted file mode 100644
index 0130be7f2..000000000
--- a/generated/informers/internalversion/internalinterfaces/factory_interfaces.go
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalinterfaces
-
-import (
- time "time"
-
- internalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- cache "k8s.io/client-go/tools/cache"
-)
-
-// NewInformerFunc takes internalversion.Interface and time.Duration to return a SharedIndexInformer.
-type NewInformerFunc func(internalversion.Interface, time.Duration) cache.SharedIndexInformer
-
-// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
-type SharedInformerFactory interface {
- Start(stopCh <-chan struct{})
- InformerFor(obj runtime.Object, newFunc NewInformerFunc) cache.SharedIndexInformer
-}
-
-// TweakListOptionsFunc is a function that transforms a v1.ListOptions.
-type TweakListOptionsFunc func(*v1.ListOptions)
diff --git a/generated/informers/internalversion/ipam/interface.go b/generated/informers/internalversion/ipam/interface.go
deleted file mode 100644
index 4869264dc..000000000
--- a/generated/informers/internalversion/ipam/interface.go
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package ipam
-
-import (
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- internalversion "github.com/onmetal/onmetal-api/generated/informers/internalversion/ipam/internalversion"
-)
-
-// Interface provides access to each of this group's versions.
-type Interface interface {
- // InternalVersion provides access to shared informers for resources in InternalVersion.
- InternalVersion() internalversion.Interface
-}
-
-type group struct {
- factory internalinterfaces.SharedInformerFactory
- namespace string
- tweakListOptions internalinterfaces.TweakListOptionsFunc
-}
-
-// New returns a new Interface.
-func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
- return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
-}
-
-// InternalVersion returns a new internalversion.Interface.
-func (g *group) InternalVersion() internalversion.Interface {
- return internalversion.New(g.factory, g.namespace, g.tweakListOptions)
-}
diff --git a/generated/informers/internalversion/ipam/internalversion/interface.go b/generated/informers/internalversion/ipam/internalversion/interface.go
deleted file mode 100644
index abed4d60e..000000000
--- a/generated/informers/internalversion/ipam/internalversion/interface.go
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
-)
-
-// Interface provides access to all the informers in this group version.
-type Interface interface {
- // Prefixes returns a PrefixInformer.
- Prefixes() PrefixInformer
- // PrefixAllocations returns a PrefixAllocationInformer.
- PrefixAllocations() PrefixAllocationInformer
-}
-
-type version struct {
- factory internalinterfaces.SharedInformerFactory
- namespace string
- tweakListOptions internalinterfaces.TweakListOptionsFunc
-}
-
-// New returns a new Interface.
-func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
- return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
-}
-
-// Prefixes returns a PrefixInformer.
-func (v *version) Prefixes() PrefixInformer {
- return &prefixInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
-}
-
-// PrefixAllocations returns a PrefixAllocationInformer.
-func (v *version) PrefixAllocations() PrefixAllocationInformer {
- return &prefixAllocationInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
-}
diff --git a/generated/informers/internalversion/ipam/internalversion/prefix.go b/generated/informers/internalversion/ipam/internalversion/prefix.go
deleted file mode 100644
index d7a67d896..000000000
--- a/generated/informers/internalversion/ipam/internalversion/prefix.go
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- time "time"
-
- ipam "github.com/onmetal/onmetal-api/apis/ipam"
- clientsetinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- internalversion "github.com/onmetal/onmetal-api/generated/listers/ipam/internalversion"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- watch "k8s.io/apimachinery/pkg/watch"
- cache "k8s.io/client-go/tools/cache"
-)
-
-// PrefixInformer provides access to a shared informer and lister for
-// Prefixes.
-type PrefixInformer interface {
- Informer() cache.SharedIndexInformer
- Lister() internalversion.PrefixLister
-}
-
-type prefixInformer struct {
- factory internalinterfaces.SharedInformerFactory
- tweakListOptions internalinterfaces.TweakListOptionsFunc
- namespace string
-}
-
-// NewPrefixInformer constructs a new informer for Prefix type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewPrefixInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
- return NewFilteredPrefixInformer(client, namespace, resyncPeriod, indexers, nil)
-}
-
-// NewFilteredPrefixInformer constructs a new informer for Prefix type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredPrefixInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
- return cache.NewSharedIndexInformer(
- &cache.ListWatch{
- ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Ipam().Prefixes(namespace).List(context.TODO(), options)
- },
- WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Ipam().Prefixes(namespace).Watch(context.TODO(), options)
- },
- },
- &ipam.Prefix{},
- resyncPeriod,
- indexers,
- )
-}
-
-func (f *prefixInformer) defaultInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
- return NewFilteredPrefixInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
-}
-
-func (f *prefixInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&ipam.Prefix{}, f.defaultInformer)
-}
-
-func (f *prefixInformer) Lister() internalversion.PrefixLister {
- return internalversion.NewPrefixLister(f.Informer().GetIndexer())
-}
diff --git a/generated/informers/internalversion/ipam/internalversion/prefixallocation.go b/generated/informers/internalversion/ipam/internalversion/prefixallocation.go
deleted file mode 100644
index 0f0d349ea..000000000
--- a/generated/informers/internalversion/ipam/internalversion/prefixallocation.go
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- time "time"
-
- ipam "github.com/onmetal/onmetal-api/apis/ipam"
- clientsetinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- internalversion "github.com/onmetal/onmetal-api/generated/listers/ipam/internalversion"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- watch "k8s.io/apimachinery/pkg/watch"
- cache "k8s.io/client-go/tools/cache"
-)
-
-// PrefixAllocationInformer provides access to a shared informer and lister for
-// PrefixAllocations.
-type PrefixAllocationInformer interface {
- Informer() cache.SharedIndexInformer
- Lister() internalversion.PrefixAllocationLister
-}
-
-type prefixAllocationInformer struct {
- factory internalinterfaces.SharedInformerFactory
- tweakListOptions internalinterfaces.TweakListOptionsFunc
- namespace string
-}
-
-// NewPrefixAllocationInformer constructs a new informer for PrefixAllocation type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewPrefixAllocationInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
- return NewFilteredPrefixAllocationInformer(client, namespace, resyncPeriod, indexers, nil)
-}
-
-// NewFilteredPrefixAllocationInformer constructs a new informer for PrefixAllocation type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredPrefixAllocationInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
- return cache.NewSharedIndexInformer(
- &cache.ListWatch{
- ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Ipam().PrefixAllocations(namespace).List(context.TODO(), options)
- },
- WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Ipam().PrefixAllocations(namespace).Watch(context.TODO(), options)
- },
- },
- &ipam.PrefixAllocation{},
- resyncPeriod,
- indexers,
- )
-}
-
-func (f *prefixAllocationInformer) defaultInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
- return NewFilteredPrefixAllocationInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
-}
-
-func (f *prefixAllocationInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&ipam.PrefixAllocation{}, f.defaultInformer)
-}
-
-func (f *prefixAllocationInformer) Lister() internalversion.PrefixAllocationLister {
- return internalversion.NewPrefixAllocationLister(f.Informer().GetIndexer())
-}
diff --git a/generated/informers/internalversion/networking/interface.go b/generated/informers/internalversion/networking/interface.go
deleted file mode 100644
index f51f4e166..000000000
--- a/generated/informers/internalversion/networking/interface.go
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package networking
-
-import (
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- internalversion "github.com/onmetal/onmetal-api/generated/informers/internalversion/networking/internalversion"
-)
-
-// Interface provides access to each of this group's versions.
-type Interface interface {
- // InternalVersion provides access to shared informers for resources in InternalVersion.
- InternalVersion() internalversion.Interface
-}
-
-type group struct {
- factory internalinterfaces.SharedInformerFactory
- namespace string
- tweakListOptions internalinterfaces.TweakListOptionsFunc
-}
-
-// New returns a new Interface.
-func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
- return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
-}
-
-// InternalVersion returns a new internalversion.Interface.
-func (g *group) InternalVersion() internalversion.Interface {
- return internalversion.New(g.factory, g.namespace, g.tweakListOptions)
-}
diff --git a/generated/informers/internalversion/networking/internalversion/aliasprefix.go b/generated/informers/internalversion/networking/internalversion/aliasprefix.go
deleted file mode 100644
index 979e01614..000000000
--- a/generated/informers/internalversion/networking/internalversion/aliasprefix.go
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- time "time"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- clientsetinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- internalversion "github.com/onmetal/onmetal-api/generated/listers/networking/internalversion"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- watch "k8s.io/apimachinery/pkg/watch"
- cache "k8s.io/client-go/tools/cache"
-)
-
-// AliasPrefixInformer provides access to a shared informer and lister for
-// AliasPrefixes.
-type AliasPrefixInformer interface {
- Informer() cache.SharedIndexInformer
- Lister() internalversion.AliasPrefixLister
-}
-
-type aliasPrefixInformer struct {
- factory internalinterfaces.SharedInformerFactory
- tweakListOptions internalinterfaces.TweakListOptionsFunc
- namespace string
-}
-
-// NewAliasPrefixInformer constructs a new informer for AliasPrefix type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewAliasPrefixInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
- return NewFilteredAliasPrefixInformer(client, namespace, resyncPeriod, indexers, nil)
-}
-
-// NewFilteredAliasPrefixInformer constructs a new informer for AliasPrefix type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredAliasPrefixInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
- return cache.NewSharedIndexInformer(
- &cache.ListWatch{
- ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Networking().AliasPrefixes(namespace).List(context.TODO(), options)
- },
- WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Networking().AliasPrefixes(namespace).Watch(context.TODO(), options)
- },
- },
- &networking.AliasPrefix{},
- resyncPeriod,
- indexers,
- )
-}
-
-func (f *aliasPrefixInformer) defaultInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
- return NewFilteredAliasPrefixInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
-}
-
-func (f *aliasPrefixInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&networking.AliasPrefix{}, f.defaultInformer)
-}
-
-func (f *aliasPrefixInformer) Lister() internalversion.AliasPrefixLister {
- return internalversion.NewAliasPrefixLister(f.Informer().GetIndexer())
-}
diff --git a/generated/informers/internalversion/networking/internalversion/aliasprefixrouting.go b/generated/informers/internalversion/networking/internalversion/aliasprefixrouting.go
deleted file mode 100644
index dca6bbb2e..000000000
--- a/generated/informers/internalversion/networking/internalversion/aliasprefixrouting.go
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- time "time"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- clientsetinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- internalversion "github.com/onmetal/onmetal-api/generated/listers/networking/internalversion"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- watch "k8s.io/apimachinery/pkg/watch"
- cache "k8s.io/client-go/tools/cache"
-)
-
-// AliasPrefixRoutingInformer provides access to a shared informer and lister for
-// AliasPrefixRoutings.
-type AliasPrefixRoutingInformer interface {
- Informer() cache.SharedIndexInformer
- Lister() internalversion.AliasPrefixRoutingLister
-}
-
-type aliasPrefixRoutingInformer struct {
- factory internalinterfaces.SharedInformerFactory
- tweakListOptions internalinterfaces.TweakListOptionsFunc
- namespace string
-}
-
-// NewAliasPrefixRoutingInformer constructs a new informer for AliasPrefixRouting type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewAliasPrefixRoutingInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
- return NewFilteredAliasPrefixRoutingInformer(client, namespace, resyncPeriod, indexers, nil)
-}
-
-// NewFilteredAliasPrefixRoutingInformer constructs a new informer for AliasPrefixRouting type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredAliasPrefixRoutingInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
- return cache.NewSharedIndexInformer(
- &cache.ListWatch{
- ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Networking().AliasPrefixRoutings(namespace).List(context.TODO(), options)
- },
- WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Networking().AliasPrefixRoutings(namespace).Watch(context.TODO(), options)
- },
- },
- &networking.AliasPrefixRouting{},
- resyncPeriod,
- indexers,
- )
-}
-
-func (f *aliasPrefixRoutingInformer) defaultInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
- return NewFilteredAliasPrefixRoutingInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
-}
-
-func (f *aliasPrefixRoutingInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&networking.AliasPrefixRouting{}, f.defaultInformer)
-}
-
-func (f *aliasPrefixRoutingInformer) Lister() internalversion.AliasPrefixRoutingLister {
- return internalversion.NewAliasPrefixRoutingLister(f.Informer().GetIndexer())
-}
diff --git a/generated/informers/internalversion/networking/internalversion/interface.go b/generated/informers/internalversion/networking/internalversion/interface.go
deleted file mode 100644
index f57723e52..000000000
--- a/generated/informers/internalversion/networking/internalversion/interface.go
+++ /dev/null
@@ -1,100 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
-)
-
-// Interface provides access to all the informers in this group version.
-type Interface interface {
- // AliasPrefixes returns a AliasPrefixInformer.
- AliasPrefixes() AliasPrefixInformer
- // AliasPrefixRoutings returns a AliasPrefixRoutingInformer.
- AliasPrefixRoutings() AliasPrefixRoutingInformer
- // LoadBalancers returns a LoadBalancerInformer.
- LoadBalancers() LoadBalancerInformer
- // LoadBalancerRoutings returns a LoadBalancerRoutingInformer.
- LoadBalancerRoutings() LoadBalancerRoutingInformer
- // NATGateways returns a NATGatewayInformer.
- NATGateways() NATGatewayInformer
- // NATGatewayRoutings returns a NATGatewayRoutingInformer.
- NATGatewayRoutings() NATGatewayRoutingInformer
- // Networks returns a NetworkInformer.
- Networks() NetworkInformer
- // NetworkInterfaces returns a NetworkInterfaceInformer.
- NetworkInterfaces() NetworkInterfaceInformer
- // VirtualIPs returns a VirtualIPInformer.
- VirtualIPs() VirtualIPInformer
-}
-
-type version struct {
- factory internalinterfaces.SharedInformerFactory
- namespace string
- tweakListOptions internalinterfaces.TweakListOptionsFunc
-}
-
-// New returns a new Interface.
-func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
- return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
-}
-
-// AliasPrefixes returns a AliasPrefixInformer.
-func (v *version) AliasPrefixes() AliasPrefixInformer {
- return &aliasPrefixInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
-}
-
-// AliasPrefixRoutings returns a AliasPrefixRoutingInformer.
-func (v *version) AliasPrefixRoutings() AliasPrefixRoutingInformer {
- return &aliasPrefixRoutingInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
-}
-
-// LoadBalancers returns a LoadBalancerInformer.
-func (v *version) LoadBalancers() LoadBalancerInformer {
- return &loadBalancerInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
-}
-
-// LoadBalancerRoutings returns a LoadBalancerRoutingInformer.
-func (v *version) LoadBalancerRoutings() LoadBalancerRoutingInformer {
- return &loadBalancerRoutingInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
-}
-
-// NATGateways returns a NATGatewayInformer.
-func (v *version) NATGateways() NATGatewayInformer {
- return &nATGatewayInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
-}
-
-// NATGatewayRoutings returns a NATGatewayRoutingInformer.
-func (v *version) NATGatewayRoutings() NATGatewayRoutingInformer {
- return &nATGatewayRoutingInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
-}
-
-// Networks returns a NetworkInformer.
-func (v *version) Networks() NetworkInformer {
- return &networkInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
-}
-
-// NetworkInterfaces returns a NetworkInterfaceInformer.
-func (v *version) NetworkInterfaces() NetworkInterfaceInformer {
- return &networkInterfaceInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
-}
-
-// VirtualIPs returns a VirtualIPInformer.
-func (v *version) VirtualIPs() VirtualIPInformer {
- return &virtualIPInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
-}
diff --git a/generated/informers/internalversion/networking/internalversion/loadbalancer.go b/generated/informers/internalversion/networking/internalversion/loadbalancer.go
deleted file mode 100644
index 5ec7f48a4..000000000
--- a/generated/informers/internalversion/networking/internalversion/loadbalancer.go
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- time "time"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- clientsetinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- internalversion "github.com/onmetal/onmetal-api/generated/listers/networking/internalversion"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- watch "k8s.io/apimachinery/pkg/watch"
- cache "k8s.io/client-go/tools/cache"
-)
-
-// LoadBalancerInformer provides access to a shared informer and lister for
-// LoadBalancers.
-type LoadBalancerInformer interface {
- Informer() cache.SharedIndexInformer
- Lister() internalversion.LoadBalancerLister
-}
-
-type loadBalancerInformer struct {
- factory internalinterfaces.SharedInformerFactory
- tweakListOptions internalinterfaces.TweakListOptionsFunc
- namespace string
-}
-
-// NewLoadBalancerInformer constructs a new informer for LoadBalancer type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewLoadBalancerInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
- return NewFilteredLoadBalancerInformer(client, namespace, resyncPeriod, indexers, nil)
-}
-
-// NewFilteredLoadBalancerInformer constructs a new informer for LoadBalancer type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredLoadBalancerInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
- return cache.NewSharedIndexInformer(
- &cache.ListWatch{
- ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Networking().LoadBalancers(namespace).List(context.TODO(), options)
- },
- WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Networking().LoadBalancers(namespace).Watch(context.TODO(), options)
- },
- },
- &networking.LoadBalancer{},
- resyncPeriod,
- indexers,
- )
-}
-
-func (f *loadBalancerInformer) defaultInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
- return NewFilteredLoadBalancerInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
-}
-
-func (f *loadBalancerInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&networking.LoadBalancer{}, f.defaultInformer)
-}
-
-func (f *loadBalancerInformer) Lister() internalversion.LoadBalancerLister {
- return internalversion.NewLoadBalancerLister(f.Informer().GetIndexer())
-}
diff --git a/generated/informers/internalversion/networking/internalversion/loadbalancerrouting.go b/generated/informers/internalversion/networking/internalversion/loadbalancerrouting.go
deleted file mode 100644
index 642bbd28a..000000000
--- a/generated/informers/internalversion/networking/internalversion/loadbalancerrouting.go
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- time "time"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- clientsetinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- internalversion "github.com/onmetal/onmetal-api/generated/listers/networking/internalversion"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- watch "k8s.io/apimachinery/pkg/watch"
- cache "k8s.io/client-go/tools/cache"
-)
-
-// LoadBalancerRoutingInformer provides access to a shared informer and lister for
-// LoadBalancerRoutings.
-type LoadBalancerRoutingInformer interface {
- Informer() cache.SharedIndexInformer
- Lister() internalversion.LoadBalancerRoutingLister
-}
-
-type loadBalancerRoutingInformer struct {
- factory internalinterfaces.SharedInformerFactory
- tweakListOptions internalinterfaces.TweakListOptionsFunc
- namespace string
-}
-
-// NewLoadBalancerRoutingInformer constructs a new informer for LoadBalancerRouting type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewLoadBalancerRoutingInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
- return NewFilteredLoadBalancerRoutingInformer(client, namespace, resyncPeriod, indexers, nil)
-}
-
-// NewFilteredLoadBalancerRoutingInformer constructs a new informer for LoadBalancerRouting type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredLoadBalancerRoutingInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
- return cache.NewSharedIndexInformer(
- &cache.ListWatch{
- ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Networking().LoadBalancerRoutings(namespace).List(context.TODO(), options)
- },
- WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Networking().LoadBalancerRoutings(namespace).Watch(context.TODO(), options)
- },
- },
- &networking.LoadBalancerRouting{},
- resyncPeriod,
- indexers,
- )
-}
-
-func (f *loadBalancerRoutingInformer) defaultInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
- return NewFilteredLoadBalancerRoutingInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
-}
-
-func (f *loadBalancerRoutingInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&networking.LoadBalancerRouting{}, f.defaultInformer)
-}
-
-func (f *loadBalancerRoutingInformer) Lister() internalversion.LoadBalancerRoutingLister {
- return internalversion.NewLoadBalancerRoutingLister(f.Informer().GetIndexer())
-}
diff --git a/generated/informers/internalversion/networking/internalversion/natgateway.go b/generated/informers/internalversion/networking/internalversion/natgateway.go
deleted file mode 100644
index 5501955b0..000000000
--- a/generated/informers/internalversion/networking/internalversion/natgateway.go
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- time "time"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- clientsetinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- internalversion "github.com/onmetal/onmetal-api/generated/listers/networking/internalversion"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- watch "k8s.io/apimachinery/pkg/watch"
- cache "k8s.io/client-go/tools/cache"
-)
-
-// NATGatewayInformer provides access to a shared informer and lister for
-// NATGateways.
-type NATGatewayInformer interface {
- Informer() cache.SharedIndexInformer
- Lister() internalversion.NATGatewayLister
-}
-
-type nATGatewayInformer struct {
- factory internalinterfaces.SharedInformerFactory
- tweakListOptions internalinterfaces.TweakListOptionsFunc
- namespace string
-}
-
-// NewNATGatewayInformer constructs a new informer for NATGateway type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewNATGatewayInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
- return NewFilteredNATGatewayInformer(client, namespace, resyncPeriod, indexers, nil)
-}
-
-// NewFilteredNATGatewayInformer constructs a new informer for NATGateway type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredNATGatewayInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
- return cache.NewSharedIndexInformer(
- &cache.ListWatch{
- ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Networking().NATGateways(namespace).List(context.TODO(), options)
- },
- WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Networking().NATGateways(namespace).Watch(context.TODO(), options)
- },
- },
- &networking.NATGateway{},
- resyncPeriod,
- indexers,
- )
-}
-
-func (f *nATGatewayInformer) defaultInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
- return NewFilteredNATGatewayInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
-}
-
-func (f *nATGatewayInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&networking.NATGateway{}, f.defaultInformer)
-}
-
-func (f *nATGatewayInformer) Lister() internalversion.NATGatewayLister {
- return internalversion.NewNATGatewayLister(f.Informer().GetIndexer())
-}
diff --git a/generated/informers/internalversion/networking/internalversion/natgatewayrouting.go b/generated/informers/internalversion/networking/internalversion/natgatewayrouting.go
deleted file mode 100644
index 40ec437ea..000000000
--- a/generated/informers/internalversion/networking/internalversion/natgatewayrouting.go
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- time "time"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- clientsetinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- internalversion "github.com/onmetal/onmetal-api/generated/listers/networking/internalversion"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- watch "k8s.io/apimachinery/pkg/watch"
- cache "k8s.io/client-go/tools/cache"
-)
-
-// NATGatewayRoutingInformer provides access to a shared informer and lister for
-// NATGatewayRoutings.
-type NATGatewayRoutingInformer interface {
- Informer() cache.SharedIndexInformer
- Lister() internalversion.NATGatewayRoutingLister
-}
-
-type nATGatewayRoutingInformer struct {
- factory internalinterfaces.SharedInformerFactory
- tweakListOptions internalinterfaces.TweakListOptionsFunc
- namespace string
-}
-
-// NewNATGatewayRoutingInformer constructs a new informer for NATGatewayRouting type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewNATGatewayRoutingInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
- return NewFilteredNATGatewayRoutingInformer(client, namespace, resyncPeriod, indexers, nil)
-}
-
-// NewFilteredNATGatewayRoutingInformer constructs a new informer for NATGatewayRouting type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredNATGatewayRoutingInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
- return cache.NewSharedIndexInformer(
- &cache.ListWatch{
- ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Networking().NATGatewayRoutings(namespace).List(context.TODO(), options)
- },
- WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Networking().NATGatewayRoutings(namespace).Watch(context.TODO(), options)
- },
- },
- &networking.NATGatewayRouting{},
- resyncPeriod,
- indexers,
- )
-}
-
-func (f *nATGatewayRoutingInformer) defaultInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
- return NewFilteredNATGatewayRoutingInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
-}
-
-func (f *nATGatewayRoutingInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&networking.NATGatewayRouting{}, f.defaultInformer)
-}
-
-func (f *nATGatewayRoutingInformer) Lister() internalversion.NATGatewayRoutingLister {
- return internalversion.NewNATGatewayRoutingLister(f.Informer().GetIndexer())
-}
diff --git a/generated/informers/internalversion/networking/internalversion/network.go b/generated/informers/internalversion/networking/internalversion/network.go
deleted file mode 100644
index 6a7f3c121..000000000
--- a/generated/informers/internalversion/networking/internalversion/network.go
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- time "time"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- clientsetinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- internalversion "github.com/onmetal/onmetal-api/generated/listers/networking/internalversion"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- watch "k8s.io/apimachinery/pkg/watch"
- cache "k8s.io/client-go/tools/cache"
-)
-
-// NetworkInformer provides access to a shared informer and lister for
-// Networks.
-type NetworkInformer interface {
- Informer() cache.SharedIndexInformer
- Lister() internalversion.NetworkLister
-}
-
-type networkInformer struct {
- factory internalinterfaces.SharedInformerFactory
- tweakListOptions internalinterfaces.TweakListOptionsFunc
- namespace string
-}
-
-// NewNetworkInformer constructs a new informer for Network type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewNetworkInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
- return NewFilteredNetworkInformer(client, namespace, resyncPeriod, indexers, nil)
-}
-
-// NewFilteredNetworkInformer constructs a new informer for Network type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredNetworkInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
- return cache.NewSharedIndexInformer(
- &cache.ListWatch{
- ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Networking().Networks(namespace).List(context.TODO(), options)
- },
- WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Networking().Networks(namespace).Watch(context.TODO(), options)
- },
- },
- &networking.Network{},
- resyncPeriod,
- indexers,
- )
-}
-
-func (f *networkInformer) defaultInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
- return NewFilteredNetworkInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
-}
-
-func (f *networkInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&networking.Network{}, f.defaultInformer)
-}
-
-func (f *networkInformer) Lister() internalversion.NetworkLister {
- return internalversion.NewNetworkLister(f.Informer().GetIndexer())
-}
diff --git a/generated/informers/internalversion/networking/internalversion/networkinterface.go b/generated/informers/internalversion/networking/internalversion/networkinterface.go
deleted file mode 100644
index 4fd3d816c..000000000
--- a/generated/informers/internalversion/networking/internalversion/networkinterface.go
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- time "time"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- clientsetinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- internalversion "github.com/onmetal/onmetal-api/generated/listers/networking/internalversion"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- watch "k8s.io/apimachinery/pkg/watch"
- cache "k8s.io/client-go/tools/cache"
-)
-
-// NetworkInterfaceInformer provides access to a shared informer and lister for
-// NetworkInterfaces.
-type NetworkInterfaceInformer interface {
- Informer() cache.SharedIndexInformer
- Lister() internalversion.NetworkInterfaceLister
-}
-
-type networkInterfaceInformer struct {
- factory internalinterfaces.SharedInformerFactory
- tweakListOptions internalinterfaces.TweakListOptionsFunc
- namespace string
-}
-
-// NewNetworkInterfaceInformer constructs a new informer for NetworkInterface type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewNetworkInterfaceInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
- return NewFilteredNetworkInterfaceInformer(client, namespace, resyncPeriod, indexers, nil)
-}
-
-// NewFilteredNetworkInterfaceInformer constructs a new informer for NetworkInterface type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredNetworkInterfaceInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
- return cache.NewSharedIndexInformer(
- &cache.ListWatch{
- ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Networking().NetworkInterfaces(namespace).List(context.TODO(), options)
- },
- WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Networking().NetworkInterfaces(namespace).Watch(context.TODO(), options)
- },
- },
- &networking.NetworkInterface{},
- resyncPeriod,
- indexers,
- )
-}
-
-func (f *networkInterfaceInformer) defaultInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
- return NewFilteredNetworkInterfaceInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
-}
-
-func (f *networkInterfaceInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&networking.NetworkInterface{}, f.defaultInformer)
-}
-
-func (f *networkInterfaceInformer) Lister() internalversion.NetworkInterfaceLister {
- return internalversion.NewNetworkInterfaceLister(f.Informer().GetIndexer())
-}
diff --git a/generated/informers/internalversion/networking/internalversion/virtualip.go b/generated/informers/internalversion/networking/internalversion/virtualip.go
deleted file mode 100644
index 4968c716f..000000000
--- a/generated/informers/internalversion/networking/internalversion/virtualip.go
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- time "time"
-
- networking "github.com/onmetal/onmetal-api/apis/networking"
- clientsetinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- internalversion "github.com/onmetal/onmetal-api/generated/listers/networking/internalversion"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- watch "k8s.io/apimachinery/pkg/watch"
- cache "k8s.io/client-go/tools/cache"
-)
-
-// VirtualIPInformer provides access to a shared informer and lister for
-// VirtualIPs.
-type VirtualIPInformer interface {
- Informer() cache.SharedIndexInformer
- Lister() internalversion.VirtualIPLister
-}
-
-type virtualIPInformer struct {
- factory internalinterfaces.SharedInformerFactory
- tweakListOptions internalinterfaces.TweakListOptionsFunc
- namespace string
-}
-
-// NewVirtualIPInformer constructs a new informer for VirtualIP type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewVirtualIPInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
- return NewFilteredVirtualIPInformer(client, namespace, resyncPeriod, indexers, nil)
-}
-
-// NewFilteredVirtualIPInformer constructs a new informer for VirtualIP type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredVirtualIPInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
- return cache.NewSharedIndexInformer(
- &cache.ListWatch{
- ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Networking().VirtualIPs(namespace).List(context.TODO(), options)
- },
- WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Networking().VirtualIPs(namespace).Watch(context.TODO(), options)
- },
- },
- &networking.VirtualIP{},
- resyncPeriod,
- indexers,
- )
-}
-
-func (f *virtualIPInformer) defaultInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
- return NewFilteredVirtualIPInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
-}
-
-func (f *virtualIPInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&networking.VirtualIP{}, f.defaultInformer)
-}
-
-func (f *virtualIPInformer) Lister() internalversion.VirtualIPLister {
- return internalversion.NewVirtualIPLister(f.Informer().GetIndexer())
-}
diff --git a/generated/informers/internalversion/storage/interface.go b/generated/informers/internalversion/storage/interface.go
deleted file mode 100644
index ed4bd4668..000000000
--- a/generated/informers/internalversion/storage/interface.go
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package storage
-
-import (
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- internalversion "github.com/onmetal/onmetal-api/generated/informers/internalversion/storage/internalversion"
-)
-
-// Interface provides access to each of this group's versions.
-type Interface interface {
- // InternalVersion provides access to shared informers for resources in InternalVersion.
- InternalVersion() internalversion.Interface
-}
-
-type group struct {
- factory internalinterfaces.SharedInformerFactory
- namespace string
- tweakListOptions internalinterfaces.TweakListOptionsFunc
-}
-
-// New returns a new Interface.
-func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
- return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
-}
-
-// InternalVersion returns a new internalversion.Interface.
-func (g *group) InternalVersion() internalversion.Interface {
- return internalversion.New(g.factory, g.namespace, g.tweakListOptions)
-}
diff --git a/generated/informers/internalversion/storage/internalversion/interface.go b/generated/informers/internalversion/storage/internalversion/interface.go
deleted file mode 100644
index 9a4b0c5cb..000000000
--- a/generated/informers/internalversion/storage/internalversion/interface.go
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
-)
-
-// Interface provides access to all the informers in this group version.
-type Interface interface {
- // Volumes returns a VolumeInformer.
- Volumes() VolumeInformer
- // VolumeClasses returns a VolumeClassInformer.
- VolumeClasses() VolumeClassInformer
- // VolumePools returns a VolumePoolInformer.
- VolumePools() VolumePoolInformer
-}
-
-type version struct {
- factory internalinterfaces.SharedInformerFactory
- namespace string
- tweakListOptions internalinterfaces.TweakListOptionsFunc
-}
-
-// New returns a new Interface.
-func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
- return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
-}
-
-// Volumes returns a VolumeInformer.
-func (v *version) Volumes() VolumeInformer {
- return &volumeInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
-}
-
-// VolumeClasses returns a VolumeClassInformer.
-func (v *version) VolumeClasses() VolumeClassInformer {
- return &volumeClassInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
-}
-
-// VolumePools returns a VolumePoolInformer.
-func (v *version) VolumePools() VolumePoolInformer {
- return &volumePoolInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
-}
diff --git a/generated/informers/internalversion/storage/internalversion/volume.go b/generated/informers/internalversion/storage/internalversion/volume.go
deleted file mode 100644
index c1fcd7a07..000000000
--- a/generated/informers/internalversion/storage/internalversion/volume.go
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- time "time"
-
- storage "github.com/onmetal/onmetal-api/apis/storage"
- clientsetinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- internalversion "github.com/onmetal/onmetal-api/generated/listers/storage/internalversion"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- watch "k8s.io/apimachinery/pkg/watch"
- cache "k8s.io/client-go/tools/cache"
-)
-
-// VolumeInformer provides access to a shared informer and lister for
-// Volumes.
-type VolumeInformer interface {
- Informer() cache.SharedIndexInformer
- Lister() internalversion.VolumeLister
-}
-
-type volumeInformer struct {
- factory internalinterfaces.SharedInformerFactory
- tweakListOptions internalinterfaces.TweakListOptionsFunc
- namespace string
-}
-
-// NewVolumeInformer constructs a new informer for Volume type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewVolumeInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
- return NewFilteredVolumeInformer(client, namespace, resyncPeriod, indexers, nil)
-}
-
-// NewFilteredVolumeInformer constructs a new informer for Volume type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredVolumeInformer(client clientsetinternalversion.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
- return cache.NewSharedIndexInformer(
- &cache.ListWatch{
- ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Storage().Volumes(namespace).List(context.TODO(), options)
- },
- WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Storage().Volumes(namespace).Watch(context.TODO(), options)
- },
- },
- &storage.Volume{},
- resyncPeriod,
- indexers,
- )
-}
-
-func (f *volumeInformer) defaultInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
- return NewFilteredVolumeInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
-}
-
-func (f *volumeInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&storage.Volume{}, f.defaultInformer)
-}
-
-func (f *volumeInformer) Lister() internalversion.VolumeLister {
- return internalversion.NewVolumeLister(f.Informer().GetIndexer())
-}
diff --git a/generated/informers/internalversion/storage/internalversion/volumeclass.go b/generated/informers/internalversion/storage/internalversion/volumeclass.go
deleted file mode 100644
index da335c6a2..000000000
--- a/generated/informers/internalversion/storage/internalversion/volumeclass.go
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- time "time"
-
- storage "github.com/onmetal/onmetal-api/apis/storage"
- clientsetinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- internalversion "github.com/onmetal/onmetal-api/generated/listers/storage/internalversion"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- watch "k8s.io/apimachinery/pkg/watch"
- cache "k8s.io/client-go/tools/cache"
-)
-
-// VolumeClassInformer provides access to a shared informer and lister for
-// VolumeClasses.
-type VolumeClassInformer interface {
- Informer() cache.SharedIndexInformer
- Lister() internalversion.VolumeClassLister
-}
-
-type volumeClassInformer struct {
- factory internalinterfaces.SharedInformerFactory
- tweakListOptions internalinterfaces.TweakListOptionsFunc
-}
-
-// NewVolumeClassInformer constructs a new informer for VolumeClass type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewVolumeClassInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
- return NewFilteredVolumeClassInformer(client, resyncPeriod, indexers, nil)
-}
-
-// NewFilteredVolumeClassInformer constructs a new informer for VolumeClass type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredVolumeClassInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
- return cache.NewSharedIndexInformer(
- &cache.ListWatch{
- ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Storage().VolumeClasses().List(context.TODO(), options)
- },
- WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Storage().VolumeClasses().Watch(context.TODO(), options)
- },
- },
- &storage.VolumeClass{},
- resyncPeriod,
- indexers,
- )
-}
-
-func (f *volumeClassInformer) defaultInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
- return NewFilteredVolumeClassInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
-}
-
-func (f *volumeClassInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&storage.VolumeClass{}, f.defaultInformer)
-}
-
-func (f *volumeClassInformer) Lister() internalversion.VolumeClassLister {
- return internalversion.NewVolumeClassLister(f.Informer().GetIndexer())
-}
diff --git a/generated/informers/internalversion/storage/internalversion/volumepool.go b/generated/informers/internalversion/storage/internalversion/volumepool.go
deleted file mode 100644
index ce5dd15e8..000000000
--- a/generated/informers/internalversion/storage/internalversion/volumepool.go
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by informer-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- "context"
- time "time"
-
- storage "github.com/onmetal/onmetal-api/apis/storage"
- clientsetinternalversion "github.com/onmetal/onmetal-api/generated/clientset/internalversion"
- internalinterfaces "github.com/onmetal/onmetal-api/generated/informers/internalversion/internalinterfaces"
- internalversion "github.com/onmetal/onmetal-api/generated/listers/storage/internalversion"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- watch "k8s.io/apimachinery/pkg/watch"
- cache "k8s.io/client-go/tools/cache"
-)
-
-// VolumePoolInformer provides access to a shared informer and lister for
-// VolumePools.
-type VolumePoolInformer interface {
- Informer() cache.SharedIndexInformer
- Lister() internalversion.VolumePoolLister
-}
-
-type volumePoolInformer struct {
- factory internalinterfaces.SharedInformerFactory
- tweakListOptions internalinterfaces.TweakListOptionsFunc
-}
-
-// NewVolumePoolInformer constructs a new informer for VolumePool type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewVolumePoolInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
- return NewFilteredVolumePoolInformer(client, resyncPeriod, indexers, nil)
-}
-
-// NewFilteredVolumePoolInformer constructs a new informer for VolumePool type.
-// Always prefer using an informer factory to get a shared informer instead of getting an independent
-// one. This reduces memory footprint and number of connections to the server.
-func NewFilteredVolumePoolInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
- return cache.NewSharedIndexInformer(
- &cache.ListWatch{
- ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Storage().VolumePools().List(context.TODO(), options)
- },
- WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
- if tweakListOptions != nil {
- tweakListOptions(&options)
- }
- return client.Storage().VolumePools().Watch(context.TODO(), options)
- },
- },
- &storage.VolumePool{},
- resyncPeriod,
- indexers,
- )
-}
-
-func (f *volumePoolInformer) defaultInformer(client clientsetinternalversion.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
- return NewFilteredVolumePoolInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
-}
-
-func (f *volumePoolInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&storage.VolumePool{}, f.defaultInformer)
-}
-
-func (f *volumePoolInformer) Lister() internalversion.VolumePoolLister {
- return internalversion.NewVolumePoolLister(f.Informer().GetIndexer())
-}
diff --git a/generated/listers/compute/internalversion/expansion_generated.go b/generated/listers/compute/internalversion/expansion_generated.go
deleted file mode 100644
index fe6b89e7e..000000000
--- a/generated/listers/compute/internalversion/expansion_generated.go
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-// MachineListerExpansion allows custom methods to be added to
-// MachineLister.
-type MachineListerExpansion interface{}
-
-// MachineNamespaceListerExpansion allows custom methods to be added to
-// MachineNamespaceLister.
-type MachineNamespaceListerExpansion interface{}
-
-// MachineClassListerExpansion allows custom methods to be added to
-// MachineClassLister.
-type MachineClassListerExpansion interface{}
-
-// MachineClassNamespaceListerExpansion allows custom methods to be added to
-// MachineClassNamespaceLister.
-type MachineClassNamespaceListerExpansion interface{}
-
-// MachinePoolListerExpansion allows custom methods to be added to
-// MachinePoolLister.
-type MachinePoolListerExpansion interface{}
diff --git a/generated/listers/compute/internalversion/machine.go b/generated/listers/compute/internalversion/machine.go
deleted file mode 100644
index 51e89b71b..000000000
--- a/generated/listers/compute/internalversion/machine.go
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- compute "github.com/onmetal/onmetal-api/apis/compute"
- "k8s.io/apimachinery/pkg/api/errors"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/tools/cache"
-)
-
-// MachineLister helps list Machines.
-// All objects returned here must be treated as read-only.
-type MachineLister interface {
- // List lists all Machines in the indexer.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*compute.Machine, err error)
- // Machines returns an object that can list and get Machines.
- Machines(namespace string) MachineNamespaceLister
- MachineListerExpansion
-}
-
-// machineLister implements the MachineLister interface.
-type machineLister struct {
- indexer cache.Indexer
-}
-
-// NewMachineLister returns a new MachineLister.
-func NewMachineLister(indexer cache.Indexer) MachineLister {
- return &machineLister{indexer: indexer}
-}
-
-// List lists all Machines in the indexer.
-func (s *machineLister) List(selector labels.Selector) (ret []*compute.Machine, err error) {
- err = cache.ListAll(s.indexer, selector, func(m interface{}) {
- ret = append(ret, m.(*compute.Machine))
- })
- return ret, err
-}
-
-// Machines returns an object that can list and get Machines.
-func (s *machineLister) Machines(namespace string) MachineNamespaceLister {
- return machineNamespaceLister{indexer: s.indexer, namespace: namespace}
-}
-
-// MachineNamespaceLister helps list and get Machines.
-// All objects returned here must be treated as read-only.
-type MachineNamespaceLister interface {
- // List lists all Machines in the indexer for a given namespace.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*compute.Machine, err error)
- // Get retrieves the Machine from the indexer for a given namespace and name.
- // Objects returned here must be treated as read-only.
- Get(name string) (*compute.Machine, error)
- MachineNamespaceListerExpansion
-}
-
-// machineNamespaceLister implements the MachineNamespaceLister
-// interface.
-type machineNamespaceLister struct {
- indexer cache.Indexer
- namespace string
-}
-
-// List lists all Machines in the indexer for a given namespace.
-func (s machineNamespaceLister) List(selector labels.Selector) (ret []*compute.Machine, err error) {
- err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
- ret = append(ret, m.(*compute.Machine))
- })
- return ret, err
-}
-
-// Get retrieves the Machine from the indexer for a given namespace and name.
-func (s machineNamespaceLister) Get(name string) (*compute.Machine, error) {
- obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
- if err != nil {
- return nil, err
- }
- if !exists {
- return nil, errors.NewNotFound(compute.Resource("machine"), name)
- }
- return obj.(*compute.Machine), nil
-}
diff --git a/generated/listers/compute/internalversion/machineclass.go b/generated/listers/compute/internalversion/machineclass.go
deleted file mode 100644
index 3667ab17b..000000000
--- a/generated/listers/compute/internalversion/machineclass.go
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- compute "github.com/onmetal/onmetal-api/apis/compute"
- "k8s.io/apimachinery/pkg/api/errors"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/tools/cache"
-)
-
-// MachineClassLister helps list MachineClasses.
-// All objects returned here must be treated as read-only.
-type MachineClassLister interface {
- // List lists all MachineClasses in the indexer.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*compute.MachineClass, err error)
- // MachineClasses returns an object that can list and get MachineClasses.
- MachineClasses(namespace string) MachineClassNamespaceLister
- MachineClassListerExpansion
-}
-
-// machineClassLister implements the MachineClassLister interface.
-type machineClassLister struct {
- indexer cache.Indexer
-}
-
-// NewMachineClassLister returns a new MachineClassLister.
-func NewMachineClassLister(indexer cache.Indexer) MachineClassLister {
- return &machineClassLister{indexer: indexer}
-}
-
-// List lists all MachineClasses in the indexer.
-func (s *machineClassLister) List(selector labels.Selector) (ret []*compute.MachineClass, err error) {
- err = cache.ListAll(s.indexer, selector, func(m interface{}) {
- ret = append(ret, m.(*compute.MachineClass))
- })
- return ret, err
-}
-
-// MachineClasses returns an object that can list and get MachineClasses.
-func (s *machineClassLister) MachineClasses(namespace string) MachineClassNamespaceLister {
- return machineClassNamespaceLister{indexer: s.indexer, namespace: namespace}
-}
-
-// MachineClassNamespaceLister helps list and get MachineClasses.
-// All objects returned here must be treated as read-only.
-type MachineClassNamespaceLister interface {
- // List lists all MachineClasses in the indexer for a given namespace.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*compute.MachineClass, err error)
- // Get retrieves the MachineClass from the indexer for a given namespace and name.
- // Objects returned here must be treated as read-only.
- Get(name string) (*compute.MachineClass, error)
- MachineClassNamespaceListerExpansion
-}
-
-// machineClassNamespaceLister implements the MachineClassNamespaceLister
-// interface.
-type machineClassNamespaceLister struct {
- indexer cache.Indexer
- namespace string
-}
-
-// List lists all MachineClasses in the indexer for a given namespace.
-func (s machineClassNamespaceLister) List(selector labels.Selector) (ret []*compute.MachineClass, err error) {
- err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
- ret = append(ret, m.(*compute.MachineClass))
- })
- return ret, err
-}
-
-// Get retrieves the MachineClass from the indexer for a given namespace and name.
-func (s machineClassNamespaceLister) Get(name string) (*compute.MachineClass, error) {
- obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
- if err != nil {
- return nil, err
- }
- if !exists {
- return nil, errors.NewNotFound(compute.Resource("machineclass"), name)
- }
- return obj.(*compute.MachineClass), nil
-}
diff --git a/generated/listers/compute/internalversion/machinepool.go b/generated/listers/compute/internalversion/machinepool.go
deleted file mode 100644
index becad6e2a..000000000
--- a/generated/listers/compute/internalversion/machinepool.go
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- compute "github.com/onmetal/onmetal-api/apis/compute"
- "k8s.io/apimachinery/pkg/api/errors"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/tools/cache"
-)
-
-// MachinePoolLister helps list MachinePools.
-// All objects returned here must be treated as read-only.
-type MachinePoolLister interface {
- // List lists all MachinePools in the indexer.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*compute.MachinePool, err error)
- // Get retrieves the MachinePool from the index for a given name.
- // Objects returned here must be treated as read-only.
- Get(name string) (*compute.MachinePool, error)
- MachinePoolListerExpansion
-}
-
-// machinePoolLister implements the MachinePoolLister interface.
-type machinePoolLister struct {
- indexer cache.Indexer
-}
-
-// NewMachinePoolLister returns a new MachinePoolLister.
-func NewMachinePoolLister(indexer cache.Indexer) MachinePoolLister {
- return &machinePoolLister{indexer: indexer}
-}
-
-// List lists all MachinePools in the indexer.
-func (s *machinePoolLister) List(selector labels.Selector) (ret []*compute.MachinePool, err error) {
- err = cache.ListAll(s.indexer, selector, func(m interface{}) {
- ret = append(ret, m.(*compute.MachinePool))
- })
- return ret, err
-}
-
-// Get retrieves the MachinePool from the index for a given name.
-func (s *machinePoolLister) Get(name string) (*compute.MachinePool, error) {
- obj, exists, err := s.indexer.GetByKey(name)
- if err != nil {
- return nil, err
- }
- if !exists {
- return nil, errors.NewNotFound(compute.Resource("machinepool"), name)
- }
- return obj.(*compute.MachinePool), nil
-}
diff --git a/generated/listers/ipam/internalversion/expansion_generated.go b/generated/listers/ipam/internalversion/expansion_generated.go
deleted file mode 100644
index 40178c9f8..000000000
--- a/generated/listers/ipam/internalversion/expansion_generated.go
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-// PrefixListerExpansion allows custom methods to be added to
-// PrefixLister.
-type PrefixListerExpansion interface{}
-
-// PrefixNamespaceListerExpansion allows custom methods to be added to
-// PrefixNamespaceLister.
-type PrefixNamespaceListerExpansion interface{}
-
-// PrefixAllocationListerExpansion allows custom methods to be added to
-// PrefixAllocationLister.
-type PrefixAllocationListerExpansion interface{}
-
-// PrefixAllocationNamespaceListerExpansion allows custom methods to be added to
-// PrefixAllocationNamespaceLister.
-type PrefixAllocationNamespaceListerExpansion interface{}
diff --git a/generated/listers/ipam/internalversion/prefix.go b/generated/listers/ipam/internalversion/prefix.go
deleted file mode 100644
index 3241f0a42..000000000
--- a/generated/listers/ipam/internalversion/prefix.go
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- ipam "github.com/onmetal/onmetal-api/apis/ipam"
- "k8s.io/apimachinery/pkg/api/errors"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/tools/cache"
-)
-
-// PrefixLister helps list Prefixes.
-// All objects returned here must be treated as read-only.
-type PrefixLister interface {
- // List lists all Prefixes in the indexer.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*ipam.Prefix, err error)
- // Prefixes returns an object that can list and get Prefixes.
- Prefixes(namespace string) PrefixNamespaceLister
- PrefixListerExpansion
-}
-
-// prefixLister implements the PrefixLister interface.
-type prefixLister struct {
- indexer cache.Indexer
-}
-
-// NewPrefixLister returns a new PrefixLister.
-func NewPrefixLister(indexer cache.Indexer) PrefixLister {
- return &prefixLister{indexer: indexer}
-}
-
-// List lists all Prefixes in the indexer.
-func (s *prefixLister) List(selector labels.Selector) (ret []*ipam.Prefix, err error) {
- err = cache.ListAll(s.indexer, selector, func(m interface{}) {
- ret = append(ret, m.(*ipam.Prefix))
- })
- return ret, err
-}
-
-// Prefixes returns an object that can list and get Prefixes.
-func (s *prefixLister) Prefixes(namespace string) PrefixNamespaceLister {
- return prefixNamespaceLister{indexer: s.indexer, namespace: namespace}
-}
-
-// PrefixNamespaceLister helps list and get Prefixes.
-// All objects returned here must be treated as read-only.
-type PrefixNamespaceLister interface {
- // List lists all Prefixes in the indexer for a given namespace.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*ipam.Prefix, err error)
- // Get retrieves the Prefix from the indexer for a given namespace and name.
- // Objects returned here must be treated as read-only.
- Get(name string) (*ipam.Prefix, error)
- PrefixNamespaceListerExpansion
-}
-
-// prefixNamespaceLister implements the PrefixNamespaceLister
-// interface.
-type prefixNamespaceLister struct {
- indexer cache.Indexer
- namespace string
-}
-
-// List lists all Prefixes in the indexer for a given namespace.
-func (s prefixNamespaceLister) List(selector labels.Selector) (ret []*ipam.Prefix, err error) {
- err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
- ret = append(ret, m.(*ipam.Prefix))
- })
- return ret, err
-}
-
-// Get retrieves the Prefix from the indexer for a given namespace and name.
-func (s prefixNamespaceLister) Get(name string) (*ipam.Prefix, error) {
- obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
- if err != nil {
- return nil, err
- }
- if !exists {
- return nil, errors.NewNotFound(ipam.Resource("prefix"), name)
- }
- return obj.(*ipam.Prefix), nil
-}
diff --git a/generated/listers/ipam/internalversion/prefixallocation.go b/generated/listers/ipam/internalversion/prefixallocation.go
deleted file mode 100644
index 85c4fd9bd..000000000
--- a/generated/listers/ipam/internalversion/prefixallocation.go
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- ipam "github.com/onmetal/onmetal-api/apis/ipam"
- "k8s.io/apimachinery/pkg/api/errors"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/tools/cache"
-)
-
-// PrefixAllocationLister helps list PrefixAllocations.
-// All objects returned here must be treated as read-only.
-type PrefixAllocationLister interface {
- // List lists all PrefixAllocations in the indexer.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*ipam.PrefixAllocation, err error)
- // PrefixAllocations returns an object that can list and get PrefixAllocations.
- PrefixAllocations(namespace string) PrefixAllocationNamespaceLister
- PrefixAllocationListerExpansion
-}
-
-// prefixAllocationLister implements the PrefixAllocationLister interface.
-type prefixAllocationLister struct {
- indexer cache.Indexer
-}
-
-// NewPrefixAllocationLister returns a new PrefixAllocationLister.
-func NewPrefixAllocationLister(indexer cache.Indexer) PrefixAllocationLister {
- return &prefixAllocationLister{indexer: indexer}
-}
-
-// List lists all PrefixAllocations in the indexer.
-func (s *prefixAllocationLister) List(selector labels.Selector) (ret []*ipam.PrefixAllocation, err error) {
- err = cache.ListAll(s.indexer, selector, func(m interface{}) {
- ret = append(ret, m.(*ipam.PrefixAllocation))
- })
- return ret, err
-}
-
-// PrefixAllocations returns an object that can list and get PrefixAllocations.
-func (s *prefixAllocationLister) PrefixAllocations(namespace string) PrefixAllocationNamespaceLister {
- return prefixAllocationNamespaceLister{indexer: s.indexer, namespace: namespace}
-}
-
-// PrefixAllocationNamespaceLister helps list and get PrefixAllocations.
-// All objects returned here must be treated as read-only.
-type PrefixAllocationNamespaceLister interface {
- // List lists all PrefixAllocations in the indexer for a given namespace.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*ipam.PrefixAllocation, err error)
- // Get retrieves the PrefixAllocation from the indexer for a given namespace and name.
- // Objects returned here must be treated as read-only.
- Get(name string) (*ipam.PrefixAllocation, error)
- PrefixAllocationNamespaceListerExpansion
-}
-
-// prefixAllocationNamespaceLister implements the PrefixAllocationNamespaceLister
-// interface.
-type prefixAllocationNamespaceLister struct {
- indexer cache.Indexer
- namespace string
-}
-
-// List lists all PrefixAllocations in the indexer for a given namespace.
-func (s prefixAllocationNamespaceLister) List(selector labels.Selector) (ret []*ipam.PrefixAllocation, err error) {
- err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
- ret = append(ret, m.(*ipam.PrefixAllocation))
- })
- return ret, err
-}
-
-// Get retrieves the PrefixAllocation from the indexer for a given namespace and name.
-func (s prefixAllocationNamespaceLister) Get(name string) (*ipam.PrefixAllocation, error) {
- obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
- if err != nil {
- return nil, err
- }
- if !exists {
- return nil, errors.NewNotFound(ipam.Resource("prefixallocation"), name)
- }
- return obj.(*ipam.PrefixAllocation), nil
-}
diff --git a/generated/listers/networking/internalversion/aliasprefix.go b/generated/listers/networking/internalversion/aliasprefix.go
deleted file mode 100644
index 2cc947b82..000000000
--- a/generated/listers/networking/internalversion/aliasprefix.go
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- networking "github.com/onmetal/onmetal-api/apis/networking"
- "k8s.io/apimachinery/pkg/api/errors"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/tools/cache"
-)
-
-// AliasPrefixLister helps list AliasPrefixes.
-// All objects returned here must be treated as read-only.
-type AliasPrefixLister interface {
- // List lists all AliasPrefixes in the indexer.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*networking.AliasPrefix, err error)
- // AliasPrefixes returns an object that can list and get AliasPrefixes.
- AliasPrefixes(namespace string) AliasPrefixNamespaceLister
- AliasPrefixListerExpansion
-}
-
-// aliasPrefixLister implements the AliasPrefixLister interface.
-type aliasPrefixLister struct {
- indexer cache.Indexer
-}
-
-// NewAliasPrefixLister returns a new AliasPrefixLister.
-func NewAliasPrefixLister(indexer cache.Indexer) AliasPrefixLister {
- return &aliasPrefixLister{indexer: indexer}
-}
-
-// List lists all AliasPrefixes in the indexer.
-func (s *aliasPrefixLister) List(selector labels.Selector) (ret []*networking.AliasPrefix, err error) {
- err = cache.ListAll(s.indexer, selector, func(m interface{}) {
- ret = append(ret, m.(*networking.AliasPrefix))
- })
- return ret, err
-}
-
-// AliasPrefixes returns an object that can list and get AliasPrefixes.
-func (s *aliasPrefixLister) AliasPrefixes(namespace string) AliasPrefixNamespaceLister {
- return aliasPrefixNamespaceLister{indexer: s.indexer, namespace: namespace}
-}
-
-// AliasPrefixNamespaceLister helps list and get AliasPrefixes.
-// All objects returned here must be treated as read-only.
-type AliasPrefixNamespaceLister interface {
- // List lists all AliasPrefixes in the indexer for a given namespace.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*networking.AliasPrefix, err error)
- // Get retrieves the AliasPrefix from the indexer for a given namespace and name.
- // Objects returned here must be treated as read-only.
- Get(name string) (*networking.AliasPrefix, error)
- AliasPrefixNamespaceListerExpansion
-}
-
-// aliasPrefixNamespaceLister implements the AliasPrefixNamespaceLister
-// interface.
-type aliasPrefixNamespaceLister struct {
- indexer cache.Indexer
- namespace string
-}
-
-// List lists all AliasPrefixes in the indexer for a given namespace.
-func (s aliasPrefixNamespaceLister) List(selector labels.Selector) (ret []*networking.AliasPrefix, err error) {
- err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
- ret = append(ret, m.(*networking.AliasPrefix))
- })
- return ret, err
-}
-
-// Get retrieves the AliasPrefix from the indexer for a given namespace and name.
-func (s aliasPrefixNamespaceLister) Get(name string) (*networking.AliasPrefix, error) {
- obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
- if err != nil {
- return nil, err
- }
- if !exists {
- return nil, errors.NewNotFound(networking.Resource("aliasprefix"), name)
- }
- return obj.(*networking.AliasPrefix), nil
-}
diff --git a/generated/listers/networking/internalversion/aliasprefixrouting.go b/generated/listers/networking/internalversion/aliasprefixrouting.go
deleted file mode 100644
index 9bbda533c..000000000
--- a/generated/listers/networking/internalversion/aliasprefixrouting.go
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- networking "github.com/onmetal/onmetal-api/apis/networking"
- "k8s.io/apimachinery/pkg/api/errors"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/tools/cache"
-)
-
-// AliasPrefixRoutingLister helps list AliasPrefixRoutings.
-// All objects returned here must be treated as read-only.
-type AliasPrefixRoutingLister interface {
- // List lists all AliasPrefixRoutings in the indexer.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*networking.AliasPrefixRouting, err error)
- // AliasPrefixRoutings returns an object that can list and get AliasPrefixRoutings.
- AliasPrefixRoutings(namespace string) AliasPrefixRoutingNamespaceLister
- AliasPrefixRoutingListerExpansion
-}
-
-// aliasPrefixRoutingLister implements the AliasPrefixRoutingLister interface.
-type aliasPrefixRoutingLister struct {
- indexer cache.Indexer
-}
-
-// NewAliasPrefixRoutingLister returns a new AliasPrefixRoutingLister.
-func NewAliasPrefixRoutingLister(indexer cache.Indexer) AliasPrefixRoutingLister {
- return &aliasPrefixRoutingLister{indexer: indexer}
-}
-
-// List lists all AliasPrefixRoutings in the indexer.
-func (s *aliasPrefixRoutingLister) List(selector labels.Selector) (ret []*networking.AliasPrefixRouting, err error) {
- err = cache.ListAll(s.indexer, selector, func(m interface{}) {
- ret = append(ret, m.(*networking.AliasPrefixRouting))
- })
- return ret, err
-}
-
-// AliasPrefixRoutings returns an object that can list and get AliasPrefixRoutings.
-func (s *aliasPrefixRoutingLister) AliasPrefixRoutings(namespace string) AliasPrefixRoutingNamespaceLister {
- return aliasPrefixRoutingNamespaceLister{indexer: s.indexer, namespace: namespace}
-}
-
-// AliasPrefixRoutingNamespaceLister helps list and get AliasPrefixRoutings.
-// All objects returned here must be treated as read-only.
-type AliasPrefixRoutingNamespaceLister interface {
- // List lists all AliasPrefixRoutings in the indexer for a given namespace.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*networking.AliasPrefixRouting, err error)
- // Get retrieves the AliasPrefixRouting from the indexer for a given namespace and name.
- // Objects returned here must be treated as read-only.
- Get(name string) (*networking.AliasPrefixRouting, error)
- AliasPrefixRoutingNamespaceListerExpansion
-}
-
-// aliasPrefixRoutingNamespaceLister implements the AliasPrefixRoutingNamespaceLister
-// interface.
-type aliasPrefixRoutingNamespaceLister struct {
- indexer cache.Indexer
- namespace string
-}
-
-// List lists all AliasPrefixRoutings in the indexer for a given namespace.
-func (s aliasPrefixRoutingNamespaceLister) List(selector labels.Selector) (ret []*networking.AliasPrefixRouting, err error) {
- err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
- ret = append(ret, m.(*networking.AliasPrefixRouting))
- })
- return ret, err
-}
-
-// Get retrieves the AliasPrefixRouting from the indexer for a given namespace and name.
-func (s aliasPrefixRoutingNamespaceLister) Get(name string) (*networking.AliasPrefixRouting, error) {
- obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
- if err != nil {
- return nil, err
- }
- if !exists {
- return nil, errors.NewNotFound(networking.Resource("aliasprefixrouting"), name)
- }
- return obj.(*networking.AliasPrefixRouting), nil
-}
diff --git a/generated/listers/networking/internalversion/expansion_generated.go b/generated/listers/networking/internalversion/expansion_generated.go
deleted file mode 100644
index bbf860830..000000000
--- a/generated/listers/networking/internalversion/expansion_generated.go
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-// AliasPrefixListerExpansion allows custom methods to be added to
-// AliasPrefixLister.
-type AliasPrefixListerExpansion interface{}
-
-// AliasPrefixNamespaceListerExpansion allows custom methods to be added to
-// AliasPrefixNamespaceLister.
-type AliasPrefixNamespaceListerExpansion interface{}
-
-// AliasPrefixRoutingListerExpansion allows custom methods to be added to
-// AliasPrefixRoutingLister.
-type AliasPrefixRoutingListerExpansion interface{}
-
-// AliasPrefixRoutingNamespaceListerExpansion allows custom methods to be added to
-// AliasPrefixRoutingNamespaceLister.
-type AliasPrefixRoutingNamespaceListerExpansion interface{}
-
-// LoadBalancerListerExpansion allows custom methods to be added to
-// LoadBalancerLister.
-type LoadBalancerListerExpansion interface{}
-
-// LoadBalancerNamespaceListerExpansion allows custom methods to be added to
-// LoadBalancerNamespaceLister.
-type LoadBalancerNamespaceListerExpansion interface{}
-
-// LoadBalancerRoutingListerExpansion allows custom methods to be added to
-// LoadBalancerRoutingLister.
-type LoadBalancerRoutingListerExpansion interface{}
-
-// LoadBalancerRoutingNamespaceListerExpansion allows custom methods to be added to
-// LoadBalancerRoutingNamespaceLister.
-type LoadBalancerRoutingNamespaceListerExpansion interface{}
-
-// NATGatewayListerExpansion allows custom methods to be added to
-// NATGatewayLister.
-type NATGatewayListerExpansion interface{}
-
-// NATGatewayNamespaceListerExpansion allows custom methods to be added to
-// NATGatewayNamespaceLister.
-type NATGatewayNamespaceListerExpansion interface{}
-
-// NATGatewayRoutingListerExpansion allows custom methods to be added to
-// NATGatewayRoutingLister.
-type NATGatewayRoutingListerExpansion interface{}
-
-// NATGatewayRoutingNamespaceListerExpansion allows custom methods to be added to
-// NATGatewayRoutingNamespaceLister.
-type NATGatewayRoutingNamespaceListerExpansion interface{}
-
-// NetworkListerExpansion allows custom methods to be added to
-// NetworkLister.
-type NetworkListerExpansion interface{}
-
-// NetworkNamespaceListerExpansion allows custom methods to be added to
-// NetworkNamespaceLister.
-type NetworkNamespaceListerExpansion interface{}
-
-// NetworkInterfaceListerExpansion allows custom methods to be added to
-// NetworkInterfaceLister.
-type NetworkInterfaceListerExpansion interface{}
-
-// NetworkInterfaceNamespaceListerExpansion allows custom methods to be added to
-// NetworkInterfaceNamespaceLister.
-type NetworkInterfaceNamespaceListerExpansion interface{}
-
-// VirtualIPListerExpansion allows custom methods to be added to
-// VirtualIPLister.
-type VirtualIPListerExpansion interface{}
-
-// VirtualIPNamespaceListerExpansion allows custom methods to be added to
-// VirtualIPNamespaceLister.
-type VirtualIPNamespaceListerExpansion interface{}
diff --git a/generated/listers/networking/internalversion/loadbalancer.go b/generated/listers/networking/internalversion/loadbalancer.go
deleted file mode 100644
index 93deb61dc..000000000
--- a/generated/listers/networking/internalversion/loadbalancer.go
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- networking "github.com/onmetal/onmetal-api/apis/networking"
- "k8s.io/apimachinery/pkg/api/errors"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/tools/cache"
-)
-
-// LoadBalancerLister helps list LoadBalancers.
-// All objects returned here must be treated as read-only.
-type LoadBalancerLister interface {
- // List lists all LoadBalancers in the indexer.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*networking.LoadBalancer, err error)
- // LoadBalancers returns an object that can list and get LoadBalancers.
- LoadBalancers(namespace string) LoadBalancerNamespaceLister
- LoadBalancerListerExpansion
-}
-
-// loadBalancerLister implements the LoadBalancerLister interface.
-type loadBalancerLister struct {
- indexer cache.Indexer
-}
-
-// NewLoadBalancerLister returns a new LoadBalancerLister.
-func NewLoadBalancerLister(indexer cache.Indexer) LoadBalancerLister {
- return &loadBalancerLister{indexer: indexer}
-}
-
-// List lists all LoadBalancers in the indexer.
-func (s *loadBalancerLister) List(selector labels.Selector) (ret []*networking.LoadBalancer, err error) {
- err = cache.ListAll(s.indexer, selector, func(m interface{}) {
- ret = append(ret, m.(*networking.LoadBalancer))
- })
- return ret, err
-}
-
-// LoadBalancers returns an object that can list and get LoadBalancers.
-func (s *loadBalancerLister) LoadBalancers(namespace string) LoadBalancerNamespaceLister {
- return loadBalancerNamespaceLister{indexer: s.indexer, namespace: namespace}
-}
-
-// LoadBalancerNamespaceLister helps list and get LoadBalancers.
-// All objects returned here must be treated as read-only.
-type LoadBalancerNamespaceLister interface {
- // List lists all LoadBalancers in the indexer for a given namespace.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*networking.LoadBalancer, err error)
- // Get retrieves the LoadBalancer from the indexer for a given namespace and name.
- // Objects returned here must be treated as read-only.
- Get(name string) (*networking.LoadBalancer, error)
- LoadBalancerNamespaceListerExpansion
-}
-
-// loadBalancerNamespaceLister implements the LoadBalancerNamespaceLister
-// interface.
-type loadBalancerNamespaceLister struct {
- indexer cache.Indexer
- namespace string
-}
-
-// List lists all LoadBalancers in the indexer for a given namespace.
-func (s loadBalancerNamespaceLister) List(selector labels.Selector) (ret []*networking.LoadBalancer, err error) {
- err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
- ret = append(ret, m.(*networking.LoadBalancer))
- })
- return ret, err
-}
-
-// Get retrieves the LoadBalancer from the indexer for a given namespace and name.
-func (s loadBalancerNamespaceLister) Get(name string) (*networking.LoadBalancer, error) {
- obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
- if err != nil {
- return nil, err
- }
- if !exists {
- return nil, errors.NewNotFound(networking.Resource("loadbalancer"), name)
- }
- return obj.(*networking.LoadBalancer), nil
-}
diff --git a/generated/listers/networking/internalversion/loadbalancerrouting.go b/generated/listers/networking/internalversion/loadbalancerrouting.go
deleted file mode 100644
index 84f11b5c4..000000000
--- a/generated/listers/networking/internalversion/loadbalancerrouting.go
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- networking "github.com/onmetal/onmetal-api/apis/networking"
- "k8s.io/apimachinery/pkg/api/errors"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/tools/cache"
-)
-
-// LoadBalancerRoutingLister helps list LoadBalancerRoutings.
-// All objects returned here must be treated as read-only.
-type LoadBalancerRoutingLister interface {
- // List lists all LoadBalancerRoutings in the indexer.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*networking.LoadBalancerRouting, err error)
- // LoadBalancerRoutings returns an object that can list and get LoadBalancerRoutings.
- LoadBalancerRoutings(namespace string) LoadBalancerRoutingNamespaceLister
- LoadBalancerRoutingListerExpansion
-}
-
-// loadBalancerRoutingLister implements the LoadBalancerRoutingLister interface.
-type loadBalancerRoutingLister struct {
- indexer cache.Indexer
-}
-
-// NewLoadBalancerRoutingLister returns a new LoadBalancerRoutingLister.
-func NewLoadBalancerRoutingLister(indexer cache.Indexer) LoadBalancerRoutingLister {
- return &loadBalancerRoutingLister{indexer: indexer}
-}
-
-// List lists all LoadBalancerRoutings in the indexer.
-func (s *loadBalancerRoutingLister) List(selector labels.Selector) (ret []*networking.LoadBalancerRouting, err error) {
- err = cache.ListAll(s.indexer, selector, func(m interface{}) {
- ret = append(ret, m.(*networking.LoadBalancerRouting))
- })
- return ret, err
-}
-
-// LoadBalancerRoutings returns an object that can list and get LoadBalancerRoutings.
-func (s *loadBalancerRoutingLister) LoadBalancerRoutings(namespace string) LoadBalancerRoutingNamespaceLister {
- return loadBalancerRoutingNamespaceLister{indexer: s.indexer, namespace: namespace}
-}
-
-// LoadBalancerRoutingNamespaceLister helps list and get LoadBalancerRoutings.
-// All objects returned here must be treated as read-only.
-type LoadBalancerRoutingNamespaceLister interface {
- // List lists all LoadBalancerRoutings in the indexer for a given namespace.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*networking.LoadBalancerRouting, err error)
- // Get retrieves the LoadBalancerRouting from the indexer for a given namespace and name.
- // Objects returned here must be treated as read-only.
- Get(name string) (*networking.LoadBalancerRouting, error)
- LoadBalancerRoutingNamespaceListerExpansion
-}
-
-// loadBalancerRoutingNamespaceLister implements the LoadBalancerRoutingNamespaceLister
-// interface.
-type loadBalancerRoutingNamespaceLister struct {
- indexer cache.Indexer
- namespace string
-}
-
-// List lists all LoadBalancerRoutings in the indexer for a given namespace.
-func (s loadBalancerRoutingNamespaceLister) List(selector labels.Selector) (ret []*networking.LoadBalancerRouting, err error) {
- err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
- ret = append(ret, m.(*networking.LoadBalancerRouting))
- })
- return ret, err
-}
-
-// Get retrieves the LoadBalancerRouting from the indexer for a given namespace and name.
-func (s loadBalancerRoutingNamespaceLister) Get(name string) (*networking.LoadBalancerRouting, error) {
- obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
- if err != nil {
- return nil, err
- }
- if !exists {
- return nil, errors.NewNotFound(networking.Resource("loadbalancerrouting"), name)
- }
- return obj.(*networking.LoadBalancerRouting), nil
-}
diff --git a/generated/listers/networking/internalversion/natgateway.go b/generated/listers/networking/internalversion/natgateway.go
deleted file mode 100644
index 9f0265a0a..000000000
--- a/generated/listers/networking/internalversion/natgateway.go
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- networking "github.com/onmetal/onmetal-api/apis/networking"
- "k8s.io/apimachinery/pkg/api/errors"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/tools/cache"
-)
-
-// NATGatewayLister helps list NATGateways.
-// All objects returned here must be treated as read-only.
-type NATGatewayLister interface {
- // List lists all NATGateways in the indexer.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*networking.NATGateway, err error)
- // NATGateways returns an object that can list and get NATGateways.
- NATGateways(namespace string) NATGatewayNamespaceLister
- NATGatewayListerExpansion
-}
-
-// nATGatewayLister implements the NATGatewayLister interface.
-type nATGatewayLister struct {
- indexer cache.Indexer
-}
-
-// NewNATGatewayLister returns a new NATGatewayLister.
-func NewNATGatewayLister(indexer cache.Indexer) NATGatewayLister {
- return &nATGatewayLister{indexer: indexer}
-}
-
-// List lists all NATGateways in the indexer.
-func (s *nATGatewayLister) List(selector labels.Selector) (ret []*networking.NATGateway, err error) {
- err = cache.ListAll(s.indexer, selector, func(m interface{}) {
- ret = append(ret, m.(*networking.NATGateway))
- })
- return ret, err
-}
-
-// NATGateways returns an object that can list and get NATGateways.
-func (s *nATGatewayLister) NATGateways(namespace string) NATGatewayNamespaceLister {
- return nATGatewayNamespaceLister{indexer: s.indexer, namespace: namespace}
-}
-
-// NATGatewayNamespaceLister helps list and get NATGateways.
-// All objects returned here must be treated as read-only.
-type NATGatewayNamespaceLister interface {
- // List lists all NATGateways in the indexer for a given namespace.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*networking.NATGateway, err error)
- // Get retrieves the NATGateway from the indexer for a given namespace and name.
- // Objects returned here must be treated as read-only.
- Get(name string) (*networking.NATGateway, error)
- NATGatewayNamespaceListerExpansion
-}
-
-// nATGatewayNamespaceLister implements the NATGatewayNamespaceLister
-// interface.
-type nATGatewayNamespaceLister struct {
- indexer cache.Indexer
- namespace string
-}
-
-// List lists all NATGateways in the indexer for a given namespace.
-func (s nATGatewayNamespaceLister) List(selector labels.Selector) (ret []*networking.NATGateway, err error) {
- err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
- ret = append(ret, m.(*networking.NATGateway))
- })
- return ret, err
-}
-
-// Get retrieves the NATGateway from the indexer for a given namespace and name.
-func (s nATGatewayNamespaceLister) Get(name string) (*networking.NATGateway, error) {
- obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
- if err != nil {
- return nil, err
- }
- if !exists {
- return nil, errors.NewNotFound(networking.Resource("natgateway"), name)
- }
- return obj.(*networking.NATGateway), nil
-}
diff --git a/generated/listers/networking/internalversion/natgatewayrouting.go b/generated/listers/networking/internalversion/natgatewayrouting.go
deleted file mode 100644
index 18313c44e..000000000
--- a/generated/listers/networking/internalversion/natgatewayrouting.go
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- networking "github.com/onmetal/onmetal-api/apis/networking"
- "k8s.io/apimachinery/pkg/api/errors"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/tools/cache"
-)
-
-// NATGatewayRoutingLister helps list NATGatewayRoutings.
-// All objects returned here must be treated as read-only.
-type NATGatewayRoutingLister interface {
- // List lists all NATGatewayRoutings in the indexer.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*networking.NATGatewayRouting, err error)
- // NATGatewayRoutings returns an object that can list and get NATGatewayRoutings.
- NATGatewayRoutings(namespace string) NATGatewayRoutingNamespaceLister
- NATGatewayRoutingListerExpansion
-}
-
-// nATGatewayRoutingLister implements the NATGatewayRoutingLister interface.
-type nATGatewayRoutingLister struct {
- indexer cache.Indexer
-}
-
-// NewNATGatewayRoutingLister returns a new NATGatewayRoutingLister.
-func NewNATGatewayRoutingLister(indexer cache.Indexer) NATGatewayRoutingLister {
- return &nATGatewayRoutingLister{indexer: indexer}
-}
-
-// List lists all NATGatewayRoutings in the indexer.
-func (s *nATGatewayRoutingLister) List(selector labels.Selector) (ret []*networking.NATGatewayRouting, err error) {
- err = cache.ListAll(s.indexer, selector, func(m interface{}) {
- ret = append(ret, m.(*networking.NATGatewayRouting))
- })
- return ret, err
-}
-
-// NATGatewayRoutings returns an object that can list and get NATGatewayRoutings.
-func (s *nATGatewayRoutingLister) NATGatewayRoutings(namespace string) NATGatewayRoutingNamespaceLister {
- return nATGatewayRoutingNamespaceLister{indexer: s.indexer, namespace: namespace}
-}
-
-// NATGatewayRoutingNamespaceLister helps list and get NATGatewayRoutings.
-// All objects returned here must be treated as read-only.
-type NATGatewayRoutingNamespaceLister interface {
- // List lists all NATGatewayRoutings in the indexer for a given namespace.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*networking.NATGatewayRouting, err error)
- // Get retrieves the NATGatewayRouting from the indexer for a given namespace and name.
- // Objects returned here must be treated as read-only.
- Get(name string) (*networking.NATGatewayRouting, error)
- NATGatewayRoutingNamespaceListerExpansion
-}
-
-// nATGatewayRoutingNamespaceLister implements the NATGatewayRoutingNamespaceLister
-// interface.
-type nATGatewayRoutingNamespaceLister struct {
- indexer cache.Indexer
- namespace string
-}
-
-// List lists all NATGatewayRoutings in the indexer for a given namespace.
-func (s nATGatewayRoutingNamespaceLister) List(selector labels.Selector) (ret []*networking.NATGatewayRouting, err error) {
- err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
- ret = append(ret, m.(*networking.NATGatewayRouting))
- })
- return ret, err
-}
-
-// Get retrieves the NATGatewayRouting from the indexer for a given namespace and name.
-func (s nATGatewayRoutingNamespaceLister) Get(name string) (*networking.NATGatewayRouting, error) {
- obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
- if err != nil {
- return nil, err
- }
- if !exists {
- return nil, errors.NewNotFound(networking.Resource("natgatewayrouting"), name)
- }
- return obj.(*networking.NATGatewayRouting), nil
-}
diff --git a/generated/listers/networking/internalversion/network.go b/generated/listers/networking/internalversion/network.go
deleted file mode 100644
index 862bdb59e..000000000
--- a/generated/listers/networking/internalversion/network.go
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- networking "github.com/onmetal/onmetal-api/apis/networking"
- "k8s.io/apimachinery/pkg/api/errors"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/tools/cache"
-)
-
-// NetworkLister helps list Networks.
-// All objects returned here must be treated as read-only.
-type NetworkLister interface {
- // List lists all Networks in the indexer.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*networking.Network, err error)
- // Networks returns an object that can list and get Networks.
- Networks(namespace string) NetworkNamespaceLister
- NetworkListerExpansion
-}
-
-// networkLister implements the NetworkLister interface.
-type networkLister struct {
- indexer cache.Indexer
-}
-
-// NewNetworkLister returns a new NetworkLister.
-func NewNetworkLister(indexer cache.Indexer) NetworkLister {
- return &networkLister{indexer: indexer}
-}
-
-// List lists all Networks in the indexer.
-func (s *networkLister) List(selector labels.Selector) (ret []*networking.Network, err error) {
- err = cache.ListAll(s.indexer, selector, func(m interface{}) {
- ret = append(ret, m.(*networking.Network))
- })
- return ret, err
-}
-
-// Networks returns an object that can list and get Networks.
-func (s *networkLister) Networks(namespace string) NetworkNamespaceLister {
- return networkNamespaceLister{indexer: s.indexer, namespace: namespace}
-}
-
-// NetworkNamespaceLister helps list and get Networks.
-// All objects returned here must be treated as read-only.
-type NetworkNamespaceLister interface {
- // List lists all Networks in the indexer for a given namespace.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*networking.Network, err error)
- // Get retrieves the Network from the indexer for a given namespace and name.
- // Objects returned here must be treated as read-only.
- Get(name string) (*networking.Network, error)
- NetworkNamespaceListerExpansion
-}
-
-// networkNamespaceLister implements the NetworkNamespaceLister
-// interface.
-type networkNamespaceLister struct {
- indexer cache.Indexer
- namespace string
-}
-
-// List lists all Networks in the indexer for a given namespace.
-func (s networkNamespaceLister) List(selector labels.Selector) (ret []*networking.Network, err error) {
- err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
- ret = append(ret, m.(*networking.Network))
- })
- return ret, err
-}
-
-// Get retrieves the Network from the indexer for a given namespace and name.
-func (s networkNamespaceLister) Get(name string) (*networking.Network, error) {
- obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
- if err != nil {
- return nil, err
- }
- if !exists {
- return nil, errors.NewNotFound(networking.Resource("network"), name)
- }
- return obj.(*networking.Network), nil
-}
diff --git a/generated/listers/networking/internalversion/networkinterface.go b/generated/listers/networking/internalversion/networkinterface.go
deleted file mode 100644
index c3cc0ce4d..000000000
--- a/generated/listers/networking/internalversion/networkinterface.go
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- networking "github.com/onmetal/onmetal-api/apis/networking"
- "k8s.io/apimachinery/pkg/api/errors"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/tools/cache"
-)
-
-// NetworkInterfaceLister helps list NetworkInterfaces.
-// All objects returned here must be treated as read-only.
-type NetworkInterfaceLister interface {
- // List lists all NetworkInterfaces in the indexer.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*networking.NetworkInterface, err error)
- // NetworkInterfaces returns an object that can list and get NetworkInterfaces.
- NetworkInterfaces(namespace string) NetworkInterfaceNamespaceLister
- NetworkInterfaceListerExpansion
-}
-
-// networkInterfaceLister implements the NetworkInterfaceLister interface.
-type networkInterfaceLister struct {
- indexer cache.Indexer
-}
-
-// NewNetworkInterfaceLister returns a new NetworkInterfaceLister.
-func NewNetworkInterfaceLister(indexer cache.Indexer) NetworkInterfaceLister {
- return &networkInterfaceLister{indexer: indexer}
-}
-
-// List lists all NetworkInterfaces in the indexer.
-func (s *networkInterfaceLister) List(selector labels.Selector) (ret []*networking.NetworkInterface, err error) {
- err = cache.ListAll(s.indexer, selector, func(m interface{}) {
- ret = append(ret, m.(*networking.NetworkInterface))
- })
- return ret, err
-}
-
-// NetworkInterfaces returns an object that can list and get NetworkInterfaces.
-func (s *networkInterfaceLister) NetworkInterfaces(namespace string) NetworkInterfaceNamespaceLister {
- return networkInterfaceNamespaceLister{indexer: s.indexer, namespace: namespace}
-}
-
-// NetworkInterfaceNamespaceLister helps list and get NetworkInterfaces.
-// All objects returned here must be treated as read-only.
-type NetworkInterfaceNamespaceLister interface {
- // List lists all NetworkInterfaces in the indexer for a given namespace.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*networking.NetworkInterface, err error)
- // Get retrieves the NetworkInterface from the indexer for a given namespace and name.
- // Objects returned here must be treated as read-only.
- Get(name string) (*networking.NetworkInterface, error)
- NetworkInterfaceNamespaceListerExpansion
-}
-
-// networkInterfaceNamespaceLister implements the NetworkInterfaceNamespaceLister
-// interface.
-type networkInterfaceNamespaceLister struct {
- indexer cache.Indexer
- namespace string
-}
-
-// List lists all NetworkInterfaces in the indexer for a given namespace.
-func (s networkInterfaceNamespaceLister) List(selector labels.Selector) (ret []*networking.NetworkInterface, err error) {
- err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
- ret = append(ret, m.(*networking.NetworkInterface))
- })
- return ret, err
-}
-
-// Get retrieves the NetworkInterface from the indexer for a given namespace and name.
-func (s networkInterfaceNamespaceLister) Get(name string) (*networking.NetworkInterface, error) {
- obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
- if err != nil {
- return nil, err
- }
- if !exists {
- return nil, errors.NewNotFound(networking.Resource("networkinterface"), name)
- }
- return obj.(*networking.NetworkInterface), nil
-}
diff --git a/generated/listers/networking/internalversion/virtualip.go b/generated/listers/networking/internalversion/virtualip.go
deleted file mode 100644
index 070c02499..000000000
--- a/generated/listers/networking/internalversion/virtualip.go
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- networking "github.com/onmetal/onmetal-api/apis/networking"
- "k8s.io/apimachinery/pkg/api/errors"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/tools/cache"
-)
-
-// VirtualIPLister helps list VirtualIPs.
-// All objects returned here must be treated as read-only.
-type VirtualIPLister interface {
- // List lists all VirtualIPs in the indexer.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*networking.VirtualIP, err error)
- // VirtualIPs returns an object that can list and get VirtualIPs.
- VirtualIPs(namespace string) VirtualIPNamespaceLister
- VirtualIPListerExpansion
-}
-
-// virtualIPLister implements the VirtualIPLister interface.
-type virtualIPLister struct {
- indexer cache.Indexer
-}
-
-// NewVirtualIPLister returns a new VirtualIPLister.
-func NewVirtualIPLister(indexer cache.Indexer) VirtualIPLister {
- return &virtualIPLister{indexer: indexer}
-}
-
-// List lists all VirtualIPs in the indexer.
-func (s *virtualIPLister) List(selector labels.Selector) (ret []*networking.VirtualIP, err error) {
- err = cache.ListAll(s.indexer, selector, func(m interface{}) {
- ret = append(ret, m.(*networking.VirtualIP))
- })
- return ret, err
-}
-
-// VirtualIPs returns an object that can list and get VirtualIPs.
-func (s *virtualIPLister) VirtualIPs(namespace string) VirtualIPNamespaceLister {
- return virtualIPNamespaceLister{indexer: s.indexer, namespace: namespace}
-}
-
-// VirtualIPNamespaceLister helps list and get VirtualIPs.
-// All objects returned here must be treated as read-only.
-type VirtualIPNamespaceLister interface {
- // List lists all VirtualIPs in the indexer for a given namespace.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*networking.VirtualIP, err error)
- // Get retrieves the VirtualIP from the indexer for a given namespace and name.
- // Objects returned here must be treated as read-only.
- Get(name string) (*networking.VirtualIP, error)
- VirtualIPNamespaceListerExpansion
-}
-
-// virtualIPNamespaceLister implements the VirtualIPNamespaceLister
-// interface.
-type virtualIPNamespaceLister struct {
- indexer cache.Indexer
- namespace string
-}
-
-// List lists all VirtualIPs in the indexer for a given namespace.
-func (s virtualIPNamespaceLister) List(selector labels.Selector) (ret []*networking.VirtualIP, err error) {
- err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
- ret = append(ret, m.(*networking.VirtualIP))
- })
- return ret, err
-}
-
-// Get retrieves the VirtualIP from the indexer for a given namespace and name.
-func (s virtualIPNamespaceLister) Get(name string) (*networking.VirtualIP, error) {
- obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
- if err != nil {
- return nil, err
- }
- if !exists {
- return nil, errors.NewNotFound(networking.Resource("virtualip"), name)
- }
- return obj.(*networking.VirtualIP), nil
-}
diff --git a/generated/listers/storage/internalversion/expansion_generated.go b/generated/listers/storage/internalversion/expansion_generated.go
deleted file mode 100644
index 934bc32b4..000000000
--- a/generated/listers/storage/internalversion/expansion_generated.go
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-// VolumeListerExpansion allows custom methods to be added to
-// VolumeLister.
-type VolumeListerExpansion interface{}
-
-// VolumeNamespaceListerExpansion allows custom methods to be added to
-// VolumeNamespaceLister.
-type VolumeNamespaceListerExpansion interface{}
-
-// VolumeClassListerExpansion allows custom methods to be added to
-// VolumeClassLister.
-type VolumeClassListerExpansion interface{}
-
-// VolumePoolListerExpansion allows custom methods to be added to
-// VolumePoolLister.
-type VolumePoolListerExpansion interface{}
diff --git a/generated/listers/storage/internalversion/volume.go b/generated/listers/storage/internalversion/volume.go
deleted file mode 100644
index 3f54329bf..000000000
--- a/generated/listers/storage/internalversion/volume.go
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- storage "github.com/onmetal/onmetal-api/apis/storage"
- "k8s.io/apimachinery/pkg/api/errors"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/tools/cache"
-)
-
-// VolumeLister helps list Volumes.
-// All objects returned here must be treated as read-only.
-type VolumeLister interface {
- // List lists all Volumes in the indexer.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*storage.Volume, err error)
- // Volumes returns an object that can list and get Volumes.
- Volumes(namespace string) VolumeNamespaceLister
- VolumeListerExpansion
-}
-
-// volumeLister implements the VolumeLister interface.
-type volumeLister struct {
- indexer cache.Indexer
-}
-
-// NewVolumeLister returns a new VolumeLister.
-func NewVolumeLister(indexer cache.Indexer) VolumeLister {
- return &volumeLister{indexer: indexer}
-}
-
-// List lists all Volumes in the indexer.
-func (s *volumeLister) List(selector labels.Selector) (ret []*storage.Volume, err error) {
- err = cache.ListAll(s.indexer, selector, func(m interface{}) {
- ret = append(ret, m.(*storage.Volume))
- })
- return ret, err
-}
-
-// Volumes returns an object that can list and get Volumes.
-func (s *volumeLister) Volumes(namespace string) VolumeNamespaceLister {
- return volumeNamespaceLister{indexer: s.indexer, namespace: namespace}
-}
-
-// VolumeNamespaceLister helps list and get Volumes.
-// All objects returned here must be treated as read-only.
-type VolumeNamespaceLister interface {
- // List lists all Volumes in the indexer for a given namespace.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*storage.Volume, err error)
- // Get retrieves the Volume from the indexer for a given namespace and name.
- // Objects returned here must be treated as read-only.
- Get(name string) (*storage.Volume, error)
- VolumeNamespaceListerExpansion
-}
-
-// volumeNamespaceLister implements the VolumeNamespaceLister
-// interface.
-type volumeNamespaceLister struct {
- indexer cache.Indexer
- namespace string
-}
-
-// List lists all Volumes in the indexer for a given namespace.
-func (s volumeNamespaceLister) List(selector labels.Selector) (ret []*storage.Volume, err error) {
- err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
- ret = append(ret, m.(*storage.Volume))
- })
- return ret, err
-}
-
-// Get retrieves the Volume from the indexer for a given namespace and name.
-func (s volumeNamespaceLister) Get(name string) (*storage.Volume, error) {
- obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
- if err != nil {
- return nil, err
- }
- if !exists {
- return nil, errors.NewNotFound(storage.Resource("volume"), name)
- }
- return obj.(*storage.Volume), nil
-}
diff --git a/generated/listers/storage/internalversion/volumeclass.go b/generated/listers/storage/internalversion/volumeclass.go
deleted file mode 100644
index 8a043787f..000000000
--- a/generated/listers/storage/internalversion/volumeclass.go
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- storage "github.com/onmetal/onmetal-api/apis/storage"
- "k8s.io/apimachinery/pkg/api/errors"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/tools/cache"
-)
-
-// VolumeClassLister helps list VolumeClasses.
-// All objects returned here must be treated as read-only.
-type VolumeClassLister interface {
- // List lists all VolumeClasses in the indexer.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*storage.VolumeClass, err error)
- // Get retrieves the VolumeClass from the index for a given name.
- // Objects returned here must be treated as read-only.
- Get(name string) (*storage.VolumeClass, error)
- VolumeClassListerExpansion
-}
-
-// volumeClassLister implements the VolumeClassLister interface.
-type volumeClassLister struct {
- indexer cache.Indexer
-}
-
-// NewVolumeClassLister returns a new VolumeClassLister.
-func NewVolumeClassLister(indexer cache.Indexer) VolumeClassLister {
- return &volumeClassLister{indexer: indexer}
-}
-
-// List lists all VolumeClasses in the indexer.
-func (s *volumeClassLister) List(selector labels.Selector) (ret []*storage.VolumeClass, err error) {
- err = cache.ListAll(s.indexer, selector, func(m interface{}) {
- ret = append(ret, m.(*storage.VolumeClass))
- })
- return ret, err
-}
-
-// Get retrieves the VolumeClass from the index for a given name.
-func (s *volumeClassLister) Get(name string) (*storage.VolumeClass, error) {
- obj, exists, err := s.indexer.GetByKey(name)
- if err != nil {
- return nil, err
- }
- if !exists {
- return nil, errors.NewNotFound(storage.Resource("volumeclass"), name)
- }
- return obj.(*storage.VolumeClass), nil
-}
diff --git a/generated/listers/storage/internalversion/volumepool.go b/generated/listers/storage/internalversion/volumepool.go
deleted file mode 100644
index a9de2d910..000000000
--- a/generated/listers/storage/internalversion/volumepool.go
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Copyright (c) 2021 by the OnMetal authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Code generated by lister-gen. DO NOT EDIT.
-
-package internalversion
-
-import (
- storage "github.com/onmetal/onmetal-api/apis/storage"
- "k8s.io/apimachinery/pkg/api/errors"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/tools/cache"
-)
-
-// VolumePoolLister helps list VolumePools.
-// All objects returned here must be treated as read-only.
-type VolumePoolLister interface {
- // List lists all VolumePools in the indexer.
- // Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*storage.VolumePool, err error)
- // Get retrieves the VolumePool from the index for a given name.
- // Objects returned here must be treated as read-only.
- Get(name string) (*storage.VolumePool, error)
- VolumePoolListerExpansion
-}
-
-// volumePoolLister implements the VolumePoolLister interface.
-type volumePoolLister struct {
- indexer cache.Indexer
-}
-
-// NewVolumePoolLister returns a new VolumePoolLister.
-func NewVolumePoolLister(indexer cache.Indexer) VolumePoolLister {
- return &volumePoolLister{indexer: indexer}
-}
-
-// List lists all VolumePools in the indexer.
-func (s *volumePoolLister) List(selector labels.Selector) (ret []*storage.VolumePool, err error) {
- err = cache.ListAll(s.indexer, selector, func(m interface{}) {
- ret = append(ret, m.(*storage.VolumePool))
- })
- return ret, err
-}
-
-// Get retrieves the VolumePool from the index for a given name.
-func (s *volumePoolLister) Get(name string) (*storage.VolumePool, error) {
- obj, exists, err := s.indexer.GetByKey(name)
- if err != nil {
- return nil, err
- }
- if !exists {
- return nil, errors.NewNotFound(storage.Resource("volumepool"), name)
- }
- return obj.(*storage.VolumePool), nil
-}
diff --git a/go.mod b/go.mod
index 9f99f1eea..67f044398 100644
--- a/go.mod
+++ b/go.mod
@@ -3,17 +3,13 @@ module github.com/onmetal/onmetal-api
go 1.19
require (
- github.com/ahmetb/gen-crd-api-reference-docs v0.3.0
github.com/bits-and-blooms/bitset v1.3.3
github.com/go-logr/logr v1.2.3
github.com/gogo/protobuf v1.3.2
- github.com/golang/mock v1.6.0
- github.com/google/addlicense v1.0.0
github.com/google/go-cmp v0.5.9
github.com/gorilla/mux v1.8.0
github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6
github.com/onmetal/controller-utils v0.6.4
- github.com/onmetal/vgopath v0.0.2
github.com/onsi/ginkgo/v2 v2.4.0
github.com/onsi/gomega v1.24.0
github.com/spf13/cobra v1.6.1
@@ -27,7 +23,6 @@ require (
k8s.io/apimachinery v0.24.3
k8s.io/apiserver v0.24.3
k8s.io/client-go v0.24.3
- k8s.io/code-generator v0.24.3
k8s.io/component-base v0.24.3
k8s.io/kube-aggregator v0.24.3
k8s.io/kube-openapi v0.0.0-20220401212409-b28bf2818661
@@ -51,7 +46,6 @@ require (
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
- github.com/bmatcuk/doublestar/v4 v4.0.2 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/coreos/go-semver v0.3.0 // indirect
github.com/coreos/go-systemd/v22 v22.3.2 // indirect
@@ -88,7 +82,6 @@ require (
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.32.1 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
- github.com/russross/blackfriday/v2 v2.1.0 // indirect
go.etcd.io/etcd/api/v3 v3.5.1 // indirect
go.etcd.io/etcd/client/pkg/v3 v3.5.1 // indirect
go.etcd.io/etcd/client/v3 v3.5.1 // indirect
@@ -106,14 +99,12 @@ require (
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.19.1 // indirect
golang.org/x/crypto v0.1.0 // indirect
- golang.org/x/mod v0.6.0 // indirect
golang.org/x/net v0.1.0 // indirect
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 // indirect
golang.org/x/term v0.1.0 // indirect
golang.org/x/text v0.4.0 // indirect
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect
- golang.org/x/tools v0.2.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20220107163113-42d7afdf6368 // indirect
@@ -123,8 +114,6 @@ require (
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/apiextensions-apiserver v0.24.3 // indirect
- k8s.io/gengo v0.0.0-20211129171323-c02415ce4185 // indirect
- k8s.io/klog v0.2.0 // indirect
k8s.io/klog/v2 v2.60.1 // indirect
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.30 // indirect
sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2 // indirect
diff --git a/go.sum b/go.sum
index 2acedcc63..f71cfeeaf 100644
--- a/go.sum
+++ b/go.sum
@@ -65,8 +65,6 @@ github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tN
github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0=
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M=
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE=
-github.com/ahmetb/gen-crd-api-reference-docs v0.3.0 h1:+XfOU14S4bGuwyvCijJwhhBIjYN+YXS18jrCY2EzJaY=
-github.com/ahmetb/gen-crd-api-reference-docs v0.3.0/go.mod h1:TdjdkYhlOifCQWPs1UdTma97kQQMozf5h26hTuG70u8=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
@@ -93,8 +91,6 @@ github.com/bits-and-blooms/bitset v1.3.3/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edY
github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84=
github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM=
github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ=
-github.com/bmatcuk/doublestar/v4 v4.0.2 h1:X0krlUVAVmtr2cRoTqR8aDMrDqnB36ht8wpWTiQ3jsA=
-github.com/bmatcuk/doublestar/v4 v4.0.2/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/certifi/gocertifi v0.0.0-20191021191039-0944d244cd40/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA=
github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA=
@@ -214,7 +210,6 @@ github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt
github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4=
github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8=
github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc=
-github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
@@ -233,8 +228,6 @@ github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaS
github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM=
github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
-github.com/google/addlicense v1.0.0 h1:cqvo5suPWlsk6r6o42Fs2K66xYCl2tnhVPUYoP3EnO4=
-github.com/google/addlicense v1.0.0/go.mod h1:Sm/DHu7Jk+T5miFHHehdIjbi4M5+dJDRS3Cq0rncIxA=
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
github.com/google/btree v1.0.1 h1:gK4Kx5IaGY9CD5sPJ36FHiBJ6ZXl0kilRiiCj+jdYp4=
@@ -397,8 +390,6 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE=
github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
github.com/onmetal/controller-utils v0.6.4 h1:N9eyR5o6eHRk0svdi6T24n9kLgH05xqrmDzrdeQs+Q4=
github.com/onmetal/controller-utils v0.6.4/go.mod h1:DpnCh+NRoACx6swAYDD3qsI3Ui5wvdKPWRWI8rTOh5U=
-github.com/onmetal/vgopath v0.0.2 h1:OOCs939S7qMF+FcT+5u4fImcAwLpErAhOj1W/Yb+NxM=
-github.com/onmetal/vgopath v0.0.2/go.mod h1:YBlloKU+SDCJatvr61Zsg3DyYxlNgTqkkkA7CDmFhr4=
github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
@@ -455,7 +446,6 @@ github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6So
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
-github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
@@ -628,8 +618,6 @@ golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY=
-golang.org/x/mod v0.6.0 h1:b9gGHsz9/HhJ3HF5DHQytPpuwocVTChQJK3AvoLRD5I=
-golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@@ -850,12 +838,9 @@ golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4f
golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
-golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
-golang.org/x/tools v0.2.0 h1:G6AHpWxTMGY1KyEYoAQ5WTtIekUUvDNjan3ugu60JvE=
-golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
@@ -1029,16 +1014,11 @@ k8s.io/apiserver v0.24.3 h1:J8CKjUaZopT0hSgxjzUyp3T1GK78iixxOuFpEC0MI3k=
k8s.io/apiserver v0.24.3/go.mod h1:aXfwtIn4U27B7lYs5f2BKgz6DRbgWy+HJeYReN1jLJ8=
k8s.io/client-go v0.24.3 h1:Nl1840+6p4JqkFWEW2LnMKU667BUxw03REfLAVhuKQY=
k8s.io/client-go v0.24.3/go.mod h1:AAovolf5Z9bY1wIg2FZ8LPQlEdKHjLI7ZD4rw920BJw=
-k8s.io/code-generator v0.24.3 h1:itd1V1ZAYKM+WT+qQDlFKhU1D/Ff5HcEFL/icfClnZA=
k8s.io/code-generator v0.24.3/go.mod h1:dpVhs00hTuTdTY6jvVxvTFCk6gSMrtfRydbhZwHI15w=
k8s.io/component-base v0.24.3 h1:u99WjuHYCRJjS1xeLOx72DdRaghuDnuMgueiGMFy1ec=
k8s.io/component-base v0.24.3/go.mod h1:bqom2IWN9Lj+vwAkPNOv2TflsP1PeVDIwIN0lRthxYY=
-k8s.io/gengo v0.0.0-20201203183100-97869a43a9d9/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E=
k8s.io/gengo v0.0.0-20210813121822-485abfe95c7c/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E=
-k8s.io/gengo v0.0.0-20211129171323-c02415ce4185 h1:TT1WdmqqXareKxZ/oNXEUSwKlLiHzPMyB0t8BaFeBYI=
k8s.io/gengo v0.0.0-20211129171323-c02415ce4185/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E=
-k8s.io/klog v0.2.0 h1:0ElL0OHzF3N+OhoJTL0uca20SxtYt4X4+bzHeqrB83c=
-k8s.io/klog v0.2.0/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk=
k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE=
k8s.io/klog/v2 v2.2.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y=
k8s.io/klog/v2 v2.60.1 h1:VW25q3bZx9uE3vvdL6M8ezOX79vA2Aq1nEWLqNQclHc=
diff --git a/hack/tools.go b/hack/tools.go
index e7b62dd4e..938729c33 100644
--- a/hack/tools.go
+++ b/hack/tools.go
@@ -20,16 +20,6 @@
package hack
import (
- // Use addlicense for adding license headers.
- _ "github.com/google/addlicense"
- // Use code-generator for generating aggregated-api code.
- _ "k8s.io/code-generator"
- // Use vgopath for setting up GOPATH to generate code with code-generator.
- _ "github.com/onmetal/vgopath"
- // Use gen-crd-api-reference-docs for generating API reference documentation.
- _ "github.com/ahmetb/gen-crd-api-reference-docs"
- // Use mockgen for generating mocks.
- _ "github.com/golang/mock/mockgen"
// Use gogoproto for protobuf generation.
_ "github.com/gogo/protobuf/gogoproto"
)
diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh
index 01730d4d5..e781b0075 100755
--- a/hack/update-codegen.sh
+++ b/hack/update-codegen.sh
@@ -5,42 +5,115 @@ set -o nounset
set -o pipefail
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
-CODEGEN_PKG="${CODEGEN_PKG:-"$( (go mod download > /dev/null 2>&1) && go list -m -f '{{.Dir}}' k8s.io/code-generator)"}"
+export TERM="xterm-256color"
-VGOPATH="$(mktemp -d)"
-trap 'rm -rf "$VGOPATH"' EXIT
+bold="$(tput bold)"
+blue="$(tput setaf 4)"
+normal="$(tput sgr0)"
+
+function qualify-gvs() {
+ APIS_PKG="$1"
+ GROUPS_WITH_VERSIONS="$2"
+ join_char=""
+ res=""
+
+ for GVs in ${GROUPS_WITH_VERSIONS}; do
+ IFS=: read -r G Vs <<<"${GVs}"
+
+ for V in ${Vs//,/ }; do
+ res="$res$join_char$APIS_PKG/$G/$V"
+ join_char=","
+ done
+ done
+
+ echo "$res"
+}
+
+VGOPATH="$VGOPATH"
+CLIENT_GEN="$CLIENT_GEN"
+DEEPCOPY_GEN="$DEEPCOPY_GEN"
+LISTER_GEN="$LISTER_GEN"
+INFORMER_GEN="$INFORMER_GEN"
+DEFAULTER_GEN="$DEFAULTER_GEN"
+CONVERSION_GEN="$CONVERSION_GEN"
+OPENAPI_GEN="$OPENAPI_GEN"
+
+VIRTUAL_GOPATH="$(mktemp -d)"
+trap 'rm -rf "$GOPATH"' EXIT
# Setup virtual GOPATH so the codegen tools work as expected.
-(cd "$SCRIPT_DIR/.."; go run github.com/onmetal/vgopath "$VGOPATH")
+(cd "$SCRIPT_DIR/.."; "$VGOPATH" "$VIRTUAL_GOPATH")
-export GOPATH="$VGOPATH"
+export GOROOT="${GOROOT:-"$(go env GOROOT)"}"
+export GOPATH="$VIRTUAL_GOPATH"
export GO111MODULE=off
-bash "$CODEGEN_PKG"/generate-groups.sh \
- deepcopy \
- github.com/onmetal/onmetal-api/generated \
- github.com/onmetal/onmetal-api/apis \
- "common:v1alpha1" \
- --output-base "$VGOPATH/src" \
- --go-header-file "$SCRIPT_DIR/boilerplate.go.txt"
-
-bash "$CODEGEN_PKG"/generate-internal-groups.sh \
- deepcopy,defaulter,conversion,client,lister,informer \
- github.com/onmetal/onmetal-api/generated \
- github.com/onmetal/onmetal-api/apis \
- github.com/onmetal/onmetal-api/apis \
- "compute:v1alpha1 storage:v1alpha1 networking:v1alpha1 ipam:v1alpha1" \
- --output-base "$VGOPATH/src" \
- --go-header-file "$SCRIPT_DIR/boilerplate.go.txt"
-
-bash "$CODEGEN_PKG"/generate-internal-groups.sh \
- openapi \
- github.com/onmetal/onmetal-api/generated \
- github.com/onmetal/onmetal-api/apis \
- github.com/onmetal/onmetal-api/apis \
- "common:v1alpha1 compute:v1alpha1 storage:v1alpha1 networking:v1alpha1 ipam:v1alpha1" \
- --output-base "$VGOPATH/src" \
- --go-header-file "$SCRIPT_DIR/boilerplate.go.txt" \
- --input-dirs=k8s.io/api/core/v1 \
- --input-dirs=k8s.io/apimachinery/pkg/api/resource \
- --report-filename "$SCRIPT_DIR/../generated/openapi/api_violations.report"
+echo "${bold}Public types${normal}"
+
+echo "Generating ${blue}deepcopy${normal}"
+"$DEEPCOPY_GEN" \
+ --output-base "$GOPATH/src" \
+ --go-header-file "$SCRIPT_DIR/boilerplate.go.txt" \
+ --input-dirs "$(qualify-gvs "github.com/onmetal/onmetal-api/api" "common:v1alpha1 compute:v1alpha1 ipam:v1alpha1 networking:v1alpha1 storage:v1alpha1")" \
+ -O zz_generated.deepcopy
+
+echo "Generating ${blue}client${normal}"
+"$CLIENT_GEN" \
+ --output-base "$GOPATH/src" \
+ --go-header-file "$SCRIPT_DIR/boilerplate.go.txt" \
+ --input "$(qualify-gvs "github.com/onmetal/onmetal-api/api" "compute:v1alpha1 ipam:v1alpha1 networking:v1alpha1 storage:v1alpha1")" \
+ --output-package "github.com/onmetal/onmetal-api/client-go" \
+ --clientset-name "onmetalapi" \
+ --input-base ""
+
+echo "Generating ${blue}lister${normal}"
+"$LISTER_GEN" \
+ --output-base "$GOPATH/src" \
+ --go-header-file "$SCRIPT_DIR/boilerplate.go.txt" \
+ --input-dirs "$(qualify-gvs "github.com/onmetal/onmetal-api/api" "compute:v1alpha1 ipam:v1alpha1 networking:v1alpha1 storage:v1alpha1")" \
+ --output-package "github.com/onmetal/onmetal-api/client-go/listers"
+
+echo "Generating ${blue}informer${normal}"
+"$INFORMER_GEN" \
+ --output-base "$GOPATH/src" \
+ --go-header-file "$SCRIPT_DIR/boilerplate.go.txt" \
+ --input-dirs "$(qualify-gvs "github.com/onmetal/onmetal-api/api" "compute:v1alpha1 ipam:v1alpha1 networking:v1alpha1 storage:v1alpha1")" \
+ --versioned-clientset-package "github.com/onmetal/onmetal-api/client-go/onmetalapi" \
+ --listers-package "github.com/onmetal/onmetal-api/client-go/listers" \
+ --output-package "github.com/onmetal/onmetal-api/client-go/informers" \
+ --single-directory
+
+echo "Generating ${blue}openapi${normal}"
+"$OPENAPI_GEN" \
+ --output-base "$GOPATH/src" \
+ --go-header-file "$SCRIPT_DIR/boilerplate.go.txt" \
+ --input-dirs "$(qualify-gvs "github.com/onmetal/onmetal-api/api" "common:v1alpha1 compute:v1alpha1 ipam:v1alpha1 networking:v1alpha1 storage:v1alpha1")" \
+ --input-dirs "k8s.io/apimachinery/pkg/apis/meta/v1,k8s.io/apimachinery/pkg/runtime,k8s.io/apimachinery/pkg/version" \
+ --input-dirs "k8s.io/api/core/v1" \
+ --input-dirs "k8s.io/apimachinery/pkg/api/resource" \
+ --output-package "github.com/onmetal/onmetal-api/client-go/openapi" \
+ -O zz_generated.openapi \
+ --report-filename "$SCRIPT_DIR/../client-go/openapi/api_violations.report"
+
+echo "${bold}Internal types${normal}"
+
+echo "Generating ${blue}deepcopy${normal}"
+"$DEEPCOPY_GEN" \
+ --output-base "$GOPATH/src" \
+ --go-header-file "$SCRIPT_DIR/boilerplate.go.txt" \
+ --input-dirs "$(qualify-gvs "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis" "compute:v1alpha1 ipam:v1alpha1 networking:v1alpha1 storage:v1alpha1")" \
+ -O zz_generated.deepcopy
+
+echo "Generating ${blue}defaulter${normal}"
+"$DEFAULTER_GEN" \
+ --output-base "$GOPATH/src" \
+ --go-header-file "$SCRIPT_DIR/boilerplate.go.txt" \
+ --input-dirs "$(qualify-gvs "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis" "compute:v1alpha1 ipam:v1alpha1 networking:v1alpha1 storage:v1alpha1")" \
+ -O zz_generated.defaults
+
+echo "Generating ${blue}conversion${normal}"
+"$CONVERSION_GEN" \
+ --output-base "$GOPATH/src" \
+ --go-header-file "$SCRIPT_DIR/boilerplate.go.txt" \
+ --input-dirs "$(qualify-gvs "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis" "compute:v1alpha1 ipam:v1alpha1 networking:v1alpha1 storage:v1alpha1")" \
+ -O zz_generated.conversion
diff --git a/machinebroker/apiutils/apiutils.go b/machinebroker/apiutils/apiutils.go
index bca5eb86f..5d88d7146 100644
--- a/machinebroker/apiutils/apiutils.go
+++ b/machinebroker/apiutils/apiutils.go
@@ -19,7 +19,7 @@ import (
"fmt"
"github.com/onmetal/controller-utils/metautils"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
machinebrokerv1alpha1 "github.com/onmetal/onmetal-api/machinebroker/api/v1alpha1"
ori "github.com/onmetal/onmetal-api/ori/apis/compute/v1alpha1"
corev1 "k8s.io/api/core/v1"
diff --git a/machinebroker/server/common.go b/machinebroker/server/common.go
index b2153b6b3..2246754b5 100644
--- a/machinebroker/server/common.go
+++ b/machinebroker/server/common.go
@@ -23,8 +23,8 @@ import (
"strconv"
"github.com/go-logr/logr"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
corev1 "k8s.io/api/core/v1"
ctrl "sigs.k8s.io/controller-runtime"
)
diff --git a/machinebroker/server/machine.go b/machinebroker/server/machine.go
index 4336c170c..e7fabca74 100644
--- a/machinebroker/server/machine.go
+++ b/machinebroker/server/machine.go
@@ -15,7 +15,7 @@
package server
import (
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
machinebrokerv1alpha1 "github.com/onmetal/onmetal-api/machinebroker/api/v1alpha1"
"github.com/onmetal/onmetal-api/machinebroker/apiutils"
ori "github.com/onmetal/onmetal-api/ori/apis/compute/v1alpha1"
diff --git a/machinebroker/server/machine_create.go b/machinebroker/server/machine_create.go
index a64256b98..a2c9f3536 100644
--- a/machinebroker/server/machine_create.go
+++ b/machinebroker/server/machine_create.go
@@ -19,10 +19,10 @@ import (
"fmt"
"github.com/go-logr/logr"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
onmetalapiannotations "github.com/onmetal/onmetal-api/apiutils/annotations"
machinebrokerv1alpha1 "github.com/onmetal/onmetal-api/machinebroker/api/v1alpha1"
"github.com/onmetal/onmetal-api/machinebroker/apiutils"
diff --git a/machinebroker/server/machine_create_test.go b/machinebroker/server/machine_create_test.go
index a6965d763..56d65efaa 100644
--- a/machinebroker/server/machine_create_test.go
+++ b/machinebroker/server/machine_create_test.go
@@ -15,10 +15,10 @@
package server_test
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
machinebrokerv1alpha1 "github.com/onmetal/onmetal-api/machinebroker/api/v1alpha1"
"github.com/onmetal/onmetal-api/machinebroker/apiutils"
ori "github.com/onmetal/onmetal-api/ori/apis/compute/v1alpha1"
diff --git a/machinebroker/server/machine_delete.go b/machinebroker/server/machine_delete.go
index d402b5273..9053f6566 100644
--- a/machinebroker/server/machine_delete.go
+++ b/machinebroker/server/machine_delete.go
@@ -18,9 +18,9 @@ import (
"context"
"fmt"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
machinebrokerv1alpha1 "github.com/onmetal/onmetal-api/machinebroker/api/v1alpha1"
ori "github.com/onmetal/onmetal-api/ori/apis/compute/v1alpha1"
corev1 "k8s.io/api/core/v1"
diff --git a/machinebroker/server/machine_list.go b/machinebroker/server/machine_list.go
index 742233a5b..917b7c0f0 100644
--- a/machinebroker/server/machine_list.go
+++ b/machinebroker/server/machine_list.go
@@ -19,7 +19,7 @@ import (
"errors"
"fmt"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
machinebrokerv1alpha1 "github.com/onmetal/onmetal-api/machinebroker/api/v1alpha1"
ori "github.com/onmetal/onmetal-api/ori/apis/compute/v1alpha1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
diff --git a/machinebroker/server/machine_status.go b/machinebroker/server/machine_status.go
index a10da75c5..d6d3d9de1 100644
--- a/machinebroker/server/machine_status.go
+++ b/machinebroker/server/machine_status.go
@@ -19,7 +19,7 @@ import (
"errors"
"fmt"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
"github.com/onmetal/onmetal-api/machinebroker/apiutils"
ori "github.com/onmetal/onmetal-api/ori/apis/compute/v1alpha1"
"google.golang.org/grpc/codes"
diff --git a/machinebroker/server/machineclass_list.go b/machinebroker/server/machineclass_list.go
index ae0f192e2..f61b2cd98 100644
--- a/machinebroker/server/machineclass_list.go
+++ b/machinebroker/server/machineclass_list.go
@@ -19,7 +19,7 @@ import (
"fmt"
"github.com/onmetal/controller-utils/set"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
ori "github.com/onmetal/onmetal-api/ori/apis/compute/v1alpha1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"sigs.k8s.io/controller-runtime/pkg/client"
diff --git a/machinebroker/server/networkinterface.go b/machinebroker/server/networkinterface.go
index 45106e9e8..01092ca0b 100644
--- a/machinebroker/server/networkinterface.go
+++ b/machinebroker/server/networkinterface.go
@@ -15,8 +15,8 @@
package server
import (
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
ori "github.com/onmetal/onmetal-api/ori/apis/compute/v1alpha1"
)
diff --git a/machinebroker/server/networkinterface_delete.go b/machinebroker/server/networkinterface_delete.go
index 1b09b9a7a..af39c0e93 100644
--- a/machinebroker/server/networkinterface_delete.go
+++ b/machinebroker/server/networkinterface_delete.go
@@ -18,8 +18,8 @@ import (
"context"
"fmt"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
machinebrokerv1alpha1 "github.com/onmetal/onmetal-api/machinebroker/api/v1alpha1"
ori "github.com/onmetal/onmetal-api/ori/apis/compute/v1alpha1"
"golang.org/x/exp/slices"
diff --git a/machinebroker/server/networkinterface_list.go b/machinebroker/server/networkinterface_list.go
index 60a9fe766..d0514e220 100644
--- a/machinebroker/server/networkinterface_list.go
+++ b/machinebroker/server/networkinterface_list.go
@@ -19,8 +19,8 @@ import (
"errors"
"fmt"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
machinebrokerv1alpha1 "github.com/onmetal/onmetal-api/machinebroker/api/v1alpha1"
"github.com/onmetal/onmetal-api/machinebroker/apiutils"
ori "github.com/onmetal/onmetal-api/ori/apis/compute/v1alpha1"
diff --git a/machinebroker/server/networkinterface_update.go b/machinebroker/server/networkinterface_update.go
index 12a55e8c1..9c9b71757 100644
--- a/machinebroker/server/networkinterface_update.go
+++ b/machinebroker/server/networkinterface_update.go
@@ -20,7 +20,7 @@ import (
"fmt"
"github.com/go-logr/logr"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
machinebrokerv1alpha1 "github.com/onmetal/onmetal-api/machinebroker/api/v1alpha1"
ori "github.com/onmetal/onmetal-api/ori/apis/compute/v1alpha1"
"google.golang.org/grpc/codes"
diff --git a/machinebroker/server/server.go b/machinebroker/server/server.go
index 9a734fec6..9f3c7c7a3 100644
--- a/machinebroker/server/server.go
+++ b/machinebroker/server/server.go
@@ -17,10 +17,10 @@ package server
import (
"fmt"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
"github.com/onmetal/onmetal-api/ori/apis/compute/v1alpha1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
diff --git a/machinebroker/server/server_suite_test.go b/machinebroker/server/server_suite_test.go
index 260bc7fab..06cfe78b2 100644
--- a/machinebroker/server/server_suite_test.go
+++ b/machinebroker/server/server_suite_test.go
@@ -21,10 +21,10 @@ import (
"github.com/onmetal/controller-utils/buildutils"
"github.com/onmetal/controller-utils/modutils"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
"github.com/onmetal/onmetal-api/machinebroker/server"
"github.com/onmetal/onmetal-api/testutils/envtestutils"
"github.com/onmetal/onmetal-api/testutils/envtestutils/apiserver"
diff --git a/machinebroker/server/volume.go b/machinebroker/server/volume.go
index c26537ca1..9d0dd6f85 100644
--- a/machinebroker/server/volume.go
+++ b/machinebroker/server/volume.go
@@ -17,8 +17,8 @@ package server
import (
"fmt"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
ori "github.com/onmetal/onmetal-api/ori/apis/compute/v1alpha1"
)
diff --git a/machinebroker/server/volume_delete.go b/machinebroker/server/volume_delete.go
index 8bd068f23..73e2a0122 100644
--- a/machinebroker/server/volume_delete.go
+++ b/machinebroker/server/volume_delete.go
@@ -18,8 +18,8 @@ import (
"context"
"fmt"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
machinebrokerv1alpha1 "github.com/onmetal/onmetal-api/machinebroker/api/v1alpha1"
ori "github.com/onmetal/onmetal-api/ori/apis/compute/v1alpha1"
"golang.org/x/exp/slices"
diff --git a/machinebroker/server/volume_list.go b/machinebroker/server/volume_list.go
index aa44476ef..fbc0a5567 100644
--- a/machinebroker/server/volume_list.go
+++ b/machinebroker/server/volume_list.go
@@ -19,8 +19,8 @@ import (
"errors"
"fmt"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
machinebrokerv1alpha1 "github.com/onmetal/onmetal-api/machinebroker/api/v1alpha1"
"github.com/onmetal/onmetal-api/machinebroker/apiutils"
ori "github.com/onmetal/onmetal-api/ori/apis/compute/v1alpha1"
diff --git a/machinepoollet/client/client.go b/machinepoollet/client/client.go
index f0e18b1a2..9f737b7bb 100644
--- a/machinepoollet/client/client.go
+++ b/machinepoollet/client/client.go
@@ -17,7 +17,7 @@ package client
import (
"context"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
"sigs.k8s.io/controller-runtime/pkg/client"
)
diff --git a/machinepoollet/cmd/machinepoollet/app/app.go b/machinepoollet/cmd/machinepoollet/app/app.go
index d18b79ab0..2f823c7cd 100644
--- a/machinepoollet/cmd/machinepoollet/app/app.go
+++ b/machinepoollet/cmd/machinepoollet/app/app.go
@@ -22,10 +22,10 @@ import (
"time"
"github.com/go-logr/logr"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
machinepoolletclient "github.com/onmetal/onmetal-api/machinepoollet/client"
"github.com/onmetal/onmetal-api/machinepoollet/controllers"
"github.com/onmetal/onmetal-api/machinepoollet/mcm"
diff --git a/machinepoollet/controllers/machine_controller.go b/machinepoollet/controllers/machine_controller.go
index f8660958d..c1a20672e 100644
--- a/machinepoollet/controllers/machine_controller.go
+++ b/machinepoollet/controllers/machine_controller.go
@@ -20,10 +20,10 @@ import (
"github.com/go-logr/logr"
"github.com/onmetal/controller-utils/clientutils"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
onmetalapiannotations "github.com/onmetal/onmetal-api/apiutils/annotations"
onmetalapiclient "github.com/onmetal/onmetal-api/apiutils/client"
"github.com/onmetal/onmetal-api/apiutils/predicates"
diff --git a/machinepoollet/controllers/machinepool_controller.go b/machinepoollet/controllers/machinepool_controller.go
index 305c65611..b83edb311 100644
--- a/machinepoollet/controllers/machinepool_controller.go
+++ b/machinepoollet/controllers/machinepool_controller.go
@@ -20,7 +20,7 @@ import (
"fmt"
"github.com/go-logr/logr"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
"github.com/onmetal/onmetal-api/machinepoollet/mcm"
ori "github.com/onmetal/onmetal-api/ori/apis/compute/v1alpha1"
corev1 "k8s.io/api/core/v1"
diff --git a/machinepoollet/controllers/machinepool_init.go b/machinepoollet/controllers/machinepool_init.go
index 89a1aff6b..4c3a5f264 100644
--- a/machinepoollet/controllers/machinepool_init.go
+++ b/machinepoollet/controllers/machinepool_init.go
@@ -18,7 +18,7 @@ import (
"context"
"fmt"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
machinepoolletv1alpha1 "github.com/onmetal/onmetal-api/machinepoollet/api/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
ctrl "sigs.k8s.io/controller-runtime"
diff --git a/machinepoollet/controllers/util.go b/machinepoollet/controllers/util.go
index 2b7997558..db445a55c 100644
--- a/machinepoollet/controllers/util.go
+++ b/machinepoollet/controllers/util.go
@@ -19,10 +19,10 @@ import (
"errors"
"fmt"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
ori "github.com/onmetal/onmetal-api/ori/apis/compute/v1alpha1"
corev1 "k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
diff --git a/machinepoollet/endpoints/endpoints.go b/machinepoollet/endpoints/endpoints.go
index b8b2ec72e..bc1fa56dd 100644
--- a/machinepoollet/endpoints/endpoints.go
+++ b/machinepoollet/endpoints/endpoints.go
@@ -17,7 +17,7 @@ package endpoints
import (
"sort"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
)
// Notifier is an interface that allows any Listener to be notified upon changes.
diff --git a/machinepoollet/endpoints/loadbalancerservice.go b/machinepoollet/endpoints/loadbalancerservice.go
index 2de77c4b6..ca8abc106 100644
--- a/machinepoollet/endpoints/loadbalancerservice.go
+++ b/machinepoollet/endpoints/loadbalancerservice.go
@@ -19,7 +19,7 @@ import (
"fmt"
"sync/atomic"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
"github.com/onmetal/onmetal-api/apiutils/equality"
machinepoolletpredicate "github.com/onmetal/onmetal-api/machinepoollet/predicate"
corev1 "k8s.io/api/core/v1"
diff --git a/machinepoollet/endpoints/loadbalancerservice_test.go b/machinepoollet/endpoints/loadbalancerservice_test.go
index 572e3e838..5d9f2d1f6 100644
--- a/machinepoollet/endpoints/loadbalancerservice_test.go
+++ b/machinepoollet/endpoints/loadbalancerservice_test.go
@@ -16,7 +16,7 @@
package endpoints_test
import (
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
. "github.com/onmetal/onmetal-api/machinepoollet/endpoints"
"github.com/onmetal/onmetal-api/testutils"
. "github.com/onsi/ginkgo/v2"
diff --git a/machinepoollet/endpoints/nodeportservice.go b/machinepoollet/endpoints/nodeportservice.go
index 982c8af03..a047010ff 100644
--- a/machinepoollet/endpoints/nodeportservice.go
+++ b/machinepoollet/endpoints/nodeportservice.go
@@ -19,7 +19,7 @@ import (
"fmt"
"sync/atomic"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
"github.com/onmetal/onmetal-api/apiutils/equality"
machinepoolletpredicate "github.com/onmetal/onmetal-api/machinepoollet/predicate"
corev1 "k8s.io/api/core/v1"
diff --git a/machinepoollet/endpoints/nodeportservice_test.go b/machinepoollet/endpoints/nodeportservice_test.go
index 9bbdb711f..f6f96d6c6 100644
--- a/machinepoollet/endpoints/nodeportservice_test.go
+++ b/machinepoollet/endpoints/nodeportservice_test.go
@@ -16,7 +16,7 @@
package endpoints_test
import (
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
. "github.com/onmetal/onmetal-api/machinepoollet/endpoints"
"github.com/onmetal/onmetal-api/testutils"
. "github.com/onsi/ginkgo/v2"
diff --git a/machinepoollet/endpoints/statichostname.go b/machinepoollet/endpoints/statichostname.go
index 2e6cf2982..a3c7cd53b 100644
--- a/machinepoollet/endpoints/statichostname.go
+++ b/machinepoollet/endpoints/statichostname.go
@@ -17,7 +17,7 @@ package endpoints
import (
"fmt"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
)
type StaticHostName struct {
diff --git a/machinepoollet/endpoints/suite_test.go b/machinepoollet/endpoints/suite_test.go
index d80af3756..2dbff64ea 100644
--- a/machinepoollet/endpoints/suite_test.go
+++ b/machinepoollet/endpoints/suite_test.go
@@ -20,8 +20,8 @@ import (
"testing"
"time"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
corev1 "k8s.io/api/core/v1"
@@ -34,8 +34,8 @@ import (
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
//+kubebuilder:scaffold:imports
)
diff --git a/machinepoollet/server/server.go b/machinepoollet/server/server.go
index 8140f68e1..ba6bca4d9 100644
--- a/machinepoollet/server/server.go
+++ b/machinepoollet/server/server.go
@@ -30,9 +30,9 @@ import (
"time"
"github.com/gorilla/mux"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
"github.com/onmetal/onmetal-api/machinepoollet/terminal"
- http2 "github.com/onmetal/onmetal-api/machinepoollet/terminal/http"
+ terminalhttp "github.com/onmetal/onmetal-api/machinepoollet/terminal/http"
"k8s.io/apiserver/pkg/authentication/authenticator"
"k8s.io/apiserver/pkg/authentication/authenticatorfactory"
"k8s.io/apiserver/pkg/authentication/user"
@@ -421,12 +421,12 @@ func (s *Server) registerComputeRoutes(r *mux.Router) {
supportedStreamProtocols := strings.Split(req.Header.Get("X-Stream-Protocol-Version"), ",")
term := NewMachineExecTerminal(ctx, s.machineExec, namespace, name)
- streamOpts := &http2.Options{
+ streamOpts := &terminalhttp.Options{
Stdin: true,
Stdout: true,
TTY: true,
}
- http2.Serve(w, req, term, streamOpts, s.streamIdleTimeout, s.streamCreationTimeout, supportedStreamProtocols)
+ terminalhttp.Serve(w, req, term, streamOpts, s.streamIdleTimeout, s.streamCreationTimeout, supportedStreamProtocols)
})
}
diff --git a/onmetal-apiserver/cmd/apiserver/main.go b/onmetal-apiserver/cmd/apiserver/main.go
index f3de0ee9d..a02e84cfc 100644
--- a/onmetal-apiserver/cmd/apiserver/main.go
+++ b/onmetal-apiserver/cmd/apiserver/main.go
@@ -17,7 +17,7 @@ package main
import (
"os"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/app/apiserver"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/app/apiserver"
genericapiserver "k8s.io/apiserver/pkg/server"
"k8s.io/component-base/cli"
)
diff --git a/onmetal-apiserver/admission/plugin/machinevolumedevices/admission.go b/onmetal-apiserver/internal/admission/plugin/machinevolumedevices/admission.go
similarity index 95%
rename from onmetal-apiserver/admission/plugin/machinevolumedevices/admission.go
rename to onmetal-apiserver/internal/admission/plugin/machinevolumedevices/admission.go
index e1bed3886..817e7835d 100644
--- a/onmetal-apiserver/admission/plugin/machinevolumedevices/admission.go
+++ b/onmetal-apiserver/internal/admission/plugin/machinevolumedevices/admission.go
@@ -19,9 +19,9 @@ import (
"fmt"
"io"
- "github.com/onmetal/onmetal-api/apis/compute"
"github.com/onmetal/onmetal-api/apiutils/equality"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/admission/plugin/machinevolumedevices/device"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/admission/plugin/machinevolumedevices/device"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apiserver/pkg/admission"
)
diff --git a/onmetal-apiserver/admission/plugin/machinevolumedevices/admission_test.go b/onmetal-apiserver/internal/admission/plugin/machinevolumedevices/admission_test.go
similarity index 94%
rename from onmetal-apiserver/admission/plugin/machinevolumedevices/admission_test.go
rename to onmetal-apiserver/internal/admission/plugin/machinevolumedevices/admission_test.go
index f6b21fc66..2d63acab6 100644
--- a/onmetal-apiserver/admission/plugin/machinevolumedevices/admission_test.go
+++ b/onmetal-apiserver/internal/admission/plugin/machinevolumedevices/admission_test.go
@@ -17,9 +17,9 @@ package machinevolumedevices_test
import (
"context"
- "github.com/onmetal/onmetal-api/apis/compute"
- "github.com/onmetal/onmetal-api/apis/storage"
- . "github.com/onmetal/onmetal-api/onmetal-apiserver/admission/plugin/machinevolumedevices"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/admission/plugin/machinevolumedevices"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/onmetal-apiserver/admission/plugin/machinevolumedevices/device/device.go b/onmetal-apiserver/internal/admission/plugin/machinevolumedevices/device/device.go
similarity index 100%
rename from onmetal-apiserver/admission/plugin/machinevolumedevices/device/device.go
rename to onmetal-apiserver/internal/admission/plugin/machinevolumedevices/device/device.go
diff --git a/onmetal-apiserver/admission/plugin/machinevolumedevices/device/device_suite_test.go b/onmetal-apiserver/internal/admission/plugin/machinevolumedevices/device/device_suite_test.go
similarity index 100%
rename from onmetal-apiserver/admission/plugin/machinevolumedevices/device/device_suite_test.go
rename to onmetal-apiserver/internal/admission/plugin/machinevolumedevices/device/device_suite_test.go
diff --git a/onmetal-apiserver/admission/plugin/machinevolumedevices/device/device_test.go b/onmetal-apiserver/internal/admission/plugin/machinevolumedevices/device/device_test.go
similarity index 97%
rename from onmetal-apiserver/admission/plugin/machinevolumedevices/device/device_test.go
rename to onmetal-apiserver/internal/admission/plugin/machinevolumedevices/device/device_test.go
index a27fb67d5..1eeae261d 100644
--- a/onmetal-apiserver/admission/plugin/machinevolumedevices/device/device_test.go
+++ b/onmetal-apiserver/internal/admission/plugin/machinevolumedevices/device/device_test.go
@@ -17,7 +17,7 @@ package device_test
import (
"fmt"
- . "github.com/onmetal/onmetal-api/onmetal-apiserver/admission/plugin/machinevolumedevices/device"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/admission/plugin/machinevolumedevices/device"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
diff --git a/onmetal-apiserver/admission/plugin/machinevolumedevices/machinevolumedevices_suite_test.go b/onmetal-apiserver/internal/admission/plugin/machinevolumedevices/machinevolumedevices_suite_test.go
similarity index 100%
rename from onmetal-apiserver/admission/plugin/machinevolumedevices/machinevolumedevices_suite_test.go
rename to onmetal-apiserver/internal/admission/plugin/machinevolumedevices/machinevolumedevices_suite_test.go
diff --git a/onmetal-apiserver/api/api.go b/onmetal-apiserver/internal/api/api.go
similarity index 79%
rename from onmetal-apiserver/api/api.go
rename to onmetal-apiserver/internal/api/api.go
index f76922608..7b34809f8 100644
--- a/onmetal-apiserver/api/api.go
+++ b/onmetal-apiserver/internal/api/api.go
@@ -15,10 +15,10 @@
package api
import (
- computeinstall "github.com/onmetal/onmetal-api/apis/compute/install"
- ipaminstall "github.com/onmetal/onmetal-api/apis/ipam/install"
- networkinginstall "github.com/onmetal/onmetal-api/apis/networking/install"
- storageinstall "github.com/onmetal/onmetal-api/apis/storage/install"
+ computeinstall "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute/install"
+ ipaminstall "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam/install"
+ networkinginstall "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking/install"
+ storageinstall "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage/install"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/onmetal-apiserver/api/validation/corev1.go b/onmetal-apiserver/internal/api/validation/corev1.go
similarity index 100%
rename from onmetal-apiserver/api/validation/corev1.go
rename to onmetal-apiserver/internal/api/validation/corev1.go
diff --git a/onmetal-apiserver/api/validation/helper.go b/onmetal-apiserver/internal/api/validation/helper.go
similarity index 98%
rename from onmetal-apiserver/api/validation/helper.go
rename to onmetal-apiserver/internal/api/validation/helper.go
index c207a778e..c9b6279fa 100644
--- a/onmetal-apiserver/api/validation/helper.go
+++ b/onmetal-apiserver/internal/api/validation/helper.go
@@ -23,7 +23,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/onmetal/controller-utils/set"
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1"
"github.com/onmetal/onmetal-api/apiutils/equality"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/apimachinery/pkg/api/validation"
diff --git a/apis/common/v1alpha1/validation/validation.go b/onmetal-apiserver/internal/apis/common/validation/validation.go
similarity index 96%
rename from apis/common/v1alpha1/validation/validation.go
rename to onmetal-apiserver/internal/apis/common/validation/validation.go
index bb049df03..2622a9509 100644
--- a/apis/common/v1alpha1/validation/validation.go
+++ b/onmetal-apiserver/internal/apis/common/validation/validation.go
@@ -17,8 +17,8 @@ package validation
import (
"fmt"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/api/validation"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api/validation"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/util/validation/field"
)
diff --git a/apis/compute/common.go b/onmetal-apiserver/internal/apis/compute/common.go
similarity index 89%
rename from apis/compute/common.go
rename to onmetal-apiserver/internal/apis/compute/common.go
index d0c0dec40..85dc4a861 100644
--- a/apis/compute/common.go
+++ b/onmetal-apiserver/internal/apis/compute/common.go
@@ -15,8 +15,8 @@
package compute
import (
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/apis/storage"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
)
// EphemeralNetworkInterfaceSource is a definition for an ephemeral (i.e. coupled to the lifetime of the surrounding
diff --git a/apis/compute/doc.go b/onmetal-apiserver/internal/apis/compute/doc.go
similarity index 89%
rename from apis/compute/doc.go
rename to onmetal-apiserver/internal/apis/compute/doc.go
index 217cac5ab..c6d27b4a0 100644
--- a/apis/compute/doc.go
+++ b/onmetal-apiserver/internal/apis/compute/doc.go
@@ -21,4 +21,4 @@
// +groupName=compute.api.onmetal.de
// Package compute is the internal version of the API.
-package compute // import "github.com/onmetal/onmetal-api/apis/compute"
+package compute // import "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
diff --git a/apis/compute/install/install.go b/onmetal-apiserver/internal/apis/compute/install/install.go
similarity index 85%
rename from apis/compute/install/install.go
rename to onmetal-apiserver/internal/apis/compute/install/install.go
index 0896e9649..ec12a826b 100644
--- a/apis/compute/install/install.go
+++ b/onmetal-apiserver/internal/apis/compute/install/install.go
@@ -15,8 +15,8 @@
package install
import (
- "github.com/onmetal/onmetal-api/apis/compute"
- "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute/v1alpha1"
"k8s.io/apimachinery/pkg/runtime"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
)
diff --git a/apis/compute/machine_types.go b/onmetal-apiserver/internal/apis/compute/machine_types.go
similarity index 99%
rename from apis/compute/machine_types.go
rename to onmetal-apiserver/internal/apis/compute/machine_types.go
index 105cfe597..083778ea8 100644
--- a/apis/compute/machine_types.go
+++ b/onmetal-apiserver/internal/apis/compute/machine_types.go
@@ -21,7 +21,7 @@ import (
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
)
// MachineSpec defines the desired state of Machine
diff --git a/apis/compute/machineclass_types.go b/onmetal-apiserver/internal/apis/compute/machineclass_types.go
similarity index 100%
rename from apis/compute/machineclass_types.go
rename to onmetal-apiserver/internal/apis/compute/machineclass_types.go
diff --git a/apis/compute/machinepool_types.go b/onmetal-apiserver/internal/apis/compute/machinepool_types.go
similarity index 98%
rename from apis/compute/machinepool_types.go
rename to onmetal-apiserver/internal/apis/compute/machinepool_types.go
index b3d11011b..cf806b697 100644
--- a/apis/compute/machinepool_types.go
+++ b/onmetal-apiserver/internal/apis/compute/machinepool_types.go
@@ -20,7 +20,7 @@ import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
)
// MachinePoolSpec defines the desired state of MachinePool
diff --git a/apis/compute/register.go b/onmetal-apiserver/internal/apis/compute/register.go
similarity index 100%
rename from apis/compute/register.go
rename to onmetal-apiserver/internal/apis/compute/register.go
diff --git a/apis/compute/util.go b/onmetal-apiserver/internal/apis/compute/util.go
similarity index 100%
rename from apis/compute/util.go
rename to onmetal-apiserver/internal/apis/compute/util.go
diff --git a/onmetal-apiserver/internal/apis/compute/v1alpha1/doc.go b/onmetal-apiserver/internal/apis/compute/v1alpha1/doc.go
new file mode 100644
index 000000000..8a505dce4
--- /dev/null
+++ b/onmetal-apiserver/internal/apis/compute/v1alpha1/doc.go
@@ -0,0 +1,21 @@
+// Copyright 2022 OnMetal authors
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// +k8s:conversion-gen=github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute
+// +k8s:conversion-gen-external-types=github.com/onmetal/onmetal-api/api/compute/v1alpha1
+// +k8s:defaulter-gen=TypeMeta
+// +k8s:defaulter-gen-input=github.com/onmetal/onmetal-api/api/compute/v1alpha1
+
+// Package v1alpha1 is the v1alpha1 version of the API.
+package v1alpha1 // import "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute/v1alpha1"
diff --git a/onmetal-apiserver/internal/apis/compute/v1alpha1/register.go b/onmetal-apiserver/internal/apis/compute/v1alpha1/register.go
new file mode 100644
index 000000000..65167e368
--- /dev/null
+++ b/onmetal-apiserver/internal/apis/compute/v1alpha1/register.go
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) 2021 by the OnMetal authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+// Package v1alpha1 contains API Schema definitions for the compute v1alpha1 API group
+// +groupName=compute.api.onmetal.de
+package v1alpha1
+
+import (
+ "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ "k8s.io/apimachinery/pkg/runtime/schema"
+)
+
+var (
+ // SchemeGroupVersion is group version used to register these objects
+ SchemeGroupVersion = schema.GroupVersion{Group: "compute.api.onmetal.de", Version: "v1alpha1"}
+
+ localSchemeBuilder = &v1alpha1.SchemeBuilder
+
+ // AddToScheme adds the types in this group-version to the given scheme.
+ AddToScheme = localSchemeBuilder.AddToScheme
+)
+
+func Resource(resource string) schema.GroupResource {
+ return SchemeGroupVersion.WithResource(resource).GroupResource()
+}
diff --git a/apis/compute/v1alpha1/zz_generated.conversion.go b/onmetal-apiserver/internal/apis/compute/v1alpha1/zz_generated.conversion.go
similarity index 59%
rename from apis/compute/v1alpha1/zz_generated.conversion.go
rename to onmetal-apiserver/internal/apis/compute/v1alpha1/zz_generated.conversion.go
index 389d447bc..861eab698 100644
--- a/apis/compute/v1alpha1/zz_generated.conversion.go
+++ b/onmetal-apiserver/internal/apis/compute/v1alpha1/zz_generated.conversion.go
@@ -24,12 +24,13 @@ import (
url "net/url"
unsafe "unsafe"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- compute "github.com/onmetal/onmetal-api/apis/compute"
- networking "github.com/onmetal/onmetal-api/apis/networking"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- storage "github.com/onmetal/onmetal-api/apis/storage"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
+ compute "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
+ networking "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ storage "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
v1 "k8s.io/api/core/v1"
resource "k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -44,325 +45,325 @@ func init() {
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(s *runtime.Scheme) error {
- if err := s.AddGeneratedConversionFunc((*DaemonEndpoint)(nil), (*compute.DaemonEndpoint)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_DaemonEndpoint_To_compute_DaemonEndpoint(a.(*DaemonEndpoint), b.(*compute.DaemonEndpoint), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.DaemonEndpoint)(nil), (*compute.DaemonEndpoint)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_DaemonEndpoint_To_compute_DaemonEndpoint(a.(*v1alpha1.DaemonEndpoint), b.(*compute.DaemonEndpoint), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.DaemonEndpoint)(nil), (*DaemonEndpoint)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_DaemonEndpoint_To_v1alpha1_DaemonEndpoint(a.(*compute.DaemonEndpoint), b.(*DaemonEndpoint), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.DaemonEndpoint)(nil), (*v1alpha1.DaemonEndpoint)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_DaemonEndpoint_To_v1alpha1_DaemonEndpoint(a.(*compute.DaemonEndpoint), b.(*v1alpha1.DaemonEndpoint), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*EFIVar)(nil), (*compute.EFIVar)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_EFIVar_To_compute_EFIVar(a.(*EFIVar), b.(*compute.EFIVar), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.EFIVar)(nil), (*compute.EFIVar)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_EFIVar_To_compute_EFIVar(a.(*v1alpha1.EFIVar), b.(*compute.EFIVar), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.EFIVar)(nil), (*EFIVar)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_EFIVar_To_v1alpha1_EFIVar(a.(*compute.EFIVar), b.(*EFIVar), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.EFIVar)(nil), (*v1alpha1.EFIVar)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_EFIVar_To_v1alpha1_EFIVar(a.(*compute.EFIVar), b.(*v1alpha1.EFIVar), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*EmptyDiskVolumeSource)(nil), (*compute.EmptyDiskVolumeSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_EmptyDiskVolumeSource_To_compute_EmptyDiskVolumeSource(a.(*EmptyDiskVolumeSource), b.(*compute.EmptyDiskVolumeSource), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.EmptyDiskVolumeSource)(nil), (*compute.EmptyDiskVolumeSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_EmptyDiskVolumeSource_To_compute_EmptyDiskVolumeSource(a.(*v1alpha1.EmptyDiskVolumeSource), b.(*compute.EmptyDiskVolumeSource), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.EmptyDiskVolumeSource)(nil), (*EmptyDiskVolumeSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_EmptyDiskVolumeSource_To_v1alpha1_EmptyDiskVolumeSource(a.(*compute.EmptyDiskVolumeSource), b.(*EmptyDiskVolumeSource), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.EmptyDiskVolumeSource)(nil), (*v1alpha1.EmptyDiskVolumeSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_EmptyDiskVolumeSource_To_v1alpha1_EmptyDiskVolumeSource(a.(*compute.EmptyDiskVolumeSource), b.(*v1alpha1.EmptyDiskVolumeSource), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*EmptyDiskVolumeStatus)(nil), (*compute.EmptyDiskVolumeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_EmptyDiskVolumeStatus_To_compute_EmptyDiskVolumeStatus(a.(*EmptyDiskVolumeStatus), b.(*compute.EmptyDiskVolumeStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.EmptyDiskVolumeStatus)(nil), (*compute.EmptyDiskVolumeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_EmptyDiskVolumeStatus_To_compute_EmptyDiskVolumeStatus(a.(*v1alpha1.EmptyDiskVolumeStatus), b.(*compute.EmptyDiskVolumeStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.EmptyDiskVolumeStatus)(nil), (*EmptyDiskVolumeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_EmptyDiskVolumeStatus_To_v1alpha1_EmptyDiskVolumeStatus(a.(*compute.EmptyDiskVolumeStatus), b.(*EmptyDiskVolumeStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.EmptyDiskVolumeStatus)(nil), (*v1alpha1.EmptyDiskVolumeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_EmptyDiskVolumeStatus_To_v1alpha1_EmptyDiskVolumeStatus(a.(*compute.EmptyDiskVolumeStatus), b.(*v1alpha1.EmptyDiskVolumeStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*EphemeralNetworkInterfaceSource)(nil), (*compute.EphemeralNetworkInterfaceSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_EphemeralNetworkInterfaceSource_To_compute_EphemeralNetworkInterfaceSource(a.(*EphemeralNetworkInterfaceSource), b.(*compute.EphemeralNetworkInterfaceSource), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.EphemeralNetworkInterfaceSource)(nil), (*compute.EphemeralNetworkInterfaceSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_EphemeralNetworkInterfaceSource_To_compute_EphemeralNetworkInterfaceSource(a.(*v1alpha1.EphemeralNetworkInterfaceSource), b.(*compute.EphemeralNetworkInterfaceSource), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.EphemeralNetworkInterfaceSource)(nil), (*EphemeralNetworkInterfaceSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_EphemeralNetworkInterfaceSource_To_v1alpha1_EphemeralNetworkInterfaceSource(a.(*compute.EphemeralNetworkInterfaceSource), b.(*EphemeralNetworkInterfaceSource), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.EphemeralNetworkInterfaceSource)(nil), (*v1alpha1.EphemeralNetworkInterfaceSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_EphemeralNetworkInterfaceSource_To_v1alpha1_EphemeralNetworkInterfaceSource(a.(*compute.EphemeralNetworkInterfaceSource), b.(*v1alpha1.EphemeralNetworkInterfaceSource), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*EphemeralVolumeSource)(nil), (*compute.EphemeralVolumeSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_EphemeralVolumeSource_To_compute_EphemeralVolumeSource(a.(*EphemeralVolumeSource), b.(*compute.EphemeralVolumeSource), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.EphemeralVolumeSource)(nil), (*compute.EphemeralVolumeSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_EphemeralVolumeSource_To_compute_EphemeralVolumeSource(a.(*v1alpha1.EphemeralVolumeSource), b.(*compute.EphemeralVolumeSource), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.EphemeralVolumeSource)(nil), (*EphemeralVolumeSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_EphemeralVolumeSource_To_v1alpha1_EphemeralVolumeSource(a.(*compute.EphemeralVolumeSource), b.(*EphemeralVolumeSource), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.EphemeralVolumeSource)(nil), (*v1alpha1.EphemeralVolumeSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_EphemeralVolumeSource_To_v1alpha1_EphemeralVolumeSource(a.(*compute.EphemeralVolumeSource), b.(*v1alpha1.EphemeralVolumeSource), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*Machine)(nil), (*compute.Machine)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_Machine_To_compute_Machine(a.(*Machine), b.(*compute.Machine), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.Machine)(nil), (*compute.Machine)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_Machine_To_compute_Machine(a.(*v1alpha1.Machine), b.(*compute.Machine), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.Machine)(nil), (*Machine)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_Machine_To_v1alpha1_Machine(a.(*compute.Machine), b.(*Machine), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.Machine)(nil), (*v1alpha1.Machine)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_Machine_To_v1alpha1_Machine(a.(*compute.Machine), b.(*v1alpha1.Machine), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*MachineClass)(nil), (*compute.MachineClass)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineClass_To_compute_MachineClass(a.(*MachineClass), b.(*compute.MachineClass), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.MachineClass)(nil), (*compute.MachineClass)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineClass_To_compute_MachineClass(a.(*v1alpha1.MachineClass), b.(*compute.MachineClass), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.MachineClass)(nil), (*MachineClass)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_MachineClass_To_v1alpha1_MachineClass(a.(*compute.MachineClass), b.(*MachineClass), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.MachineClass)(nil), (*v1alpha1.MachineClass)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_MachineClass_To_v1alpha1_MachineClass(a.(*compute.MachineClass), b.(*v1alpha1.MachineClass), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*MachineClassList)(nil), (*compute.MachineClassList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineClassList_To_compute_MachineClassList(a.(*MachineClassList), b.(*compute.MachineClassList), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.MachineClassList)(nil), (*compute.MachineClassList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineClassList_To_compute_MachineClassList(a.(*v1alpha1.MachineClassList), b.(*compute.MachineClassList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.MachineClassList)(nil), (*MachineClassList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_MachineClassList_To_v1alpha1_MachineClassList(a.(*compute.MachineClassList), b.(*MachineClassList), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.MachineClassList)(nil), (*v1alpha1.MachineClassList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_MachineClassList_To_v1alpha1_MachineClassList(a.(*compute.MachineClassList), b.(*v1alpha1.MachineClassList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*MachineCondition)(nil), (*compute.MachineCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineCondition_To_compute_MachineCondition(a.(*MachineCondition), b.(*compute.MachineCondition), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.MachineCondition)(nil), (*compute.MachineCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineCondition_To_compute_MachineCondition(a.(*v1alpha1.MachineCondition), b.(*compute.MachineCondition), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.MachineCondition)(nil), (*MachineCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_MachineCondition_To_v1alpha1_MachineCondition(a.(*compute.MachineCondition), b.(*MachineCondition), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.MachineCondition)(nil), (*v1alpha1.MachineCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_MachineCondition_To_v1alpha1_MachineCondition(a.(*compute.MachineCondition), b.(*v1alpha1.MachineCondition), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*MachineExecOptions)(nil), (*compute.MachineExecOptions)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineExecOptions_To_compute_MachineExecOptions(a.(*MachineExecOptions), b.(*compute.MachineExecOptions), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.MachineExecOptions)(nil), (*compute.MachineExecOptions)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineExecOptions_To_compute_MachineExecOptions(a.(*v1alpha1.MachineExecOptions), b.(*compute.MachineExecOptions), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.MachineExecOptions)(nil), (*MachineExecOptions)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_MachineExecOptions_To_v1alpha1_MachineExecOptions(a.(*compute.MachineExecOptions), b.(*MachineExecOptions), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.MachineExecOptions)(nil), (*v1alpha1.MachineExecOptions)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_MachineExecOptions_To_v1alpha1_MachineExecOptions(a.(*compute.MachineExecOptions), b.(*v1alpha1.MachineExecOptions), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*MachineList)(nil), (*compute.MachineList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineList_To_compute_MachineList(a.(*MachineList), b.(*compute.MachineList), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.MachineList)(nil), (*compute.MachineList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineList_To_compute_MachineList(a.(*v1alpha1.MachineList), b.(*compute.MachineList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.MachineList)(nil), (*MachineList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_MachineList_To_v1alpha1_MachineList(a.(*compute.MachineList), b.(*MachineList), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.MachineList)(nil), (*v1alpha1.MachineList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_MachineList_To_v1alpha1_MachineList(a.(*compute.MachineList), b.(*v1alpha1.MachineList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*MachinePool)(nil), (*compute.MachinePool)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachinePool_To_compute_MachinePool(a.(*MachinePool), b.(*compute.MachinePool), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.MachinePool)(nil), (*compute.MachinePool)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachinePool_To_compute_MachinePool(a.(*v1alpha1.MachinePool), b.(*compute.MachinePool), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.MachinePool)(nil), (*MachinePool)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_MachinePool_To_v1alpha1_MachinePool(a.(*compute.MachinePool), b.(*MachinePool), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.MachinePool)(nil), (*v1alpha1.MachinePool)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_MachinePool_To_v1alpha1_MachinePool(a.(*compute.MachinePool), b.(*v1alpha1.MachinePool), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*MachinePoolAddress)(nil), (*compute.MachinePoolAddress)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachinePoolAddress_To_compute_MachinePoolAddress(a.(*MachinePoolAddress), b.(*compute.MachinePoolAddress), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.MachinePoolAddress)(nil), (*compute.MachinePoolAddress)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachinePoolAddress_To_compute_MachinePoolAddress(a.(*v1alpha1.MachinePoolAddress), b.(*compute.MachinePoolAddress), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.MachinePoolAddress)(nil), (*MachinePoolAddress)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_MachinePoolAddress_To_v1alpha1_MachinePoolAddress(a.(*compute.MachinePoolAddress), b.(*MachinePoolAddress), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.MachinePoolAddress)(nil), (*v1alpha1.MachinePoolAddress)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_MachinePoolAddress_To_v1alpha1_MachinePoolAddress(a.(*compute.MachinePoolAddress), b.(*v1alpha1.MachinePoolAddress), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*MachinePoolCondition)(nil), (*compute.MachinePoolCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachinePoolCondition_To_compute_MachinePoolCondition(a.(*MachinePoolCondition), b.(*compute.MachinePoolCondition), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.MachinePoolCondition)(nil), (*compute.MachinePoolCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachinePoolCondition_To_compute_MachinePoolCondition(a.(*v1alpha1.MachinePoolCondition), b.(*compute.MachinePoolCondition), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.MachinePoolCondition)(nil), (*MachinePoolCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_MachinePoolCondition_To_v1alpha1_MachinePoolCondition(a.(*compute.MachinePoolCondition), b.(*MachinePoolCondition), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.MachinePoolCondition)(nil), (*v1alpha1.MachinePoolCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_MachinePoolCondition_To_v1alpha1_MachinePoolCondition(a.(*compute.MachinePoolCondition), b.(*v1alpha1.MachinePoolCondition), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*MachinePoolDaemonEndpoints)(nil), (*compute.MachinePoolDaemonEndpoints)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachinePoolDaemonEndpoints_To_compute_MachinePoolDaemonEndpoints(a.(*MachinePoolDaemonEndpoints), b.(*compute.MachinePoolDaemonEndpoints), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.MachinePoolDaemonEndpoints)(nil), (*compute.MachinePoolDaemonEndpoints)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachinePoolDaemonEndpoints_To_compute_MachinePoolDaemonEndpoints(a.(*v1alpha1.MachinePoolDaemonEndpoints), b.(*compute.MachinePoolDaemonEndpoints), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.MachinePoolDaemonEndpoints)(nil), (*MachinePoolDaemonEndpoints)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_MachinePoolDaemonEndpoints_To_v1alpha1_MachinePoolDaemonEndpoints(a.(*compute.MachinePoolDaemonEndpoints), b.(*MachinePoolDaemonEndpoints), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.MachinePoolDaemonEndpoints)(nil), (*v1alpha1.MachinePoolDaemonEndpoints)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_MachinePoolDaemonEndpoints_To_v1alpha1_MachinePoolDaemonEndpoints(a.(*compute.MachinePoolDaemonEndpoints), b.(*v1alpha1.MachinePoolDaemonEndpoints), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*MachinePoolList)(nil), (*compute.MachinePoolList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachinePoolList_To_compute_MachinePoolList(a.(*MachinePoolList), b.(*compute.MachinePoolList), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.MachinePoolList)(nil), (*compute.MachinePoolList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachinePoolList_To_compute_MachinePoolList(a.(*v1alpha1.MachinePoolList), b.(*compute.MachinePoolList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.MachinePoolList)(nil), (*MachinePoolList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_MachinePoolList_To_v1alpha1_MachinePoolList(a.(*compute.MachinePoolList), b.(*MachinePoolList), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.MachinePoolList)(nil), (*v1alpha1.MachinePoolList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_MachinePoolList_To_v1alpha1_MachinePoolList(a.(*compute.MachinePoolList), b.(*v1alpha1.MachinePoolList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*MachinePoolSpec)(nil), (*compute.MachinePoolSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachinePoolSpec_To_compute_MachinePoolSpec(a.(*MachinePoolSpec), b.(*compute.MachinePoolSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.MachinePoolSpec)(nil), (*compute.MachinePoolSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachinePoolSpec_To_compute_MachinePoolSpec(a.(*v1alpha1.MachinePoolSpec), b.(*compute.MachinePoolSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.MachinePoolSpec)(nil), (*MachinePoolSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_MachinePoolSpec_To_v1alpha1_MachinePoolSpec(a.(*compute.MachinePoolSpec), b.(*MachinePoolSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.MachinePoolSpec)(nil), (*v1alpha1.MachinePoolSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_MachinePoolSpec_To_v1alpha1_MachinePoolSpec(a.(*compute.MachinePoolSpec), b.(*v1alpha1.MachinePoolSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*MachinePoolStatus)(nil), (*compute.MachinePoolStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachinePoolStatus_To_compute_MachinePoolStatus(a.(*MachinePoolStatus), b.(*compute.MachinePoolStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.MachinePoolStatus)(nil), (*compute.MachinePoolStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachinePoolStatus_To_compute_MachinePoolStatus(a.(*v1alpha1.MachinePoolStatus), b.(*compute.MachinePoolStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.MachinePoolStatus)(nil), (*MachinePoolStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_MachinePoolStatus_To_v1alpha1_MachinePoolStatus(a.(*compute.MachinePoolStatus), b.(*MachinePoolStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.MachinePoolStatus)(nil), (*v1alpha1.MachinePoolStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_MachinePoolStatus_To_v1alpha1_MachinePoolStatus(a.(*compute.MachinePoolStatus), b.(*v1alpha1.MachinePoolStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*MachineSpec)(nil), (*compute.MachineSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineSpec_To_compute_MachineSpec(a.(*MachineSpec), b.(*compute.MachineSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.MachineSpec)(nil), (*compute.MachineSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineSpec_To_compute_MachineSpec(a.(*v1alpha1.MachineSpec), b.(*compute.MachineSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.MachineSpec)(nil), (*MachineSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_MachineSpec_To_v1alpha1_MachineSpec(a.(*compute.MachineSpec), b.(*MachineSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.MachineSpec)(nil), (*v1alpha1.MachineSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_MachineSpec_To_v1alpha1_MachineSpec(a.(*compute.MachineSpec), b.(*v1alpha1.MachineSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*MachineStatus)(nil), (*compute.MachineStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_MachineStatus_To_compute_MachineStatus(a.(*MachineStatus), b.(*compute.MachineStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.MachineStatus)(nil), (*compute.MachineStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_MachineStatus_To_compute_MachineStatus(a.(*v1alpha1.MachineStatus), b.(*compute.MachineStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.MachineStatus)(nil), (*MachineStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_MachineStatus_To_v1alpha1_MachineStatus(a.(*compute.MachineStatus), b.(*MachineStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.MachineStatus)(nil), (*v1alpha1.MachineStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_MachineStatus_To_v1alpha1_MachineStatus(a.(*compute.MachineStatus), b.(*v1alpha1.MachineStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NetworkInterface)(nil), (*compute.NetworkInterface)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NetworkInterface_To_compute_NetworkInterface(a.(*NetworkInterface), b.(*compute.NetworkInterface), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NetworkInterface)(nil), (*compute.NetworkInterface)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NetworkInterface_To_compute_NetworkInterface(a.(*v1alpha1.NetworkInterface), b.(*compute.NetworkInterface), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.NetworkInterface)(nil), (*NetworkInterface)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_NetworkInterface_To_v1alpha1_NetworkInterface(a.(*compute.NetworkInterface), b.(*NetworkInterface), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.NetworkInterface)(nil), (*v1alpha1.NetworkInterface)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_NetworkInterface_To_v1alpha1_NetworkInterface(a.(*compute.NetworkInterface), b.(*v1alpha1.NetworkInterface), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NetworkInterfaceSource)(nil), (*compute.NetworkInterfaceSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NetworkInterfaceSource_To_compute_NetworkInterfaceSource(a.(*NetworkInterfaceSource), b.(*compute.NetworkInterfaceSource), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NetworkInterfaceSource)(nil), (*compute.NetworkInterfaceSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NetworkInterfaceSource_To_compute_NetworkInterfaceSource(a.(*v1alpha1.NetworkInterfaceSource), b.(*compute.NetworkInterfaceSource), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.NetworkInterfaceSource)(nil), (*NetworkInterfaceSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_NetworkInterfaceSource_To_v1alpha1_NetworkInterfaceSource(a.(*compute.NetworkInterfaceSource), b.(*NetworkInterfaceSource), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.NetworkInterfaceSource)(nil), (*v1alpha1.NetworkInterfaceSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_NetworkInterfaceSource_To_v1alpha1_NetworkInterfaceSource(a.(*compute.NetworkInterfaceSource), b.(*v1alpha1.NetworkInterfaceSource), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NetworkInterfaceStatus)(nil), (*compute.NetworkInterfaceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NetworkInterfaceStatus_To_compute_NetworkInterfaceStatus(a.(*NetworkInterfaceStatus), b.(*compute.NetworkInterfaceStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NetworkInterfaceStatus)(nil), (*compute.NetworkInterfaceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NetworkInterfaceStatus_To_compute_NetworkInterfaceStatus(a.(*v1alpha1.NetworkInterfaceStatus), b.(*compute.NetworkInterfaceStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.NetworkInterfaceStatus)(nil), (*NetworkInterfaceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_NetworkInterfaceStatus_To_v1alpha1_NetworkInterfaceStatus(a.(*compute.NetworkInterfaceStatus), b.(*NetworkInterfaceStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.NetworkInterfaceStatus)(nil), (*v1alpha1.NetworkInterfaceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_NetworkInterfaceStatus_To_v1alpha1_NetworkInterfaceStatus(a.(*compute.NetworkInterfaceStatus), b.(*v1alpha1.NetworkInterfaceStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*ReferencedVolumeStatus)(nil), (*compute.ReferencedVolumeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_ReferencedVolumeStatus_To_compute_ReferencedVolumeStatus(a.(*ReferencedVolumeStatus), b.(*compute.ReferencedVolumeStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.ReferencedVolumeStatus)(nil), (*compute.ReferencedVolumeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_ReferencedVolumeStatus_To_compute_ReferencedVolumeStatus(a.(*v1alpha1.ReferencedVolumeStatus), b.(*compute.ReferencedVolumeStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.ReferencedVolumeStatus)(nil), (*ReferencedVolumeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_ReferencedVolumeStatus_To_v1alpha1_ReferencedVolumeStatus(a.(*compute.ReferencedVolumeStatus), b.(*ReferencedVolumeStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.ReferencedVolumeStatus)(nil), (*v1alpha1.ReferencedVolumeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_ReferencedVolumeStatus_To_v1alpha1_ReferencedVolumeStatus(a.(*compute.ReferencedVolumeStatus), b.(*v1alpha1.ReferencedVolumeStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*Volume)(nil), (*compute.Volume)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_Volume_To_compute_Volume(a.(*Volume), b.(*compute.Volume), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.Volume)(nil), (*compute.Volume)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_Volume_To_compute_Volume(a.(*v1alpha1.Volume), b.(*compute.Volume), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.Volume)(nil), (*Volume)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_Volume_To_v1alpha1_Volume(a.(*compute.Volume), b.(*Volume), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.Volume)(nil), (*v1alpha1.Volume)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_Volume_To_v1alpha1_Volume(a.(*compute.Volume), b.(*v1alpha1.Volume), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VolumeSource)(nil), (*compute.VolumeSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VolumeSource_To_compute_VolumeSource(a.(*VolumeSource), b.(*compute.VolumeSource), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VolumeSource)(nil), (*compute.VolumeSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VolumeSource_To_compute_VolumeSource(a.(*v1alpha1.VolumeSource), b.(*compute.VolumeSource), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.VolumeSource)(nil), (*VolumeSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_VolumeSource_To_v1alpha1_VolumeSource(a.(*compute.VolumeSource), b.(*VolumeSource), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.VolumeSource)(nil), (*v1alpha1.VolumeSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_VolumeSource_To_v1alpha1_VolumeSource(a.(*compute.VolumeSource), b.(*v1alpha1.VolumeSource), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VolumeSourceStatus)(nil), (*compute.VolumeSourceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VolumeSourceStatus_To_compute_VolumeSourceStatus(a.(*VolumeSourceStatus), b.(*compute.VolumeSourceStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VolumeSourceStatus)(nil), (*compute.VolumeSourceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VolumeSourceStatus_To_compute_VolumeSourceStatus(a.(*v1alpha1.VolumeSourceStatus), b.(*compute.VolumeSourceStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.VolumeSourceStatus)(nil), (*VolumeSourceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_VolumeSourceStatus_To_v1alpha1_VolumeSourceStatus(a.(*compute.VolumeSourceStatus), b.(*VolumeSourceStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.VolumeSourceStatus)(nil), (*v1alpha1.VolumeSourceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_VolumeSourceStatus_To_v1alpha1_VolumeSourceStatus(a.(*compute.VolumeSourceStatus), b.(*v1alpha1.VolumeSourceStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VolumeStatus)(nil), (*compute.VolumeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VolumeStatus_To_compute_VolumeStatus(a.(*VolumeStatus), b.(*compute.VolumeStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VolumeStatus)(nil), (*compute.VolumeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VolumeStatus_To_compute_VolumeStatus(a.(*v1alpha1.VolumeStatus), b.(*compute.VolumeStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*compute.VolumeStatus)(nil), (*VolumeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_compute_VolumeStatus_To_v1alpha1_VolumeStatus(a.(*compute.VolumeStatus), b.(*VolumeStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*compute.VolumeStatus)(nil), (*v1alpha1.VolumeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_compute_VolumeStatus_To_v1alpha1_VolumeStatus(a.(*compute.VolumeStatus), b.(*v1alpha1.VolumeStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*MachineExecOptions)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_url_Values_To_v1alpha1_MachineExecOptions(a.(*url.Values), b.(*MachineExecOptions), scope)
+ if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*v1alpha1.MachineExecOptions)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_url_Values_To_v1alpha1_MachineExecOptions(a.(*url.Values), b.(*v1alpha1.MachineExecOptions), scope)
}); err != nil {
return err
}
return nil
}
-func autoConvert_v1alpha1_DaemonEndpoint_To_compute_DaemonEndpoint(in *DaemonEndpoint, out *compute.DaemonEndpoint, s conversion.Scope) error {
+func autoConvert_v1alpha1_DaemonEndpoint_To_compute_DaemonEndpoint(in *v1alpha1.DaemonEndpoint, out *compute.DaemonEndpoint, s conversion.Scope) error {
out.Port = in.Port
return nil
}
// Convert_v1alpha1_DaemonEndpoint_To_compute_DaemonEndpoint is an autogenerated conversion function.
-func Convert_v1alpha1_DaemonEndpoint_To_compute_DaemonEndpoint(in *DaemonEndpoint, out *compute.DaemonEndpoint, s conversion.Scope) error {
+func Convert_v1alpha1_DaemonEndpoint_To_compute_DaemonEndpoint(in *v1alpha1.DaemonEndpoint, out *compute.DaemonEndpoint, s conversion.Scope) error {
return autoConvert_v1alpha1_DaemonEndpoint_To_compute_DaemonEndpoint(in, out, s)
}
-func autoConvert_compute_DaemonEndpoint_To_v1alpha1_DaemonEndpoint(in *compute.DaemonEndpoint, out *DaemonEndpoint, s conversion.Scope) error {
+func autoConvert_compute_DaemonEndpoint_To_v1alpha1_DaemonEndpoint(in *compute.DaemonEndpoint, out *v1alpha1.DaemonEndpoint, s conversion.Scope) error {
out.Port = in.Port
return nil
}
// Convert_compute_DaemonEndpoint_To_v1alpha1_DaemonEndpoint is an autogenerated conversion function.
-func Convert_compute_DaemonEndpoint_To_v1alpha1_DaemonEndpoint(in *compute.DaemonEndpoint, out *DaemonEndpoint, s conversion.Scope) error {
+func Convert_compute_DaemonEndpoint_To_v1alpha1_DaemonEndpoint(in *compute.DaemonEndpoint, out *v1alpha1.DaemonEndpoint, s conversion.Scope) error {
return autoConvert_compute_DaemonEndpoint_To_v1alpha1_DaemonEndpoint(in, out, s)
}
-func autoConvert_v1alpha1_EFIVar_To_compute_EFIVar(in *EFIVar, out *compute.EFIVar, s conversion.Scope) error {
+func autoConvert_v1alpha1_EFIVar_To_compute_EFIVar(in *v1alpha1.EFIVar, out *compute.EFIVar, s conversion.Scope) error {
out.Name = in.Name
out.UUID = in.UUID
out.Value = in.Value
@@ -370,11 +371,11 @@ func autoConvert_v1alpha1_EFIVar_To_compute_EFIVar(in *EFIVar, out *compute.EFIV
}
// Convert_v1alpha1_EFIVar_To_compute_EFIVar is an autogenerated conversion function.
-func Convert_v1alpha1_EFIVar_To_compute_EFIVar(in *EFIVar, out *compute.EFIVar, s conversion.Scope) error {
+func Convert_v1alpha1_EFIVar_To_compute_EFIVar(in *v1alpha1.EFIVar, out *compute.EFIVar, s conversion.Scope) error {
return autoConvert_v1alpha1_EFIVar_To_compute_EFIVar(in, out, s)
}
-func autoConvert_compute_EFIVar_To_v1alpha1_EFIVar(in *compute.EFIVar, out *EFIVar, s conversion.Scope) error {
+func autoConvert_compute_EFIVar_To_v1alpha1_EFIVar(in *compute.EFIVar, out *v1alpha1.EFIVar, s conversion.Scope) error {
out.Name = in.Name
out.UUID = in.UUID
out.Value = in.Value
@@ -382,91 +383,91 @@ func autoConvert_compute_EFIVar_To_v1alpha1_EFIVar(in *compute.EFIVar, out *EFIV
}
// Convert_compute_EFIVar_To_v1alpha1_EFIVar is an autogenerated conversion function.
-func Convert_compute_EFIVar_To_v1alpha1_EFIVar(in *compute.EFIVar, out *EFIVar, s conversion.Scope) error {
+func Convert_compute_EFIVar_To_v1alpha1_EFIVar(in *compute.EFIVar, out *v1alpha1.EFIVar, s conversion.Scope) error {
return autoConvert_compute_EFIVar_To_v1alpha1_EFIVar(in, out, s)
}
-func autoConvert_v1alpha1_EmptyDiskVolumeSource_To_compute_EmptyDiskVolumeSource(in *EmptyDiskVolumeSource, out *compute.EmptyDiskVolumeSource, s conversion.Scope) error {
+func autoConvert_v1alpha1_EmptyDiskVolumeSource_To_compute_EmptyDiskVolumeSource(in *v1alpha1.EmptyDiskVolumeSource, out *compute.EmptyDiskVolumeSource, s conversion.Scope) error {
out.SizeLimit = (*resource.Quantity)(unsafe.Pointer(in.SizeLimit))
return nil
}
// Convert_v1alpha1_EmptyDiskVolumeSource_To_compute_EmptyDiskVolumeSource is an autogenerated conversion function.
-func Convert_v1alpha1_EmptyDiskVolumeSource_To_compute_EmptyDiskVolumeSource(in *EmptyDiskVolumeSource, out *compute.EmptyDiskVolumeSource, s conversion.Scope) error {
+func Convert_v1alpha1_EmptyDiskVolumeSource_To_compute_EmptyDiskVolumeSource(in *v1alpha1.EmptyDiskVolumeSource, out *compute.EmptyDiskVolumeSource, s conversion.Scope) error {
return autoConvert_v1alpha1_EmptyDiskVolumeSource_To_compute_EmptyDiskVolumeSource(in, out, s)
}
-func autoConvert_compute_EmptyDiskVolumeSource_To_v1alpha1_EmptyDiskVolumeSource(in *compute.EmptyDiskVolumeSource, out *EmptyDiskVolumeSource, s conversion.Scope) error {
+func autoConvert_compute_EmptyDiskVolumeSource_To_v1alpha1_EmptyDiskVolumeSource(in *compute.EmptyDiskVolumeSource, out *v1alpha1.EmptyDiskVolumeSource, s conversion.Scope) error {
out.SizeLimit = (*resource.Quantity)(unsafe.Pointer(in.SizeLimit))
return nil
}
// Convert_compute_EmptyDiskVolumeSource_To_v1alpha1_EmptyDiskVolumeSource is an autogenerated conversion function.
-func Convert_compute_EmptyDiskVolumeSource_To_v1alpha1_EmptyDiskVolumeSource(in *compute.EmptyDiskVolumeSource, out *EmptyDiskVolumeSource, s conversion.Scope) error {
+func Convert_compute_EmptyDiskVolumeSource_To_v1alpha1_EmptyDiskVolumeSource(in *compute.EmptyDiskVolumeSource, out *v1alpha1.EmptyDiskVolumeSource, s conversion.Scope) error {
return autoConvert_compute_EmptyDiskVolumeSource_To_v1alpha1_EmptyDiskVolumeSource(in, out, s)
}
-func autoConvert_v1alpha1_EmptyDiskVolumeStatus_To_compute_EmptyDiskVolumeStatus(in *EmptyDiskVolumeStatus, out *compute.EmptyDiskVolumeStatus, s conversion.Scope) error {
+func autoConvert_v1alpha1_EmptyDiskVolumeStatus_To_compute_EmptyDiskVolumeStatus(in *v1alpha1.EmptyDiskVolumeStatus, out *compute.EmptyDiskVolumeStatus, s conversion.Scope) error {
out.Size = (*resource.Quantity)(unsafe.Pointer(in.Size))
return nil
}
// Convert_v1alpha1_EmptyDiskVolumeStatus_To_compute_EmptyDiskVolumeStatus is an autogenerated conversion function.
-func Convert_v1alpha1_EmptyDiskVolumeStatus_To_compute_EmptyDiskVolumeStatus(in *EmptyDiskVolumeStatus, out *compute.EmptyDiskVolumeStatus, s conversion.Scope) error {
+func Convert_v1alpha1_EmptyDiskVolumeStatus_To_compute_EmptyDiskVolumeStatus(in *v1alpha1.EmptyDiskVolumeStatus, out *compute.EmptyDiskVolumeStatus, s conversion.Scope) error {
return autoConvert_v1alpha1_EmptyDiskVolumeStatus_To_compute_EmptyDiskVolumeStatus(in, out, s)
}
-func autoConvert_compute_EmptyDiskVolumeStatus_To_v1alpha1_EmptyDiskVolumeStatus(in *compute.EmptyDiskVolumeStatus, out *EmptyDiskVolumeStatus, s conversion.Scope) error {
+func autoConvert_compute_EmptyDiskVolumeStatus_To_v1alpha1_EmptyDiskVolumeStatus(in *compute.EmptyDiskVolumeStatus, out *v1alpha1.EmptyDiskVolumeStatus, s conversion.Scope) error {
out.Size = (*resource.Quantity)(unsafe.Pointer(in.Size))
return nil
}
// Convert_compute_EmptyDiskVolumeStatus_To_v1alpha1_EmptyDiskVolumeStatus is an autogenerated conversion function.
-func Convert_compute_EmptyDiskVolumeStatus_To_v1alpha1_EmptyDiskVolumeStatus(in *compute.EmptyDiskVolumeStatus, out *EmptyDiskVolumeStatus, s conversion.Scope) error {
+func Convert_compute_EmptyDiskVolumeStatus_To_v1alpha1_EmptyDiskVolumeStatus(in *compute.EmptyDiskVolumeStatus, out *v1alpha1.EmptyDiskVolumeStatus, s conversion.Scope) error {
return autoConvert_compute_EmptyDiskVolumeStatus_To_v1alpha1_EmptyDiskVolumeStatus(in, out, s)
}
-func autoConvert_v1alpha1_EphemeralNetworkInterfaceSource_To_compute_EphemeralNetworkInterfaceSource(in *EphemeralNetworkInterfaceSource, out *compute.EphemeralNetworkInterfaceSource, s conversion.Scope) error {
+func autoConvert_v1alpha1_EphemeralNetworkInterfaceSource_To_compute_EphemeralNetworkInterfaceSource(in *v1alpha1.EphemeralNetworkInterfaceSource, out *compute.EphemeralNetworkInterfaceSource, s conversion.Scope) error {
out.NetworkInterfaceTemplate = (*networking.NetworkInterfaceTemplateSpec)(unsafe.Pointer(in.NetworkInterfaceTemplate))
return nil
}
// Convert_v1alpha1_EphemeralNetworkInterfaceSource_To_compute_EphemeralNetworkInterfaceSource is an autogenerated conversion function.
-func Convert_v1alpha1_EphemeralNetworkInterfaceSource_To_compute_EphemeralNetworkInterfaceSource(in *EphemeralNetworkInterfaceSource, out *compute.EphemeralNetworkInterfaceSource, s conversion.Scope) error {
+func Convert_v1alpha1_EphemeralNetworkInterfaceSource_To_compute_EphemeralNetworkInterfaceSource(in *v1alpha1.EphemeralNetworkInterfaceSource, out *compute.EphemeralNetworkInterfaceSource, s conversion.Scope) error {
return autoConvert_v1alpha1_EphemeralNetworkInterfaceSource_To_compute_EphemeralNetworkInterfaceSource(in, out, s)
}
-func autoConvert_compute_EphemeralNetworkInterfaceSource_To_v1alpha1_EphemeralNetworkInterfaceSource(in *compute.EphemeralNetworkInterfaceSource, out *EphemeralNetworkInterfaceSource, s conversion.Scope) error {
+func autoConvert_compute_EphemeralNetworkInterfaceSource_To_v1alpha1_EphemeralNetworkInterfaceSource(in *compute.EphemeralNetworkInterfaceSource, out *v1alpha1.EphemeralNetworkInterfaceSource, s conversion.Scope) error {
out.NetworkInterfaceTemplate = (*networkingv1alpha1.NetworkInterfaceTemplateSpec)(unsafe.Pointer(in.NetworkInterfaceTemplate))
return nil
}
// Convert_compute_EphemeralNetworkInterfaceSource_To_v1alpha1_EphemeralNetworkInterfaceSource is an autogenerated conversion function.
-func Convert_compute_EphemeralNetworkInterfaceSource_To_v1alpha1_EphemeralNetworkInterfaceSource(in *compute.EphemeralNetworkInterfaceSource, out *EphemeralNetworkInterfaceSource, s conversion.Scope) error {
+func Convert_compute_EphemeralNetworkInterfaceSource_To_v1alpha1_EphemeralNetworkInterfaceSource(in *compute.EphemeralNetworkInterfaceSource, out *v1alpha1.EphemeralNetworkInterfaceSource, s conversion.Scope) error {
return autoConvert_compute_EphemeralNetworkInterfaceSource_To_v1alpha1_EphemeralNetworkInterfaceSource(in, out, s)
}
-func autoConvert_v1alpha1_EphemeralVolumeSource_To_compute_EphemeralVolumeSource(in *EphemeralVolumeSource, out *compute.EphemeralVolumeSource, s conversion.Scope) error {
+func autoConvert_v1alpha1_EphemeralVolumeSource_To_compute_EphemeralVolumeSource(in *v1alpha1.EphemeralVolumeSource, out *compute.EphemeralVolumeSource, s conversion.Scope) error {
out.VolumeTemplate = (*storage.VolumeTemplateSpec)(unsafe.Pointer(in.VolumeTemplate))
return nil
}
// Convert_v1alpha1_EphemeralVolumeSource_To_compute_EphemeralVolumeSource is an autogenerated conversion function.
-func Convert_v1alpha1_EphemeralVolumeSource_To_compute_EphemeralVolumeSource(in *EphemeralVolumeSource, out *compute.EphemeralVolumeSource, s conversion.Scope) error {
+func Convert_v1alpha1_EphemeralVolumeSource_To_compute_EphemeralVolumeSource(in *v1alpha1.EphemeralVolumeSource, out *compute.EphemeralVolumeSource, s conversion.Scope) error {
return autoConvert_v1alpha1_EphemeralVolumeSource_To_compute_EphemeralVolumeSource(in, out, s)
}
-func autoConvert_compute_EphemeralVolumeSource_To_v1alpha1_EphemeralVolumeSource(in *compute.EphemeralVolumeSource, out *EphemeralVolumeSource, s conversion.Scope) error {
+func autoConvert_compute_EphemeralVolumeSource_To_v1alpha1_EphemeralVolumeSource(in *compute.EphemeralVolumeSource, out *v1alpha1.EphemeralVolumeSource, s conversion.Scope) error {
out.VolumeTemplate = (*storagev1alpha1.VolumeTemplateSpec)(unsafe.Pointer(in.VolumeTemplate))
return nil
}
// Convert_compute_EphemeralVolumeSource_To_v1alpha1_EphemeralVolumeSource is an autogenerated conversion function.
-func Convert_compute_EphemeralVolumeSource_To_v1alpha1_EphemeralVolumeSource(in *compute.EphemeralVolumeSource, out *EphemeralVolumeSource, s conversion.Scope) error {
+func Convert_compute_EphemeralVolumeSource_To_v1alpha1_EphemeralVolumeSource(in *compute.EphemeralVolumeSource, out *v1alpha1.EphemeralVolumeSource, s conversion.Scope) error {
return autoConvert_compute_EphemeralVolumeSource_To_v1alpha1_EphemeralVolumeSource(in, out, s)
}
-func autoConvert_v1alpha1_Machine_To_compute_Machine(in *Machine, out *compute.Machine, s conversion.Scope) error {
+func autoConvert_v1alpha1_Machine_To_compute_Machine(in *v1alpha1.Machine, out *compute.Machine, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha1_MachineSpec_To_compute_MachineSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -478,11 +479,11 @@ func autoConvert_v1alpha1_Machine_To_compute_Machine(in *Machine, out *compute.M
}
// Convert_v1alpha1_Machine_To_compute_Machine is an autogenerated conversion function.
-func Convert_v1alpha1_Machine_To_compute_Machine(in *Machine, out *compute.Machine, s conversion.Scope) error {
+func Convert_v1alpha1_Machine_To_compute_Machine(in *v1alpha1.Machine, out *compute.Machine, s conversion.Scope) error {
return autoConvert_v1alpha1_Machine_To_compute_Machine(in, out, s)
}
-func autoConvert_compute_Machine_To_v1alpha1_Machine(in *compute.Machine, out *Machine, s conversion.Scope) error {
+func autoConvert_compute_Machine_To_v1alpha1_Machine(in *compute.Machine, out *v1alpha1.Machine, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_compute_MachineSpec_To_v1alpha1_MachineSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -494,55 +495,55 @@ func autoConvert_compute_Machine_To_v1alpha1_Machine(in *compute.Machine, out *M
}
// Convert_compute_Machine_To_v1alpha1_Machine is an autogenerated conversion function.
-func Convert_compute_Machine_To_v1alpha1_Machine(in *compute.Machine, out *Machine, s conversion.Scope) error {
+func Convert_compute_Machine_To_v1alpha1_Machine(in *compute.Machine, out *v1alpha1.Machine, s conversion.Scope) error {
return autoConvert_compute_Machine_To_v1alpha1_Machine(in, out, s)
}
-func autoConvert_v1alpha1_MachineClass_To_compute_MachineClass(in *MachineClass, out *compute.MachineClass, s conversion.Scope) error {
+func autoConvert_v1alpha1_MachineClass_To_compute_MachineClass(in *v1alpha1.MachineClass, out *compute.MachineClass, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
out.Capabilities = *(*v1.ResourceList)(unsafe.Pointer(&in.Capabilities))
return nil
}
// Convert_v1alpha1_MachineClass_To_compute_MachineClass is an autogenerated conversion function.
-func Convert_v1alpha1_MachineClass_To_compute_MachineClass(in *MachineClass, out *compute.MachineClass, s conversion.Scope) error {
+func Convert_v1alpha1_MachineClass_To_compute_MachineClass(in *v1alpha1.MachineClass, out *compute.MachineClass, s conversion.Scope) error {
return autoConvert_v1alpha1_MachineClass_To_compute_MachineClass(in, out, s)
}
-func autoConvert_compute_MachineClass_To_v1alpha1_MachineClass(in *compute.MachineClass, out *MachineClass, s conversion.Scope) error {
+func autoConvert_compute_MachineClass_To_v1alpha1_MachineClass(in *compute.MachineClass, out *v1alpha1.MachineClass, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
out.Capabilities = *(*v1.ResourceList)(unsafe.Pointer(&in.Capabilities))
return nil
}
// Convert_compute_MachineClass_To_v1alpha1_MachineClass is an autogenerated conversion function.
-func Convert_compute_MachineClass_To_v1alpha1_MachineClass(in *compute.MachineClass, out *MachineClass, s conversion.Scope) error {
+func Convert_compute_MachineClass_To_v1alpha1_MachineClass(in *compute.MachineClass, out *v1alpha1.MachineClass, s conversion.Scope) error {
return autoConvert_compute_MachineClass_To_v1alpha1_MachineClass(in, out, s)
}
-func autoConvert_v1alpha1_MachineClassList_To_compute_MachineClassList(in *MachineClassList, out *compute.MachineClassList, s conversion.Scope) error {
+func autoConvert_v1alpha1_MachineClassList_To_compute_MachineClassList(in *v1alpha1.MachineClassList, out *compute.MachineClassList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]compute.MachineClass)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1alpha1_MachineClassList_To_compute_MachineClassList is an autogenerated conversion function.
-func Convert_v1alpha1_MachineClassList_To_compute_MachineClassList(in *MachineClassList, out *compute.MachineClassList, s conversion.Scope) error {
+func Convert_v1alpha1_MachineClassList_To_compute_MachineClassList(in *v1alpha1.MachineClassList, out *compute.MachineClassList, s conversion.Scope) error {
return autoConvert_v1alpha1_MachineClassList_To_compute_MachineClassList(in, out, s)
}
-func autoConvert_compute_MachineClassList_To_v1alpha1_MachineClassList(in *compute.MachineClassList, out *MachineClassList, s conversion.Scope) error {
+func autoConvert_compute_MachineClassList_To_v1alpha1_MachineClassList(in *compute.MachineClassList, out *v1alpha1.MachineClassList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
- out.Items = *(*[]MachineClass)(unsafe.Pointer(&in.Items))
+ out.Items = *(*[]v1alpha1.MachineClass)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_compute_MachineClassList_To_v1alpha1_MachineClassList is an autogenerated conversion function.
-func Convert_compute_MachineClassList_To_v1alpha1_MachineClassList(in *compute.MachineClassList, out *MachineClassList, s conversion.Scope) error {
+func Convert_compute_MachineClassList_To_v1alpha1_MachineClassList(in *compute.MachineClassList, out *v1alpha1.MachineClassList, s conversion.Scope) error {
return autoConvert_compute_MachineClassList_To_v1alpha1_MachineClassList(in, out, s)
}
-func autoConvert_v1alpha1_MachineCondition_To_compute_MachineCondition(in *MachineCondition, out *compute.MachineCondition, s conversion.Scope) error {
+func autoConvert_v1alpha1_MachineCondition_To_compute_MachineCondition(in *v1alpha1.MachineCondition, out *compute.MachineCondition, s conversion.Scope) error {
out.Type = compute.MachineConditionType(in.Type)
out.Status = v1.ConditionStatus(in.Status)
out.Reason = in.Reason
@@ -553,12 +554,12 @@ func autoConvert_v1alpha1_MachineCondition_To_compute_MachineCondition(in *Machi
}
// Convert_v1alpha1_MachineCondition_To_compute_MachineCondition is an autogenerated conversion function.
-func Convert_v1alpha1_MachineCondition_To_compute_MachineCondition(in *MachineCondition, out *compute.MachineCondition, s conversion.Scope) error {
+func Convert_v1alpha1_MachineCondition_To_compute_MachineCondition(in *v1alpha1.MachineCondition, out *compute.MachineCondition, s conversion.Scope) error {
return autoConvert_v1alpha1_MachineCondition_To_compute_MachineCondition(in, out, s)
}
-func autoConvert_compute_MachineCondition_To_v1alpha1_MachineCondition(in *compute.MachineCondition, out *MachineCondition, s conversion.Scope) error {
- out.Type = MachineConditionType(in.Type)
+func autoConvert_compute_MachineCondition_To_v1alpha1_MachineCondition(in *compute.MachineCondition, out *v1alpha1.MachineCondition, s conversion.Scope) error {
+ out.Type = v1alpha1.MachineConditionType(in.Type)
out.Status = v1.ConditionStatus(in.Status)
out.Reason = in.Reason
out.Message = in.Message
@@ -568,31 +569,31 @@ func autoConvert_compute_MachineCondition_To_v1alpha1_MachineCondition(in *compu
}
// Convert_compute_MachineCondition_To_v1alpha1_MachineCondition is an autogenerated conversion function.
-func Convert_compute_MachineCondition_To_v1alpha1_MachineCondition(in *compute.MachineCondition, out *MachineCondition, s conversion.Scope) error {
+func Convert_compute_MachineCondition_To_v1alpha1_MachineCondition(in *compute.MachineCondition, out *v1alpha1.MachineCondition, s conversion.Scope) error {
return autoConvert_compute_MachineCondition_To_v1alpha1_MachineCondition(in, out, s)
}
-func autoConvert_v1alpha1_MachineExecOptions_To_compute_MachineExecOptions(in *MachineExecOptions, out *compute.MachineExecOptions, s conversion.Scope) error {
+func autoConvert_v1alpha1_MachineExecOptions_To_compute_MachineExecOptions(in *v1alpha1.MachineExecOptions, out *compute.MachineExecOptions, s conversion.Scope) error {
out.InsecureSkipTLSVerifyBackend = in.InsecureSkipTLSVerifyBackend
return nil
}
// Convert_v1alpha1_MachineExecOptions_To_compute_MachineExecOptions is an autogenerated conversion function.
-func Convert_v1alpha1_MachineExecOptions_To_compute_MachineExecOptions(in *MachineExecOptions, out *compute.MachineExecOptions, s conversion.Scope) error {
+func Convert_v1alpha1_MachineExecOptions_To_compute_MachineExecOptions(in *v1alpha1.MachineExecOptions, out *compute.MachineExecOptions, s conversion.Scope) error {
return autoConvert_v1alpha1_MachineExecOptions_To_compute_MachineExecOptions(in, out, s)
}
-func autoConvert_compute_MachineExecOptions_To_v1alpha1_MachineExecOptions(in *compute.MachineExecOptions, out *MachineExecOptions, s conversion.Scope) error {
+func autoConvert_compute_MachineExecOptions_To_v1alpha1_MachineExecOptions(in *compute.MachineExecOptions, out *v1alpha1.MachineExecOptions, s conversion.Scope) error {
out.InsecureSkipTLSVerifyBackend = in.InsecureSkipTLSVerifyBackend
return nil
}
// Convert_compute_MachineExecOptions_To_v1alpha1_MachineExecOptions is an autogenerated conversion function.
-func Convert_compute_MachineExecOptions_To_v1alpha1_MachineExecOptions(in *compute.MachineExecOptions, out *MachineExecOptions, s conversion.Scope) error {
+func Convert_compute_MachineExecOptions_To_v1alpha1_MachineExecOptions(in *compute.MachineExecOptions, out *v1alpha1.MachineExecOptions, s conversion.Scope) error {
return autoConvert_compute_MachineExecOptions_To_v1alpha1_MachineExecOptions(in, out, s)
}
-func autoConvert_url_Values_To_v1alpha1_MachineExecOptions(in *url.Values, out *MachineExecOptions, s conversion.Scope) error {
+func autoConvert_url_Values_To_v1alpha1_MachineExecOptions(in *url.Values, out *v1alpha1.MachineExecOptions, s conversion.Scope) error {
// WARNING: Field TypeMeta does not have json tag, skipping.
if values, ok := map[string][]string(*in)["insecureSkipTLSVerifyBackend"]; ok && len(values) > 0 {
@@ -606,33 +607,33 @@ func autoConvert_url_Values_To_v1alpha1_MachineExecOptions(in *url.Values, out *
}
// Convert_url_Values_To_v1alpha1_MachineExecOptions is an autogenerated conversion function.
-func Convert_url_Values_To_v1alpha1_MachineExecOptions(in *url.Values, out *MachineExecOptions, s conversion.Scope) error {
+func Convert_url_Values_To_v1alpha1_MachineExecOptions(in *url.Values, out *v1alpha1.MachineExecOptions, s conversion.Scope) error {
return autoConvert_url_Values_To_v1alpha1_MachineExecOptions(in, out, s)
}
-func autoConvert_v1alpha1_MachineList_To_compute_MachineList(in *MachineList, out *compute.MachineList, s conversion.Scope) error {
+func autoConvert_v1alpha1_MachineList_To_compute_MachineList(in *v1alpha1.MachineList, out *compute.MachineList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]compute.Machine)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1alpha1_MachineList_To_compute_MachineList is an autogenerated conversion function.
-func Convert_v1alpha1_MachineList_To_compute_MachineList(in *MachineList, out *compute.MachineList, s conversion.Scope) error {
+func Convert_v1alpha1_MachineList_To_compute_MachineList(in *v1alpha1.MachineList, out *compute.MachineList, s conversion.Scope) error {
return autoConvert_v1alpha1_MachineList_To_compute_MachineList(in, out, s)
}
-func autoConvert_compute_MachineList_To_v1alpha1_MachineList(in *compute.MachineList, out *MachineList, s conversion.Scope) error {
+func autoConvert_compute_MachineList_To_v1alpha1_MachineList(in *compute.MachineList, out *v1alpha1.MachineList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
- out.Items = *(*[]Machine)(unsafe.Pointer(&in.Items))
+ out.Items = *(*[]v1alpha1.Machine)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_compute_MachineList_To_v1alpha1_MachineList is an autogenerated conversion function.
-func Convert_compute_MachineList_To_v1alpha1_MachineList(in *compute.MachineList, out *MachineList, s conversion.Scope) error {
+func Convert_compute_MachineList_To_v1alpha1_MachineList(in *compute.MachineList, out *v1alpha1.MachineList, s conversion.Scope) error {
return autoConvert_compute_MachineList_To_v1alpha1_MachineList(in, out, s)
}
-func autoConvert_v1alpha1_MachinePool_To_compute_MachinePool(in *MachinePool, out *compute.MachinePool, s conversion.Scope) error {
+func autoConvert_v1alpha1_MachinePool_To_compute_MachinePool(in *v1alpha1.MachinePool, out *compute.MachinePool, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha1_MachinePoolSpec_To_compute_MachinePoolSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -644,11 +645,11 @@ func autoConvert_v1alpha1_MachinePool_To_compute_MachinePool(in *MachinePool, ou
}
// Convert_v1alpha1_MachinePool_To_compute_MachinePool is an autogenerated conversion function.
-func Convert_v1alpha1_MachinePool_To_compute_MachinePool(in *MachinePool, out *compute.MachinePool, s conversion.Scope) error {
+func Convert_v1alpha1_MachinePool_To_compute_MachinePool(in *v1alpha1.MachinePool, out *compute.MachinePool, s conversion.Scope) error {
return autoConvert_v1alpha1_MachinePool_To_compute_MachinePool(in, out, s)
}
-func autoConvert_compute_MachinePool_To_v1alpha1_MachinePool(in *compute.MachinePool, out *MachinePool, s conversion.Scope) error {
+func autoConvert_compute_MachinePool_To_v1alpha1_MachinePool(in *compute.MachinePool, out *v1alpha1.MachinePool, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_compute_MachinePoolSpec_To_v1alpha1_MachinePoolSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -660,33 +661,33 @@ func autoConvert_compute_MachinePool_To_v1alpha1_MachinePool(in *compute.Machine
}
// Convert_compute_MachinePool_To_v1alpha1_MachinePool is an autogenerated conversion function.
-func Convert_compute_MachinePool_To_v1alpha1_MachinePool(in *compute.MachinePool, out *MachinePool, s conversion.Scope) error {
+func Convert_compute_MachinePool_To_v1alpha1_MachinePool(in *compute.MachinePool, out *v1alpha1.MachinePool, s conversion.Scope) error {
return autoConvert_compute_MachinePool_To_v1alpha1_MachinePool(in, out, s)
}
-func autoConvert_v1alpha1_MachinePoolAddress_To_compute_MachinePoolAddress(in *MachinePoolAddress, out *compute.MachinePoolAddress, s conversion.Scope) error {
+func autoConvert_v1alpha1_MachinePoolAddress_To_compute_MachinePoolAddress(in *v1alpha1.MachinePoolAddress, out *compute.MachinePoolAddress, s conversion.Scope) error {
out.Type = compute.MachinePoolAddressType(in.Type)
out.Address = in.Address
return nil
}
// Convert_v1alpha1_MachinePoolAddress_To_compute_MachinePoolAddress is an autogenerated conversion function.
-func Convert_v1alpha1_MachinePoolAddress_To_compute_MachinePoolAddress(in *MachinePoolAddress, out *compute.MachinePoolAddress, s conversion.Scope) error {
+func Convert_v1alpha1_MachinePoolAddress_To_compute_MachinePoolAddress(in *v1alpha1.MachinePoolAddress, out *compute.MachinePoolAddress, s conversion.Scope) error {
return autoConvert_v1alpha1_MachinePoolAddress_To_compute_MachinePoolAddress(in, out, s)
}
-func autoConvert_compute_MachinePoolAddress_To_v1alpha1_MachinePoolAddress(in *compute.MachinePoolAddress, out *MachinePoolAddress, s conversion.Scope) error {
- out.Type = MachinePoolAddressType(in.Type)
+func autoConvert_compute_MachinePoolAddress_To_v1alpha1_MachinePoolAddress(in *compute.MachinePoolAddress, out *v1alpha1.MachinePoolAddress, s conversion.Scope) error {
+ out.Type = v1alpha1.MachinePoolAddressType(in.Type)
out.Address = in.Address
return nil
}
// Convert_compute_MachinePoolAddress_To_v1alpha1_MachinePoolAddress is an autogenerated conversion function.
-func Convert_compute_MachinePoolAddress_To_v1alpha1_MachinePoolAddress(in *compute.MachinePoolAddress, out *MachinePoolAddress, s conversion.Scope) error {
+func Convert_compute_MachinePoolAddress_To_v1alpha1_MachinePoolAddress(in *compute.MachinePoolAddress, out *v1alpha1.MachinePoolAddress, s conversion.Scope) error {
return autoConvert_compute_MachinePoolAddress_To_v1alpha1_MachinePoolAddress(in, out, s)
}
-func autoConvert_v1alpha1_MachinePoolCondition_To_compute_MachinePoolCondition(in *MachinePoolCondition, out *compute.MachinePoolCondition, s conversion.Scope) error {
+func autoConvert_v1alpha1_MachinePoolCondition_To_compute_MachinePoolCondition(in *v1alpha1.MachinePoolCondition, out *compute.MachinePoolCondition, s conversion.Scope) error {
out.Type = compute.MachinePoolConditionType(in.Type)
out.Status = v1.ConditionStatus(in.Status)
out.Reason = in.Reason
@@ -697,12 +698,12 @@ func autoConvert_v1alpha1_MachinePoolCondition_To_compute_MachinePoolCondition(i
}
// Convert_v1alpha1_MachinePoolCondition_To_compute_MachinePoolCondition is an autogenerated conversion function.
-func Convert_v1alpha1_MachinePoolCondition_To_compute_MachinePoolCondition(in *MachinePoolCondition, out *compute.MachinePoolCondition, s conversion.Scope) error {
+func Convert_v1alpha1_MachinePoolCondition_To_compute_MachinePoolCondition(in *v1alpha1.MachinePoolCondition, out *compute.MachinePoolCondition, s conversion.Scope) error {
return autoConvert_v1alpha1_MachinePoolCondition_To_compute_MachinePoolCondition(in, out, s)
}
-func autoConvert_compute_MachinePoolCondition_To_v1alpha1_MachinePoolCondition(in *compute.MachinePoolCondition, out *MachinePoolCondition, s conversion.Scope) error {
- out.Type = MachinePoolConditionType(in.Type)
+func autoConvert_compute_MachinePoolCondition_To_v1alpha1_MachinePoolCondition(in *compute.MachinePoolCondition, out *v1alpha1.MachinePoolCondition, s conversion.Scope) error {
+ out.Type = v1alpha1.MachinePoolConditionType(in.Type)
out.Status = v1.ConditionStatus(in.Status)
out.Reason = in.Reason
out.Message = in.Message
@@ -712,11 +713,11 @@ func autoConvert_compute_MachinePoolCondition_To_v1alpha1_MachinePoolCondition(i
}
// Convert_compute_MachinePoolCondition_To_v1alpha1_MachinePoolCondition is an autogenerated conversion function.
-func Convert_compute_MachinePoolCondition_To_v1alpha1_MachinePoolCondition(in *compute.MachinePoolCondition, out *MachinePoolCondition, s conversion.Scope) error {
+func Convert_compute_MachinePoolCondition_To_v1alpha1_MachinePoolCondition(in *compute.MachinePoolCondition, out *v1alpha1.MachinePoolCondition, s conversion.Scope) error {
return autoConvert_compute_MachinePoolCondition_To_v1alpha1_MachinePoolCondition(in, out, s)
}
-func autoConvert_v1alpha1_MachinePoolDaemonEndpoints_To_compute_MachinePoolDaemonEndpoints(in *MachinePoolDaemonEndpoints, out *compute.MachinePoolDaemonEndpoints, s conversion.Scope) error {
+func autoConvert_v1alpha1_MachinePoolDaemonEndpoints_To_compute_MachinePoolDaemonEndpoints(in *v1alpha1.MachinePoolDaemonEndpoints, out *compute.MachinePoolDaemonEndpoints, s conversion.Scope) error {
if err := Convert_v1alpha1_DaemonEndpoint_To_compute_DaemonEndpoint(&in.MachinepoolletEndpoint, &out.MachinepoolletEndpoint, s); err != nil {
return err
}
@@ -724,11 +725,11 @@ func autoConvert_v1alpha1_MachinePoolDaemonEndpoints_To_compute_MachinePoolDaemo
}
// Convert_v1alpha1_MachinePoolDaemonEndpoints_To_compute_MachinePoolDaemonEndpoints is an autogenerated conversion function.
-func Convert_v1alpha1_MachinePoolDaemonEndpoints_To_compute_MachinePoolDaemonEndpoints(in *MachinePoolDaemonEndpoints, out *compute.MachinePoolDaemonEndpoints, s conversion.Scope) error {
+func Convert_v1alpha1_MachinePoolDaemonEndpoints_To_compute_MachinePoolDaemonEndpoints(in *v1alpha1.MachinePoolDaemonEndpoints, out *compute.MachinePoolDaemonEndpoints, s conversion.Scope) error {
return autoConvert_v1alpha1_MachinePoolDaemonEndpoints_To_compute_MachinePoolDaemonEndpoints(in, out, s)
}
-func autoConvert_compute_MachinePoolDaemonEndpoints_To_v1alpha1_MachinePoolDaemonEndpoints(in *compute.MachinePoolDaemonEndpoints, out *MachinePoolDaemonEndpoints, s conversion.Scope) error {
+func autoConvert_compute_MachinePoolDaemonEndpoints_To_v1alpha1_MachinePoolDaemonEndpoints(in *compute.MachinePoolDaemonEndpoints, out *v1alpha1.MachinePoolDaemonEndpoints, s conversion.Scope) error {
if err := Convert_compute_DaemonEndpoint_To_v1alpha1_DaemonEndpoint(&in.MachinepoolletEndpoint, &out.MachinepoolletEndpoint, s); err != nil {
return err
}
@@ -736,55 +737,55 @@ func autoConvert_compute_MachinePoolDaemonEndpoints_To_v1alpha1_MachinePoolDaemo
}
// Convert_compute_MachinePoolDaemonEndpoints_To_v1alpha1_MachinePoolDaemonEndpoints is an autogenerated conversion function.
-func Convert_compute_MachinePoolDaemonEndpoints_To_v1alpha1_MachinePoolDaemonEndpoints(in *compute.MachinePoolDaemonEndpoints, out *MachinePoolDaemonEndpoints, s conversion.Scope) error {
+func Convert_compute_MachinePoolDaemonEndpoints_To_v1alpha1_MachinePoolDaemonEndpoints(in *compute.MachinePoolDaemonEndpoints, out *v1alpha1.MachinePoolDaemonEndpoints, s conversion.Scope) error {
return autoConvert_compute_MachinePoolDaemonEndpoints_To_v1alpha1_MachinePoolDaemonEndpoints(in, out, s)
}
-func autoConvert_v1alpha1_MachinePoolList_To_compute_MachinePoolList(in *MachinePoolList, out *compute.MachinePoolList, s conversion.Scope) error {
+func autoConvert_v1alpha1_MachinePoolList_To_compute_MachinePoolList(in *v1alpha1.MachinePoolList, out *compute.MachinePoolList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]compute.MachinePool)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1alpha1_MachinePoolList_To_compute_MachinePoolList is an autogenerated conversion function.
-func Convert_v1alpha1_MachinePoolList_To_compute_MachinePoolList(in *MachinePoolList, out *compute.MachinePoolList, s conversion.Scope) error {
+func Convert_v1alpha1_MachinePoolList_To_compute_MachinePoolList(in *v1alpha1.MachinePoolList, out *compute.MachinePoolList, s conversion.Scope) error {
return autoConvert_v1alpha1_MachinePoolList_To_compute_MachinePoolList(in, out, s)
}
-func autoConvert_compute_MachinePoolList_To_v1alpha1_MachinePoolList(in *compute.MachinePoolList, out *MachinePoolList, s conversion.Scope) error {
+func autoConvert_compute_MachinePoolList_To_v1alpha1_MachinePoolList(in *compute.MachinePoolList, out *v1alpha1.MachinePoolList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
- out.Items = *(*[]MachinePool)(unsafe.Pointer(&in.Items))
+ out.Items = *(*[]v1alpha1.MachinePool)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_compute_MachinePoolList_To_v1alpha1_MachinePoolList is an autogenerated conversion function.
-func Convert_compute_MachinePoolList_To_v1alpha1_MachinePoolList(in *compute.MachinePoolList, out *MachinePoolList, s conversion.Scope) error {
+func Convert_compute_MachinePoolList_To_v1alpha1_MachinePoolList(in *compute.MachinePoolList, out *v1alpha1.MachinePoolList, s conversion.Scope) error {
return autoConvert_compute_MachinePoolList_To_v1alpha1_MachinePoolList(in, out, s)
}
-func autoConvert_v1alpha1_MachinePoolSpec_To_compute_MachinePoolSpec(in *MachinePoolSpec, out *compute.MachinePoolSpec, s conversion.Scope) error {
+func autoConvert_v1alpha1_MachinePoolSpec_To_compute_MachinePoolSpec(in *v1alpha1.MachinePoolSpec, out *compute.MachinePoolSpec, s conversion.Scope) error {
out.ProviderID = in.ProviderID
out.Taints = *(*[]commonv1alpha1.Taint)(unsafe.Pointer(&in.Taints))
return nil
}
// Convert_v1alpha1_MachinePoolSpec_To_compute_MachinePoolSpec is an autogenerated conversion function.
-func Convert_v1alpha1_MachinePoolSpec_To_compute_MachinePoolSpec(in *MachinePoolSpec, out *compute.MachinePoolSpec, s conversion.Scope) error {
+func Convert_v1alpha1_MachinePoolSpec_To_compute_MachinePoolSpec(in *v1alpha1.MachinePoolSpec, out *compute.MachinePoolSpec, s conversion.Scope) error {
return autoConvert_v1alpha1_MachinePoolSpec_To_compute_MachinePoolSpec(in, out, s)
}
-func autoConvert_compute_MachinePoolSpec_To_v1alpha1_MachinePoolSpec(in *compute.MachinePoolSpec, out *MachinePoolSpec, s conversion.Scope) error {
+func autoConvert_compute_MachinePoolSpec_To_v1alpha1_MachinePoolSpec(in *compute.MachinePoolSpec, out *v1alpha1.MachinePoolSpec, s conversion.Scope) error {
out.ProviderID = in.ProviderID
out.Taints = *(*[]commonv1alpha1.Taint)(unsafe.Pointer(&in.Taints))
return nil
}
// Convert_compute_MachinePoolSpec_To_v1alpha1_MachinePoolSpec is an autogenerated conversion function.
-func Convert_compute_MachinePoolSpec_To_v1alpha1_MachinePoolSpec(in *compute.MachinePoolSpec, out *MachinePoolSpec, s conversion.Scope) error {
+func Convert_compute_MachinePoolSpec_To_v1alpha1_MachinePoolSpec(in *compute.MachinePoolSpec, out *v1alpha1.MachinePoolSpec, s conversion.Scope) error {
return autoConvert_compute_MachinePoolSpec_To_v1alpha1_MachinePoolSpec(in, out, s)
}
-func autoConvert_v1alpha1_MachinePoolStatus_To_compute_MachinePoolStatus(in *MachinePoolStatus, out *compute.MachinePoolStatus, s conversion.Scope) error {
+func autoConvert_v1alpha1_MachinePoolStatus_To_compute_MachinePoolStatus(in *v1alpha1.MachinePoolStatus, out *compute.MachinePoolStatus, s conversion.Scope) error {
out.State = compute.MachinePoolState(in.State)
out.Conditions = *(*[]compute.MachinePoolCondition)(unsafe.Pointer(&in.Conditions))
out.AvailableMachineClasses = *(*[]v1.LocalObjectReference)(unsafe.Pointer(&in.AvailableMachineClasses))
@@ -796,15 +797,15 @@ func autoConvert_v1alpha1_MachinePoolStatus_To_compute_MachinePoolStatus(in *Mac
}
// Convert_v1alpha1_MachinePoolStatus_To_compute_MachinePoolStatus is an autogenerated conversion function.
-func Convert_v1alpha1_MachinePoolStatus_To_compute_MachinePoolStatus(in *MachinePoolStatus, out *compute.MachinePoolStatus, s conversion.Scope) error {
+func Convert_v1alpha1_MachinePoolStatus_To_compute_MachinePoolStatus(in *v1alpha1.MachinePoolStatus, out *compute.MachinePoolStatus, s conversion.Scope) error {
return autoConvert_v1alpha1_MachinePoolStatus_To_compute_MachinePoolStatus(in, out, s)
}
-func autoConvert_compute_MachinePoolStatus_To_v1alpha1_MachinePoolStatus(in *compute.MachinePoolStatus, out *MachinePoolStatus, s conversion.Scope) error {
- out.State = MachinePoolState(in.State)
- out.Conditions = *(*[]MachinePoolCondition)(unsafe.Pointer(&in.Conditions))
+func autoConvert_compute_MachinePoolStatus_To_v1alpha1_MachinePoolStatus(in *compute.MachinePoolStatus, out *v1alpha1.MachinePoolStatus, s conversion.Scope) error {
+ out.State = v1alpha1.MachinePoolState(in.State)
+ out.Conditions = *(*[]v1alpha1.MachinePoolCondition)(unsafe.Pointer(&in.Conditions))
out.AvailableMachineClasses = *(*[]v1.LocalObjectReference)(unsafe.Pointer(&in.AvailableMachineClasses))
- out.Addresses = *(*[]MachinePoolAddress)(unsafe.Pointer(&in.Addresses))
+ out.Addresses = *(*[]v1alpha1.MachinePoolAddress)(unsafe.Pointer(&in.Addresses))
if err := Convert_compute_MachinePoolDaemonEndpoints_To_v1alpha1_MachinePoolDaemonEndpoints(&in.DaemonEndpoints, &out.DaemonEndpoints, s); err != nil {
return err
}
@@ -812,11 +813,11 @@ func autoConvert_compute_MachinePoolStatus_To_v1alpha1_MachinePoolStatus(in *com
}
// Convert_compute_MachinePoolStatus_To_v1alpha1_MachinePoolStatus is an autogenerated conversion function.
-func Convert_compute_MachinePoolStatus_To_v1alpha1_MachinePoolStatus(in *compute.MachinePoolStatus, out *MachinePoolStatus, s conversion.Scope) error {
+func Convert_compute_MachinePoolStatus_To_v1alpha1_MachinePoolStatus(in *compute.MachinePoolStatus, out *v1alpha1.MachinePoolStatus, s conversion.Scope) error {
return autoConvert_compute_MachinePoolStatus_To_v1alpha1_MachinePoolStatus(in, out, s)
}
-func autoConvert_v1alpha1_MachineSpec_To_compute_MachineSpec(in *MachineSpec, out *compute.MachineSpec, s conversion.Scope) error {
+func autoConvert_v1alpha1_MachineSpec_To_compute_MachineSpec(in *v1alpha1.MachineSpec, out *compute.MachineSpec, s conversion.Scope) error {
out.MachineClassRef = in.MachineClassRef
out.MachinePoolSelector = *(*map[string]string)(unsafe.Pointer(&in.MachinePoolSelector))
out.MachinePoolRef = (*v1.LocalObjectReference)(unsafe.Pointer(in.MachinePoolRef))
@@ -831,30 +832,30 @@ func autoConvert_v1alpha1_MachineSpec_To_compute_MachineSpec(in *MachineSpec, ou
}
// Convert_v1alpha1_MachineSpec_To_compute_MachineSpec is an autogenerated conversion function.
-func Convert_v1alpha1_MachineSpec_To_compute_MachineSpec(in *MachineSpec, out *compute.MachineSpec, s conversion.Scope) error {
+func Convert_v1alpha1_MachineSpec_To_compute_MachineSpec(in *v1alpha1.MachineSpec, out *compute.MachineSpec, s conversion.Scope) error {
return autoConvert_v1alpha1_MachineSpec_To_compute_MachineSpec(in, out, s)
}
-func autoConvert_compute_MachineSpec_To_v1alpha1_MachineSpec(in *compute.MachineSpec, out *MachineSpec, s conversion.Scope) error {
+func autoConvert_compute_MachineSpec_To_v1alpha1_MachineSpec(in *compute.MachineSpec, out *v1alpha1.MachineSpec, s conversion.Scope) error {
out.MachineClassRef = in.MachineClassRef
out.MachinePoolSelector = *(*map[string]string)(unsafe.Pointer(&in.MachinePoolSelector))
out.MachinePoolRef = (*v1.LocalObjectReference)(unsafe.Pointer(in.MachinePoolRef))
out.Image = in.Image
out.ImagePullSecretRef = (*v1.LocalObjectReference)(unsafe.Pointer(in.ImagePullSecretRef))
- out.NetworkInterfaces = *(*[]NetworkInterface)(unsafe.Pointer(&in.NetworkInterfaces))
- out.Volumes = *(*[]Volume)(unsafe.Pointer(&in.Volumes))
+ out.NetworkInterfaces = *(*[]v1alpha1.NetworkInterface)(unsafe.Pointer(&in.NetworkInterfaces))
+ out.Volumes = *(*[]v1alpha1.Volume)(unsafe.Pointer(&in.Volumes))
out.IgnitionRef = (*commonv1alpha1.SecretKeySelector)(unsafe.Pointer(in.IgnitionRef))
- out.EFIVars = *(*[]EFIVar)(unsafe.Pointer(&in.EFIVars))
+ out.EFIVars = *(*[]v1alpha1.EFIVar)(unsafe.Pointer(&in.EFIVars))
out.Tolerations = *(*[]commonv1alpha1.Toleration)(unsafe.Pointer(&in.Tolerations))
return nil
}
// Convert_compute_MachineSpec_To_v1alpha1_MachineSpec is an autogenerated conversion function.
-func Convert_compute_MachineSpec_To_v1alpha1_MachineSpec(in *compute.MachineSpec, out *MachineSpec, s conversion.Scope) error {
+func Convert_compute_MachineSpec_To_v1alpha1_MachineSpec(in *compute.MachineSpec, out *v1alpha1.MachineSpec, s conversion.Scope) error {
return autoConvert_compute_MachineSpec_To_v1alpha1_MachineSpec(in, out, s)
}
-func autoConvert_v1alpha1_MachineStatus_To_compute_MachineStatus(in *MachineStatus, out *compute.MachineStatus, s conversion.Scope) error {
+func autoConvert_v1alpha1_MachineStatus_To_compute_MachineStatus(in *v1alpha1.MachineStatus, out *compute.MachineStatus, s conversion.Scope) error {
out.State = compute.MachineState(in.State)
out.Conditions = *(*[]compute.MachineCondition)(unsafe.Pointer(&in.Conditions))
out.NetworkInterfaces = *(*[]compute.NetworkInterfaceStatus)(unsafe.Pointer(&in.NetworkInterfaces))
@@ -863,24 +864,24 @@ func autoConvert_v1alpha1_MachineStatus_To_compute_MachineStatus(in *MachineStat
}
// Convert_v1alpha1_MachineStatus_To_compute_MachineStatus is an autogenerated conversion function.
-func Convert_v1alpha1_MachineStatus_To_compute_MachineStatus(in *MachineStatus, out *compute.MachineStatus, s conversion.Scope) error {
+func Convert_v1alpha1_MachineStatus_To_compute_MachineStatus(in *v1alpha1.MachineStatus, out *compute.MachineStatus, s conversion.Scope) error {
return autoConvert_v1alpha1_MachineStatus_To_compute_MachineStatus(in, out, s)
}
-func autoConvert_compute_MachineStatus_To_v1alpha1_MachineStatus(in *compute.MachineStatus, out *MachineStatus, s conversion.Scope) error {
- out.State = MachineState(in.State)
- out.Conditions = *(*[]MachineCondition)(unsafe.Pointer(&in.Conditions))
- out.NetworkInterfaces = *(*[]NetworkInterfaceStatus)(unsafe.Pointer(&in.NetworkInterfaces))
- out.Volumes = *(*[]VolumeStatus)(unsafe.Pointer(&in.Volumes))
+func autoConvert_compute_MachineStatus_To_v1alpha1_MachineStatus(in *compute.MachineStatus, out *v1alpha1.MachineStatus, s conversion.Scope) error {
+ out.State = v1alpha1.MachineState(in.State)
+ out.Conditions = *(*[]v1alpha1.MachineCondition)(unsafe.Pointer(&in.Conditions))
+ out.NetworkInterfaces = *(*[]v1alpha1.NetworkInterfaceStatus)(unsafe.Pointer(&in.NetworkInterfaces))
+ out.Volumes = *(*[]v1alpha1.VolumeStatus)(unsafe.Pointer(&in.Volumes))
return nil
}
// Convert_compute_MachineStatus_To_v1alpha1_MachineStatus is an autogenerated conversion function.
-func Convert_compute_MachineStatus_To_v1alpha1_MachineStatus(in *compute.MachineStatus, out *MachineStatus, s conversion.Scope) error {
+func Convert_compute_MachineStatus_To_v1alpha1_MachineStatus(in *compute.MachineStatus, out *v1alpha1.MachineStatus, s conversion.Scope) error {
return autoConvert_compute_MachineStatus_To_v1alpha1_MachineStatus(in, out, s)
}
-func autoConvert_v1alpha1_NetworkInterface_To_compute_NetworkInterface(in *NetworkInterface, out *compute.NetworkInterface, s conversion.Scope) error {
+func autoConvert_v1alpha1_NetworkInterface_To_compute_NetworkInterface(in *v1alpha1.NetworkInterface, out *compute.NetworkInterface, s conversion.Scope) error {
out.Name = in.Name
if err := Convert_v1alpha1_NetworkInterfaceSource_To_compute_NetworkInterfaceSource(&in.NetworkInterfaceSource, &out.NetworkInterfaceSource, s); err != nil {
return err
@@ -889,11 +890,11 @@ func autoConvert_v1alpha1_NetworkInterface_To_compute_NetworkInterface(in *Netwo
}
// Convert_v1alpha1_NetworkInterface_To_compute_NetworkInterface is an autogenerated conversion function.
-func Convert_v1alpha1_NetworkInterface_To_compute_NetworkInterface(in *NetworkInterface, out *compute.NetworkInterface, s conversion.Scope) error {
+func Convert_v1alpha1_NetworkInterface_To_compute_NetworkInterface(in *v1alpha1.NetworkInterface, out *compute.NetworkInterface, s conversion.Scope) error {
return autoConvert_v1alpha1_NetworkInterface_To_compute_NetworkInterface(in, out, s)
}
-func autoConvert_compute_NetworkInterface_To_v1alpha1_NetworkInterface(in *compute.NetworkInterface, out *NetworkInterface, s conversion.Scope) error {
+func autoConvert_compute_NetworkInterface_To_v1alpha1_NetworkInterface(in *compute.NetworkInterface, out *v1alpha1.NetworkInterface, s conversion.Scope) error {
out.Name = in.Name
if err := Convert_compute_NetworkInterfaceSource_To_v1alpha1_NetworkInterfaceSource(&in.NetworkInterfaceSource, &out.NetworkInterfaceSource, s); err != nil {
return err
@@ -902,33 +903,33 @@ func autoConvert_compute_NetworkInterface_To_v1alpha1_NetworkInterface(in *compu
}
// Convert_compute_NetworkInterface_To_v1alpha1_NetworkInterface is an autogenerated conversion function.
-func Convert_compute_NetworkInterface_To_v1alpha1_NetworkInterface(in *compute.NetworkInterface, out *NetworkInterface, s conversion.Scope) error {
+func Convert_compute_NetworkInterface_To_v1alpha1_NetworkInterface(in *compute.NetworkInterface, out *v1alpha1.NetworkInterface, s conversion.Scope) error {
return autoConvert_compute_NetworkInterface_To_v1alpha1_NetworkInterface(in, out, s)
}
-func autoConvert_v1alpha1_NetworkInterfaceSource_To_compute_NetworkInterfaceSource(in *NetworkInterfaceSource, out *compute.NetworkInterfaceSource, s conversion.Scope) error {
+func autoConvert_v1alpha1_NetworkInterfaceSource_To_compute_NetworkInterfaceSource(in *v1alpha1.NetworkInterfaceSource, out *compute.NetworkInterfaceSource, s conversion.Scope) error {
out.NetworkInterfaceRef = (*v1.LocalObjectReference)(unsafe.Pointer(in.NetworkInterfaceRef))
out.Ephemeral = (*compute.EphemeralNetworkInterfaceSource)(unsafe.Pointer(in.Ephemeral))
return nil
}
// Convert_v1alpha1_NetworkInterfaceSource_To_compute_NetworkInterfaceSource is an autogenerated conversion function.
-func Convert_v1alpha1_NetworkInterfaceSource_To_compute_NetworkInterfaceSource(in *NetworkInterfaceSource, out *compute.NetworkInterfaceSource, s conversion.Scope) error {
+func Convert_v1alpha1_NetworkInterfaceSource_To_compute_NetworkInterfaceSource(in *v1alpha1.NetworkInterfaceSource, out *compute.NetworkInterfaceSource, s conversion.Scope) error {
return autoConvert_v1alpha1_NetworkInterfaceSource_To_compute_NetworkInterfaceSource(in, out, s)
}
-func autoConvert_compute_NetworkInterfaceSource_To_v1alpha1_NetworkInterfaceSource(in *compute.NetworkInterfaceSource, out *NetworkInterfaceSource, s conversion.Scope) error {
+func autoConvert_compute_NetworkInterfaceSource_To_v1alpha1_NetworkInterfaceSource(in *compute.NetworkInterfaceSource, out *v1alpha1.NetworkInterfaceSource, s conversion.Scope) error {
out.NetworkInterfaceRef = (*v1.LocalObjectReference)(unsafe.Pointer(in.NetworkInterfaceRef))
- out.Ephemeral = (*EphemeralNetworkInterfaceSource)(unsafe.Pointer(in.Ephemeral))
+ out.Ephemeral = (*v1alpha1.EphemeralNetworkInterfaceSource)(unsafe.Pointer(in.Ephemeral))
return nil
}
// Convert_compute_NetworkInterfaceSource_To_v1alpha1_NetworkInterfaceSource is an autogenerated conversion function.
-func Convert_compute_NetworkInterfaceSource_To_v1alpha1_NetworkInterfaceSource(in *compute.NetworkInterfaceSource, out *NetworkInterfaceSource, s conversion.Scope) error {
+func Convert_compute_NetworkInterfaceSource_To_v1alpha1_NetworkInterfaceSource(in *compute.NetworkInterfaceSource, out *v1alpha1.NetworkInterfaceSource, s conversion.Scope) error {
return autoConvert_compute_NetworkInterfaceSource_To_v1alpha1_NetworkInterfaceSource(in, out, s)
}
-func autoConvert_v1alpha1_NetworkInterfaceStatus_To_compute_NetworkInterfaceStatus(in *NetworkInterfaceStatus, out *compute.NetworkInterfaceStatus, s conversion.Scope) error {
+func autoConvert_v1alpha1_NetworkInterfaceStatus_To_compute_NetworkInterfaceStatus(in *v1alpha1.NetworkInterfaceStatus, out *compute.NetworkInterfaceStatus, s conversion.Scope) error {
out.Name = in.Name
out.NetworkHandle = in.NetworkHandle
out.IPs = *(*[]commonv1alpha1.IP)(unsafe.Pointer(&in.IPs))
@@ -941,50 +942,50 @@ func autoConvert_v1alpha1_NetworkInterfaceStatus_To_compute_NetworkInterfaceStat
}
// Convert_v1alpha1_NetworkInterfaceStatus_To_compute_NetworkInterfaceStatus is an autogenerated conversion function.
-func Convert_v1alpha1_NetworkInterfaceStatus_To_compute_NetworkInterfaceStatus(in *NetworkInterfaceStatus, out *compute.NetworkInterfaceStatus, s conversion.Scope) error {
+func Convert_v1alpha1_NetworkInterfaceStatus_To_compute_NetworkInterfaceStatus(in *v1alpha1.NetworkInterfaceStatus, out *compute.NetworkInterfaceStatus, s conversion.Scope) error {
return autoConvert_v1alpha1_NetworkInterfaceStatus_To_compute_NetworkInterfaceStatus(in, out, s)
}
-func autoConvert_compute_NetworkInterfaceStatus_To_v1alpha1_NetworkInterfaceStatus(in *compute.NetworkInterfaceStatus, out *NetworkInterfaceStatus, s conversion.Scope) error {
+func autoConvert_compute_NetworkInterfaceStatus_To_v1alpha1_NetworkInterfaceStatus(in *compute.NetworkInterfaceStatus, out *v1alpha1.NetworkInterfaceStatus, s conversion.Scope) error {
out.Name = in.Name
out.NetworkHandle = in.NetworkHandle
out.IPs = *(*[]commonv1alpha1.IP)(unsafe.Pointer(&in.IPs))
out.VirtualIP = (*commonv1alpha1.IP)(unsafe.Pointer(in.VirtualIP))
- out.State = NetworkInterfaceState(in.State)
+ out.State = v1alpha1.NetworkInterfaceState(in.State)
out.LastStateTransitionTime = (*metav1.Time)(unsafe.Pointer(in.LastStateTransitionTime))
- out.Phase = NetworkInterfacePhase(in.Phase)
+ out.Phase = v1alpha1.NetworkInterfacePhase(in.Phase)
out.LastPhaseTransitionTime = (*metav1.Time)(unsafe.Pointer(in.LastPhaseTransitionTime))
return nil
}
// Convert_compute_NetworkInterfaceStatus_To_v1alpha1_NetworkInterfaceStatus is an autogenerated conversion function.
-func Convert_compute_NetworkInterfaceStatus_To_v1alpha1_NetworkInterfaceStatus(in *compute.NetworkInterfaceStatus, out *NetworkInterfaceStatus, s conversion.Scope) error {
+func Convert_compute_NetworkInterfaceStatus_To_v1alpha1_NetworkInterfaceStatus(in *compute.NetworkInterfaceStatus, out *v1alpha1.NetworkInterfaceStatus, s conversion.Scope) error {
return autoConvert_compute_NetworkInterfaceStatus_To_v1alpha1_NetworkInterfaceStatus(in, out, s)
}
-func autoConvert_v1alpha1_ReferencedVolumeStatus_To_compute_ReferencedVolumeStatus(in *ReferencedVolumeStatus, out *compute.ReferencedVolumeStatus, s conversion.Scope) error {
+func autoConvert_v1alpha1_ReferencedVolumeStatus_To_compute_ReferencedVolumeStatus(in *v1alpha1.ReferencedVolumeStatus, out *compute.ReferencedVolumeStatus, s conversion.Scope) error {
out.Driver = in.Driver
out.Handle = in.Handle
return nil
}
// Convert_v1alpha1_ReferencedVolumeStatus_To_compute_ReferencedVolumeStatus is an autogenerated conversion function.
-func Convert_v1alpha1_ReferencedVolumeStatus_To_compute_ReferencedVolumeStatus(in *ReferencedVolumeStatus, out *compute.ReferencedVolumeStatus, s conversion.Scope) error {
+func Convert_v1alpha1_ReferencedVolumeStatus_To_compute_ReferencedVolumeStatus(in *v1alpha1.ReferencedVolumeStatus, out *compute.ReferencedVolumeStatus, s conversion.Scope) error {
return autoConvert_v1alpha1_ReferencedVolumeStatus_To_compute_ReferencedVolumeStatus(in, out, s)
}
-func autoConvert_compute_ReferencedVolumeStatus_To_v1alpha1_ReferencedVolumeStatus(in *compute.ReferencedVolumeStatus, out *ReferencedVolumeStatus, s conversion.Scope) error {
+func autoConvert_compute_ReferencedVolumeStatus_To_v1alpha1_ReferencedVolumeStatus(in *compute.ReferencedVolumeStatus, out *v1alpha1.ReferencedVolumeStatus, s conversion.Scope) error {
out.Driver = in.Driver
out.Handle = in.Handle
return nil
}
// Convert_compute_ReferencedVolumeStatus_To_v1alpha1_ReferencedVolumeStatus is an autogenerated conversion function.
-func Convert_compute_ReferencedVolumeStatus_To_v1alpha1_ReferencedVolumeStatus(in *compute.ReferencedVolumeStatus, out *ReferencedVolumeStatus, s conversion.Scope) error {
+func Convert_compute_ReferencedVolumeStatus_To_v1alpha1_ReferencedVolumeStatus(in *compute.ReferencedVolumeStatus, out *v1alpha1.ReferencedVolumeStatus, s conversion.Scope) error {
return autoConvert_compute_ReferencedVolumeStatus_To_v1alpha1_ReferencedVolumeStatus(in, out, s)
}
-func autoConvert_v1alpha1_Volume_To_compute_Volume(in *Volume, out *compute.Volume, s conversion.Scope) error {
+func autoConvert_v1alpha1_Volume_To_compute_Volume(in *v1alpha1.Volume, out *compute.Volume, s conversion.Scope) error {
out.Name = in.Name
out.Device = in.Device
if err := Convert_v1alpha1_VolumeSource_To_compute_VolumeSource(&in.VolumeSource, &out.VolumeSource, s); err != nil {
@@ -994,11 +995,11 @@ func autoConvert_v1alpha1_Volume_To_compute_Volume(in *Volume, out *compute.Volu
}
// Convert_v1alpha1_Volume_To_compute_Volume is an autogenerated conversion function.
-func Convert_v1alpha1_Volume_To_compute_Volume(in *Volume, out *compute.Volume, s conversion.Scope) error {
+func Convert_v1alpha1_Volume_To_compute_Volume(in *v1alpha1.Volume, out *compute.Volume, s conversion.Scope) error {
return autoConvert_v1alpha1_Volume_To_compute_Volume(in, out, s)
}
-func autoConvert_compute_Volume_To_v1alpha1_Volume(in *compute.Volume, out *Volume, s conversion.Scope) error {
+func autoConvert_compute_Volume_To_v1alpha1_Volume(in *compute.Volume, out *v1alpha1.Volume, s conversion.Scope) error {
out.Name = in.Name
out.Device = in.Device
if err := Convert_compute_VolumeSource_To_v1alpha1_VolumeSource(&in.VolumeSource, &out.VolumeSource, s); err != nil {
@@ -1008,11 +1009,11 @@ func autoConvert_compute_Volume_To_v1alpha1_Volume(in *compute.Volume, out *Volu
}
// Convert_compute_Volume_To_v1alpha1_Volume is an autogenerated conversion function.
-func Convert_compute_Volume_To_v1alpha1_Volume(in *compute.Volume, out *Volume, s conversion.Scope) error {
+func Convert_compute_Volume_To_v1alpha1_Volume(in *compute.Volume, out *v1alpha1.Volume, s conversion.Scope) error {
return autoConvert_compute_Volume_To_v1alpha1_Volume(in, out, s)
}
-func autoConvert_v1alpha1_VolumeSource_To_compute_VolumeSource(in *VolumeSource, out *compute.VolumeSource, s conversion.Scope) error {
+func autoConvert_v1alpha1_VolumeSource_To_compute_VolumeSource(in *v1alpha1.VolumeSource, out *compute.VolumeSource, s conversion.Scope) error {
out.VolumeRef = (*v1.LocalObjectReference)(unsafe.Pointer(in.VolumeRef))
out.EmptyDisk = (*compute.EmptyDiskVolumeSource)(unsafe.Pointer(in.EmptyDisk))
out.Ephemeral = (*compute.EphemeralVolumeSource)(unsafe.Pointer(in.Ephemeral))
@@ -1020,45 +1021,45 @@ func autoConvert_v1alpha1_VolumeSource_To_compute_VolumeSource(in *VolumeSource,
}
// Convert_v1alpha1_VolumeSource_To_compute_VolumeSource is an autogenerated conversion function.
-func Convert_v1alpha1_VolumeSource_To_compute_VolumeSource(in *VolumeSource, out *compute.VolumeSource, s conversion.Scope) error {
+func Convert_v1alpha1_VolumeSource_To_compute_VolumeSource(in *v1alpha1.VolumeSource, out *compute.VolumeSource, s conversion.Scope) error {
return autoConvert_v1alpha1_VolumeSource_To_compute_VolumeSource(in, out, s)
}
-func autoConvert_compute_VolumeSource_To_v1alpha1_VolumeSource(in *compute.VolumeSource, out *VolumeSource, s conversion.Scope) error {
+func autoConvert_compute_VolumeSource_To_v1alpha1_VolumeSource(in *compute.VolumeSource, out *v1alpha1.VolumeSource, s conversion.Scope) error {
out.VolumeRef = (*v1.LocalObjectReference)(unsafe.Pointer(in.VolumeRef))
- out.EmptyDisk = (*EmptyDiskVolumeSource)(unsafe.Pointer(in.EmptyDisk))
- out.Ephemeral = (*EphemeralVolumeSource)(unsafe.Pointer(in.Ephemeral))
+ out.EmptyDisk = (*v1alpha1.EmptyDiskVolumeSource)(unsafe.Pointer(in.EmptyDisk))
+ out.Ephemeral = (*v1alpha1.EphemeralVolumeSource)(unsafe.Pointer(in.Ephemeral))
return nil
}
// Convert_compute_VolumeSource_To_v1alpha1_VolumeSource is an autogenerated conversion function.
-func Convert_compute_VolumeSource_To_v1alpha1_VolumeSource(in *compute.VolumeSource, out *VolumeSource, s conversion.Scope) error {
+func Convert_compute_VolumeSource_To_v1alpha1_VolumeSource(in *compute.VolumeSource, out *v1alpha1.VolumeSource, s conversion.Scope) error {
return autoConvert_compute_VolumeSource_To_v1alpha1_VolumeSource(in, out, s)
}
-func autoConvert_v1alpha1_VolumeSourceStatus_To_compute_VolumeSourceStatus(in *VolumeSourceStatus, out *compute.VolumeSourceStatus, s conversion.Scope) error {
+func autoConvert_v1alpha1_VolumeSourceStatus_To_compute_VolumeSourceStatus(in *v1alpha1.VolumeSourceStatus, out *compute.VolumeSourceStatus, s conversion.Scope) error {
out.EmptyDisk = (*compute.EmptyDiskVolumeStatus)(unsafe.Pointer(in.EmptyDisk))
out.Referenced = (*compute.ReferencedVolumeStatus)(unsafe.Pointer(in.Referenced))
return nil
}
// Convert_v1alpha1_VolumeSourceStatus_To_compute_VolumeSourceStatus is an autogenerated conversion function.
-func Convert_v1alpha1_VolumeSourceStatus_To_compute_VolumeSourceStatus(in *VolumeSourceStatus, out *compute.VolumeSourceStatus, s conversion.Scope) error {
+func Convert_v1alpha1_VolumeSourceStatus_To_compute_VolumeSourceStatus(in *v1alpha1.VolumeSourceStatus, out *compute.VolumeSourceStatus, s conversion.Scope) error {
return autoConvert_v1alpha1_VolumeSourceStatus_To_compute_VolumeSourceStatus(in, out, s)
}
-func autoConvert_compute_VolumeSourceStatus_To_v1alpha1_VolumeSourceStatus(in *compute.VolumeSourceStatus, out *VolumeSourceStatus, s conversion.Scope) error {
- out.EmptyDisk = (*EmptyDiskVolumeStatus)(unsafe.Pointer(in.EmptyDisk))
- out.Referenced = (*ReferencedVolumeStatus)(unsafe.Pointer(in.Referenced))
+func autoConvert_compute_VolumeSourceStatus_To_v1alpha1_VolumeSourceStatus(in *compute.VolumeSourceStatus, out *v1alpha1.VolumeSourceStatus, s conversion.Scope) error {
+ out.EmptyDisk = (*v1alpha1.EmptyDiskVolumeStatus)(unsafe.Pointer(in.EmptyDisk))
+ out.Referenced = (*v1alpha1.ReferencedVolumeStatus)(unsafe.Pointer(in.Referenced))
return nil
}
// Convert_compute_VolumeSourceStatus_To_v1alpha1_VolumeSourceStatus is an autogenerated conversion function.
-func Convert_compute_VolumeSourceStatus_To_v1alpha1_VolumeSourceStatus(in *compute.VolumeSourceStatus, out *VolumeSourceStatus, s conversion.Scope) error {
+func Convert_compute_VolumeSourceStatus_To_v1alpha1_VolumeSourceStatus(in *compute.VolumeSourceStatus, out *v1alpha1.VolumeSourceStatus, s conversion.Scope) error {
return autoConvert_compute_VolumeSourceStatus_To_v1alpha1_VolumeSourceStatus(in, out, s)
}
-func autoConvert_v1alpha1_VolumeStatus_To_compute_VolumeStatus(in *VolumeStatus, out *compute.VolumeStatus, s conversion.Scope) error {
+func autoConvert_v1alpha1_VolumeStatus_To_compute_VolumeStatus(in *v1alpha1.VolumeStatus, out *compute.VolumeStatus, s conversion.Scope) error {
out.Name = in.Name
out.Device = in.Device
if err := Convert_v1alpha1_VolumeSourceStatus_To_compute_VolumeSourceStatus(&in.VolumeSourceStatus, &out.VolumeSourceStatus, s); err != nil {
@@ -1072,24 +1073,24 @@ func autoConvert_v1alpha1_VolumeStatus_To_compute_VolumeStatus(in *VolumeStatus,
}
// Convert_v1alpha1_VolumeStatus_To_compute_VolumeStatus is an autogenerated conversion function.
-func Convert_v1alpha1_VolumeStatus_To_compute_VolumeStatus(in *VolumeStatus, out *compute.VolumeStatus, s conversion.Scope) error {
+func Convert_v1alpha1_VolumeStatus_To_compute_VolumeStatus(in *v1alpha1.VolumeStatus, out *compute.VolumeStatus, s conversion.Scope) error {
return autoConvert_v1alpha1_VolumeStatus_To_compute_VolumeStatus(in, out, s)
}
-func autoConvert_compute_VolumeStatus_To_v1alpha1_VolumeStatus(in *compute.VolumeStatus, out *VolumeStatus, s conversion.Scope) error {
+func autoConvert_compute_VolumeStatus_To_v1alpha1_VolumeStatus(in *compute.VolumeStatus, out *v1alpha1.VolumeStatus, s conversion.Scope) error {
out.Name = in.Name
out.Device = in.Device
if err := Convert_compute_VolumeSourceStatus_To_v1alpha1_VolumeSourceStatus(&in.VolumeSourceStatus, &out.VolumeSourceStatus, s); err != nil {
return err
}
- out.State = VolumeState(in.State)
+ out.State = v1alpha1.VolumeState(in.State)
out.LastStateTransitionTime = (*metav1.Time)(unsafe.Pointer(in.LastStateTransitionTime))
- out.Phase = VolumePhase(in.Phase)
+ out.Phase = v1alpha1.VolumePhase(in.Phase)
out.LastPhaseTransitionTime = (*metav1.Time)(unsafe.Pointer(in.LastPhaseTransitionTime))
return nil
}
// Convert_compute_VolumeStatus_To_v1alpha1_VolumeStatus is an autogenerated conversion function.
-func Convert_compute_VolumeStatus_To_v1alpha1_VolumeStatus(in *compute.VolumeStatus, out *VolumeStatus, s conversion.Scope) error {
+func Convert_compute_VolumeStatus_To_v1alpha1_VolumeStatus(in *compute.VolumeStatus, out *v1alpha1.VolumeStatus, s conversion.Scope) error {
return autoConvert_compute_VolumeStatus_To_v1alpha1_VolumeStatus(in, out, s)
}
diff --git a/apis/compute/v1alpha1/zz_generated.defaults.go b/onmetal-apiserver/internal/apis/compute/v1alpha1/zz_generated.defaults.go
similarity index 100%
rename from apis/compute/v1alpha1/zz_generated.defaults.go
rename to onmetal-apiserver/internal/apis/compute/v1alpha1/zz_generated.defaults.go
diff --git a/apis/compute/validation/machine.go b/onmetal-apiserver/internal/apis/compute/validation/machine.go
similarity index 95%
rename from apis/compute/validation/machine.go
rename to onmetal-apiserver/internal/apis/compute/validation/machine.go
index fab94df78..7e39953d6 100644
--- a/apis/compute/validation/machine.go
+++ b/onmetal-apiserver/internal/apis/compute/validation/machine.go
@@ -19,11 +19,11 @@ package validation
import (
"fmt"
- "github.com/onmetal/onmetal-api/apis/compute"
- "github.com/onmetal/onmetal-api/apis/storage"
- storagevalidation "github.com/onmetal/onmetal-api/apis/storage/validation"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/admission/plugin/machinevolumedevices/device"
- onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/api/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/admission/plugin/machinevolumedevices/device"
+ onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
+ storagevalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage/validation"
corev1 "k8s.io/api/core/v1"
apivalidation "k8s.io/apimachinery/pkg/api/validation"
metav1validation "k8s.io/apimachinery/pkg/apis/meta/v1/validation"
diff --git a/apis/compute/validation/machine_test.go b/onmetal-apiserver/internal/apis/compute/validation/machine_test.go
similarity index 96%
rename from apis/compute/validation/machine_test.go
rename to onmetal-apiserver/internal/apis/compute/validation/machine_test.go
index 4f72b46d6..b7f7bf91b 100644
--- a/apis/compute/validation/machine_test.go
+++ b/onmetal-apiserver/internal/apis/compute/validation/machine_test.go
@@ -17,9 +17,9 @@
package validation
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- "github.com/onmetal/onmetal-api/apis/compute"
- . "github.com/onmetal/onmetal-api/testutils/validation"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/testutils/validation"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
diff --git a/apis/compute/validation/machineclass.go b/onmetal-apiserver/internal/apis/compute/validation/machineclass.go
similarity index 94%
rename from apis/compute/validation/machineclass.go
rename to onmetal-apiserver/internal/apis/compute/validation/machineclass.go
index e62433f64..6fb46e313 100644
--- a/apis/compute/validation/machineclass.go
+++ b/onmetal-apiserver/internal/apis/compute/validation/machineclass.go
@@ -17,8 +17,8 @@
package validation
import (
- "github.com/onmetal/onmetal-api/apis/compute"
- onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/api/validation"
+ onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
apivalidation "k8s.io/apimachinery/pkg/api/validation"
"k8s.io/apimachinery/pkg/util/validation/field"
)
diff --git a/apis/compute/validation/machineclass_test.go b/onmetal-apiserver/internal/apis/compute/validation/machineclass_test.go
similarity index 92%
rename from apis/compute/validation/machineclass_test.go
rename to onmetal-apiserver/internal/apis/compute/validation/machineclass_test.go
index bc38de913..0255b890c 100644
--- a/apis/compute/validation/machineclass_test.go
+++ b/onmetal-apiserver/internal/apis/compute/validation/machineclass_test.go
@@ -17,8 +17,8 @@
package validation
import (
- "github.com/onmetal/onmetal-api/apis/compute"
- . "github.com/onmetal/onmetal-api/testutils/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/testutils/validation"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
diff --git a/apis/compute/validation/machinepool.go b/onmetal-apiserver/internal/apis/compute/validation/machinepool.go
similarity index 95%
rename from apis/compute/validation/machinepool.go
rename to onmetal-apiserver/internal/apis/compute/validation/machinepool.go
index f414bd36d..f9f641f4f 100644
--- a/apis/compute/validation/machinepool.go
+++ b/onmetal-apiserver/internal/apis/compute/validation/machinepool.go
@@ -17,8 +17,8 @@
package validation
import (
- "github.com/onmetal/onmetal-api/apis/compute"
- onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/api/validation"
+ onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
apivalidation "k8s.io/apimachinery/pkg/api/validation"
"k8s.io/apimachinery/pkg/util/validation/field"
)
diff --git a/apis/compute/validation/machinepool_test.go b/onmetal-apiserver/internal/apis/compute/validation/machinepool_test.go
similarity index 93%
rename from apis/compute/validation/machinepool_test.go
rename to onmetal-apiserver/internal/apis/compute/validation/machinepool_test.go
index 8f05af8dc..32db82cd5 100644
--- a/apis/compute/validation/machinepool_test.go
+++ b/onmetal-apiserver/internal/apis/compute/validation/machinepool_test.go
@@ -17,8 +17,8 @@
package validation
import (
- "github.com/onmetal/onmetal-api/apis/compute"
- . "github.com/onmetal/onmetal-api/testutils/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/testutils/validation"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
diff --git a/apis/compute/validation/validation_suite_test.go b/onmetal-apiserver/internal/apis/compute/validation/validation_suite_test.go
similarity index 100%
rename from apis/compute/validation/validation_suite_test.go
rename to onmetal-apiserver/internal/apis/compute/validation/validation_suite_test.go
diff --git a/apis/compute/zz_generated.deepcopy.go b/onmetal-apiserver/internal/apis/compute/zz_generated.deepcopy.go
similarity index 99%
rename from apis/compute/zz_generated.deepcopy.go
rename to onmetal-apiserver/internal/apis/compute/zz_generated.deepcopy.go
index 8d1a45ecd..0edd786ef 100644
--- a/apis/compute/zz_generated.deepcopy.go
+++ b/onmetal-apiserver/internal/apis/compute/zz_generated.deepcopy.go
@@ -21,9 +21,9 @@
package compute
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- networking "github.com/onmetal/onmetal-api/apis/networking"
- storage "github.com/onmetal/onmetal-api/apis/storage"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
v1 "k8s.io/api/core/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
)
diff --git a/apis/ipam/doc.go b/onmetal-apiserver/internal/apis/ipam/doc.go
similarity index 92%
rename from apis/ipam/doc.go
rename to onmetal-apiserver/internal/apis/ipam/doc.go
index a63165545..3ba7231f3 100644
--- a/apis/ipam/doc.go
+++ b/onmetal-apiserver/internal/apis/ipam/doc.go
@@ -19,4 +19,4 @@
// +groupName=ipam.api.onmetal.de
// Package ipam is the internal version of the API.
-package ipam // import "github.com/onmetal/onmetal-api/apis/ipam"
+package ipam // import "github.com/onmetal/onmetal-api/api/ipam"
diff --git a/apis/ipam/install/install.go b/onmetal-apiserver/internal/apis/ipam/install/install.go
similarity index 85%
rename from apis/ipam/install/install.go
rename to onmetal-apiserver/internal/apis/ipam/install/install.go
index bd9f6ba0b..a952d0ddb 100644
--- a/apis/ipam/install/install.go
+++ b/onmetal-apiserver/internal/apis/ipam/install/install.go
@@ -15,8 +15,8 @@
package install
import (
- "github.com/onmetal/onmetal-api/apis/ipam"
- "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam/v1alpha1"
"k8s.io/apimachinery/pkg/runtime"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
)
diff --git a/apis/ipam/prefix_types.go b/onmetal-apiserver/internal/apis/ipam/prefix_types.go
similarity index 97%
rename from apis/ipam/prefix_types.go
rename to onmetal-apiserver/internal/apis/ipam/prefix_types.go
index c9afb562c..e061b2206 100644
--- a/apis/ipam/prefix_types.go
+++ b/onmetal-apiserver/internal/apis/ipam/prefix_types.go
@@ -17,7 +17,7 @@
package ipam
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apis/ipam/prefixallocation_types.go b/onmetal-apiserver/internal/apis/ipam/prefixallocation_types.go
similarity index 97%
rename from apis/ipam/prefixallocation_types.go
rename to onmetal-apiserver/internal/apis/ipam/prefixallocation_types.go
index 132488c17..315da61b0 100644
--- a/apis/ipam/prefixallocation_types.go
+++ b/onmetal-apiserver/internal/apis/ipam/prefixallocation_types.go
@@ -17,7 +17,7 @@
package ipam
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apis/ipam/register.go b/onmetal-apiserver/internal/apis/ipam/register.go
similarity index 100%
rename from apis/ipam/register.go
rename to onmetal-apiserver/internal/apis/ipam/register.go
diff --git a/apis/ipam/v1alpha1/defaults.go b/onmetal-apiserver/internal/apis/ipam/v1alpha1/defaults.go
similarity index 87%
rename from apis/ipam/v1alpha1/defaults.go
rename to onmetal-apiserver/internal/apis/ipam/v1alpha1/defaults.go
index ee4c41298..2f12c19b2 100644
--- a/apis/ipam/v1alpha1/defaults.go
+++ b/onmetal-apiserver/internal/apis/ipam/v1alpha1/defaults.go
@@ -15,6 +15,7 @@
package v1alpha1
import (
+ "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
)
@@ -23,7 +24,7 @@ func addDefaultingFuncs(scheme *runtime.Scheme) error {
return RegisterDefaults(scheme)
}
-func SetDefaults_PrefixSpec(spec *PrefixSpec) {
+func SetDefaults_PrefixSpec(spec *v1alpha1.PrefixSpec) {
if string(spec.IPFamily) == "" && spec.Prefix.IsValid() && spec.PrefixLength == 0 {
switch {
case spec.Prefix.IP().Is4():
@@ -34,7 +35,7 @@ func SetDefaults_PrefixSpec(spec *PrefixSpec) {
}
}
-func SetDefaults_PrefixAllocationSpec(spec *PrefixAllocationSpec) {
+func SetDefaults_PrefixAllocationSpec(spec *v1alpha1.PrefixAllocationSpec) {
if string(spec.IPFamily) == "" && spec.Prefix.IsValid() && spec.PrefixLength == 0 {
switch {
case spec.Prefix.IP().Is4():
diff --git a/onmetal-apiserver/internal/apis/ipam/v1alpha1/doc.go b/onmetal-apiserver/internal/apis/ipam/v1alpha1/doc.go
new file mode 100644
index 000000000..3892d360d
--- /dev/null
+++ b/onmetal-apiserver/internal/apis/ipam/v1alpha1/doc.go
@@ -0,0 +1,21 @@
+// Copyright 2022 OnMetal authors
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// +k8s:conversion-gen=github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam
+// +k8s:conversion-gen-external-types=github.com/onmetal/onmetal-api/api/ipam/v1alpha1
+// +k8s:defaulter-gen=TypeMeta
+// +k8s:defaulter-gen-input=github.com/onmetal/onmetal-api/api/ipam/v1alpha1
+
+// Package v1alpha1 is the v1alpha1 version of the API.
+package v1alpha1 // import "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam/v1alpha1"
diff --git a/onmetal-apiserver/internal/apis/ipam/v1alpha1/register.go b/onmetal-apiserver/internal/apis/ipam/v1alpha1/register.go
new file mode 100644
index 000000000..ef3d97730
--- /dev/null
+++ b/onmetal-apiserver/internal/apis/ipam/v1alpha1/register.go
@@ -0,0 +1,42 @@
+/*
+ * Copyright (c) 2021 by the OnMetal authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+// Package v1alpha1 contains API Schema definitions for the ipam v1alpha1 API group
+// +groupName=ipam.api.onmetal.de
+package v1alpha1
+
+import (
+ "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ "k8s.io/apimachinery/pkg/runtime/schema"
+)
+
+var (
+ // SchemeGroupVersion is group version used to register these objects
+ SchemeGroupVersion = schema.GroupVersion{Group: "ipam.api.onmetal.de", Version: "v1alpha1"}
+
+ localSchemeBuilder = &v1alpha1.SchemeBuilder
+
+ // AddToScheme adds the types in this group-version to the given scheme.
+ AddToScheme = localSchemeBuilder.AddToScheme
+)
+
+func Resource(resource string) schema.GroupResource {
+ return SchemeGroupVersion.WithResource(resource).GroupResource()
+}
+
+func init() {
+ localSchemeBuilder.Register(addDefaultingFuncs)
+}
diff --git a/apis/ipam/v1alpha1/zz_generated.conversion.go b/onmetal-apiserver/internal/apis/ipam/v1alpha1/zz_generated.conversion.go
similarity index 62%
rename from apis/ipam/v1alpha1/zz_generated.conversion.go
rename to onmetal-apiserver/internal/apis/ipam/v1alpha1/zz_generated.conversion.go
index 0e3f56df2..fa72cc83f 100644
--- a/apis/ipam/v1alpha1/zz_generated.conversion.go
+++ b/onmetal-apiserver/internal/apis/ipam/v1alpha1/zz_generated.conversion.go
@@ -23,8 +23,9 @@ package v1alpha1
import (
unsafe "unsafe"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- ipam "github.com/onmetal/onmetal-api/apis/ipam"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ ipam "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion"
@@ -38,100 +39,100 @@ func init() {
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(s *runtime.Scheme) error {
- if err := s.AddGeneratedConversionFunc((*Prefix)(nil), (*ipam.Prefix)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_Prefix_To_ipam_Prefix(a.(*Prefix), b.(*ipam.Prefix), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.Prefix)(nil), (*ipam.Prefix)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_Prefix_To_ipam_Prefix(a.(*v1alpha1.Prefix), b.(*ipam.Prefix), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*ipam.Prefix)(nil), (*Prefix)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_ipam_Prefix_To_v1alpha1_Prefix(a.(*ipam.Prefix), b.(*Prefix), scope)
+ if err := s.AddGeneratedConversionFunc((*ipam.Prefix)(nil), (*v1alpha1.Prefix)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_ipam_Prefix_To_v1alpha1_Prefix(a.(*ipam.Prefix), b.(*v1alpha1.Prefix), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*PrefixAllocation)(nil), (*ipam.PrefixAllocation)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_PrefixAllocation_To_ipam_PrefixAllocation(a.(*PrefixAllocation), b.(*ipam.PrefixAllocation), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.PrefixAllocation)(nil), (*ipam.PrefixAllocation)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_PrefixAllocation_To_ipam_PrefixAllocation(a.(*v1alpha1.PrefixAllocation), b.(*ipam.PrefixAllocation), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*ipam.PrefixAllocation)(nil), (*PrefixAllocation)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_ipam_PrefixAllocation_To_v1alpha1_PrefixAllocation(a.(*ipam.PrefixAllocation), b.(*PrefixAllocation), scope)
+ if err := s.AddGeneratedConversionFunc((*ipam.PrefixAllocation)(nil), (*v1alpha1.PrefixAllocation)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_ipam_PrefixAllocation_To_v1alpha1_PrefixAllocation(a.(*ipam.PrefixAllocation), b.(*v1alpha1.PrefixAllocation), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*PrefixAllocationList)(nil), (*ipam.PrefixAllocationList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_PrefixAllocationList_To_ipam_PrefixAllocationList(a.(*PrefixAllocationList), b.(*ipam.PrefixAllocationList), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.PrefixAllocationList)(nil), (*ipam.PrefixAllocationList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_PrefixAllocationList_To_ipam_PrefixAllocationList(a.(*v1alpha1.PrefixAllocationList), b.(*ipam.PrefixAllocationList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*ipam.PrefixAllocationList)(nil), (*PrefixAllocationList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_ipam_PrefixAllocationList_To_v1alpha1_PrefixAllocationList(a.(*ipam.PrefixAllocationList), b.(*PrefixAllocationList), scope)
+ if err := s.AddGeneratedConversionFunc((*ipam.PrefixAllocationList)(nil), (*v1alpha1.PrefixAllocationList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_ipam_PrefixAllocationList_To_v1alpha1_PrefixAllocationList(a.(*ipam.PrefixAllocationList), b.(*v1alpha1.PrefixAllocationList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*PrefixAllocationSpec)(nil), (*ipam.PrefixAllocationSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_PrefixAllocationSpec_To_ipam_PrefixAllocationSpec(a.(*PrefixAllocationSpec), b.(*ipam.PrefixAllocationSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.PrefixAllocationSpec)(nil), (*ipam.PrefixAllocationSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_PrefixAllocationSpec_To_ipam_PrefixAllocationSpec(a.(*v1alpha1.PrefixAllocationSpec), b.(*ipam.PrefixAllocationSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*ipam.PrefixAllocationSpec)(nil), (*PrefixAllocationSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_ipam_PrefixAllocationSpec_To_v1alpha1_PrefixAllocationSpec(a.(*ipam.PrefixAllocationSpec), b.(*PrefixAllocationSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*ipam.PrefixAllocationSpec)(nil), (*v1alpha1.PrefixAllocationSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_ipam_PrefixAllocationSpec_To_v1alpha1_PrefixAllocationSpec(a.(*ipam.PrefixAllocationSpec), b.(*v1alpha1.PrefixAllocationSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*PrefixAllocationStatus)(nil), (*ipam.PrefixAllocationStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_PrefixAllocationStatus_To_ipam_PrefixAllocationStatus(a.(*PrefixAllocationStatus), b.(*ipam.PrefixAllocationStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.PrefixAllocationStatus)(nil), (*ipam.PrefixAllocationStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_PrefixAllocationStatus_To_ipam_PrefixAllocationStatus(a.(*v1alpha1.PrefixAllocationStatus), b.(*ipam.PrefixAllocationStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*ipam.PrefixAllocationStatus)(nil), (*PrefixAllocationStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_ipam_PrefixAllocationStatus_To_v1alpha1_PrefixAllocationStatus(a.(*ipam.PrefixAllocationStatus), b.(*PrefixAllocationStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*ipam.PrefixAllocationStatus)(nil), (*v1alpha1.PrefixAllocationStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_ipam_PrefixAllocationStatus_To_v1alpha1_PrefixAllocationStatus(a.(*ipam.PrefixAllocationStatus), b.(*v1alpha1.PrefixAllocationStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*PrefixList)(nil), (*ipam.PrefixList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_PrefixList_To_ipam_PrefixList(a.(*PrefixList), b.(*ipam.PrefixList), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.PrefixList)(nil), (*ipam.PrefixList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_PrefixList_To_ipam_PrefixList(a.(*v1alpha1.PrefixList), b.(*ipam.PrefixList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*ipam.PrefixList)(nil), (*PrefixList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_ipam_PrefixList_To_v1alpha1_PrefixList(a.(*ipam.PrefixList), b.(*PrefixList), scope)
+ if err := s.AddGeneratedConversionFunc((*ipam.PrefixList)(nil), (*v1alpha1.PrefixList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_ipam_PrefixList_To_v1alpha1_PrefixList(a.(*ipam.PrefixList), b.(*v1alpha1.PrefixList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*PrefixSpec)(nil), (*ipam.PrefixSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_PrefixSpec_To_ipam_PrefixSpec(a.(*PrefixSpec), b.(*ipam.PrefixSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.PrefixSpec)(nil), (*ipam.PrefixSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_PrefixSpec_To_ipam_PrefixSpec(a.(*v1alpha1.PrefixSpec), b.(*ipam.PrefixSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*ipam.PrefixSpec)(nil), (*PrefixSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_ipam_PrefixSpec_To_v1alpha1_PrefixSpec(a.(*ipam.PrefixSpec), b.(*PrefixSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*ipam.PrefixSpec)(nil), (*v1alpha1.PrefixSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_ipam_PrefixSpec_To_v1alpha1_PrefixSpec(a.(*ipam.PrefixSpec), b.(*v1alpha1.PrefixSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*PrefixStatus)(nil), (*ipam.PrefixStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_PrefixStatus_To_ipam_PrefixStatus(a.(*PrefixStatus), b.(*ipam.PrefixStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.PrefixStatus)(nil), (*ipam.PrefixStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_PrefixStatus_To_ipam_PrefixStatus(a.(*v1alpha1.PrefixStatus), b.(*ipam.PrefixStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*ipam.PrefixStatus)(nil), (*PrefixStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_ipam_PrefixStatus_To_v1alpha1_PrefixStatus(a.(*ipam.PrefixStatus), b.(*PrefixStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*ipam.PrefixStatus)(nil), (*v1alpha1.PrefixStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_ipam_PrefixStatus_To_v1alpha1_PrefixStatus(a.(*ipam.PrefixStatus), b.(*v1alpha1.PrefixStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*PrefixTemplateSpec)(nil), (*ipam.PrefixTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_PrefixTemplateSpec_To_ipam_PrefixTemplateSpec(a.(*PrefixTemplateSpec), b.(*ipam.PrefixTemplateSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.PrefixTemplateSpec)(nil), (*ipam.PrefixTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_PrefixTemplateSpec_To_ipam_PrefixTemplateSpec(a.(*v1alpha1.PrefixTemplateSpec), b.(*ipam.PrefixTemplateSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*ipam.PrefixTemplateSpec)(nil), (*PrefixTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_ipam_PrefixTemplateSpec_To_v1alpha1_PrefixTemplateSpec(a.(*ipam.PrefixTemplateSpec), b.(*PrefixTemplateSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*ipam.PrefixTemplateSpec)(nil), (*v1alpha1.PrefixTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_ipam_PrefixTemplateSpec_To_v1alpha1_PrefixTemplateSpec(a.(*ipam.PrefixTemplateSpec), b.(*v1alpha1.PrefixTemplateSpec), scope)
}); err != nil {
return err
}
return nil
}
-func autoConvert_v1alpha1_Prefix_To_ipam_Prefix(in *Prefix, out *ipam.Prefix, s conversion.Scope) error {
+func autoConvert_v1alpha1_Prefix_To_ipam_Prefix(in *v1alpha1.Prefix, out *ipam.Prefix, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha1_PrefixSpec_To_ipam_PrefixSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -143,11 +144,11 @@ func autoConvert_v1alpha1_Prefix_To_ipam_Prefix(in *Prefix, out *ipam.Prefix, s
}
// Convert_v1alpha1_Prefix_To_ipam_Prefix is an autogenerated conversion function.
-func Convert_v1alpha1_Prefix_To_ipam_Prefix(in *Prefix, out *ipam.Prefix, s conversion.Scope) error {
+func Convert_v1alpha1_Prefix_To_ipam_Prefix(in *v1alpha1.Prefix, out *ipam.Prefix, s conversion.Scope) error {
return autoConvert_v1alpha1_Prefix_To_ipam_Prefix(in, out, s)
}
-func autoConvert_ipam_Prefix_To_v1alpha1_Prefix(in *ipam.Prefix, out *Prefix, s conversion.Scope) error {
+func autoConvert_ipam_Prefix_To_v1alpha1_Prefix(in *ipam.Prefix, out *v1alpha1.Prefix, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_ipam_PrefixSpec_To_v1alpha1_PrefixSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -159,11 +160,11 @@ func autoConvert_ipam_Prefix_To_v1alpha1_Prefix(in *ipam.Prefix, out *Prefix, s
}
// Convert_ipam_Prefix_To_v1alpha1_Prefix is an autogenerated conversion function.
-func Convert_ipam_Prefix_To_v1alpha1_Prefix(in *ipam.Prefix, out *Prefix, s conversion.Scope) error {
+func Convert_ipam_Prefix_To_v1alpha1_Prefix(in *ipam.Prefix, out *v1alpha1.Prefix, s conversion.Scope) error {
return autoConvert_ipam_Prefix_To_v1alpha1_Prefix(in, out, s)
}
-func autoConvert_v1alpha1_PrefixAllocation_To_ipam_PrefixAllocation(in *PrefixAllocation, out *ipam.PrefixAllocation, s conversion.Scope) error {
+func autoConvert_v1alpha1_PrefixAllocation_To_ipam_PrefixAllocation(in *v1alpha1.PrefixAllocation, out *ipam.PrefixAllocation, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha1_PrefixAllocationSpec_To_ipam_PrefixAllocationSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -175,11 +176,11 @@ func autoConvert_v1alpha1_PrefixAllocation_To_ipam_PrefixAllocation(in *PrefixAl
}
// Convert_v1alpha1_PrefixAllocation_To_ipam_PrefixAllocation is an autogenerated conversion function.
-func Convert_v1alpha1_PrefixAllocation_To_ipam_PrefixAllocation(in *PrefixAllocation, out *ipam.PrefixAllocation, s conversion.Scope) error {
+func Convert_v1alpha1_PrefixAllocation_To_ipam_PrefixAllocation(in *v1alpha1.PrefixAllocation, out *ipam.PrefixAllocation, s conversion.Scope) error {
return autoConvert_v1alpha1_PrefixAllocation_To_ipam_PrefixAllocation(in, out, s)
}
-func autoConvert_ipam_PrefixAllocation_To_v1alpha1_PrefixAllocation(in *ipam.PrefixAllocation, out *PrefixAllocation, s conversion.Scope) error {
+func autoConvert_ipam_PrefixAllocation_To_v1alpha1_PrefixAllocation(in *ipam.PrefixAllocation, out *v1alpha1.PrefixAllocation, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_ipam_PrefixAllocationSpec_To_v1alpha1_PrefixAllocationSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -191,11 +192,11 @@ func autoConvert_ipam_PrefixAllocation_To_v1alpha1_PrefixAllocation(in *ipam.Pre
}
// Convert_ipam_PrefixAllocation_To_v1alpha1_PrefixAllocation is an autogenerated conversion function.
-func Convert_ipam_PrefixAllocation_To_v1alpha1_PrefixAllocation(in *ipam.PrefixAllocation, out *PrefixAllocation, s conversion.Scope) error {
+func Convert_ipam_PrefixAllocation_To_v1alpha1_PrefixAllocation(in *ipam.PrefixAllocation, out *v1alpha1.PrefixAllocation, s conversion.Scope) error {
return autoConvert_ipam_PrefixAllocation_To_v1alpha1_PrefixAllocation(in, out, s)
}
-func autoConvert_v1alpha1_PrefixAllocationList_To_ipam_PrefixAllocationList(in *PrefixAllocationList, out *ipam.PrefixAllocationList, s conversion.Scope) error {
+func autoConvert_v1alpha1_PrefixAllocationList_To_ipam_PrefixAllocationList(in *v1alpha1.PrefixAllocationList, out *ipam.PrefixAllocationList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
if in.Items != nil {
in, out := &in.Items, &out.Items
@@ -212,15 +213,15 @@ func autoConvert_v1alpha1_PrefixAllocationList_To_ipam_PrefixAllocationList(in *
}
// Convert_v1alpha1_PrefixAllocationList_To_ipam_PrefixAllocationList is an autogenerated conversion function.
-func Convert_v1alpha1_PrefixAllocationList_To_ipam_PrefixAllocationList(in *PrefixAllocationList, out *ipam.PrefixAllocationList, s conversion.Scope) error {
+func Convert_v1alpha1_PrefixAllocationList_To_ipam_PrefixAllocationList(in *v1alpha1.PrefixAllocationList, out *ipam.PrefixAllocationList, s conversion.Scope) error {
return autoConvert_v1alpha1_PrefixAllocationList_To_ipam_PrefixAllocationList(in, out, s)
}
-func autoConvert_ipam_PrefixAllocationList_To_v1alpha1_PrefixAllocationList(in *ipam.PrefixAllocationList, out *PrefixAllocationList, s conversion.Scope) error {
+func autoConvert_ipam_PrefixAllocationList_To_v1alpha1_PrefixAllocationList(in *ipam.PrefixAllocationList, out *v1alpha1.PrefixAllocationList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
if in.Items != nil {
in, out := &in.Items, &out.Items
- *out = make([]PrefixAllocation, len(*in))
+ *out = make([]v1alpha1.PrefixAllocation, len(*in))
for i := range *in {
if err := Convert_ipam_PrefixAllocation_To_v1alpha1_PrefixAllocation(&(*in)[i], &(*out)[i], s); err != nil {
return err
@@ -233,11 +234,11 @@ func autoConvert_ipam_PrefixAllocationList_To_v1alpha1_PrefixAllocationList(in *
}
// Convert_ipam_PrefixAllocationList_To_v1alpha1_PrefixAllocationList is an autogenerated conversion function.
-func Convert_ipam_PrefixAllocationList_To_v1alpha1_PrefixAllocationList(in *ipam.PrefixAllocationList, out *PrefixAllocationList, s conversion.Scope) error {
+func Convert_ipam_PrefixAllocationList_To_v1alpha1_PrefixAllocationList(in *ipam.PrefixAllocationList, out *v1alpha1.PrefixAllocationList, s conversion.Scope) error {
return autoConvert_ipam_PrefixAllocationList_To_v1alpha1_PrefixAllocationList(in, out, s)
}
-func autoConvert_v1alpha1_PrefixAllocationSpec_To_ipam_PrefixAllocationSpec(in *PrefixAllocationSpec, out *ipam.PrefixAllocationSpec, s conversion.Scope) error {
+func autoConvert_v1alpha1_PrefixAllocationSpec_To_ipam_PrefixAllocationSpec(in *v1alpha1.PrefixAllocationSpec, out *ipam.PrefixAllocationSpec, s conversion.Scope) error {
out.IPFamily = v1.IPFamily(in.IPFamily)
out.Prefix = (*commonv1alpha1.IPPrefix)(unsafe.Pointer(in.Prefix))
out.PrefixLength = in.PrefixLength
@@ -247,11 +248,11 @@ func autoConvert_v1alpha1_PrefixAllocationSpec_To_ipam_PrefixAllocationSpec(in *
}
// Convert_v1alpha1_PrefixAllocationSpec_To_ipam_PrefixAllocationSpec is an autogenerated conversion function.
-func Convert_v1alpha1_PrefixAllocationSpec_To_ipam_PrefixAllocationSpec(in *PrefixAllocationSpec, out *ipam.PrefixAllocationSpec, s conversion.Scope) error {
+func Convert_v1alpha1_PrefixAllocationSpec_To_ipam_PrefixAllocationSpec(in *v1alpha1.PrefixAllocationSpec, out *ipam.PrefixAllocationSpec, s conversion.Scope) error {
return autoConvert_v1alpha1_PrefixAllocationSpec_To_ipam_PrefixAllocationSpec(in, out, s)
}
-func autoConvert_ipam_PrefixAllocationSpec_To_v1alpha1_PrefixAllocationSpec(in *ipam.PrefixAllocationSpec, out *PrefixAllocationSpec, s conversion.Scope) error {
+func autoConvert_ipam_PrefixAllocationSpec_To_v1alpha1_PrefixAllocationSpec(in *ipam.PrefixAllocationSpec, out *v1alpha1.PrefixAllocationSpec, s conversion.Scope) error {
out.IPFamily = v1.IPFamily(in.IPFamily)
out.Prefix = (*commonv1alpha1.IPPrefix)(unsafe.Pointer(in.Prefix))
out.PrefixLength = in.PrefixLength
@@ -261,11 +262,11 @@ func autoConvert_ipam_PrefixAllocationSpec_To_v1alpha1_PrefixAllocationSpec(in *
}
// Convert_ipam_PrefixAllocationSpec_To_v1alpha1_PrefixAllocationSpec is an autogenerated conversion function.
-func Convert_ipam_PrefixAllocationSpec_To_v1alpha1_PrefixAllocationSpec(in *ipam.PrefixAllocationSpec, out *PrefixAllocationSpec, s conversion.Scope) error {
+func Convert_ipam_PrefixAllocationSpec_To_v1alpha1_PrefixAllocationSpec(in *ipam.PrefixAllocationSpec, out *v1alpha1.PrefixAllocationSpec, s conversion.Scope) error {
return autoConvert_ipam_PrefixAllocationSpec_To_v1alpha1_PrefixAllocationSpec(in, out, s)
}
-func autoConvert_v1alpha1_PrefixAllocationStatus_To_ipam_PrefixAllocationStatus(in *PrefixAllocationStatus, out *ipam.PrefixAllocationStatus, s conversion.Scope) error {
+func autoConvert_v1alpha1_PrefixAllocationStatus_To_ipam_PrefixAllocationStatus(in *v1alpha1.PrefixAllocationStatus, out *ipam.PrefixAllocationStatus, s conversion.Scope) error {
out.Prefix = (*commonv1alpha1.IPPrefix)(unsafe.Pointer(in.Prefix))
out.Phase = ipam.PrefixAllocationPhase(in.Phase)
out.LastPhaseTransitionTime = (*metav1.Time)(unsafe.Pointer(in.LastPhaseTransitionTime))
@@ -273,45 +274,45 @@ func autoConvert_v1alpha1_PrefixAllocationStatus_To_ipam_PrefixAllocationStatus(
}
// Convert_v1alpha1_PrefixAllocationStatus_To_ipam_PrefixAllocationStatus is an autogenerated conversion function.
-func Convert_v1alpha1_PrefixAllocationStatus_To_ipam_PrefixAllocationStatus(in *PrefixAllocationStatus, out *ipam.PrefixAllocationStatus, s conversion.Scope) error {
+func Convert_v1alpha1_PrefixAllocationStatus_To_ipam_PrefixAllocationStatus(in *v1alpha1.PrefixAllocationStatus, out *ipam.PrefixAllocationStatus, s conversion.Scope) error {
return autoConvert_v1alpha1_PrefixAllocationStatus_To_ipam_PrefixAllocationStatus(in, out, s)
}
-func autoConvert_ipam_PrefixAllocationStatus_To_v1alpha1_PrefixAllocationStatus(in *ipam.PrefixAllocationStatus, out *PrefixAllocationStatus, s conversion.Scope) error {
+func autoConvert_ipam_PrefixAllocationStatus_To_v1alpha1_PrefixAllocationStatus(in *ipam.PrefixAllocationStatus, out *v1alpha1.PrefixAllocationStatus, s conversion.Scope) error {
out.Prefix = (*commonv1alpha1.IPPrefix)(unsafe.Pointer(in.Prefix))
out.LastPhaseTransitionTime = (*metav1.Time)(unsafe.Pointer(in.LastPhaseTransitionTime))
- out.Phase = PrefixAllocationPhase(in.Phase)
+ out.Phase = v1alpha1.PrefixAllocationPhase(in.Phase)
return nil
}
// Convert_ipam_PrefixAllocationStatus_To_v1alpha1_PrefixAllocationStatus is an autogenerated conversion function.
-func Convert_ipam_PrefixAllocationStatus_To_v1alpha1_PrefixAllocationStatus(in *ipam.PrefixAllocationStatus, out *PrefixAllocationStatus, s conversion.Scope) error {
+func Convert_ipam_PrefixAllocationStatus_To_v1alpha1_PrefixAllocationStatus(in *ipam.PrefixAllocationStatus, out *v1alpha1.PrefixAllocationStatus, s conversion.Scope) error {
return autoConvert_ipam_PrefixAllocationStatus_To_v1alpha1_PrefixAllocationStatus(in, out, s)
}
-func autoConvert_v1alpha1_PrefixList_To_ipam_PrefixList(in *PrefixList, out *ipam.PrefixList, s conversion.Scope) error {
+func autoConvert_v1alpha1_PrefixList_To_ipam_PrefixList(in *v1alpha1.PrefixList, out *ipam.PrefixList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]ipam.Prefix)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1alpha1_PrefixList_To_ipam_PrefixList is an autogenerated conversion function.
-func Convert_v1alpha1_PrefixList_To_ipam_PrefixList(in *PrefixList, out *ipam.PrefixList, s conversion.Scope) error {
+func Convert_v1alpha1_PrefixList_To_ipam_PrefixList(in *v1alpha1.PrefixList, out *ipam.PrefixList, s conversion.Scope) error {
return autoConvert_v1alpha1_PrefixList_To_ipam_PrefixList(in, out, s)
}
-func autoConvert_ipam_PrefixList_To_v1alpha1_PrefixList(in *ipam.PrefixList, out *PrefixList, s conversion.Scope) error {
+func autoConvert_ipam_PrefixList_To_v1alpha1_PrefixList(in *ipam.PrefixList, out *v1alpha1.PrefixList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
- out.Items = *(*[]Prefix)(unsafe.Pointer(&in.Items))
+ out.Items = *(*[]v1alpha1.Prefix)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_ipam_PrefixList_To_v1alpha1_PrefixList is an autogenerated conversion function.
-func Convert_ipam_PrefixList_To_v1alpha1_PrefixList(in *ipam.PrefixList, out *PrefixList, s conversion.Scope) error {
+func Convert_ipam_PrefixList_To_v1alpha1_PrefixList(in *ipam.PrefixList, out *v1alpha1.PrefixList, s conversion.Scope) error {
return autoConvert_ipam_PrefixList_To_v1alpha1_PrefixList(in, out, s)
}
-func autoConvert_v1alpha1_PrefixSpec_To_ipam_PrefixSpec(in *PrefixSpec, out *ipam.PrefixSpec, s conversion.Scope) error {
+func autoConvert_v1alpha1_PrefixSpec_To_ipam_PrefixSpec(in *v1alpha1.PrefixSpec, out *ipam.PrefixSpec, s conversion.Scope) error {
out.IPFamily = v1.IPFamily(in.IPFamily)
out.Prefix = (*commonv1alpha1.IPPrefix)(unsafe.Pointer(in.Prefix))
out.PrefixLength = in.PrefixLength
@@ -321,11 +322,11 @@ func autoConvert_v1alpha1_PrefixSpec_To_ipam_PrefixSpec(in *PrefixSpec, out *ipa
}
// Convert_v1alpha1_PrefixSpec_To_ipam_PrefixSpec is an autogenerated conversion function.
-func Convert_v1alpha1_PrefixSpec_To_ipam_PrefixSpec(in *PrefixSpec, out *ipam.PrefixSpec, s conversion.Scope) error {
+func Convert_v1alpha1_PrefixSpec_To_ipam_PrefixSpec(in *v1alpha1.PrefixSpec, out *ipam.PrefixSpec, s conversion.Scope) error {
return autoConvert_v1alpha1_PrefixSpec_To_ipam_PrefixSpec(in, out, s)
}
-func autoConvert_ipam_PrefixSpec_To_v1alpha1_PrefixSpec(in *ipam.PrefixSpec, out *PrefixSpec, s conversion.Scope) error {
+func autoConvert_ipam_PrefixSpec_To_v1alpha1_PrefixSpec(in *ipam.PrefixSpec, out *v1alpha1.PrefixSpec, s conversion.Scope) error {
out.IPFamily = v1.IPFamily(in.IPFamily)
out.Prefix = (*commonv1alpha1.IPPrefix)(unsafe.Pointer(in.Prefix))
out.PrefixLength = in.PrefixLength
@@ -335,11 +336,11 @@ func autoConvert_ipam_PrefixSpec_To_v1alpha1_PrefixSpec(in *ipam.PrefixSpec, out
}
// Convert_ipam_PrefixSpec_To_v1alpha1_PrefixSpec is an autogenerated conversion function.
-func Convert_ipam_PrefixSpec_To_v1alpha1_PrefixSpec(in *ipam.PrefixSpec, out *PrefixSpec, s conversion.Scope) error {
+func Convert_ipam_PrefixSpec_To_v1alpha1_PrefixSpec(in *ipam.PrefixSpec, out *v1alpha1.PrefixSpec, s conversion.Scope) error {
return autoConvert_ipam_PrefixSpec_To_v1alpha1_PrefixSpec(in, out, s)
}
-func autoConvert_v1alpha1_PrefixStatus_To_ipam_PrefixStatus(in *PrefixStatus, out *ipam.PrefixStatus, s conversion.Scope) error {
+func autoConvert_v1alpha1_PrefixStatus_To_ipam_PrefixStatus(in *v1alpha1.PrefixStatus, out *ipam.PrefixStatus, s conversion.Scope) error {
out.Phase = ipam.PrefixPhase(in.Phase)
out.LastPhaseTransitionTime = (*metav1.Time)(unsafe.Pointer(in.LastPhaseTransitionTime))
out.Used = *(*[]commonv1alpha1.IPPrefix)(unsafe.Pointer(&in.Used))
@@ -347,23 +348,23 @@ func autoConvert_v1alpha1_PrefixStatus_To_ipam_PrefixStatus(in *PrefixStatus, ou
}
// Convert_v1alpha1_PrefixStatus_To_ipam_PrefixStatus is an autogenerated conversion function.
-func Convert_v1alpha1_PrefixStatus_To_ipam_PrefixStatus(in *PrefixStatus, out *ipam.PrefixStatus, s conversion.Scope) error {
+func Convert_v1alpha1_PrefixStatus_To_ipam_PrefixStatus(in *v1alpha1.PrefixStatus, out *ipam.PrefixStatus, s conversion.Scope) error {
return autoConvert_v1alpha1_PrefixStatus_To_ipam_PrefixStatus(in, out, s)
}
-func autoConvert_ipam_PrefixStatus_To_v1alpha1_PrefixStatus(in *ipam.PrefixStatus, out *PrefixStatus, s conversion.Scope) error {
- out.Phase = PrefixPhase(in.Phase)
+func autoConvert_ipam_PrefixStatus_To_v1alpha1_PrefixStatus(in *ipam.PrefixStatus, out *v1alpha1.PrefixStatus, s conversion.Scope) error {
+ out.Phase = v1alpha1.PrefixPhase(in.Phase)
out.LastPhaseTransitionTime = (*metav1.Time)(unsafe.Pointer(in.LastPhaseTransitionTime))
out.Used = *(*[]commonv1alpha1.IPPrefix)(unsafe.Pointer(&in.Used))
return nil
}
// Convert_ipam_PrefixStatus_To_v1alpha1_PrefixStatus is an autogenerated conversion function.
-func Convert_ipam_PrefixStatus_To_v1alpha1_PrefixStatus(in *ipam.PrefixStatus, out *PrefixStatus, s conversion.Scope) error {
+func Convert_ipam_PrefixStatus_To_v1alpha1_PrefixStatus(in *ipam.PrefixStatus, out *v1alpha1.PrefixStatus, s conversion.Scope) error {
return autoConvert_ipam_PrefixStatus_To_v1alpha1_PrefixStatus(in, out, s)
}
-func autoConvert_v1alpha1_PrefixTemplateSpec_To_ipam_PrefixTemplateSpec(in *PrefixTemplateSpec, out *ipam.PrefixTemplateSpec, s conversion.Scope) error {
+func autoConvert_v1alpha1_PrefixTemplateSpec_To_ipam_PrefixTemplateSpec(in *v1alpha1.PrefixTemplateSpec, out *ipam.PrefixTemplateSpec, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha1_PrefixSpec_To_ipam_PrefixSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -372,11 +373,11 @@ func autoConvert_v1alpha1_PrefixTemplateSpec_To_ipam_PrefixTemplateSpec(in *Pref
}
// Convert_v1alpha1_PrefixTemplateSpec_To_ipam_PrefixTemplateSpec is an autogenerated conversion function.
-func Convert_v1alpha1_PrefixTemplateSpec_To_ipam_PrefixTemplateSpec(in *PrefixTemplateSpec, out *ipam.PrefixTemplateSpec, s conversion.Scope) error {
+func Convert_v1alpha1_PrefixTemplateSpec_To_ipam_PrefixTemplateSpec(in *v1alpha1.PrefixTemplateSpec, out *ipam.PrefixTemplateSpec, s conversion.Scope) error {
return autoConvert_v1alpha1_PrefixTemplateSpec_To_ipam_PrefixTemplateSpec(in, out, s)
}
-func autoConvert_ipam_PrefixTemplateSpec_To_v1alpha1_PrefixTemplateSpec(in *ipam.PrefixTemplateSpec, out *PrefixTemplateSpec, s conversion.Scope) error {
+func autoConvert_ipam_PrefixTemplateSpec_To_v1alpha1_PrefixTemplateSpec(in *ipam.PrefixTemplateSpec, out *v1alpha1.PrefixTemplateSpec, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_ipam_PrefixSpec_To_v1alpha1_PrefixSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -385,6 +386,6 @@ func autoConvert_ipam_PrefixTemplateSpec_To_v1alpha1_PrefixTemplateSpec(in *ipam
}
// Convert_ipam_PrefixTemplateSpec_To_v1alpha1_PrefixTemplateSpec is an autogenerated conversion function.
-func Convert_ipam_PrefixTemplateSpec_To_v1alpha1_PrefixTemplateSpec(in *ipam.PrefixTemplateSpec, out *PrefixTemplateSpec, s conversion.Scope) error {
+func Convert_ipam_PrefixTemplateSpec_To_v1alpha1_PrefixTemplateSpec(in *ipam.PrefixTemplateSpec, out *v1alpha1.PrefixTemplateSpec, s conversion.Scope) error {
return autoConvert_ipam_PrefixTemplateSpec_To_v1alpha1_PrefixTemplateSpec(in, out, s)
}
diff --git a/apis/ipam/v1alpha1/zz_generated.defaults.go b/onmetal-apiserver/internal/apis/ipam/v1alpha1/zz_generated.defaults.go
similarity index 58%
rename from apis/ipam/v1alpha1/zz_generated.defaults.go
rename to onmetal-apiserver/internal/apis/ipam/v1alpha1/zz_generated.defaults.go
index 55f9d0ee9..22a390c93 100644
--- a/apis/ipam/v1alpha1/zz_generated.defaults.go
+++ b/onmetal-apiserver/internal/apis/ipam/v1alpha1/zz_generated.defaults.go
@@ -21,6 +21,7 @@
package v1alpha1
import (
+ v1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
runtime "k8s.io/apimachinery/pkg/runtime"
)
@@ -28,29 +29,29 @@ import (
// Public to allow building arbitrary schemes.
// All generated defaulters are covering - they call all nested defaulters.
func RegisterDefaults(scheme *runtime.Scheme) error {
- scheme.AddTypeDefaultingFunc(&Prefix{}, func(obj interface{}) { SetObjectDefaults_Prefix(obj.(*Prefix)) })
- scheme.AddTypeDefaultingFunc(&PrefixAllocation{}, func(obj interface{}) { SetObjectDefaults_PrefixAllocation(obj.(*PrefixAllocation)) })
- scheme.AddTypeDefaultingFunc(&PrefixAllocationList{}, func(obj interface{}) { SetObjectDefaults_PrefixAllocationList(obj.(*PrefixAllocationList)) })
- scheme.AddTypeDefaultingFunc(&PrefixList{}, func(obj interface{}) { SetObjectDefaults_PrefixList(obj.(*PrefixList)) })
+ scheme.AddTypeDefaultingFunc(&v1alpha1.Prefix{}, func(obj interface{}) { SetObjectDefaults_Prefix(obj.(*v1alpha1.Prefix)) })
+ scheme.AddTypeDefaultingFunc(&v1alpha1.PrefixAllocation{}, func(obj interface{}) { SetObjectDefaults_PrefixAllocation(obj.(*v1alpha1.PrefixAllocation)) })
+ scheme.AddTypeDefaultingFunc(&v1alpha1.PrefixAllocationList{}, func(obj interface{}) { SetObjectDefaults_PrefixAllocationList(obj.(*v1alpha1.PrefixAllocationList)) })
+ scheme.AddTypeDefaultingFunc(&v1alpha1.PrefixList{}, func(obj interface{}) { SetObjectDefaults_PrefixList(obj.(*v1alpha1.PrefixList)) })
return nil
}
-func SetObjectDefaults_Prefix(in *Prefix) {
+func SetObjectDefaults_Prefix(in *v1alpha1.Prefix) {
SetDefaults_PrefixSpec(&in.Spec)
}
-func SetObjectDefaults_PrefixAllocation(in *PrefixAllocation) {
+func SetObjectDefaults_PrefixAllocation(in *v1alpha1.PrefixAllocation) {
SetDefaults_PrefixAllocationSpec(&in.Spec)
}
-func SetObjectDefaults_PrefixAllocationList(in *PrefixAllocationList) {
+func SetObjectDefaults_PrefixAllocationList(in *v1alpha1.PrefixAllocationList) {
for i := range in.Items {
a := &in.Items[i]
SetObjectDefaults_PrefixAllocation(a)
}
}
-func SetObjectDefaults_PrefixList(in *PrefixList) {
+func SetObjectDefaults_PrefixList(in *v1alpha1.PrefixList) {
for i := range in.Items {
a := &in.Items[i]
SetObjectDefaults_Prefix(a)
diff --git a/apis/ipam/validation/prefix.go b/onmetal-apiserver/internal/apis/ipam/validation/prefix.go
similarity index 91%
rename from apis/ipam/validation/prefix.go
rename to onmetal-apiserver/internal/apis/ipam/validation/prefix.go
index 6fe241c17..3f64ffe74 100644
--- a/apis/ipam/validation/prefix.go
+++ b/onmetal-apiserver/internal/apis/ipam/validation/prefix.go
@@ -17,10 +17,10 @@ package validation
import (
"fmt"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- commonv1alpha1validation "github.com/onmetal/onmetal-api/apis/common/v1alpha1/validation"
- "github.com/onmetal/onmetal-api/apis/ipam"
- onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/api/validation"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api/validation"
+ commonvalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/common/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
"go4.org/netipx"
corev1 "k8s.io/api/core/v1"
apivalidation "k8s.io/apimachinery/pkg/api/validation"
@@ -44,10 +44,10 @@ func validateIPFamilyAndOptionalPrefixAndLength(ipFamily corev1.IPFamily, prefix
allErrs = append(allErrs, onmetalapivalidation.ValidateIPFamily(ipFamily, fldPath.Child("ipFamily"))...)
if prefix != nil {
- allErrs = append(allErrs, commonv1alpha1validation.ValidateIPPrefix(ipFamily, *prefix, fldPath.Child("prefix"))...)
+ allErrs = append(allErrs, commonvalidation.ValidateIPPrefix(ipFamily, *prefix, fldPath.Child("prefix"))...)
}
if prefixLength != 0 {
- allErrs = append(allErrs, commonv1alpha1validation.ValidatePrefixLength(ipFamily, prefixLength, fldPath.Child("prefixLength"))...)
+ allErrs = append(allErrs, commonvalidation.ValidatePrefixLength(ipFamily, prefixLength, fldPath.Child("prefixLength"))...)
}
return allErrs
@@ -74,7 +74,7 @@ func ValidatePrefixSpec(spec *ipam.PrefixSpec, fldPath *field.Path) field.ErrorL
var allErrs field.ErrorList
if spec.Prefix != nil {
- allErrs = append(allErrs, commonv1alpha1validation.ValidateIPPrefix(spec.IPFamily, *spec.Prefix, fldPath.Child("prefix"))...)
+ allErrs = append(allErrs, commonvalidation.ValidateIPPrefix(spec.IPFamily, *spec.Prefix, fldPath.Child("prefix"))...)
}
allErrs = append(allErrs, validateIPFamilyAndOptionalPrefixAndLength(spec.IPFamily, spec.Prefix, spec.PrefixLength, fldPath)...)
@@ -156,7 +156,7 @@ func ValidatePrefixStatus(status *ipam.PrefixStatus, fldPath *field.Path) field.
)
for i, used := range status.Used {
usedField := fldPath.Child("used").Index(i)
- allErrs = append(allErrs, commonv1alpha1validation.ValidateIPPrefix(used.IP().Family(), used, usedField)...)
+ allErrs = append(allErrs, commonvalidation.ValidateIPPrefix(used.IP().Family(), used, usedField)...)
seenFamilies.Insert(string(used.IP().Family()))
if !overlapSeen {
diff --git a/apis/ipam/validation/prefix_test.go b/onmetal-apiserver/internal/apis/ipam/validation/prefix_test.go
similarity index 97%
rename from apis/ipam/validation/prefix_test.go
rename to onmetal-apiserver/internal/apis/ipam/validation/prefix_test.go
index 23fe0c3eb..c591c3c0e 100644
--- a/apis/ipam/validation/prefix_test.go
+++ b/onmetal-apiserver/internal/apis/ipam/validation/prefix_test.go
@@ -15,10 +15,10 @@
package validation_test
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- "github.com/onmetal/onmetal-api/apis/ipam"
- . "github.com/onmetal/onmetal-api/apis/ipam/validation"
- . "github.com/onmetal/onmetal-api/testutils/validation"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam/validation"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/testutils/validation"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
diff --git a/apis/ipam/validation/prefixallocation.go b/onmetal-apiserver/internal/apis/ipam/validation/prefixallocation.go
similarity index 92%
rename from apis/ipam/validation/prefixallocation.go
rename to onmetal-apiserver/internal/apis/ipam/validation/prefixallocation.go
index 483d3d2fa..33189928d 100644
--- a/apis/ipam/validation/prefixallocation.go
+++ b/onmetal-apiserver/internal/apis/ipam/validation/prefixallocation.go
@@ -17,10 +17,10 @@ package validation
import (
"fmt"
- commonv1alpha1validation "github.com/onmetal/onmetal-api/apis/common/v1alpha1/validation"
- "github.com/onmetal/onmetal-api/apis/ipam"
"github.com/onmetal/onmetal-api/apiutils/equality"
- onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/api/validation"
+ onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api/validation"
+ commonvalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/common/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
apivalidation "k8s.io/apimachinery/pkg/api/validation"
metav1validation "k8s.io/apimachinery/pkg/apis/meta/v1/validation"
"k8s.io/apimachinery/pkg/util/validation/field"
@@ -100,7 +100,7 @@ func ValidatePrefixAllocationStatus(status *ipam.PrefixAllocationStatus, fldPath
var allErrs field.ErrorList
if status.Prefix != nil {
- allErrs = append(allErrs, commonv1alpha1validation.ValidateIPPrefix(status.Prefix.IP().Family(), *status.Prefix, fldPath.Child("prefix"))...)
+ allErrs = append(allErrs, commonvalidation.ValidateIPPrefix(status.Prefix.IP().Family(), *status.Prefix, fldPath.Child("prefix"))...)
}
switch status.Phase {
@@ -133,7 +133,7 @@ func ValidatePrefixAllocationStatusUpdate(newPrefixAllocation, oldPrefixAllocati
statusPrefixField := statusField.Child("prefix")
if newStatusPrefix := newPrefixAllocation.Status.Prefix; newStatusPrefix != nil {
- allErrs = append(allErrs, commonv1alpha1validation.ValidateIPPrefix(newPrefixAllocation.Spec.IPFamily, *newStatusPrefix, statusPrefixField)...)
+ allErrs = append(allErrs, commonvalidation.ValidateIPPrefix(newPrefixAllocation.Spec.IPFamily, *newStatusPrefix, statusPrefixField)...)
if newSpecPrefix := newPrefixAllocation.Spec.Prefix; newSpecPrefix.IsValid() {
if !equality.Semantic.DeepEqual(newStatusPrefix, newSpecPrefix) {
diff --git a/apis/ipam/validation/prefixallocation_test.go b/onmetal-apiserver/internal/apis/ipam/validation/prefixallocation_test.go
similarity index 96%
rename from apis/ipam/validation/prefixallocation_test.go
rename to onmetal-apiserver/internal/apis/ipam/validation/prefixallocation_test.go
index 36eed7c90..fb2dc3afc 100644
--- a/apis/ipam/validation/prefixallocation_test.go
+++ b/onmetal-apiserver/internal/apis/ipam/validation/prefixallocation_test.go
@@ -15,17 +15,16 @@
package validation_test
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- "github.com/onmetal/onmetal-api/apis/ipam"
- . "github.com/onmetal/onmetal-api/testutils/validation"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam/validation"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/testutils/validation"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/validation/field"
-
- . "github.com/onmetal/onmetal-api/apis/ipam/validation"
)
var _ = Describe("PrefixAllocation", func() {
diff --git a/apis/ipam/validation/prefixtemplate.go b/onmetal-apiserver/internal/apis/ipam/validation/prefixtemplate.go
similarity index 95%
rename from apis/ipam/validation/prefixtemplate.go
rename to onmetal-apiserver/internal/apis/ipam/validation/prefixtemplate.go
index 1a826c49f..4fe6037db 100644
--- a/apis/ipam/validation/prefixtemplate.go
+++ b/onmetal-apiserver/internal/apis/ipam/validation/prefixtemplate.go
@@ -15,8 +15,8 @@
package validation
import (
- "github.com/onmetal/onmetal-api/apis/ipam"
- onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/api/validation"
+ onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
apivalidation "k8s.io/apimachinery/pkg/api/validation"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
metav1validation "k8s.io/apimachinery/pkg/apis/meta/v1/validation"
diff --git a/apis/ipam/validation/prefixtemplate_test.go b/onmetal-apiserver/internal/apis/ipam/validation/prefixtemplate_test.go
similarity index 89%
rename from apis/ipam/validation/prefixtemplate_test.go
rename to onmetal-apiserver/internal/apis/ipam/validation/prefixtemplate_test.go
index ddbc90599..f550099bd 100644
--- a/apis/ipam/validation/prefixtemplate_test.go
+++ b/onmetal-apiserver/internal/apis/ipam/validation/prefixtemplate_test.go
@@ -15,16 +15,15 @@
package validation_test
import (
- "github.com/onmetal/onmetal-api/apis/ipam"
- . "github.com/onmetal/onmetal-api/testutils/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam/validation"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/testutils/validation"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/validation/field"
-
- . "github.com/onmetal/onmetal-api/apis/ipam/validation"
)
var _ = Describe("PrefixTemplate", func() {
diff --git a/apis/ipam/validation/validation_suite_test.go b/onmetal-apiserver/internal/apis/ipam/validation/validation_suite_test.go
similarity index 100%
rename from apis/ipam/validation/validation_suite_test.go
rename to onmetal-apiserver/internal/apis/ipam/validation/validation_suite_test.go
diff --git a/apis/ipam/zz_generated.deepcopy.go b/onmetal-apiserver/internal/apis/ipam/zz_generated.deepcopy.go
similarity index 99%
rename from apis/ipam/zz_generated.deepcopy.go
rename to onmetal-apiserver/internal/apis/ipam/zz_generated.deepcopy.go
index 1d9ef4900..bcce20028 100644
--- a/apis/ipam/zz_generated.deepcopy.go
+++ b/onmetal-apiserver/internal/apis/ipam/zz_generated.deepcopy.go
@@ -21,7 +21,7 @@
package ipam
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
diff --git a/apis/networking/aliasprefix_type.go b/onmetal-apiserver/internal/apis/networking/aliasprefix_type.go
similarity index 96%
rename from apis/networking/aliasprefix_type.go
rename to onmetal-apiserver/internal/apis/networking/aliasprefix_type.go
index 5a9fa30d6..ba6ad4aab 100644
--- a/apis/networking/aliasprefix_type.go
+++ b/onmetal-apiserver/internal/apis/networking/aliasprefix_type.go
@@ -17,7 +17,7 @@
package networking
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apis/networking/aliasprefixrouting_type.go b/onmetal-apiserver/internal/apis/networking/aliasprefixrouting_type.go
similarity index 94%
rename from apis/networking/aliasprefixrouting_type.go
rename to onmetal-apiserver/internal/apis/networking/aliasprefixrouting_type.go
index 2086fb110..7995c13a8 100644
--- a/apis/networking/aliasprefixrouting_type.go
+++ b/onmetal-apiserver/internal/apis/networking/aliasprefixrouting_type.go
@@ -17,7 +17,7 @@
package networking
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apis/networking/common.go b/onmetal-apiserver/internal/apis/networking/common.go
similarity index 94%
rename from apis/networking/common.go
rename to onmetal-apiserver/internal/apis/networking/common.go
index 65c46e5fe..dc0d18134 100644
--- a/apis/networking/common.go
+++ b/onmetal-apiserver/internal/apis/networking/common.go
@@ -17,7 +17,7 @@
package networking
import (
- "github.com/onmetal/onmetal-api/apis/ipam"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
)
// EphemeralPrefixSource contains the definition to create an ephemeral (i.e. coupled to the lifetime of the
diff --git a/apis/networking/doc.go b/onmetal-apiserver/internal/apis/networking/doc.go
similarity index 98%
rename from apis/networking/doc.go
rename to onmetal-apiserver/internal/apis/networking/doc.go
index 0ae919388..25739554b 100644
--- a/apis/networking/doc.go
+++ b/onmetal-apiserver/internal/apis/networking/doc.go
@@ -21,4 +21,4 @@
// +groupName=networking.api.onmetal.de
// Package networking is the internal version of the API.
-package networking // import "github.com/onmetal/onmetal-api/apis/networking"
+package networking // import "github.com/onmetal/onmetal-api/api/networking"
diff --git a/apis/networking/install/install.go b/onmetal-apiserver/internal/apis/networking/install/install.go
similarity index 84%
rename from apis/networking/install/install.go
rename to onmetal-apiserver/internal/apis/networking/install/install.go
index 4eea44cb3..74b9eb54d 100644
--- a/apis/networking/install/install.go
+++ b/onmetal-apiserver/internal/apis/networking/install/install.go
@@ -15,8 +15,8 @@
package install
import (
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking/v1alpha1"
"k8s.io/apimachinery/pkg/runtime"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
)
diff --git a/apis/networking/loadbalancer_type.go b/onmetal-apiserver/internal/apis/networking/loadbalancer_type.go
similarity index 97%
rename from apis/networking/loadbalancer_type.go
rename to onmetal-apiserver/internal/apis/networking/loadbalancer_type.go
index 1143a360b..1635e1e2c 100644
--- a/apis/networking/loadbalancer_type.go
+++ b/onmetal-apiserver/internal/apis/networking/loadbalancer_type.go
@@ -17,7 +17,7 @@
package networking
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apis/networking/loadbalancerrouting_type.go b/onmetal-apiserver/internal/apis/networking/loadbalancerrouting_type.go
similarity index 95%
rename from apis/networking/loadbalancerrouting_type.go
rename to onmetal-apiserver/internal/apis/networking/loadbalancerrouting_type.go
index abdb59a0d..ebbfdb3bf 100644
--- a/apis/networking/loadbalancerrouting_type.go
+++ b/onmetal-apiserver/internal/apis/networking/loadbalancerrouting_type.go
@@ -17,7 +17,7 @@
package networking
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apis/networking/natgateway_type.go b/onmetal-apiserver/internal/apis/networking/natgateway_type.go
similarity index 97%
rename from apis/networking/natgateway_type.go
rename to onmetal-apiserver/internal/apis/networking/natgateway_type.go
index 7ec8974a0..5bdb3b082 100644
--- a/apis/networking/natgateway_type.go
+++ b/onmetal-apiserver/internal/apis/networking/natgateway_type.go
@@ -17,7 +17,7 @@
package networking
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apis/networking/natgatewayrouting_type.go b/onmetal-apiserver/internal/apis/networking/natgatewayrouting_type.go
similarity index 96%
rename from apis/networking/natgatewayrouting_type.go
rename to onmetal-apiserver/internal/apis/networking/natgatewayrouting_type.go
index 0b468eff7..dac7e4513 100644
--- a/apis/networking/natgatewayrouting_type.go
+++ b/onmetal-apiserver/internal/apis/networking/natgatewayrouting_type.go
@@ -17,7 +17,7 @@
package networking
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apis/networking/network_type.go b/onmetal-apiserver/internal/apis/networking/network_type.go
similarity index 100%
rename from apis/networking/network_type.go
rename to onmetal-apiserver/internal/apis/networking/network_type.go
diff --git a/apis/networking/networkinterface_types.go b/onmetal-apiserver/internal/apis/networking/networkinterface_types.go
similarity index 98%
rename from apis/networking/networkinterface_types.go
rename to onmetal-apiserver/internal/apis/networking/networkinterface_types.go
index 527046b0a..b7a59902b 100644
--- a/apis/networking/networkinterface_types.go
+++ b/onmetal-apiserver/internal/apis/networking/networkinterface_types.go
@@ -17,7 +17,7 @@
package networking
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apis/networking/register.go b/onmetal-apiserver/internal/apis/networking/register.go
similarity index 100%
rename from apis/networking/register.go
rename to onmetal-apiserver/internal/apis/networking/register.go
diff --git a/apis/networking/util.go b/onmetal-apiserver/internal/apis/networking/util.go
similarity index 100%
rename from apis/networking/util.go
rename to onmetal-apiserver/internal/apis/networking/util.go
diff --git a/apis/networking/v1alpha1/defaults.go b/onmetal-apiserver/internal/apis/networking/v1alpha1/defaults.go
similarity index 93%
rename from apis/networking/v1alpha1/defaults.go
rename to onmetal-apiserver/internal/apis/networking/v1alpha1/defaults.go
index 50246011f..fb36ed453 100644
--- a/apis/networking/v1alpha1/defaults.go
+++ b/onmetal-apiserver/internal/apis/networking/v1alpha1/defaults.go
@@ -17,6 +17,7 @@
package v1alpha1
import (
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
)
@@ -32,7 +33,7 @@ func addDefaultingFuncs(scheme *runtime.Scheme) error {
return RegisterDefaults(scheme)
}
-func SetDefaults_NetworkInterfaceSpec(spec *NetworkInterfaceSpec) {
+func SetDefaults_NetworkInterfaceSpec(spec *v1alpha1.NetworkInterfaceSpec) {
if len(spec.IPFamilies) > 0 {
if len(spec.IPFamilies) == len(spec.IPs) {
for i, ip := range spec.IPs {
diff --git a/onmetal-apiserver/internal/apis/networking/v1alpha1/doc.go b/onmetal-apiserver/internal/apis/networking/v1alpha1/doc.go
new file mode 100644
index 000000000..06f5e4ae3
--- /dev/null
+++ b/onmetal-apiserver/internal/apis/networking/v1alpha1/doc.go
@@ -0,0 +1,21 @@
+// Copyright 2022 OnMetal authors
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// +k8s:conversion-gen=github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking
+// +k8s:conversion-gen-external-types=github.com/onmetal/onmetal-api/api/networking/v1alpha1
+// +k8s:defaulter-gen=TypeMeta
+// +k8s:defaulter-gen-input=github.com/onmetal/onmetal-api/api/networking/v1alpha1
+
+// Package v1alpha1 is the v1alpha1 version of the API.
+package v1alpha1 // import "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking/v1alpha1"
diff --git a/onmetal-apiserver/internal/apis/networking/v1alpha1/register.go b/onmetal-apiserver/internal/apis/networking/v1alpha1/register.go
new file mode 100644
index 000000000..784b029ec
--- /dev/null
+++ b/onmetal-apiserver/internal/apis/networking/v1alpha1/register.go
@@ -0,0 +1,42 @@
+/*
+ * Copyright (c) 2021 by the OnMetal authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+// Package v1alpha1 contains API Schema definitions for the networking v1alpha1 API group
+// +groupName=networking.api.onmetal.de
+package v1alpha1
+
+import (
+ "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ "k8s.io/apimachinery/pkg/runtime/schema"
+)
+
+var (
+ // SchemeGroupVersion is group version used to register these objects
+ SchemeGroupVersion = schema.GroupVersion{Group: "networking.api.onmetal.de", Version: "v1alpha1"}
+
+ localSchemeBuilder = &v1alpha1.SchemeBuilder
+
+ // AddToScheme adds the types in this group-version to the given scheme.
+ AddToScheme = localSchemeBuilder.AddToScheme
+)
+
+func Resource(resource string) schema.GroupResource {
+ return SchemeGroupVersion.WithResource(resource).GroupResource()
+}
+
+func init() {
+ localSchemeBuilder.Register(addDefaultingFuncs)
+}
diff --git a/apis/networking/v1alpha1/zz_generated.conversion.go b/onmetal-apiserver/internal/apis/networking/v1alpha1/zz_generated.conversion.go
similarity index 58%
rename from apis/networking/v1alpha1/zz_generated.conversion.go
rename to onmetal-apiserver/internal/apis/networking/v1alpha1/zz_generated.conversion.go
index bf0b00946..45ed49fdd 100644
--- a/apis/networking/v1alpha1/zz_generated.conversion.go
+++ b/onmetal-apiserver/internal/apis/networking/v1alpha1/zz_generated.conversion.go
@@ -23,10 +23,11 @@ package v1alpha1
import (
unsafe "unsafe"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- ipam "github.com/onmetal/onmetal-api/apis/ipam"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
- networking "github.com/onmetal/onmetal-api/apis/networking"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ ipam "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
+ networking "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
corev1 "k8s.io/api/core/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion"
@@ -40,430 +41,430 @@ func init() {
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(s *runtime.Scheme) error {
- if err := s.AddGeneratedConversionFunc((*AliasPrefix)(nil), (*networking.AliasPrefix)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_AliasPrefix_To_networking_AliasPrefix(a.(*AliasPrefix), b.(*networking.AliasPrefix), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.AliasPrefix)(nil), (*networking.AliasPrefix)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_AliasPrefix_To_networking_AliasPrefix(a.(*v1alpha1.AliasPrefix), b.(*networking.AliasPrefix), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.AliasPrefix)(nil), (*AliasPrefix)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_AliasPrefix_To_v1alpha1_AliasPrefix(a.(*networking.AliasPrefix), b.(*AliasPrefix), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.AliasPrefix)(nil), (*v1alpha1.AliasPrefix)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_AliasPrefix_To_v1alpha1_AliasPrefix(a.(*networking.AliasPrefix), b.(*v1alpha1.AliasPrefix), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*AliasPrefixList)(nil), (*networking.AliasPrefixList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_AliasPrefixList_To_networking_AliasPrefixList(a.(*AliasPrefixList), b.(*networking.AliasPrefixList), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.AliasPrefixList)(nil), (*networking.AliasPrefixList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_AliasPrefixList_To_networking_AliasPrefixList(a.(*v1alpha1.AliasPrefixList), b.(*networking.AliasPrefixList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.AliasPrefixList)(nil), (*AliasPrefixList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_AliasPrefixList_To_v1alpha1_AliasPrefixList(a.(*networking.AliasPrefixList), b.(*AliasPrefixList), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.AliasPrefixList)(nil), (*v1alpha1.AliasPrefixList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_AliasPrefixList_To_v1alpha1_AliasPrefixList(a.(*networking.AliasPrefixList), b.(*v1alpha1.AliasPrefixList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*AliasPrefixRouting)(nil), (*networking.AliasPrefixRouting)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_AliasPrefixRouting_To_networking_AliasPrefixRouting(a.(*AliasPrefixRouting), b.(*networking.AliasPrefixRouting), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.AliasPrefixRouting)(nil), (*networking.AliasPrefixRouting)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_AliasPrefixRouting_To_networking_AliasPrefixRouting(a.(*v1alpha1.AliasPrefixRouting), b.(*networking.AliasPrefixRouting), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.AliasPrefixRouting)(nil), (*AliasPrefixRouting)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_AliasPrefixRouting_To_v1alpha1_AliasPrefixRouting(a.(*networking.AliasPrefixRouting), b.(*AliasPrefixRouting), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.AliasPrefixRouting)(nil), (*v1alpha1.AliasPrefixRouting)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_AliasPrefixRouting_To_v1alpha1_AliasPrefixRouting(a.(*networking.AliasPrefixRouting), b.(*v1alpha1.AliasPrefixRouting), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*AliasPrefixRoutingList)(nil), (*networking.AliasPrefixRoutingList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_AliasPrefixRoutingList_To_networking_AliasPrefixRoutingList(a.(*AliasPrefixRoutingList), b.(*networking.AliasPrefixRoutingList), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.AliasPrefixRoutingList)(nil), (*networking.AliasPrefixRoutingList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_AliasPrefixRoutingList_To_networking_AliasPrefixRoutingList(a.(*v1alpha1.AliasPrefixRoutingList), b.(*networking.AliasPrefixRoutingList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.AliasPrefixRoutingList)(nil), (*AliasPrefixRoutingList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_AliasPrefixRoutingList_To_v1alpha1_AliasPrefixRoutingList(a.(*networking.AliasPrefixRoutingList), b.(*AliasPrefixRoutingList), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.AliasPrefixRoutingList)(nil), (*v1alpha1.AliasPrefixRoutingList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_AliasPrefixRoutingList_To_v1alpha1_AliasPrefixRoutingList(a.(*networking.AliasPrefixRoutingList), b.(*v1alpha1.AliasPrefixRoutingList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*AliasPrefixSpec)(nil), (*networking.AliasPrefixSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_AliasPrefixSpec_To_networking_AliasPrefixSpec(a.(*AliasPrefixSpec), b.(*networking.AliasPrefixSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.AliasPrefixSpec)(nil), (*networking.AliasPrefixSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_AliasPrefixSpec_To_networking_AliasPrefixSpec(a.(*v1alpha1.AliasPrefixSpec), b.(*networking.AliasPrefixSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.AliasPrefixSpec)(nil), (*AliasPrefixSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_AliasPrefixSpec_To_v1alpha1_AliasPrefixSpec(a.(*networking.AliasPrefixSpec), b.(*AliasPrefixSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.AliasPrefixSpec)(nil), (*v1alpha1.AliasPrefixSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_AliasPrefixSpec_To_v1alpha1_AliasPrefixSpec(a.(*networking.AliasPrefixSpec), b.(*v1alpha1.AliasPrefixSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*AliasPrefixStatus)(nil), (*networking.AliasPrefixStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_AliasPrefixStatus_To_networking_AliasPrefixStatus(a.(*AliasPrefixStatus), b.(*networking.AliasPrefixStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.AliasPrefixStatus)(nil), (*networking.AliasPrefixStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_AliasPrefixStatus_To_networking_AliasPrefixStatus(a.(*v1alpha1.AliasPrefixStatus), b.(*networking.AliasPrefixStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.AliasPrefixStatus)(nil), (*AliasPrefixStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_AliasPrefixStatus_To_v1alpha1_AliasPrefixStatus(a.(*networking.AliasPrefixStatus), b.(*AliasPrefixStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.AliasPrefixStatus)(nil), (*v1alpha1.AliasPrefixStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_AliasPrefixStatus_To_v1alpha1_AliasPrefixStatus(a.(*networking.AliasPrefixStatus), b.(*v1alpha1.AliasPrefixStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*EphemeralPrefixSource)(nil), (*networking.EphemeralPrefixSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_EphemeralPrefixSource_To_networking_EphemeralPrefixSource(a.(*EphemeralPrefixSource), b.(*networking.EphemeralPrefixSource), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.EphemeralPrefixSource)(nil), (*networking.EphemeralPrefixSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_EphemeralPrefixSource_To_networking_EphemeralPrefixSource(a.(*v1alpha1.EphemeralPrefixSource), b.(*networking.EphemeralPrefixSource), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.EphemeralPrefixSource)(nil), (*EphemeralPrefixSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_EphemeralPrefixSource_To_v1alpha1_EphemeralPrefixSource(a.(*networking.EphemeralPrefixSource), b.(*EphemeralPrefixSource), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.EphemeralPrefixSource)(nil), (*v1alpha1.EphemeralPrefixSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_EphemeralPrefixSource_To_v1alpha1_EphemeralPrefixSource(a.(*networking.EphemeralPrefixSource), b.(*v1alpha1.EphemeralPrefixSource), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*EphemeralVirtualIPSource)(nil), (*networking.EphemeralVirtualIPSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_EphemeralVirtualIPSource_To_networking_EphemeralVirtualIPSource(a.(*EphemeralVirtualIPSource), b.(*networking.EphemeralVirtualIPSource), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.EphemeralVirtualIPSource)(nil), (*networking.EphemeralVirtualIPSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_EphemeralVirtualIPSource_To_networking_EphemeralVirtualIPSource(a.(*v1alpha1.EphemeralVirtualIPSource), b.(*networking.EphemeralVirtualIPSource), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.EphemeralVirtualIPSource)(nil), (*EphemeralVirtualIPSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_EphemeralVirtualIPSource_To_v1alpha1_EphemeralVirtualIPSource(a.(*networking.EphemeralVirtualIPSource), b.(*EphemeralVirtualIPSource), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.EphemeralVirtualIPSource)(nil), (*v1alpha1.EphemeralVirtualIPSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_EphemeralVirtualIPSource_To_v1alpha1_EphemeralVirtualIPSource(a.(*networking.EphemeralVirtualIPSource), b.(*v1alpha1.EphemeralVirtualIPSource), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*IPSource)(nil), (*networking.IPSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_IPSource_To_networking_IPSource(a.(*IPSource), b.(*networking.IPSource), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.IPSource)(nil), (*networking.IPSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_IPSource_To_networking_IPSource(a.(*v1alpha1.IPSource), b.(*networking.IPSource), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.IPSource)(nil), (*IPSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_IPSource_To_v1alpha1_IPSource(a.(*networking.IPSource), b.(*IPSource), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.IPSource)(nil), (*v1alpha1.IPSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_IPSource_To_v1alpha1_IPSource(a.(*networking.IPSource), b.(*v1alpha1.IPSource), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*LoadBalancer)(nil), (*networking.LoadBalancer)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_LoadBalancer_To_networking_LoadBalancer(a.(*LoadBalancer), b.(*networking.LoadBalancer), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.LoadBalancer)(nil), (*networking.LoadBalancer)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_LoadBalancer_To_networking_LoadBalancer(a.(*v1alpha1.LoadBalancer), b.(*networking.LoadBalancer), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.LoadBalancer)(nil), (*LoadBalancer)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_LoadBalancer_To_v1alpha1_LoadBalancer(a.(*networking.LoadBalancer), b.(*LoadBalancer), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.LoadBalancer)(nil), (*v1alpha1.LoadBalancer)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_LoadBalancer_To_v1alpha1_LoadBalancer(a.(*networking.LoadBalancer), b.(*v1alpha1.LoadBalancer), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*LoadBalancerList)(nil), (*networking.LoadBalancerList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_LoadBalancerList_To_networking_LoadBalancerList(a.(*LoadBalancerList), b.(*networking.LoadBalancerList), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.LoadBalancerList)(nil), (*networking.LoadBalancerList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_LoadBalancerList_To_networking_LoadBalancerList(a.(*v1alpha1.LoadBalancerList), b.(*networking.LoadBalancerList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.LoadBalancerList)(nil), (*LoadBalancerList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_LoadBalancerList_To_v1alpha1_LoadBalancerList(a.(*networking.LoadBalancerList), b.(*LoadBalancerList), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.LoadBalancerList)(nil), (*v1alpha1.LoadBalancerList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_LoadBalancerList_To_v1alpha1_LoadBalancerList(a.(*networking.LoadBalancerList), b.(*v1alpha1.LoadBalancerList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*LoadBalancerPort)(nil), (*networking.LoadBalancerPort)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_LoadBalancerPort_To_networking_LoadBalancerPort(a.(*LoadBalancerPort), b.(*networking.LoadBalancerPort), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.LoadBalancerPort)(nil), (*networking.LoadBalancerPort)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_LoadBalancerPort_To_networking_LoadBalancerPort(a.(*v1alpha1.LoadBalancerPort), b.(*networking.LoadBalancerPort), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.LoadBalancerPort)(nil), (*LoadBalancerPort)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_LoadBalancerPort_To_v1alpha1_LoadBalancerPort(a.(*networking.LoadBalancerPort), b.(*LoadBalancerPort), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.LoadBalancerPort)(nil), (*v1alpha1.LoadBalancerPort)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_LoadBalancerPort_To_v1alpha1_LoadBalancerPort(a.(*networking.LoadBalancerPort), b.(*v1alpha1.LoadBalancerPort), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*LoadBalancerRouting)(nil), (*networking.LoadBalancerRouting)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_LoadBalancerRouting_To_networking_LoadBalancerRouting(a.(*LoadBalancerRouting), b.(*networking.LoadBalancerRouting), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.LoadBalancerRouting)(nil), (*networking.LoadBalancerRouting)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_LoadBalancerRouting_To_networking_LoadBalancerRouting(a.(*v1alpha1.LoadBalancerRouting), b.(*networking.LoadBalancerRouting), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.LoadBalancerRouting)(nil), (*LoadBalancerRouting)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_LoadBalancerRouting_To_v1alpha1_LoadBalancerRouting(a.(*networking.LoadBalancerRouting), b.(*LoadBalancerRouting), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.LoadBalancerRouting)(nil), (*v1alpha1.LoadBalancerRouting)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_LoadBalancerRouting_To_v1alpha1_LoadBalancerRouting(a.(*networking.LoadBalancerRouting), b.(*v1alpha1.LoadBalancerRouting), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*LoadBalancerRoutingList)(nil), (*networking.LoadBalancerRoutingList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_LoadBalancerRoutingList_To_networking_LoadBalancerRoutingList(a.(*LoadBalancerRoutingList), b.(*networking.LoadBalancerRoutingList), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.LoadBalancerRoutingList)(nil), (*networking.LoadBalancerRoutingList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_LoadBalancerRoutingList_To_networking_LoadBalancerRoutingList(a.(*v1alpha1.LoadBalancerRoutingList), b.(*networking.LoadBalancerRoutingList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.LoadBalancerRoutingList)(nil), (*LoadBalancerRoutingList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_LoadBalancerRoutingList_To_v1alpha1_LoadBalancerRoutingList(a.(*networking.LoadBalancerRoutingList), b.(*LoadBalancerRoutingList), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.LoadBalancerRoutingList)(nil), (*v1alpha1.LoadBalancerRoutingList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_LoadBalancerRoutingList_To_v1alpha1_LoadBalancerRoutingList(a.(*networking.LoadBalancerRoutingList), b.(*v1alpha1.LoadBalancerRoutingList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*LoadBalancerSpec)(nil), (*networking.LoadBalancerSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_LoadBalancerSpec_To_networking_LoadBalancerSpec(a.(*LoadBalancerSpec), b.(*networking.LoadBalancerSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.LoadBalancerSpec)(nil), (*networking.LoadBalancerSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_LoadBalancerSpec_To_networking_LoadBalancerSpec(a.(*v1alpha1.LoadBalancerSpec), b.(*networking.LoadBalancerSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.LoadBalancerSpec)(nil), (*LoadBalancerSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_LoadBalancerSpec_To_v1alpha1_LoadBalancerSpec(a.(*networking.LoadBalancerSpec), b.(*LoadBalancerSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.LoadBalancerSpec)(nil), (*v1alpha1.LoadBalancerSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_LoadBalancerSpec_To_v1alpha1_LoadBalancerSpec(a.(*networking.LoadBalancerSpec), b.(*v1alpha1.LoadBalancerSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*LoadBalancerStatus)(nil), (*networking.LoadBalancerStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_LoadBalancerStatus_To_networking_LoadBalancerStatus(a.(*LoadBalancerStatus), b.(*networking.LoadBalancerStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.LoadBalancerStatus)(nil), (*networking.LoadBalancerStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_LoadBalancerStatus_To_networking_LoadBalancerStatus(a.(*v1alpha1.LoadBalancerStatus), b.(*networking.LoadBalancerStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.LoadBalancerStatus)(nil), (*LoadBalancerStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_LoadBalancerStatus_To_v1alpha1_LoadBalancerStatus(a.(*networking.LoadBalancerStatus), b.(*LoadBalancerStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.LoadBalancerStatus)(nil), (*v1alpha1.LoadBalancerStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_LoadBalancerStatus_To_v1alpha1_LoadBalancerStatus(a.(*networking.LoadBalancerStatus), b.(*v1alpha1.LoadBalancerStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NATGateway)(nil), (*networking.NATGateway)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NATGateway_To_networking_NATGateway(a.(*NATGateway), b.(*networking.NATGateway), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NATGateway)(nil), (*networking.NATGateway)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NATGateway_To_networking_NATGateway(a.(*v1alpha1.NATGateway), b.(*networking.NATGateway), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.NATGateway)(nil), (*NATGateway)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_NATGateway_To_v1alpha1_NATGateway(a.(*networking.NATGateway), b.(*NATGateway), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.NATGateway)(nil), (*v1alpha1.NATGateway)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_NATGateway_To_v1alpha1_NATGateway(a.(*networking.NATGateway), b.(*v1alpha1.NATGateway), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NATGatewayDestination)(nil), (*networking.NATGatewayDestination)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NATGatewayDestination_To_networking_NATGatewayDestination(a.(*NATGatewayDestination), b.(*networking.NATGatewayDestination), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NATGatewayDestination)(nil), (*networking.NATGatewayDestination)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NATGatewayDestination_To_networking_NATGatewayDestination(a.(*v1alpha1.NATGatewayDestination), b.(*networking.NATGatewayDestination), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.NATGatewayDestination)(nil), (*NATGatewayDestination)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_NATGatewayDestination_To_v1alpha1_NATGatewayDestination(a.(*networking.NATGatewayDestination), b.(*NATGatewayDestination), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.NATGatewayDestination)(nil), (*v1alpha1.NATGatewayDestination)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_NATGatewayDestination_To_v1alpha1_NATGatewayDestination(a.(*networking.NATGatewayDestination), b.(*v1alpha1.NATGatewayDestination), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NATGatewayDestinationIP)(nil), (*networking.NATGatewayDestinationIP)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NATGatewayDestinationIP_To_networking_NATGatewayDestinationIP(a.(*NATGatewayDestinationIP), b.(*networking.NATGatewayDestinationIP), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NATGatewayDestinationIP)(nil), (*networking.NATGatewayDestinationIP)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NATGatewayDestinationIP_To_networking_NATGatewayDestinationIP(a.(*v1alpha1.NATGatewayDestinationIP), b.(*networking.NATGatewayDestinationIP), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.NATGatewayDestinationIP)(nil), (*NATGatewayDestinationIP)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_NATGatewayDestinationIP_To_v1alpha1_NATGatewayDestinationIP(a.(*networking.NATGatewayDestinationIP), b.(*NATGatewayDestinationIP), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.NATGatewayDestinationIP)(nil), (*v1alpha1.NATGatewayDestinationIP)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_NATGatewayDestinationIP_To_v1alpha1_NATGatewayDestinationIP(a.(*networking.NATGatewayDestinationIP), b.(*v1alpha1.NATGatewayDestinationIP), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NATGatewayIP)(nil), (*networking.NATGatewayIP)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NATGatewayIP_To_networking_NATGatewayIP(a.(*NATGatewayIP), b.(*networking.NATGatewayIP), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NATGatewayIP)(nil), (*networking.NATGatewayIP)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NATGatewayIP_To_networking_NATGatewayIP(a.(*v1alpha1.NATGatewayIP), b.(*networking.NATGatewayIP), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.NATGatewayIP)(nil), (*NATGatewayIP)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_NATGatewayIP_To_v1alpha1_NATGatewayIP(a.(*networking.NATGatewayIP), b.(*NATGatewayIP), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.NATGatewayIP)(nil), (*v1alpha1.NATGatewayIP)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_NATGatewayIP_To_v1alpha1_NATGatewayIP(a.(*networking.NATGatewayIP), b.(*v1alpha1.NATGatewayIP), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NATGatewayIPStatus)(nil), (*networking.NATGatewayIPStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NATGatewayIPStatus_To_networking_NATGatewayIPStatus(a.(*NATGatewayIPStatus), b.(*networking.NATGatewayIPStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NATGatewayIPStatus)(nil), (*networking.NATGatewayIPStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NATGatewayIPStatus_To_networking_NATGatewayIPStatus(a.(*v1alpha1.NATGatewayIPStatus), b.(*networking.NATGatewayIPStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.NATGatewayIPStatus)(nil), (*NATGatewayIPStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_NATGatewayIPStatus_To_v1alpha1_NATGatewayIPStatus(a.(*networking.NATGatewayIPStatus), b.(*NATGatewayIPStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.NATGatewayIPStatus)(nil), (*v1alpha1.NATGatewayIPStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_NATGatewayIPStatus_To_v1alpha1_NATGatewayIPStatus(a.(*networking.NATGatewayIPStatus), b.(*v1alpha1.NATGatewayIPStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NATGatewayList)(nil), (*networking.NATGatewayList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NATGatewayList_To_networking_NATGatewayList(a.(*NATGatewayList), b.(*networking.NATGatewayList), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NATGatewayList)(nil), (*networking.NATGatewayList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NATGatewayList_To_networking_NATGatewayList(a.(*v1alpha1.NATGatewayList), b.(*networking.NATGatewayList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.NATGatewayList)(nil), (*NATGatewayList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_NATGatewayList_To_v1alpha1_NATGatewayList(a.(*networking.NATGatewayList), b.(*NATGatewayList), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.NATGatewayList)(nil), (*v1alpha1.NATGatewayList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_NATGatewayList_To_v1alpha1_NATGatewayList(a.(*networking.NATGatewayList), b.(*v1alpha1.NATGatewayList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NATGatewayRouting)(nil), (*networking.NATGatewayRouting)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NATGatewayRouting_To_networking_NATGatewayRouting(a.(*NATGatewayRouting), b.(*networking.NATGatewayRouting), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NATGatewayRouting)(nil), (*networking.NATGatewayRouting)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NATGatewayRouting_To_networking_NATGatewayRouting(a.(*v1alpha1.NATGatewayRouting), b.(*networking.NATGatewayRouting), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.NATGatewayRouting)(nil), (*NATGatewayRouting)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_NATGatewayRouting_To_v1alpha1_NATGatewayRouting(a.(*networking.NATGatewayRouting), b.(*NATGatewayRouting), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.NATGatewayRouting)(nil), (*v1alpha1.NATGatewayRouting)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_NATGatewayRouting_To_v1alpha1_NATGatewayRouting(a.(*networking.NATGatewayRouting), b.(*v1alpha1.NATGatewayRouting), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NATGatewayRoutingList)(nil), (*networking.NATGatewayRoutingList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NATGatewayRoutingList_To_networking_NATGatewayRoutingList(a.(*NATGatewayRoutingList), b.(*networking.NATGatewayRoutingList), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NATGatewayRoutingList)(nil), (*networking.NATGatewayRoutingList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NATGatewayRoutingList_To_networking_NATGatewayRoutingList(a.(*v1alpha1.NATGatewayRoutingList), b.(*networking.NATGatewayRoutingList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.NATGatewayRoutingList)(nil), (*NATGatewayRoutingList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_NATGatewayRoutingList_To_v1alpha1_NATGatewayRoutingList(a.(*networking.NATGatewayRoutingList), b.(*NATGatewayRoutingList), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.NATGatewayRoutingList)(nil), (*v1alpha1.NATGatewayRoutingList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_NATGatewayRoutingList_To_v1alpha1_NATGatewayRoutingList(a.(*networking.NATGatewayRoutingList), b.(*v1alpha1.NATGatewayRoutingList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NATGatewaySpec)(nil), (*networking.NATGatewaySpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NATGatewaySpec_To_networking_NATGatewaySpec(a.(*NATGatewaySpec), b.(*networking.NATGatewaySpec), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NATGatewaySpec)(nil), (*networking.NATGatewaySpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NATGatewaySpec_To_networking_NATGatewaySpec(a.(*v1alpha1.NATGatewaySpec), b.(*networking.NATGatewaySpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.NATGatewaySpec)(nil), (*NATGatewaySpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_NATGatewaySpec_To_v1alpha1_NATGatewaySpec(a.(*networking.NATGatewaySpec), b.(*NATGatewaySpec), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.NATGatewaySpec)(nil), (*v1alpha1.NATGatewaySpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_NATGatewaySpec_To_v1alpha1_NATGatewaySpec(a.(*networking.NATGatewaySpec), b.(*v1alpha1.NATGatewaySpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NATGatewayStatus)(nil), (*networking.NATGatewayStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NATGatewayStatus_To_networking_NATGatewayStatus(a.(*NATGatewayStatus), b.(*networking.NATGatewayStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NATGatewayStatus)(nil), (*networking.NATGatewayStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NATGatewayStatus_To_networking_NATGatewayStatus(a.(*v1alpha1.NATGatewayStatus), b.(*networking.NATGatewayStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.NATGatewayStatus)(nil), (*NATGatewayStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_NATGatewayStatus_To_v1alpha1_NATGatewayStatus(a.(*networking.NATGatewayStatus), b.(*NATGatewayStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.NATGatewayStatus)(nil), (*v1alpha1.NATGatewayStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_NATGatewayStatus_To_v1alpha1_NATGatewayStatus(a.(*networking.NATGatewayStatus), b.(*v1alpha1.NATGatewayStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*Network)(nil), (*networking.Network)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_Network_To_networking_Network(a.(*Network), b.(*networking.Network), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.Network)(nil), (*networking.Network)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_Network_To_networking_Network(a.(*v1alpha1.Network), b.(*networking.Network), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.Network)(nil), (*Network)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_Network_To_v1alpha1_Network(a.(*networking.Network), b.(*Network), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.Network)(nil), (*v1alpha1.Network)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_Network_To_v1alpha1_Network(a.(*networking.Network), b.(*v1alpha1.Network), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NetworkInterface)(nil), (*networking.NetworkInterface)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NetworkInterface_To_networking_NetworkInterface(a.(*NetworkInterface), b.(*networking.NetworkInterface), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NetworkInterface)(nil), (*networking.NetworkInterface)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NetworkInterface_To_networking_NetworkInterface(a.(*v1alpha1.NetworkInterface), b.(*networking.NetworkInterface), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.NetworkInterface)(nil), (*NetworkInterface)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_NetworkInterface_To_v1alpha1_NetworkInterface(a.(*networking.NetworkInterface), b.(*NetworkInterface), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.NetworkInterface)(nil), (*v1alpha1.NetworkInterface)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_NetworkInterface_To_v1alpha1_NetworkInterface(a.(*networking.NetworkInterface), b.(*v1alpha1.NetworkInterface), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NetworkInterfaceList)(nil), (*networking.NetworkInterfaceList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NetworkInterfaceList_To_networking_NetworkInterfaceList(a.(*NetworkInterfaceList), b.(*networking.NetworkInterfaceList), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NetworkInterfaceList)(nil), (*networking.NetworkInterfaceList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NetworkInterfaceList_To_networking_NetworkInterfaceList(a.(*v1alpha1.NetworkInterfaceList), b.(*networking.NetworkInterfaceList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.NetworkInterfaceList)(nil), (*NetworkInterfaceList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_NetworkInterfaceList_To_v1alpha1_NetworkInterfaceList(a.(*networking.NetworkInterfaceList), b.(*NetworkInterfaceList), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.NetworkInterfaceList)(nil), (*v1alpha1.NetworkInterfaceList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_NetworkInterfaceList_To_v1alpha1_NetworkInterfaceList(a.(*networking.NetworkInterfaceList), b.(*v1alpha1.NetworkInterfaceList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NetworkInterfaceSpec)(nil), (*networking.NetworkInterfaceSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NetworkInterfaceSpec_To_networking_NetworkInterfaceSpec(a.(*NetworkInterfaceSpec), b.(*networking.NetworkInterfaceSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NetworkInterfaceSpec)(nil), (*networking.NetworkInterfaceSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NetworkInterfaceSpec_To_networking_NetworkInterfaceSpec(a.(*v1alpha1.NetworkInterfaceSpec), b.(*networking.NetworkInterfaceSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.NetworkInterfaceSpec)(nil), (*NetworkInterfaceSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_NetworkInterfaceSpec_To_v1alpha1_NetworkInterfaceSpec(a.(*networking.NetworkInterfaceSpec), b.(*NetworkInterfaceSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.NetworkInterfaceSpec)(nil), (*v1alpha1.NetworkInterfaceSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_NetworkInterfaceSpec_To_v1alpha1_NetworkInterfaceSpec(a.(*networking.NetworkInterfaceSpec), b.(*v1alpha1.NetworkInterfaceSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NetworkInterfaceStatus)(nil), (*networking.NetworkInterfaceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NetworkInterfaceStatus_To_networking_NetworkInterfaceStatus(a.(*NetworkInterfaceStatus), b.(*networking.NetworkInterfaceStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NetworkInterfaceStatus)(nil), (*networking.NetworkInterfaceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NetworkInterfaceStatus_To_networking_NetworkInterfaceStatus(a.(*v1alpha1.NetworkInterfaceStatus), b.(*networking.NetworkInterfaceStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.NetworkInterfaceStatus)(nil), (*NetworkInterfaceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_NetworkInterfaceStatus_To_v1alpha1_NetworkInterfaceStatus(a.(*networking.NetworkInterfaceStatus), b.(*NetworkInterfaceStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.NetworkInterfaceStatus)(nil), (*v1alpha1.NetworkInterfaceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_NetworkInterfaceStatus_To_v1alpha1_NetworkInterfaceStatus(a.(*networking.NetworkInterfaceStatus), b.(*v1alpha1.NetworkInterfaceStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NetworkInterfaceTemplateSpec)(nil), (*networking.NetworkInterfaceTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NetworkInterfaceTemplateSpec_To_networking_NetworkInterfaceTemplateSpec(a.(*NetworkInterfaceTemplateSpec), b.(*networking.NetworkInterfaceTemplateSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NetworkInterfaceTemplateSpec)(nil), (*networking.NetworkInterfaceTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NetworkInterfaceTemplateSpec_To_networking_NetworkInterfaceTemplateSpec(a.(*v1alpha1.NetworkInterfaceTemplateSpec), b.(*networking.NetworkInterfaceTemplateSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.NetworkInterfaceTemplateSpec)(nil), (*NetworkInterfaceTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_NetworkInterfaceTemplateSpec_To_v1alpha1_NetworkInterfaceTemplateSpec(a.(*networking.NetworkInterfaceTemplateSpec), b.(*NetworkInterfaceTemplateSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.NetworkInterfaceTemplateSpec)(nil), (*v1alpha1.NetworkInterfaceTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_NetworkInterfaceTemplateSpec_To_v1alpha1_NetworkInterfaceTemplateSpec(a.(*networking.NetworkInterfaceTemplateSpec), b.(*v1alpha1.NetworkInterfaceTemplateSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NetworkList)(nil), (*networking.NetworkList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NetworkList_To_networking_NetworkList(a.(*NetworkList), b.(*networking.NetworkList), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NetworkList)(nil), (*networking.NetworkList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NetworkList_To_networking_NetworkList(a.(*v1alpha1.NetworkList), b.(*networking.NetworkList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.NetworkList)(nil), (*NetworkList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_NetworkList_To_v1alpha1_NetworkList(a.(*networking.NetworkList), b.(*NetworkList), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.NetworkList)(nil), (*v1alpha1.NetworkList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_NetworkList_To_v1alpha1_NetworkList(a.(*networking.NetworkList), b.(*v1alpha1.NetworkList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NetworkSpec)(nil), (*networking.NetworkSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NetworkSpec_To_networking_NetworkSpec(a.(*NetworkSpec), b.(*networking.NetworkSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NetworkSpec)(nil), (*networking.NetworkSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NetworkSpec_To_networking_NetworkSpec(a.(*v1alpha1.NetworkSpec), b.(*networking.NetworkSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.NetworkSpec)(nil), (*NetworkSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_NetworkSpec_To_v1alpha1_NetworkSpec(a.(*networking.NetworkSpec), b.(*NetworkSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.NetworkSpec)(nil), (*v1alpha1.NetworkSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_NetworkSpec_To_v1alpha1_NetworkSpec(a.(*networking.NetworkSpec), b.(*v1alpha1.NetworkSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*NetworkStatus)(nil), (*networking.NetworkStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_NetworkStatus_To_networking_NetworkStatus(a.(*NetworkStatus), b.(*networking.NetworkStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.NetworkStatus)(nil), (*networking.NetworkStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_NetworkStatus_To_networking_NetworkStatus(a.(*v1alpha1.NetworkStatus), b.(*networking.NetworkStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.NetworkStatus)(nil), (*NetworkStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_NetworkStatus_To_v1alpha1_NetworkStatus(a.(*networking.NetworkStatus), b.(*NetworkStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.NetworkStatus)(nil), (*v1alpha1.NetworkStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_NetworkStatus_To_v1alpha1_NetworkStatus(a.(*networking.NetworkStatus), b.(*v1alpha1.NetworkStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*PrefixSource)(nil), (*networking.PrefixSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_PrefixSource_To_networking_PrefixSource(a.(*PrefixSource), b.(*networking.PrefixSource), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.PrefixSource)(nil), (*networking.PrefixSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_PrefixSource_To_networking_PrefixSource(a.(*v1alpha1.PrefixSource), b.(*networking.PrefixSource), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.PrefixSource)(nil), (*PrefixSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_PrefixSource_To_v1alpha1_PrefixSource(a.(*networking.PrefixSource), b.(*PrefixSource), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.PrefixSource)(nil), (*v1alpha1.PrefixSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_PrefixSource_To_v1alpha1_PrefixSource(a.(*networking.PrefixSource), b.(*v1alpha1.PrefixSource), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VirtualIP)(nil), (*networking.VirtualIP)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VirtualIP_To_networking_VirtualIP(a.(*VirtualIP), b.(*networking.VirtualIP), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VirtualIP)(nil), (*networking.VirtualIP)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VirtualIP_To_networking_VirtualIP(a.(*v1alpha1.VirtualIP), b.(*networking.VirtualIP), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.VirtualIP)(nil), (*VirtualIP)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_VirtualIP_To_v1alpha1_VirtualIP(a.(*networking.VirtualIP), b.(*VirtualIP), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.VirtualIP)(nil), (*v1alpha1.VirtualIP)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_VirtualIP_To_v1alpha1_VirtualIP(a.(*networking.VirtualIP), b.(*v1alpha1.VirtualIP), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VirtualIPList)(nil), (*networking.VirtualIPList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VirtualIPList_To_networking_VirtualIPList(a.(*VirtualIPList), b.(*networking.VirtualIPList), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VirtualIPList)(nil), (*networking.VirtualIPList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VirtualIPList_To_networking_VirtualIPList(a.(*v1alpha1.VirtualIPList), b.(*networking.VirtualIPList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.VirtualIPList)(nil), (*VirtualIPList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_VirtualIPList_To_v1alpha1_VirtualIPList(a.(*networking.VirtualIPList), b.(*VirtualIPList), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.VirtualIPList)(nil), (*v1alpha1.VirtualIPList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_VirtualIPList_To_v1alpha1_VirtualIPList(a.(*networking.VirtualIPList), b.(*v1alpha1.VirtualIPList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VirtualIPSource)(nil), (*networking.VirtualIPSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VirtualIPSource_To_networking_VirtualIPSource(a.(*VirtualIPSource), b.(*networking.VirtualIPSource), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VirtualIPSource)(nil), (*networking.VirtualIPSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VirtualIPSource_To_networking_VirtualIPSource(a.(*v1alpha1.VirtualIPSource), b.(*networking.VirtualIPSource), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.VirtualIPSource)(nil), (*VirtualIPSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_VirtualIPSource_To_v1alpha1_VirtualIPSource(a.(*networking.VirtualIPSource), b.(*VirtualIPSource), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.VirtualIPSource)(nil), (*v1alpha1.VirtualIPSource)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_VirtualIPSource_To_v1alpha1_VirtualIPSource(a.(*networking.VirtualIPSource), b.(*v1alpha1.VirtualIPSource), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VirtualIPSpec)(nil), (*networking.VirtualIPSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VirtualIPSpec_To_networking_VirtualIPSpec(a.(*VirtualIPSpec), b.(*networking.VirtualIPSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VirtualIPSpec)(nil), (*networking.VirtualIPSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VirtualIPSpec_To_networking_VirtualIPSpec(a.(*v1alpha1.VirtualIPSpec), b.(*networking.VirtualIPSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.VirtualIPSpec)(nil), (*VirtualIPSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_VirtualIPSpec_To_v1alpha1_VirtualIPSpec(a.(*networking.VirtualIPSpec), b.(*VirtualIPSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.VirtualIPSpec)(nil), (*v1alpha1.VirtualIPSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_VirtualIPSpec_To_v1alpha1_VirtualIPSpec(a.(*networking.VirtualIPSpec), b.(*v1alpha1.VirtualIPSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VirtualIPStatus)(nil), (*networking.VirtualIPStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VirtualIPStatus_To_networking_VirtualIPStatus(a.(*VirtualIPStatus), b.(*networking.VirtualIPStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VirtualIPStatus)(nil), (*networking.VirtualIPStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VirtualIPStatus_To_networking_VirtualIPStatus(a.(*v1alpha1.VirtualIPStatus), b.(*networking.VirtualIPStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.VirtualIPStatus)(nil), (*VirtualIPStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_VirtualIPStatus_To_v1alpha1_VirtualIPStatus(a.(*networking.VirtualIPStatus), b.(*VirtualIPStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.VirtualIPStatus)(nil), (*v1alpha1.VirtualIPStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_VirtualIPStatus_To_v1alpha1_VirtualIPStatus(a.(*networking.VirtualIPStatus), b.(*v1alpha1.VirtualIPStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VirtualIPTemplateSpec)(nil), (*networking.VirtualIPTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VirtualIPTemplateSpec_To_networking_VirtualIPTemplateSpec(a.(*VirtualIPTemplateSpec), b.(*networking.VirtualIPTemplateSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VirtualIPTemplateSpec)(nil), (*networking.VirtualIPTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VirtualIPTemplateSpec_To_networking_VirtualIPTemplateSpec(a.(*v1alpha1.VirtualIPTemplateSpec), b.(*networking.VirtualIPTemplateSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*networking.VirtualIPTemplateSpec)(nil), (*VirtualIPTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_networking_VirtualIPTemplateSpec_To_v1alpha1_VirtualIPTemplateSpec(a.(*networking.VirtualIPTemplateSpec), b.(*VirtualIPTemplateSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*networking.VirtualIPTemplateSpec)(nil), (*v1alpha1.VirtualIPTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_networking_VirtualIPTemplateSpec_To_v1alpha1_VirtualIPTemplateSpec(a.(*networking.VirtualIPTemplateSpec), b.(*v1alpha1.VirtualIPTemplateSpec), scope)
}); err != nil {
return err
}
return nil
}
-func autoConvert_v1alpha1_AliasPrefix_To_networking_AliasPrefix(in *AliasPrefix, out *networking.AliasPrefix, s conversion.Scope) error {
+func autoConvert_v1alpha1_AliasPrefix_To_networking_AliasPrefix(in *v1alpha1.AliasPrefix, out *networking.AliasPrefix, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha1_AliasPrefixSpec_To_networking_AliasPrefixSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -475,11 +476,11 @@ func autoConvert_v1alpha1_AliasPrefix_To_networking_AliasPrefix(in *AliasPrefix,
}
// Convert_v1alpha1_AliasPrefix_To_networking_AliasPrefix is an autogenerated conversion function.
-func Convert_v1alpha1_AliasPrefix_To_networking_AliasPrefix(in *AliasPrefix, out *networking.AliasPrefix, s conversion.Scope) error {
+func Convert_v1alpha1_AliasPrefix_To_networking_AliasPrefix(in *v1alpha1.AliasPrefix, out *networking.AliasPrefix, s conversion.Scope) error {
return autoConvert_v1alpha1_AliasPrefix_To_networking_AliasPrefix(in, out, s)
}
-func autoConvert_networking_AliasPrefix_To_v1alpha1_AliasPrefix(in *networking.AliasPrefix, out *AliasPrefix, s conversion.Scope) error {
+func autoConvert_networking_AliasPrefix_To_v1alpha1_AliasPrefix(in *networking.AliasPrefix, out *v1alpha1.AliasPrefix, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_networking_AliasPrefixSpec_To_v1alpha1_AliasPrefixSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -491,77 +492,77 @@ func autoConvert_networking_AliasPrefix_To_v1alpha1_AliasPrefix(in *networking.A
}
// Convert_networking_AliasPrefix_To_v1alpha1_AliasPrefix is an autogenerated conversion function.
-func Convert_networking_AliasPrefix_To_v1alpha1_AliasPrefix(in *networking.AliasPrefix, out *AliasPrefix, s conversion.Scope) error {
+func Convert_networking_AliasPrefix_To_v1alpha1_AliasPrefix(in *networking.AliasPrefix, out *v1alpha1.AliasPrefix, s conversion.Scope) error {
return autoConvert_networking_AliasPrefix_To_v1alpha1_AliasPrefix(in, out, s)
}
-func autoConvert_v1alpha1_AliasPrefixList_To_networking_AliasPrefixList(in *AliasPrefixList, out *networking.AliasPrefixList, s conversion.Scope) error {
+func autoConvert_v1alpha1_AliasPrefixList_To_networking_AliasPrefixList(in *v1alpha1.AliasPrefixList, out *networking.AliasPrefixList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]networking.AliasPrefix)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1alpha1_AliasPrefixList_To_networking_AliasPrefixList is an autogenerated conversion function.
-func Convert_v1alpha1_AliasPrefixList_To_networking_AliasPrefixList(in *AliasPrefixList, out *networking.AliasPrefixList, s conversion.Scope) error {
+func Convert_v1alpha1_AliasPrefixList_To_networking_AliasPrefixList(in *v1alpha1.AliasPrefixList, out *networking.AliasPrefixList, s conversion.Scope) error {
return autoConvert_v1alpha1_AliasPrefixList_To_networking_AliasPrefixList(in, out, s)
}
-func autoConvert_networking_AliasPrefixList_To_v1alpha1_AliasPrefixList(in *networking.AliasPrefixList, out *AliasPrefixList, s conversion.Scope) error {
+func autoConvert_networking_AliasPrefixList_To_v1alpha1_AliasPrefixList(in *networking.AliasPrefixList, out *v1alpha1.AliasPrefixList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
- out.Items = *(*[]AliasPrefix)(unsafe.Pointer(&in.Items))
+ out.Items = *(*[]v1alpha1.AliasPrefix)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_networking_AliasPrefixList_To_v1alpha1_AliasPrefixList is an autogenerated conversion function.
-func Convert_networking_AliasPrefixList_To_v1alpha1_AliasPrefixList(in *networking.AliasPrefixList, out *AliasPrefixList, s conversion.Scope) error {
+func Convert_networking_AliasPrefixList_To_v1alpha1_AliasPrefixList(in *networking.AliasPrefixList, out *v1alpha1.AliasPrefixList, s conversion.Scope) error {
return autoConvert_networking_AliasPrefixList_To_v1alpha1_AliasPrefixList(in, out, s)
}
-func autoConvert_v1alpha1_AliasPrefixRouting_To_networking_AliasPrefixRouting(in *AliasPrefixRouting, out *networking.AliasPrefixRouting, s conversion.Scope) error {
+func autoConvert_v1alpha1_AliasPrefixRouting_To_networking_AliasPrefixRouting(in *v1alpha1.AliasPrefixRouting, out *networking.AliasPrefixRouting, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
out.Destinations = *(*[]commonv1alpha1.LocalUIDReference)(unsafe.Pointer(&in.Destinations))
return nil
}
// Convert_v1alpha1_AliasPrefixRouting_To_networking_AliasPrefixRouting is an autogenerated conversion function.
-func Convert_v1alpha1_AliasPrefixRouting_To_networking_AliasPrefixRouting(in *AliasPrefixRouting, out *networking.AliasPrefixRouting, s conversion.Scope) error {
+func Convert_v1alpha1_AliasPrefixRouting_To_networking_AliasPrefixRouting(in *v1alpha1.AliasPrefixRouting, out *networking.AliasPrefixRouting, s conversion.Scope) error {
return autoConvert_v1alpha1_AliasPrefixRouting_To_networking_AliasPrefixRouting(in, out, s)
}
-func autoConvert_networking_AliasPrefixRouting_To_v1alpha1_AliasPrefixRouting(in *networking.AliasPrefixRouting, out *AliasPrefixRouting, s conversion.Scope) error {
+func autoConvert_networking_AliasPrefixRouting_To_v1alpha1_AliasPrefixRouting(in *networking.AliasPrefixRouting, out *v1alpha1.AliasPrefixRouting, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
out.Destinations = *(*[]commonv1alpha1.LocalUIDReference)(unsafe.Pointer(&in.Destinations))
return nil
}
// Convert_networking_AliasPrefixRouting_To_v1alpha1_AliasPrefixRouting is an autogenerated conversion function.
-func Convert_networking_AliasPrefixRouting_To_v1alpha1_AliasPrefixRouting(in *networking.AliasPrefixRouting, out *AliasPrefixRouting, s conversion.Scope) error {
+func Convert_networking_AliasPrefixRouting_To_v1alpha1_AliasPrefixRouting(in *networking.AliasPrefixRouting, out *v1alpha1.AliasPrefixRouting, s conversion.Scope) error {
return autoConvert_networking_AliasPrefixRouting_To_v1alpha1_AliasPrefixRouting(in, out, s)
}
-func autoConvert_v1alpha1_AliasPrefixRoutingList_To_networking_AliasPrefixRoutingList(in *AliasPrefixRoutingList, out *networking.AliasPrefixRoutingList, s conversion.Scope) error {
+func autoConvert_v1alpha1_AliasPrefixRoutingList_To_networking_AliasPrefixRoutingList(in *v1alpha1.AliasPrefixRoutingList, out *networking.AliasPrefixRoutingList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]networking.AliasPrefixRouting)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1alpha1_AliasPrefixRoutingList_To_networking_AliasPrefixRoutingList is an autogenerated conversion function.
-func Convert_v1alpha1_AliasPrefixRoutingList_To_networking_AliasPrefixRoutingList(in *AliasPrefixRoutingList, out *networking.AliasPrefixRoutingList, s conversion.Scope) error {
+func Convert_v1alpha1_AliasPrefixRoutingList_To_networking_AliasPrefixRoutingList(in *v1alpha1.AliasPrefixRoutingList, out *networking.AliasPrefixRoutingList, s conversion.Scope) error {
return autoConvert_v1alpha1_AliasPrefixRoutingList_To_networking_AliasPrefixRoutingList(in, out, s)
}
-func autoConvert_networking_AliasPrefixRoutingList_To_v1alpha1_AliasPrefixRoutingList(in *networking.AliasPrefixRoutingList, out *AliasPrefixRoutingList, s conversion.Scope) error {
+func autoConvert_networking_AliasPrefixRoutingList_To_v1alpha1_AliasPrefixRoutingList(in *networking.AliasPrefixRoutingList, out *v1alpha1.AliasPrefixRoutingList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
- out.Items = *(*[]AliasPrefixRouting)(unsafe.Pointer(&in.Items))
+ out.Items = *(*[]v1alpha1.AliasPrefixRouting)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_networking_AliasPrefixRoutingList_To_v1alpha1_AliasPrefixRoutingList is an autogenerated conversion function.
-func Convert_networking_AliasPrefixRoutingList_To_v1alpha1_AliasPrefixRoutingList(in *networking.AliasPrefixRoutingList, out *AliasPrefixRoutingList, s conversion.Scope) error {
+func Convert_networking_AliasPrefixRoutingList_To_v1alpha1_AliasPrefixRoutingList(in *networking.AliasPrefixRoutingList, out *v1alpha1.AliasPrefixRoutingList, s conversion.Scope) error {
return autoConvert_networking_AliasPrefixRoutingList_To_v1alpha1_AliasPrefixRoutingList(in, out, s)
}
-func autoConvert_v1alpha1_AliasPrefixSpec_To_networking_AliasPrefixSpec(in *AliasPrefixSpec, out *networking.AliasPrefixSpec, s conversion.Scope) error {
+func autoConvert_v1alpha1_AliasPrefixSpec_To_networking_AliasPrefixSpec(in *v1alpha1.AliasPrefixSpec, out *networking.AliasPrefixSpec, s conversion.Scope) error {
out.NetworkRef = in.NetworkRef
out.NetworkInterfaceSelector = (*v1.LabelSelector)(unsafe.Pointer(in.NetworkInterfaceSelector))
if err := Convert_v1alpha1_PrefixSource_To_networking_PrefixSource(&in.Prefix, &out.Prefix, s); err != nil {
@@ -571,11 +572,11 @@ func autoConvert_v1alpha1_AliasPrefixSpec_To_networking_AliasPrefixSpec(in *Alia
}
// Convert_v1alpha1_AliasPrefixSpec_To_networking_AliasPrefixSpec is an autogenerated conversion function.
-func Convert_v1alpha1_AliasPrefixSpec_To_networking_AliasPrefixSpec(in *AliasPrefixSpec, out *networking.AliasPrefixSpec, s conversion.Scope) error {
+func Convert_v1alpha1_AliasPrefixSpec_To_networking_AliasPrefixSpec(in *v1alpha1.AliasPrefixSpec, out *networking.AliasPrefixSpec, s conversion.Scope) error {
return autoConvert_v1alpha1_AliasPrefixSpec_To_networking_AliasPrefixSpec(in, out, s)
}
-func autoConvert_networking_AliasPrefixSpec_To_v1alpha1_AliasPrefixSpec(in *networking.AliasPrefixSpec, out *AliasPrefixSpec, s conversion.Scope) error {
+func autoConvert_networking_AliasPrefixSpec_To_v1alpha1_AliasPrefixSpec(in *networking.AliasPrefixSpec, out *v1alpha1.AliasPrefixSpec, s conversion.Scope) error {
out.NetworkRef = in.NetworkRef
out.NetworkInterfaceSelector = (*v1.LabelSelector)(unsafe.Pointer(in.NetworkInterfaceSelector))
if err := Convert_networking_PrefixSource_To_v1alpha1_PrefixSource(&in.Prefix, &out.Prefix, s); err != nil {
@@ -585,93 +586,93 @@ func autoConvert_networking_AliasPrefixSpec_To_v1alpha1_AliasPrefixSpec(in *netw
}
// Convert_networking_AliasPrefixSpec_To_v1alpha1_AliasPrefixSpec is an autogenerated conversion function.
-func Convert_networking_AliasPrefixSpec_To_v1alpha1_AliasPrefixSpec(in *networking.AliasPrefixSpec, out *AliasPrefixSpec, s conversion.Scope) error {
+func Convert_networking_AliasPrefixSpec_To_v1alpha1_AliasPrefixSpec(in *networking.AliasPrefixSpec, out *v1alpha1.AliasPrefixSpec, s conversion.Scope) error {
return autoConvert_networking_AliasPrefixSpec_To_v1alpha1_AliasPrefixSpec(in, out, s)
}
-func autoConvert_v1alpha1_AliasPrefixStatus_To_networking_AliasPrefixStatus(in *AliasPrefixStatus, out *networking.AliasPrefixStatus, s conversion.Scope) error {
+func autoConvert_v1alpha1_AliasPrefixStatus_To_networking_AliasPrefixStatus(in *v1alpha1.AliasPrefixStatus, out *networking.AliasPrefixStatus, s conversion.Scope) error {
out.Prefix = (*commonv1alpha1.IPPrefix)(unsafe.Pointer(in.Prefix))
return nil
}
// Convert_v1alpha1_AliasPrefixStatus_To_networking_AliasPrefixStatus is an autogenerated conversion function.
-func Convert_v1alpha1_AliasPrefixStatus_To_networking_AliasPrefixStatus(in *AliasPrefixStatus, out *networking.AliasPrefixStatus, s conversion.Scope) error {
+func Convert_v1alpha1_AliasPrefixStatus_To_networking_AliasPrefixStatus(in *v1alpha1.AliasPrefixStatus, out *networking.AliasPrefixStatus, s conversion.Scope) error {
return autoConvert_v1alpha1_AliasPrefixStatus_To_networking_AliasPrefixStatus(in, out, s)
}
-func autoConvert_networking_AliasPrefixStatus_To_v1alpha1_AliasPrefixStatus(in *networking.AliasPrefixStatus, out *AliasPrefixStatus, s conversion.Scope) error {
+func autoConvert_networking_AliasPrefixStatus_To_v1alpha1_AliasPrefixStatus(in *networking.AliasPrefixStatus, out *v1alpha1.AliasPrefixStatus, s conversion.Scope) error {
out.Prefix = (*commonv1alpha1.IPPrefix)(unsafe.Pointer(in.Prefix))
return nil
}
// Convert_networking_AliasPrefixStatus_To_v1alpha1_AliasPrefixStatus is an autogenerated conversion function.
-func Convert_networking_AliasPrefixStatus_To_v1alpha1_AliasPrefixStatus(in *networking.AliasPrefixStatus, out *AliasPrefixStatus, s conversion.Scope) error {
+func Convert_networking_AliasPrefixStatus_To_v1alpha1_AliasPrefixStatus(in *networking.AliasPrefixStatus, out *v1alpha1.AliasPrefixStatus, s conversion.Scope) error {
return autoConvert_networking_AliasPrefixStatus_To_v1alpha1_AliasPrefixStatus(in, out, s)
}
-func autoConvert_v1alpha1_EphemeralPrefixSource_To_networking_EphemeralPrefixSource(in *EphemeralPrefixSource, out *networking.EphemeralPrefixSource, s conversion.Scope) error {
+func autoConvert_v1alpha1_EphemeralPrefixSource_To_networking_EphemeralPrefixSource(in *v1alpha1.EphemeralPrefixSource, out *networking.EphemeralPrefixSource, s conversion.Scope) error {
out.PrefixTemplate = (*ipam.PrefixTemplateSpec)(unsafe.Pointer(in.PrefixTemplate))
return nil
}
// Convert_v1alpha1_EphemeralPrefixSource_To_networking_EphemeralPrefixSource is an autogenerated conversion function.
-func Convert_v1alpha1_EphemeralPrefixSource_To_networking_EphemeralPrefixSource(in *EphemeralPrefixSource, out *networking.EphemeralPrefixSource, s conversion.Scope) error {
+func Convert_v1alpha1_EphemeralPrefixSource_To_networking_EphemeralPrefixSource(in *v1alpha1.EphemeralPrefixSource, out *networking.EphemeralPrefixSource, s conversion.Scope) error {
return autoConvert_v1alpha1_EphemeralPrefixSource_To_networking_EphemeralPrefixSource(in, out, s)
}
-func autoConvert_networking_EphemeralPrefixSource_To_v1alpha1_EphemeralPrefixSource(in *networking.EphemeralPrefixSource, out *EphemeralPrefixSource, s conversion.Scope) error {
+func autoConvert_networking_EphemeralPrefixSource_To_v1alpha1_EphemeralPrefixSource(in *networking.EphemeralPrefixSource, out *v1alpha1.EphemeralPrefixSource, s conversion.Scope) error {
out.PrefixTemplate = (*ipamv1alpha1.PrefixTemplateSpec)(unsafe.Pointer(in.PrefixTemplate))
return nil
}
// Convert_networking_EphemeralPrefixSource_To_v1alpha1_EphemeralPrefixSource is an autogenerated conversion function.
-func Convert_networking_EphemeralPrefixSource_To_v1alpha1_EphemeralPrefixSource(in *networking.EphemeralPrefixSource, out *EphemeralPrefixSource, s conversion.Scope) error {
+func Convert_networking_EphemeralPrefixSource_To_v1alpha1_EphemeralPrefixSource(in *networking.EphemeralPrefixSource, out *v1alpha1.EphemeralPrefixSource, s conversion.Scope) error {
return autoConvert_networking_EphemeralPrefixSource_To_v1alpha1_EphemeralPrefixSource(in, out, s)
}
-func autoConvert_v1alpha1_EphemeralVirtualIPSource_To_networking_EphemeralVirtualIPSource(in *EphemeralVirtualIPSource, out *networking.EphemeralVirtualIPSource, s conversion.Scope) error {
+func autoConvert_v1alpha1_EphemeralVirtualIPSource_To_networking_EphemeralVirtualIPSource(in *v1alpha1.EphemeralVirtualIPSource, out *networking.EphemeralVirtualIPSource, s conversion.Scope) error {
out.VirtualIPTemplate = (*networking.VirtualIPTemplateSpec)(unsafe.Pointer(in.VirtualIPTemplate))
return nil
}
// Convert_v1alpha1_EphemeralVirtualIPSource_To_networking_EphemeralVirtualIPSource is an autogenerated conversion function.
-func Convert_v1alpha1_EphemeralVirtualIPSource_To_networking_EphemeralVirtualIPSource(in *EphemeralVirtualIPSource, out *networking.EphemeralVirtualIPSource, s conversion.Scope) error {
+func Convert_v1alpha1_EphemeralVirtualIPSource_To_networking_EphemeralVirtualIPSource(in *v1alpha1.EphemeralVirtualIPSource, out *networking.EphemeralVirtualIPSource, s conversion.Scope) error {
return autoConvert_v1alpha1_EphemeralVirtualIPSource_To_networking_EphemeralVirtualIPSource(in, out, s)
}
-func autoConvert_networking_EphemeralVirtualIPSource_To_v1alpha1_EphemeralVirtualIPSource(in *networking.EphemeralVirtualIPSource, out *EphemeralVirtualIPSource, s conversion.Scope) error {
- out.VirtualIPTemplate = (*VirtualIPTemplateSpec)(unsafe.Pointer(in.VirtualIPTemplate))
+func autoConvert_networking_EphemeralVirtualIPSource_To_v1alpha1_EphemeralVirtualIPSource(in *networking.EphemeralVirtualIPSource, out *v1alpha1.EphemeralVirtualIPSource, s conversion.Scope) error {
+ out.VirtualIPTemplate = (*v1alpha1.VirtualIPTemplateSpec)(unsafe.Pointer(in.VirtualIPTemplate))
return nil
}
// Convert_networking_EphemeralVirtualIPSource_To_v1alpha1_EphemeralVirtualIPSource is an autogenerated conversion function.
-func Convert_networking_EphemeralVirtualIPSource_To_v1alpha1_EphemeralVirtualIPSource(in *networking.EphemeralVirtualIPSource, out *EphemeralVirtualIPSource, s conversion.Scope) error {
+func Convert_networking_EphemeralVirtualIPSource_To_v1alpha1_EphemeralVirtualIPSource(in *networking.EphemeralVirtualIPSource, out *v1alpha1.EphemeralVirtualIPSource, s conversion.Scope) error {
return autoConvert_networking_EphemeralVirtualIPSource_To_v1alpha1_EphemeralVirtualIPSource(in, out, s)
}
-func autoConvert_v1alpha1_IPSource_To_networking_IPSource(in *IPSource, out *networking.IPSource, s conversion.Scope) error {
+func autoConvert_v1alpha1_IPSource_To_networking_IPSource(in *v1alpha1.IPSource, out *networking.IPSource, s conversion.Scope) error {
out.Value = (*commonv1alpha1.IP)(unsafe.Pointer(in.Value))
out.Ephemeral = (*networking.EphemeralPrefixSource)(unsafe.Pointer(in.Ephemeral))
return nil
}
// Convert_v1alpha1_IPSource_To_networking_IPSource is an autogenerated conversion function.
-func Convert_v1alpha1_IPSource_To_networking_IPSource(in *IPSource, out *networking.IPSource, s conversion.Scope) error {
+func Convert_v1alpha1_IPSource_To_networking_IPSource(in *v1alpha1.IPSource, out *networking.IPSource, s conversion.Scope) error {
return autoConvert_v1alpha1_IPSource_To_networking_IPSource(in, out, s)
}
-func autoConvert_networking_IPSource_To_v1alpha1_IPSource(in *networking.IPSource, out *IPSource, s conversion.Scope) error {
+func autoConvert_networking_IPSource_To_v1alpha1_IPSource(in *networking.IPSource, out *v1alpha1.IPSource, s conversion.Scope) error {
out.Value = (*commonv1alpha1.IP)(unsafe.Pointer(in.Value))
- out.Ephemeral = (*EphemeralPrefixSource)(unsafe.Pointer(in.Ephemeral))
+ out.Ephemeral = (*v1alpha1.EphemeralPrefixSource)(unsafe.Pointer(in.Ephemeral))
return nil
}
// Convert_networking_IPSource_To_v1alpha1_IPSource is an autogenerated conversion function.
-func Convert_networking_IPSource_To_v1alpha1_IPSource(in *networking.IPSource, out *IPSource, s conversion.Scope) error {
+func Convert_networking_IPSource_To_v1alpha1_IPSource(in *networking.IPSource, out *v1alpha1.IPSource, s conversion.Scope) error {
return autoConvert_networking_IPSource_To_v1alpha1_IPSource(in, out, s)
}
-func autoConvert_v1alpha1_LoadBalancer_To_networking_LoadBalancer(in *LoadBalancer, out *networking.LoadBalancer, s conversion.Scope) error {
+func autoConvert_v1alpha1_LoadBalancer_To_networking_LoadBalancer(in *v1alpha1.LoadBalancer, out *networking.LoadBalancer, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha1_LoadBalancerSpec_To_networking_LoadBalancerSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -683,11 +684,11 @@ func autoConvert_v1alpha1_LoadBalancer_To_networking_LoadBalancer(in *LoadBalanc
}
// Convert_v1alpha1_LoadBalancer_To_networking_LoadBalancer is an autogenerated conversion function.
-func Convert_v1alpha1_LoadBalancer_To_networking_LoadBalancer(in *LoadBalancer, out *networking.LoadBalancer, s conversion.Scope) error {
+func Convert_v1alpha1_LoadBalancer_To_networking_LoadBalancer(in *v1alpha1.LoadBalancer, out *networking.LoadBalancer, s conversion.Scope) error {
return autoConvert_v1alpha1_LoadBalancer_To_networking_LoadBalancer(in, out, s)
}
-func autoConvert_networking_LoadBalancer_To_v1alpha1_LoadBalancer(in *networking.LoadBalancer, out *LoadBalancer, s conversion.Scope) error {
+func autoConvert_networking_LoadBalancer_To_v1alpha1_LoadBalancer(in *networking.LoadBalancer, out *v1alpha1.LoadBalancer, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_networking_LoadBalancerSpec_To_v1alpha1_LoadBalancerSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -699,33 +700,33 @@ func autoConvert_networking_LoadBalancer_To_v1alpha1_LoadBalancer(in *networking
}
// Convert_networking_LoadBalancer_To_v1alpha1_LoadBalancer is an autogenerated conversion function.
-func Convert_networking_LoadBalancer_To_v1alpha1_LoadBalancer(in *networking.LoadBalancer, out *LoadBalancer, s conversion.Scope) error {
+func Convert_networking_LoadBalancer_To_v1alpha1_LoadBalancer(in *networking.LoadBalancer, out *v1alpha1.LoadBalancer, s conversion.Scope) error {
return autoConvert_networking_LoadBalancer_To_v1alpha1_LoadBalancer(in, out, s)
}
-func autoConvert_v1alpha1_LoadBalancerList_To_networking_LoadBalancerList(in *LoadBalancerList, out *networking.LoadBalancerList, s conversion.Scope) error {
+func autoConvert_v1alpha1_LoadBalancerList_To_networking_LoadBalancerList(in *v1alpha1.LoadBalancerList, out *networking.LoadBalancerList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]networking.LoadBalancer)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1alpha1_LoadBalancerList_To_networking_LoadBalancerList is an autogenerated conversion function.
-func Convert_v1alpha1_LoadBalancerList_To_networking_LoadBalancerList(in *LoadBalancerList, out *networking.LoadBalancerList, s conversion.Scope) error {
+func Convert_v1alpha1_LoadBalancerList_To_networking_LoadBalancerList(in *v1alpha1.LoadBalancerList, out *networking.LoadBalancerList, s conversion.Scope) error {
return autoConvert_v1alpha1_LoadBalancerList_To_networking_LoadBalancerList(in, out, s)
}
-func autoConvert_networking_LoadBalancerList_To_v1alpha1_LoadBalancerList(in *networking.LoadBalancerList, out *LoadBalancerList, s conversion.Scope) error {
+func autoConvert_networking_LoadBalancerList_To_v1alpha1_LoadBalancerList(in *networking.LoadBalancerList, out *v1alpha1.LoadBalancerList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
- out.Items = *(*[]LoadBalancer)(unsafe.Pointer(&in.Items))
+ out.Items = *(*[]v1alpha1.LoadBalancer)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_networking_LoadBalancerList_To_v1alpha1_LoadBalancerList is an autogenerated conversion function.
-func Convert_networking_LoadBalancerList_To_v1alpha1_LoadBalancerList(in *networking.LoadBalancerList, out *LoadBalancerList, s conversion.Scope) error {
+func Convert_networking_LoadBalancerList_To_v1alpha1_LoadBalancerList(in *networking.LoadBalancerList, out *v1alpha1.LoadBalancerList, s conversion.Scope) error {
return autoConvert_networking_LoadBalancerList_To_v1alpha1_LoadBalancerList(in, out, s)
}
-func autoConvert_v1alpha1_LoadBalancerPort_To_networking_LoadBalancerPort(in *LoadBalancerPort, out *networking.LoadBalancerPort, s conversion.Scope) error {
+func autoConvert_v1alpha1_LoadBalancerPort_To_networking_LoadBalancerPort(in *v1alpha1.LoadBalancerPort, out *networking.LoadBalancerPort, s conversion.Scope) error {
out.Protocol = (*corev1.Protocol)(unsafe.Pointer(in.Protocol))
out.Port = in.Port
out.EndPort = (*int32)(unsafe.Pointer(in.EndPort))
@@ -733,11 +734,11 @@ func autoConvert_v1alpha1_LoadBalancerPort_To_networking_LoadBalancerPort(in *Lo
}
// Convert_v1alpha1_LoadBalancerPort_To_networking_LoadBalancerPort is an autogenerated conversion function.
-func Convert_v1alpha1_LoadBalancerPort_To_networking_LoadBalancerPort(in *LoadBalancerPort, out *networking.LoadBalancerPort, s conversion.Scope) error {
+func Convert_v1alpha1_LoadBalancerPort_To_networking_LoadBalancerPort(in *v1alpha1.LoadBalancerPort, out *networking.LoadBalancerPort, s conversion.Scope) error {
return autoConvert_v1alpha1_LoadBalancerPort_To_networking_LoadBalancerPort(in, out, s)
}
-func autoConvert_networking_LoadBalancerPort_To_v1alpha1_LoadBalancerPort(in *networking.LoadBalancerPort, out *LoadBalancerPort, s conversion.Scope) error {
+func autoConvert_networking_LoadBalancerPort_To_v1alpha1_LoadBalancerPort(in *networking.LoadBalancerPort, out *v1alpha1.LoadBalancerPort, s conversion.Scope) error {
out.Protocol = (*corev1.Protocol)(unsafe.Pointer(in.Protocol))
out.Port = in.Port
out.EndPort = (*int32)(unsafe.Pointer(in.EndPort))
@@ -745,11 +746,11 @@ func autoConvert_networking_LoadBalancerPort_To_v1alpha1_LoadBalancerPort(in *ne
}
// Convert_networking_LoadBalancerPort_To_v1alpha1_LoadBalancerPort is an autogenerated conversion function.
-func Convert_networking_LoadBalancerPort_To_v1alpha1_LoadBalancerPort(in *networking.LoadBalancerPort, out *LoadBalancerPort, s conversion.Scope) error {
+func Convert_networking_LoadBalancerPort_To_v1alpha1_LoadBalancerPort(in *networking.LoadBalancerPort, out *v1alpha1.LoadBalancerPort, s conversion.Scope) error {
return autoConvert_networking_LoadBalancerPort_To_v1alpha1_LoadBalancerPort(in, out, s)
}
-func autoConvert_v1alpha1_LoadBalancerRouting_To_networking_LoadBalancerRouting(in *LoadBalancerRouting, out *networking.LoadBalancerRouting, s conversion.Scope) error {
+func autoConvert_v1alpha1_LoadBalancerRouting_To_networking_LoadBalancerRouting(in *v1alpha1.LoadBalancerRouting, out *networking.LoadBalancerRouting, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
out.NetworkRef = in.NetworkRef
out.Destinations = *(*[]commonv1alpha1.LocalUIDReference)(unsafe.Pointer(&in.Destinations))
@@ -757,11 +758,11 @@ func autoConvert_v1alpha1_LoadBalancerRouting_To_networking_LoadBalancerRouting(
}
// Convert_v1alpha1_LoadBalancerRouting_To_networking_LoadBalancerRouting is an autogenerated conversion function.
-func Convert_v1alpha1_LoadBalancerRouting_To_networking_LoadBalancerRouting(in *LoadBalancerRouting, out *networking.LoadBalancerRouting, s conversion.Scope) error {
+func Convert_v1alpha1_LoadBalancerRouting_To_networking_LoadBalancerRouting(in *v1alpha1.LoadBalancerRouting, out *networking.LoadBalancerRouting, s conversion.Scope) error {
return autoConvert_v1alpha1_LoadBalancerRouting_To_networking_LoadBalancerRouting(in, out, s)
}
-func autoConvert_networking_LoadBalancerRouting_To_v1alpha1_LoadBalancerRouting(in *networking.LoadBalancerRouting, out *LoadBalancerRouting, s conversion.Scope) error {
+func autoConvert_networking_LoadBalancerRouting_To_v1alpha1_LoadBalancerRouting(in *networking.LoadBalancerRouting, out *v1alpha1.LoadBalancerRouting, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
out.NetworkRef = in.NetworkRef
out.Destinations = *(*[]commonv1alpha1.LocalUIDReference)(unsafe.Pointer(&in.Destinations))
@@ -769,33 +770,33 @@ func autoConvert_networking_LoadBalancerRouting_To_v1alpha1_LoadBalancerRouting(
}
// Convert_networking_LoadBalancerRouting_To_v1alpha1_LoadBalancerRouting is an autogenerated conversion function.
-func Convert_networking_LoadBalancerRouting_To_v1alpha1_LoadBalancerRouting(in *networking.LoadBalancerRouting, out *LoadBalancerRouting, s conversion.Scope) error {
+func Convert_networking_LoadBalancerRouting_To_v1alpha1_LoadBalancerRouting(in *networking.LoadBalancerRouting, out *v1alpha1.LoadBalancerRouting, s conversion.Scope) error {
return autoConvert_networking_LoadBalancerRouting_To_v1alpha1_LoadBalancerRouting(in, out, s)
}
-func autoConvert_v1alpha1_LoadBalancerRoutingList_To_networking_LoadBalancerRoutingList(in *LoadBalancerRoutingList, out *networking.LoadBalancerRoutingList, s conversion.Scope) error {
+func autoConvert_v1alpha1_LoadBalancerRoutingList_To_networking_LoadBalancerRoutingList(in *v1alpha1.LoadBalancerRoutingList, out *networking.LoadBalancerRoutingList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]networking.LoadBalancerRouting)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1alpha1_LoadBalancerRoutingList_To_networking_LoadBalancerRoutingList is an autogenerated conversion function.
-func Convert_v1alpha1_LoadBalancerRoutingList_To_networking_LoadBalancerRoutingList(in *LoadBalancerRoutingList, out *networking.LoadBalancerRoutingList, s conversion.Scope) error {
+func Convert_v1alpha1_LoadBalancerRoutingList_To_networking_LoadBalancerRoutingList(in *v1alpha1.LoadBalancerRoutingList, out *networking.LoadBalancerRoutingList, s conversion.Scope) error {
return autoConvert_v1alpha1_LoadBalancerRoutingList_To_networking_LoadBalancerRoutingList(in, out, s)
}
-func autoConvert_networking_LoadBalancerRoutingList_To_v1alpha1_LoadBalancerRoutingList(in *networking.LoadBalancerRoutingList, out *LoadBalancerRoutingList, s conversion.Scope) error {
+func autoConvert_networking_LoadBalancerRoutingList_To_v1alpha1_LoadBalancerRoutingList(in *networking.LoadBalancerRoutingList, out *v1alpha1.LoadBalancerRoutingList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
- out.Items = *(*[]LoadBalancerRouting)(unsafe.Pointer(&in.Items))
+ out.Items = *(*[]v1alpha1.LoadBalancerRouting)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_networking_LoadBalancerRoutingList_To_v1alpha1_LoadBalancerRoutingList is an autogenerated conversion function.
-func Convert_networking_LoadBalancerRoutingList_To_v1alpha1_LoadBalancerRoutingList(in *networking.LoadBalancerRoutingList, out *LoadBalancerRoutingList, s conversion.Scope) error {
+func Convert_networking_LoadBalancerRoutingList_To_v1alpha1_LoadBalancerRoutingList(in *networking.LoadBalancerRoutingList, out *v1alpha1.LoadBalancerRoutingList, s conversion.Scope) error {
return autoConvert_networking_LoadBalancerRoutingList_To_v1alpha1_LoadBalancerRoutingList(in, out, s)
}
-func autoConvert_v1alpha1_LoadBalancerSpec_To_networking_LoadBalancerSpec(in *LoadBalancerSpec, out *networking.LoadBalancerSpec, s conversion.Scope) error {
+func autoConvert_v1alpha1_LoadBalancerSpec_To_networking_LoadBalancerSpec(in *v1alpha1.LoadBalancerSpec, out *networking.LoadBalancerSpec, s conversion.Scope) error {
out.Type = networking.LoadBalancerType(in.Type)
out.IPFamilies = *(*[]corev1.IPFamily)(unsafe.Pointer(&in.IPFamilies))
out.NetworkRef = in.NetworkRef
@@ -805,45 +806,45 @@ func autoConvert_v1alpha1_LoadBalancerSpec_To_networking_LoadBalancerSpec(in *Lo
}
// Convert_v1alpha1_LoadBalancerSpec_To_networking_LoadBalancerSpec is an autogenerated conversion function.
-func Convert_v1alpha1_LoadBalancerSpec_To_networking_LoadBalancerSpec(in *LoadBalancerSpec, out *networking.LoadBalancerSpec, s conversion.Scope) error {
+func Convert_v1alpha1_LoadBalancerSpec_To_networking_LoadBalancerSpec(in *v1alpha1.LoadBalancerSpec, out *networking.LoadBalancerSpec, s conversion.Scope) error {
return autoConvert_v1alpha1_LoadBalancerSpec_To_networking_LoadBalancerSpec(in, out, s)
}
-func autoConvert_networking_LoadBalancerSpec_To_v1alpha1_LoadBalancerSpec(in *networking.LoadBalancerSpec, out *LoadBalancerSpec, s conversion.Scope) error {
- out.Type = LoadBalancerType(in.Type)
+func autoConvert_networking_LoadBalancerSpec_To_v1alpha1_LoadBalancerSpec(in *networking.LoadBalancerSpec, out *v1alpha1.LoadBalancerSpec, s conversion.Scope) error {
+ out.Type = v1alpha1.LoadBalancerType(in.Type)
out.IPFamilies = *(*[]corev1.IPFamily)(unsafe.Pointer(&in.IPFamilies))
out.NetworkRef = in.NetworkRef
out.NetworkInterfaceSelector = (*v1.LabelSelector)(unsafe.Pointer(in.NetworkInterfaceSelector))
- out.Ports = *(*[]LoadBalancerPort)(unsafe.Pointer(&in.Ports))
+ out.Ports = *(*[]v1alpha1.LoadBalancerPort)(unsafe.Pointer(&in.Ports))
return nil
}
// Convert_networking_LoadBalancerSpec_To_v1alpha1_LoadBalancerSpec is an autogenerated conversion function.
-func Convert_networking_LoadBalancerSpec_To_v1alpha1_LoadBalancerSpec(in *networking.LoadBalancerSpec, out *LoadBalancerSpec, s conversion.Scope) error {
+func Convert_networking_LoadBalancerSpec_To_v1alpha1_LoadBalancerSpec(in *networking.LoadBalancerSpec, out *v1alpha1.LoadBalancerSpec, s conversion.Scope) error {
return autoConvert_networking_LoadBalancerSpec_To_v1alpha1_LoadBalancerSpec(in, out, s)
}
-func autoConvert_v1alpha1_LoadBalancerStatus_To_networking_LoadBalancerStatus(in *LoadBalancerStatus, out *networking.LoadBalancerStatus, s conversion.Scope) error {
+func autoConvert_v1alpha1_LoadBalancerStatus_To_networking_LoadBalancerStatus(in *v1alpha1.LoadBalancerStatus, out *networking.LoadBalancerStatus, s conversion.Scope) error {
out.IPs = *(*[]commonv1alpha1.IP)(unsafe.Pointer(&in.IPs))
return nil
}
// Convert_v1alpha1_LoadBalancerStatus_To_networking_LoadBalancerStatus is an autogenerated conversion function.
-func Convert_v1alpha1_LoadBalancerStatus_To_networking_LoadBalancerStatus(in *LoadBalancerStatus, out *networking.LoadBalancerStatus, s conversion.Scope) error {
+func Convert_v1alpha1_LoadBalancerStatus_To_networking_LoadBalancerStatus(in *v1alpha1.LoadBalancerStatus, out *networking.LoadBalancerStatus, s conversion.Scope) error {
return autoConvert_v1alpha1_LoadBalancerStatus_To_networking_LoadBalancerStatus(in, out, s)
}
-func autoConvert_networking_LoadBalancerStatus_To_v1alpha1_LoadBalancerStatus(in *networking.LoadBalancerStatus, out *LoadBalancerStatus, s conversion.Scope) error {
+func autoConvert_networking_LoadBalancerStatus_To_v1alpha1_LoadBalancerStatus(in *networking.LoadBalancerStatus, out *v1alpha1.LoadBalancerStatus, s conversion.Scope) error {
out.IPs = *(*[]commonv1alpha1.IP)(unsafe.Pointer(&in.IPs))
return nil
}
// Convert_networking_LoadBalancerStatus_To_v1alpha1_LoadBalancerStatus is an autogenerated conversion function.
-func Convert_networking_LoadBalancerStatus_To_v1alpha1_LoadBalancerStatus(in *networking.LoadBalancerStatus, out *LoadBalancerStatus, s conversion.Scope) error {
+func Convert_networking_LoadBalancerStatus_To_v1alpha1_LoadBalancerStatus(in *networking.LoadBalancerStatus, out *v1alpha1.LoadBalancerStatus, s conversion.Scope) error {
return autoConvert_networking_LoadBalancerStatus_To_v1alpha1_LoadBalancerStatus(in, out, s)
}
-func autoConvert_v1alpha1_NATGateway_To_networking_NATGateway(in *NATGateway, out *networking.NATGateway, s conversion.Scope) error {
+func autoConvert_v1alpha1_NATGateway_To_networking_NATGateway(in *v1alpha1.NATGateway, out *networking.NATGateway, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha1_NATGatewaySpec_To_networking_NATGatewaySpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -855,11 +856,11 @@ func autoConvert_v1alpha1_NATGateway_To_networking_NATGateway(in *NATGateway, ou
}
// Convert_v1alpha1_NATGateway_To_networking_NATGateway is an autogenerated conversion function.
-func Convert_v1alpha1_NATGateway_To_networking_NATGateway(in *NATGateway, out *networking.NATGateway, s conversion.Scope) error {
+func Convert_v1alpha1_NATGateway_To_networking_NATGateway(in *v1alpha1.NATGateway, out *networking.NATGateway, s conversion.Scope) error {
return autoConvert_v1alpha1_NATGateway_To_networking_NATGateway(in, out, s)
}
-func autoConvert_networking_NATGateway_To_v1alpha1_NATGateway(in *networking.NATGateway, out *NATGateway, s conversion.Scope) error {
+func autoConvert_networking_NATGateway_To_v1alpha1_NATGateway(in *networking.NATGateway, out *v1alpha1.NATGateway, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_networking_NATGatewaySpec_To_v1alpha1_NATGatewaySpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -871,33 +872,33 @@ func autoConvert_networking_NATGateway_To_v1alpha1_NATGateway(in *networking.NAT
}
// Convert_networking_NATGateway_To_v1alpha1_NATGateway is an autogenerated conversion function.
-func Convert_networking_NATGateway_To_v1alpha1_NATGateway(in *networking.NATGateway, out *NATGateway, s conversion.Scope) error {
+func Convert_networking_NATGateway_To_v1alpha1_NATGateway(in *networking.NATGateway, out *v1alpha1.NATGateway, s conversion.Scope) error {
return autoConvert_networking_NATGateway_To_v1alpha1_NATGateway(in, out, s)
}
-func autoConvert_v1alpha1_NATGatewayDestination_To_networking_NATGatewayDestination(in *NATGatewayDestination, out *networking.NATGatewayDestination, s conversion.Scope) error {
+func autoConvert_v1alpha1_NATGatewayDestination_To_networking_NATGatewayDestination(in *v1alpha1.NATGatewayDestination, out *networking.NATGatewayDestination, s conversion.Scope) error {
out.LocalUIDReference = in.LocalUIDReference
out.IPs = *(*[]networking.NATGatewayDestinationIP)(unsafe.Pointer(&in.IPs))
return nil
}
// Convert_v1alpha1_NATGatewayDestination_To_networking_NATGatewayDestination is an autogenerated conversion function.
-func Convert_v1alpha1_NATGatewayDestination_To_networking_NATGatewayDestination(in *NATGatewayDestination, out *networking.NATGatewayDestination, s conversion.Scope) error {
+func Convert_v1alpha1_NATGatewayDestination_To_networking_NATGatewayDestination(in *v1alpha1.NATGatewayDestination, out *networking.NATGatewayDestination, s conversion.Scope) error {
return autoConvert_v1alpha1_NATGatewayDestination_To_networking_NATGatewayDestination(in, out, s)
}
-func autoConvert_networking_NATGatewayDestination_To_v1alpha1_NATGatewayDestination(in *networking.NATGatewayDestination, out *NATGatewayDestination, s conversion.Scope) error {
+func autoConvert_networking_NATGatewayDestination_To_v1alpha1_NATGatewayDestination(in *networking.NATGatewayDestination, out *v1alpha1.NATGatewayDestination, s conversion.Scope) error {
out.LocalUIDReference = in.LocalUIDReference
- out.IPs = *(*[]NATGatewayDestinationIP)(unsafe.Pointer(&in.IPs))
+ out.IPs = *(*[]v1alpha1.NATGatewayDestinationIP)(unsafe.Pointer(&in.IPs))
return nil
}
// Convert_networking_NATGatewayDestination_To_v1alpha1_NATGatewayDestination is an autogenerated conversion function.
-func Convert_networking_NATGatewayDestination_To_v1alpha1_NATGatewayDestination(in *networking.NATGatewayDestination, out *NATGatewayDestination, s conversion.Scope) error {
+func Convert_networking_NATGatewayDestination_To_v1alpha1_NATGatewayDestination(in *networking.NATGatewayDestination, out *v1alpha1.NATGatewayDestination, s conversion.Scope) error {
return autoConvert_networking_NATGatewayDestination_To_v1alpha1_NATGatewayDestination(in, out, s)
}
-func autoConvert_v1alpha1_NATGatewayDestinationIP_To_networking_NATGatewayDestinationIP(in *NATGatewayDestinationIP, out *networking.NATGatewayDestinationIP, s conversion.Scope) error {
+func autoConvert_v1alpha1_NATGatewayDestinationIP_To_networking_NATGatewayDestinationIP(in *v1alpha1.NATGatewayDestinationIP, out *networking.NATGatewayDestinationIP, s conversion.Scope) error {
out.IP = in.IP
out.Port = in.Port
out.EndPort = in.EndPort
@@ -905,11 +906,11 @@ func autoConvert_v1alpha1_NATGatewayDestinationIP_To_networking_NATGatewayDestin
}
// Convert_v1alpha1_NATGatewayDestinationIP_To_networking_NATGatewayDestinationIP is an autogenerated conversion function.
-func Convert_v1alpha1_NATGatewayDestinationIP_To_networking_NATGatewayDestinationIP(in *NATGatewayDestinationIP, out *networking.NATGatewayDestinationIP, s conversion.Scope) error {
+func Convert_v1alpha1_NATGatewayDestinationIP_To_networking_NATGatewayDestinationIP(in *v1alpha1.NATGatewayDestinationIP, out *networking.NATGatewayDestinationIP, s conversion.Scope) error {
return autoConvert_v1alpha1_NATGatewayDestinationIP_To_networking_NATGatewayDestinationIP(in, out, s)
}
-func autoConvert_networking_NATGatewayDestinationIP_To_v1alpha1_NATGatewayDestinationIP(in *networking.NATGatewayDestinationIP, out *NATGatewayDestinationIP, s conversion.Scope) error {
+func autoConvert_networking_NATGatewayDestinationIP_To_v1alpha1_NATGatewayDestinationIP(in *networking.NATGatewayDestinationIP, out *v1alpha1.NATGatewayDestinationIP, s conversion.Scope) error {
out.IP = in.IP
out.Port = in.Port
out.EndPort = in.EndPort
@@ -917,75 +918,75 @@ func autoConvert_networking_NATGatewayDestinationIP_To_v1alpha1_NATGatewayDestin
}
// Convert_networking_NATGatewayDestinationIP_To_v1alpha1_NATGatewayDestinationIP is an autogenerated conversion function.
-func Convert_networking_NATGatewayDestinationIP_To_v1alpha1_NATGatewayDestinationIP(in *networking.NATGatewayDestinationIP, out *NATGatewayDestinationIP, s conversion.Scope) error {
+func Convert_networking_NATGatewayDestinationIP_To_v1alpha1_NATGatewayDestinationIP(in *networking.NATGatewayDestinationIP, out *v1alpha1.NATGatewayDestinationIP, s conversion.Scope) error {
return autoConvert_networking_NATGatewayDestinationIP_To_v1alpha1_NATGatewayDestinationIP(in, out, s)
}
-func autoConvert_v1alpha1_NATGatewayIP_To_networking_NATGatewayIP(in *NATGatewayIP, out *networking.NATGatewayIP, s conversion.Scope) error {
+func autoConvert_v1alpha1_NATGatewayIP_To_networking_NATGatewayIP(in *v1alpha1.NATGatewayIP, out *networking.NATGatewayIP, s conversion.Scope) error {
out.Name = in.Name
return nil
}
// Convert_v1alpha1_NATGatewayIP_To_networking_NATGatewayIP is an autogenerated conversion function.
-func Convert_v1alpha1_NATGatewayIP_To_networking_NATGatewayIP(in *NATGatewayIP, out *networking.NATGatewayIP, s conversion.Scope) error {
+func Convert_v1alpha1_NATGatewayIP_To_networking_NATGatewayIP(in *v1alpha1.NATGatewayIP, out *networking.NATGatewayIP, s conversion.Scope) error {
return autoConvert_v1alpha1_NATGatewayIP_To_networking_NATGatewayIP(in, out, s)
}
-func autoConvert_networking_NATGatewayIP_To_v1alpha1_NATGatewayIP(in *networking.NATGatewayIP, out *NATGatewayIP, s conversion.Scope) error {
+func autoConvert_networking_NATGatewayIP_To_v1alpha1_NATGatewayIP(in *networking.NATGatewayIP, out *v1alpha1.NATGatewayIP, s conversion.Scope) error {
out.Name = in.Name
return nil
}
// Convert_networking_NATGatewayIP_To_v1alpha1_NATGatewayIP is an autogenerated conversion function.
-func Convert_networking_NATGatewayIP_To_v1alpha1_NATGatewayIP(in *networking.NATGatewayIP, out *NATGatewayIP, s conversion.Scope) error {
+func Convert_networking_NATGatewayIP_To_v1alpha1_NATGatewayIP(in *networking.NATGatewayIP, out *v1alpha1.NATGatewayIP, s conversion.Scope) error {
return autoConvert_networking_NATGatewayIP_To_v1alpha1_NATGatewayIP(in, out, s)
}
-func autoConvert_v1alpha1_NATGatewayIPStatus_To_networking_NATGatewayIPStatus(in *NATGatewayIPStatus, out *networking.NATGatewayIPStatus, s conversion.Scope) error {
+func autoConvert_v1alpha1_NATGatewayIPStatus_To_networking_NATGatewayIPStatus(in *v1alpha1.NATGatewayIPStatus, out *networking.NATGatewayIPStatus, s conversion.Scope) error {
out.Name = in.Name
out.IP = in.IP
return nil
}
// Convert_v1alpha1_NATGatewayIPStatus_To_networking_NATGatewayIPStatus is an autogenerated conversion function.
-func Convert_v1alpha1_NATGatewayIPStatus_To_networking_NATGatewayIPStatus(in *NATGatewayIPStatus, out *networking.NATGatewayIPStatus, s conversion.Scope) error {
+func Convert_v1alpha1_NATGatewayIPStatus_To_networking_NATGatewayIPStatus(in *v1alpha1.NATGatewayIPStatus, out *networking.NATGatewayIPStatus, s conversion.Scope) error {
return autoConvert_v1alpha1_NATGatewayIPStatus_To_networking_NATGatewayIPStatus(in, out, s)
}
-func autoConvert_networking_NATGatewayIPStatus_To_v1alpha1_NATGatewayIPStatus(in *networking.NATGatewayIPStatus, out *NATGatewayIPStatus, s conversion.Scope) error {
+func autoConvert_networking_NATGatewayIPStatus_To_v1alpha1_NATGatewayIPStatus(in *networking.NATGatewayIPStatus, out *v1alpha1.NATGatewayIPStatus, s conversion.Scope) error {
out.Name = in.Name
out.IP = in.IP
return nil
}
// Convert_networking_NATGatewayIPStatus_To_v1alpha1_NATGatewayIPStatus is an autogenerated conversion function.
-func Convert_networking_NATGatewayIPStatus_To_v1alpha1_NATGatewayIPStatus(in *networking.NATGatewayIPStatus, out *NATGatewayIPStatus, s conversion.Scope) error {
+func Convert_networking_NATGatewayIPStatus_To_v1alpha1_NATGatewayIPStatus(in *networking.NATGatewayIPStatus, out *v1alpha1.NATGatewayIPStatus, s conversion.Scope) error {
return autoConvert_networking_NATGatewayIPStatus_To_v1alpha1_NATGatewayIPStatus(in, out, s)
}
-func autoConvert_v1alpha1_NATGatewayList_To_networking_NATGatewayList(in *NATGatewayList, out *networking.NATGatewayList, s conversion.Scope) error {
+func autoConvert_v1alpha1_NATGatewayList_To_networking_NATGatewayList(in *v1alpha1.NATGatewayList, out *networking.NATGatewayList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]networking.NATGateway)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1alpha1_NATGatewayList_To_networking_NATGatewayList is an autogenerated conversion function.
-func Convert_v1alpha1_NATGatewayList_To_networking_NATGatewayList(in *NATGatewayList, out *networking.NATGatewayList, s conversion.Scope) error {
+func Convert_v1alpha1_NATGatewayList_To_networking_NATGatewayList(in *v1alpha1.NATGatewayList, out *networking.NATGatewayList, s conversion.Scope) error {
return autoConvert_v1alpha1_NATGatewayList_To_networking_NATGatewayList(in, out, s)
}
-func autoConvert_networking_NATGatewayList_To_v1alpha1_NATGatewayList(in *networking.NATGatewayList, out *NATGatewayList, s conversion.Scope) error {
+func autoConvert_networking_NATGatewayList_To_v1alpha1_NATGatewayList(in *networking.NATGatewayList, out *v1alpha1.NATGatewayList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
- out.Items = *(*[]NATGateway)(unsafe.Pointer(&in.Items))
+ out.Items = *(*[]v1alpha1.NATGateway)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_networking_NATGatewayList_To_v1alpha1_NATGatewayList is an autogenerated conversion function.
-func Convert_networking_NATGatewayList_To_v1alpha1_NATGatewayList(in *networking.NATGatewayList, out *NATGatewayList, s conversion.Scope) error {
+func Convert_networking_NATGatewayList_To_v1alpha1_NATGatewayList(in *networking.NATGatewayList, out *v1alpha1.NATGatewayList, s conversion.Scope) error {
return autoConvert_networking_NATGatewayList_To_v1alpha1_NATGatewayList(in, out, s)
}
-func autoConvert_v1alpha1_NATGatewayRouting_To_networking_NATGatewayRouting(in *NATGatewayRouting, out *networking.NATGatewayRouting, s conversion.Scope) error {
+func autoConvert_v1alpha1_NATGatewayRouting_To_networking_NATGatewayRouting(in *v1alpha1.NATGatewayRouting, out *networking.NATGatewayRouting, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
out.NetworkRef = in.NetworkRef
out.Destinations = *(*[]networking.NATGatewayDestination)(unsafe.Pointer(&in.Destinations))
@@ -993,45 +994,45 @@ func autoConvert_v1alpha1_NATGatewayRouting_To_networking_NATGatewayRouting(in *
}
// Convert_v1alpha1_NATGatewayRouting_To_networking_NATGatewayRouting is an autogenerated conversion function.
-func Convert_v1alpha1_NATGatewayRouting_To_networking_NATGatewayRouting(in *NATGatewayRouting, out *networking.NATGatewayRouting, s conversion.Scope) error {
+func Convert_v1alpha1_NATGatewayRouting_To_networking_NATGatewayRouting(in *v1alpha1.NATGatewayRouting, out *networking.NATGatewayRouting, s conversion.Scope) error {
return autoConvert_v1alpha1_NATGatewayRouting_To_networking_NATGatewayRouting(in, out, s)
}
-func autoConvert_networking_NATGatewayRouting_To_v1alpha1_NATGatewayRouting(in *networking.NATGatewayRouting, out *NATGatewayRouting, s conversion.Scope) error {
+func autoConvert_networking_NATGatewayRouting_To_v1alpha1_NATGatewayRouting(in *networking.NATGatewayRouting, out *v1alpha1.NATGatewayRouting, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
out.NetworkRef = in.NetworkRef
- out.Destinations = *(*[]NATGatewayDestination)(unsafe.Pointer(&in.Destinations))
+ out.Destinations = *(*[]v1alpha1.NATGatewayDestination)(unsafe.Pointer(&in.Destinations))
return nil
}
// Convert_networking_NATGatewayRouting_To_v1alpha1_NATGatewayRouting is an autogenerated conversion function.
-func Convert_networking_NATGatewayRouting_To_v1alpha1_NATGatewayRouting(in *networking.NATGatewayRouting, out *NATGatewayRouting, s conversion.Scope) error {
+func Convert_networking_NATGatewayRouting_To_v1alpha1_NATGatewayRouting(in *networking.NATGatewayRouting, out *v1alpha1.NATGatewayRouting, s conversion.Scope) error {
return autoConvert_networking_NATGatewayRouting_To_v1alpha1_NATGatewayRouting(in, out, s)
}
-func autoConvert_v1alpha1_NATGatewayRoutingList_To_networking_NATGatewayRoutingList(in *NATGatewayRoutingList, out *networking.NATGatewayRoutingList, s conversion.Scope) error {
+func autoConvert_v1alpha1_NATGatewayRoutingList_To_networking_NATGatewayRoutingList(in *v1alpha1.NATGatewayRoutingList, out *networking.NATGatewayRoutingList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]networking.NATGatewayRouting)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1alpha1_NATGatewayRoutingList_To_networking_NATGatewayRoutingList is an autogenerated conversion function.
-func Convert_v1alpha1_NATGatewayRoutingList_To_networking_NATGatewayRoutingList(in *NATGatewayRoutingList, out *networking.NATGatewayRoutingList, s conversion.Scope) error {
+func Convert_v1alpha1_NATGatewayRoutingList_To_networking_NATGatewayRoutingList(in *v1alpha1.NATGatewayRoutingList, out *networking.NATGatewayRoutingList, s conversion.Scope) error {
return autoConvert_v1alpha1_NATGatewayRoutingList_To_networking_NATGatewayRoutingList(in, out, s)
}
-func autoConvert_networking_NATGatewayRoutingList_To_v1alpha1_NATGatewayRoutingList(in *networking.NATGatewayRoutingList, out *NATGatewayRoutingList, s conversion.Scope) error {
+func autoConvert_networking_NATGatewayRoutingList_To_v1alpha1_NATGatewayRoutingList(in *networking.NATGatewayRoutingList, out *v1alpha1.NATGatewayRoutingList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
- out.Items = *(*[]NATGatewayRouting)(unsafe.Pointer(&in.Items))
+ out.Items = *(*[]v1alpha1.NATGatewayRouting)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_networking_NATGatewayRoutingList_To_v1alpha1_NATGatewayRoutingList is an autogenerated conversion function.
-func Convert_networking_NATGatewayRoutingList_To_v1alpha1_NATGatewayRoutingList(in *networking.NATGatewayRoutingList, out *NATGatewayRoutingList, s conversion.Scope) error {
+func Convert_networking_NATGatewayRoutingList_To_v1alpha1_NATGatewayRoutingList(in *networking.NATGatewayRoutingList, out *v1alpha1.NATGatewayRoutingList, s conversion.Scope) error {
return autoConvert_networking_NATGatewayRoutingList_To_v1alpha1_NATGatewayRoutingList(in, out, s)
}
-func autoConvert_v1alpha1_NATGatewaySpec_To_networking_NATGatewaySpec(in *NATGatewaySpec, out *networking.NATGatewaySpec, s conversion.Scope) error {
+func autoConvert_v1alpha1_NATGatewaySpec_To_networking_NATGatewaySpec(in *v1alpha1.NATGatewaySpec, out *networking.NATGatewaySpec, s conversion.Scope) error {
out.Type = networking.NATGatewayType(in.Type)
out.IPFamilies = *(*[]corev1.IPFamily)(unsafe.Pointer(&in.IPFamilies))
out.IPs = *(*[]networking.NATGatewayIP)(unsafe.Pointer(&in.IPs))
@@ -1042,14 +1043,14 @@ func autoConvert_v1alpha1_NATGatewaySpec_To_networking_NATGatewaySpec(in *NATGat
}
// Convert_v1alpha1_NATGatewaySpec_To_networking_NATGatewaySpec is an autogenerated conversion function.
-func Convert_v1alpha1_NATGatewaySpec_To_networking_NATGatewaySpec(in *NATGatewaySpec, out *networking.NATGatewaySpec, s conversion.Scope) error {
+func Convert_v1alpha1_NATGatewaySpec_To_networking_NATGatewaySpec(in *v1alpha1.NATGatewaySpec, out *networking.NATGatewaySpec, s conversion.Scope) error {
return autoConvert_v1alpha1_NATGatewaySpec_To_networking_NATGatewaySpec(in, out, s)
}
-func autoConvert_networking_NATGatewaySpec_To_v1alpha1_NATGatewaySpec(in *networking.NATGatewaySpec, out *NATGatewaySpec, s conversion.Scope) error {
- out.Type = NATGatewayType(in.Type)
+func autoConvert_networking_NATGatewaySpec_To_v1alpha1_NATGatewaySpec(in *networking.NATGatewaySpec, out *v1alpha1.NATGatewaySpec, s conversion.Scope) error {
+ out.Type = v1alpha1.NATGatewayType(in.Type)
out.IPFamilies = *(*[]corev1.IPFamily)(unsafe.Pointer(&in.IPFamilies))
- out.IPs = *(*[]NATGatewayIP)(unsafe.Pointer(&in.IPs))
+ out.IPs = *(*[]v1alpha1.NATGatewayIP)(unsafe.Pointer(&in.IPs))
out.NetworkRef = in.NetworkRef
out.NetworkInterfaceSelector = (*v1.LabelSelector)(unsafe.Pointer(in.NetworkInterfaceSelector))
out.PortsPerNetworkInterface = (*int32)(unsafe.Pointer(in.PortsPerNetworkInterface))
@@ -1057,33 +1058,33 @@ func autoConvert_networking_NATGatewaySpec_To_v1alpha1_NATGatewaySpec(in *networ
}
// Convert_networking_NATGatewaySpec_To_v1alpha1_NATGatewaySpec is an autogenerated conversion function.
-func Convert_networking_NATGatewaySpec_To_v1alpha1_NATGatewaySpec(in *networking.NATGatewaySpec, out *NATGatewaySpec, s conversion.Scope) error {
+func Convert_networking_NATGatewaySpec_To_v1alpha1_NATGatewaySpec(in *networking.NATGatewaySpec, out *v1alpha1.NATGatewaySpec, s conversion.Scope) error {
return autoConvert_networking_NATGatewaySpec_To_v1alpha1_NATGatewaySpec(in, out, s)
}
-func autoConvert_v1alpha1_NATGatewayStatus_To_networking_NATGatewayStatus(in *NATGatewayStatus, out *networking.NATGatewayStatus, s conversion.Scope) error {
+func autoConvert_v1alpha1_NATGatewayStatus_To_networking_NATGatewayStatus(in *v1alpha1.NATGatewayStatus, out *networking.NATGatewayStatus, s conversion.Scope) error {
out.IPs = *(*[]networking.NATGatewayIPStatus)(unsafe.Pointer(&in.IPs))
out.PortsUsed = (*int32)(unsafe.Pointer(in.PortsUsed))
return nil
}
// Convert_v1alpha1_NATGatewayStatus_To_networking_NATGatewayStatus is an autogenerated conversion function.
-func Convert_v1alpha1_NATGatewayStatus_To_networking_NATGatewayStatus(in *NATGatewayStatus, out *networking.NATGatewayStatus, s conversion.Scope) error {
+func Convert_v1alpha1_NATGatewayStatus_To_networking_NATGatewayStatus(in *v1alpha1.NATGatewayStatus, out *networking.NATGatewayStatus, s conversion.Scope) error {
return autoConvert_v1alpha1_NATGatewayStatus_To_networking_NATGatewayStatus(in, out, s)
}
-func autoConvert_networking_NATGatewayStatus_To_v1alpha1_NATGatewayStatus(in *networking.NATGatewayStatus, out *NATGatewayStatus, s conversion.Scope) error {
- out.IPs = *(*[]NATGatewayIPStatus)(unsafe.Pointer(&in.IPs))
+func autoConvert_networking_NATGatewayStatus_To_v1alpha1_NATGatewayStatus(in *networking.NATGatewayStatus, out *v1alpha1.NATGatewayStatus, s conversion.Scope) error {
+ out.IPs = *(*[]v1alpha1.NATGatewayIPStatus)(unsafe.Pointer(&in.IPs))
out.PortsUsed = (*int32)(unsafe.Pointer(in.PortsUsed))
return nil
}
// Convert_networking_NATGatewayStatus_To_v1alpha1_NATGatewayStatus is an autogenerated conversion function.
-func Convert_networking_NATGatewayStatus_To_v1alpha1_NATGatewayStatus(in *networking.NATGatewayStatus, out *NATGatewayStatus, s conversion.Scope) error {
+func Convert_networking_NATGatewayStatus_To_v1alpha1_NATGatewayStatus(in *networking.NATGatewayStatus, out *v1alpha1.NATGatewayStatus, s conversion.Scope) error {
return autoConvert_networking_NATGatewayStatus_To_v1alpha1_NATGatewayStatus(in, out, s)
}
-func autoConvert_v1alpha1_Network_To_networking_Network(in *Network, out *networking.Network, s conversion.Scope) error {
+func autoConvert_v1alpha1_Network_To_networking_Network(in *v1alpha1.Network, out *networking.Network, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha1_NetworkSpec_To_networking_NetworkSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -1095,11 +1096,11 @@ func autoConvert_v1alpha1_Network_To_networking_Network(in *Network, out *networ
}
// Convert_v1alpha1_Network_To_networking_Network is an autogenerated conversion function.
-func Convert_v1alpha1_Network_To_networking_Network(in *Network, out *networking.Network, s conversion.Scope) error {
+func Convert_v1alpha1_Network_To_networking_Network(in *v1alpha1.Network, out *networking.Network, s conversion.Scope) error {
return autoConvert_v1alpha1_Network_To_networking_Network(in, out, s)
}
-func autoConvert_networking_Network_To_v1alpha1_Network(in *networking.Network, out *Network, s conversion.Scope) error {
+func autoConvert_networking_Network_To_v1alpha1_Network(in *networking.Network, out *v1alpha1.Network, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_networking_NetworkSpec_To_v1alpha1_NetworkSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -1111,11 +1112,11 @@ func autoConvert_networking_Network_To_v1alpha1_Network(in *networking.Network,
}
// Convert_networking_Network_To_v1alpha1_Network is an autogenerated conversion function.
-func Convert_networking_Network_To_v1alpha1_Network(in *networking.Network, out *Network, s conversion.Scope) error {
+func Convert_networking_Network_To_v1alpha1_Network(in *networking.Network, out *v1alpha1.Network, s conversion.Scope) error {
return autoConvert_networking_Network_To_v1alpha1_Network(in, out, s)
}
-func autoConvert_v1alpha1_NetworkInterface_To_networking_NetworkInterface(in *NetworkInterface, out *networking.NetworkInterface, s conversion.Scope) error {
+func autoConvert_v1alpha1_NetworkInterface_To_networking_NetworkInterface(in *v1alpha1.NetworkInterface, out *networking.NetworkInterface, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha1_NetworkInterfaceSpec_To_networking_NetworkInterfaceSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -1127,11 +1128,11 @@ func autoConvert_v1alpha1_NetworkInterface_To_networking_NetworkInterface(in *Ne
}
// Convert_v1alpha1_NetworkInterface_To_networking_NetworkInterface is an autogenerated conversion function.
-func Convert_v1alpha1_NetworkInterface_To_networking_NetworkInterface(in *NetworkInterface, out *networking.NetworkInterface, s conversion.Scope) error {
+func Convert_v1alpha1_NetworkInterface_To_networking_NetworkInterface(in *v1alpha1.NetworkInterface, out *networking.NetworkInterface, s conversion.Scope) error {
return autoConvert_v1alpha1_NetworkInterface_To_networking_NetworkInterface(in, out, s)
}
-func autoConvert_networking_NetworkInterface_To_v1alpha1_NetworkInterface(in *networking.NetworkInterface, out *NetworkInterface, s conversion.Scope) error {
+func autoConvert_networking_NetworkInterface_To_v1alpha1_NetworkInterface(in *networking.NetworkInterface, out *v1alpha1.NetworkInterface, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_networking_NetworkInterfaceSpec_To_v1alpha1_NetworkInterfaceSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -1143,33 +1144,33 @@ func autoConvert_networking_NetworkInterface_To_v1alpha1_NetworkInterface(in *ne
}
// Convert_networking_NetworkInterface_To_v1alpha1_NetworkInterface is an autogenerated conversion function.
-func Convert_networking_NetworkInterface_To_v1alpha1_NetworkInterface(in *networking.NetworkInterface, out *NetworkInterface, s conversion.Scope) error {
+func Convert_networking_NetworkInterface_To_v1alpha1_NetworkInterface(in *networking.NetworkInterface, out *v1alpha1.NetworkInterface, s conversion.Scope) error {
return autoConvert_networking_NetworkInterface_To_v1alpha1_NetworkInterface(in, out, s)
}
-func autoConvert_v1alpha1_NetworkInterfaceList_To_networking_NetworkInterfaceList(in *NetworkInterfaceList, out *networking.NetworkInterfaceList, s conversion.Scope) error {
+func autoConvert_v1alpha1_NetworkInterfaceList_To_networking_NetworkInterfaceList(in *v1alpha1.NetworkInterfaceList, out *networking.NetworkInterfaceList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]networking.NetworkInterface)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1alpha1_NetworkInterfaceList_To_networking_NetworkInterfaceList is an autogenerated conversion function.
-func Convert_v1alpha1_NetworkInterfaceList_To_networking_NetworkInterfaceList(in *NetworkInterfaceList, out *networking.NetworkInterfaceList, s conversion.Scope) error {
+func Convert_v1alpha1_NetworkInterfaceList_To_networking_NetworkInterfaceList(in *v1alpha1.NetworkInterfaceList, out *networking.NetworkInterfaceList, s conversion.Scope) error {
return autoConvert_v1alpha1_NetworkInterfaceList_To_networking_NetworkInterfaceList(in, out, s)
}
-func autoConvert_networking_NetworkInterfaceList_To_v1alpha1_NetworkInterfaceList(in *networking.NetworkInterfaceList, out *NetworkInterfaceList, s conversion.Scope) error {
+func autoConvert_networking_NetworkInterfaceList_To_v1alpha1_NetworkInterfaceList(in *networking.NetworkInterfaceList, out *v1alpha1.NetworkInterfaceList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
- out.Items = *(*[]NetworkInterface)(unsafe.Pointer(&in.Items))
+ out.Items = *(*[]v1alpha1.NetworkInterface)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_networking_NetworkInterfaceList_To_v1alpha1_NetworkInterfaceList is an autogenerated conversion function.
-func Convert_networking_NetworkInterfaceList_To_v1alpha1_NetworkInterfaceList(in *networking.NetworkInterfaceList, out *NetworkInterfaceList, s conversion.Scope) error {
+func Convert_networking_NetworkInterfaceList_To_v1alpha1_NetworkInterfaceList(in *networking.NetworkInterfaceList, out *v1alpha1.NetworkInterfaceList, s conversion.Scope) error {
return autoConvert_networking_NetworkInterfaceList_To_v1alpha1_NetworkInterfaceList(in, out, s)
}
-func autoConvert_v1alpha1_NetworkInterfaceSpec_To_networking_NetworkInterfaceSpec(in *NetworkInterfaceSpec, out *networking.NetworkInterfaceSpec, s conversion.Scope) error {
+func autoConvert_v1alpha1_NetworkInterfaceSpec_To_networking_NetworkInterfaceSpec(in *v1alpha1.NetworkInterfaceSpec, out *networking.NetworkInterfaceSpec, s conversion.Scope) error {
out.NetworkRef = in.NetworkRef
out.MachineRef = (*commonv1alpha1.LocalUIDReference)(unsafe.Pointer(in.MachineRef))
out.IPFamilies = *(*[]corev1.IPFamily)(unsafe.Pointer(&in.IPFamilies))
@@ -1179,25 +1180,25 @@ func autoConvert_v1alpha1_NetworkInterfaceSpec_To_networking_NetworkInterfaceSpe
}
// Convert_v1alpha1_NetworkInterfaceSpec_To_networking_NetworkInterfaceSpec is an autogenerated conversion function.
-func Convert_v1alpha1_NetworkInterfaceSpec_To_networking_NetworkInterfaceSpec(in *NetworkInterfaceSpec, out *networking.NetworkInterfaceSpec, s conversion.Scope) error {
+func Convert_v1alpha1_NetworkInterfaceSpec_To_networking_NetworkInterfaceSpec(in *v1alpha1.NetworkInterfaceSpec, out *networking.NetworkInterfaceSpec, s conversion.Scope) error {
return autoConvert_v1alpha1_NetworkInterfaceSpec_To_networking_NetworkInterfaceSpec(in, out, s)
}
-func autoConvert_networking_NetworkInterfaceSpec_To_v1alpha1_NetworkInterfaceSpec(in *networking.NetworkInterfaceSpec, out *NetworkInterfaceSpec, s conversion.Scope) error {
+func autoConvert_networking_NetworkInterfaceSpec_To_v1alpha1_NetworkInterfaceSpec(in *networking.NetworkInterfaceSpec, out *v1alpha1.NetworkInterfaceSpec, s conversion.Scope) error {
out.NetworkRef = in.NetworkRef
out.MachineRef = (*commonv1alpha1.LocalUIDReference)(unsafe.Pointer(in.MachineRef))
out.IPFamilies = *(*[]corev1.IPFamily)(unsafe.Pointer(&in.IPFamilies))
- out.IPs = *(*[]IPSource)(unsafe.Pointer(&in.IPs))
- out.VirtualIP = (*VirtualIPSource)(unsafe.Pointer(in.VirtualIP))
+ out.IPs = *(*[]v1alpha1.IPSource)(unsafe.Pointer(&in.IPs))
+ out.VirtualIP = (*v1alpha1.VirtualIPSource)(unsafe.Pointer(in.VirtualIP))
return nil
}
// Convert_networking_NetworkInterfaceSpec_To_v1alpha1_NetworkInterfaceSpec is an autogenerated conversion function.
-func Convert_networking_NetworkInterfaceSpec_To_v1alpha1_NetworkInterfaceSpec(in *networking.NetworkInterfaceSpec, out *NetworkInterfaceSpec, s conversion.Scope) error {
+func Convert_networking_NetworkInterfaceSpec_To_v1alpha1_NetworkInterfaceSpec(in *networking.NetworkInterfaceSpec, out *v1alpha1.NetworkInterfaceSpec, s conversion.Scope) error {
return autoConvert_networking_NetworkInterfaceSpec_To_v1alpha1_NetworkInterfaceSpec(in, out, s)
}
-func autoConvert_v1alpha1_NetworkInterfaceStatus_To_networking_NetworkInterfaceStatus(in *NetworkInterfaceStatus, out *networking.NetworkInterfaceStatus, s conversion.Scope) error {
+func autoConvert_v1alpha1_NetworkInterfaceStatus_To_networking_NetworkInterfaceStatus(in *v1alpha1.NetworkInterfaceStatus, out *networking.NetworkInterfaceStatus, s conversion.Scope) error {
out.NetworkHandle = in.NetworkHandle
out.IPs = *(*[]commonv1alpha1.IP)(unsafe.Pointer(&in.IPs))
out.VirtualIP = (*commonv1alpha1.IP)(unsafe.Pointer(in.VirtualIP))
@@ -1207,25 +1208,25 @@ func autoConvert_v1alpha1_NetworkInterfaceStatus_To_networking_NetworkInterfaceS
}
// Convert_v1alpha1_NetworkInterfaceStatus_To_networking_NetworkInterfaceStatus is an autogenerated conversion function.
-func Convert_v1alpha1_NetworkInterfaceStatus_To_networking_NetworkInterfaceStatus(in *NetworkInterfaceStatus, out *networking.NetworkInterfaceStatus, s conversion.Scope) error {
+func Convert_v1alpha1_NetworkInterfaceStatus_To_networking_NetworkInterfaceStatus(in *v1alpha1.NetworkInterfaceStatus, out *networking.NetworkInterfaceStatus, s conversion.Scope) error {
return autoConvert_v1alpha1_NetworkInterfaceStatus_To_networking_NetworkInterfaceStatus(in, out, s)
}
-func autoConvert_networking_NetworkInterfaceStatus_To_v1alpha1_NetworkInterfaceStatus(in *networking.NetworkInterfaceStatus, out *NetworkInterfaceStatus, s conversion.Scope) error {
+func autoConvert_networking_NetworkInterfaceStatus_To_v1alpha1_NetworkInterfaceStatus(in *networking.NetworkInterfaceStatus, out *v1alpha1.NetworkInterfaceStatus, s conversion.Scope) error {
out.NetworkHandle = in.NetworkHandle
out.IPs = *(*[]commonv1alpha1.IP)(unsafe.Pointer(&in.IPs))
out.VirtualIP = (*commonv1alpha1.IP)(unsafe.Pointer(in.VirtualIP))
- out.Phase = NetworkInterfacePhase(in.Phase)
+ out.Phase = v1alpha1.NetworkInterfacePhase(in.Phase)
out.LastPhaseTransitionTime = (*v1.Time)(unsafe.Pointer(in.LastPhaseTransitionTime))
return nil
}
// Convert_networking_NetworkInterfaceStatus_To_v1alpha1_NetworkInterfaceStatus is an autogenerated conversion function.
-func Convert_networking_NetworkInterfaceStatus_To_v1alpha1_NetworkInterfaceStatus(in *networking.NetworkInterfaceStatus, out *NetworkInterfaceStatus, s conversion.Scope) error {
+func Convert_networking_NetworkInterfaceStatus_To_v1alpha1_NetworkInterfaceStatus(in *networking.NetworkInterfaceStatus, out *v1alpha1.NetworkInterfaceStatus, s conversion.Scope) error {
return autoConvert_networking_NetworkInterfaceStatus_To_v1alpha1_NetworkInterfaceStatus(in, out, s)
}
-func autoConvert_v1alpha1_NetworkInterfaceTemplateSpec_To_networking_NetworkInterfaceTemplateSpec(in *NetworkInterfaceTemplateSpec, out *networking.NetworkInterfaceTemplateSpec, s conversion.Scope) error {
+func autoConvert_v1alpha1_NetworkInterfaceTemplateSpec_To_networking_NetworkInterfaceTemplateSpec(in *v1alpha1.NetworkInterfaceTemplateSpec, out *networking.NetworkInterfaceTemplateSpec, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha1_NetworkInterfaceSpec_To_networking_NetworkInterfaceSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -1234,11 +1235,11 @@ func autoConvert_v1alpha1_NetworkInterfaceTemplateSpec_To_networking_NetworkInte
}
// Convert_v1alpha1_NetworkInterfaceTemplateSpec_To_networking_NetworkInterfaceTemplateSpec is an autogenerated conversion function.
-func Convert_v1alpha1_NetworkInterfaceTemplateSpec_To_networking_NetworkInterfaceTemplateSpec(in *NetworkInterfaceTemplateSpec, out *networking.NetworkInterfaceTemplateSpec, s conversion.Scope) error {
+func Convert_v1alpha1_NetworkInterfaceTemplateSpec_To_networking_NetworkInterfaceTemplateSpec(in *v1alpha1.NetworkInterfaceTemplateSpec, out *networking.NetworkInterfaceTemplateSpec, s conversion.Scope) error {
return autoConvert_v1alpha1_NetworkInterfaceTemplateSpec_To_networking_NetworkInterfaceTemplateSpec(in, out, s)
}
-func autoConvert_networking_NetworkInterfaceTemplateSpec_To_v1alpha1_NetworkInterfaceTemplateSpec(in *networking.NetworkInterfaceTemplateSpec, out *NetworkInterfaceTemplateSpec, s conversion.Scope) error {
+func autoConvert_networking_NetworkInterfaceTemplateSpec_To_v1alpha1_NetworkInterfaceTemplateSpec(in *networking.NetworkInterfaceTemplateSpec, out *v1alpha1.NetworkInterfaceTemplateSpec, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_networking_NetworkInterfaceSpec_To_v1alpha1_NetworkInterfaceSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -1247,95 +1248,95 @@ func autoConvert_networking_NetworkInterfaceTemplateSpec_To_v1alpha1_NetworkInte
}
// Convert_networking_NetworkInterfaceTemplateSpec_To_v1alpha1_NetworkInterfaceTemplateSpec is an autogenerated conversion function.
-func Convert_networking_NetworkInterfaceTemplateSpec_To_v1alpha1_NetworkInterfaceTemplateSpec(in *networking.NetworkInterfaceTemplateSpec, out *NetworkInterfaceTemplateSpec, s conversion.Scope) error {
+func Convert_networking_NetworkInterfaceTemplateSpec_To_v1alpha1_NetworkInterfaceTemplateSpec(in *networking.NetworkInterfaceTemplateSpec, out *v1alpha1.NetworkInterfaceTemplateSpec, s conversion.Scope) error {
return autoConvert_networking_NetworkInterfaceTemplateSpec_To_v1alpha1_NetworkInterfaceTemplateSpec(in, out, s)
}
-func autoConvert_v1alpha1_NetworkList_To_networking_NetworkList(in *NetworkList, out *networking.NetworkList, s conversion.Scope) error {
+func autoConvert_v1alpha1_NetworkList_To_networking_NetworkList(in *v1alpha1.NetworkList, out *networking.NetworkList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]networking.Network)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1alpha1_NetworkList_To_networking_NetworkList is an autogenerated conversion function.
-func Convert_v1alpha1_NetworkList_To_networking_NetworkList(in *NetworkList, out *networking.NetworkList, s conversion.Scope) error {
+func Convert_v1alpha1_NetworkList_To_networking_NetworkList(in *v1alpha1.NetworkList, out *networking.NetworkList, s conversion.Scope) error {
return autoConvert_v1alpha1_NetworkList_To_networking_NetworkList(in, out, s)
}
-func autoConvert_networking_NetworkList_To_v1alpha1_NetworkList(in *networking.NetworkList, out *NetworkList, s conversion.Scope) error {
+func autoConvert_networking_NetworkList_To_v1alpha1_NetworkList(in *networking.NetworkList, out *v1alpha1.NetworkList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
- out.Items = *(*[]Network)(unsafe.Pointer(&in.Items))
+ out.Items = *(*[]v1alpha1.Network)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_networking_NetworkList_To_v1alpha1_NetworkList is an autogenerated conversion function.
-func Convert_networking_NetworkList_To_v1alpha1_NetworkList(in *networking.NetworkList, out *NetworkList, s conversion.Scope) error {
+func Convert_networking_NetworkList_To_v1alpha1_NetworkList(in *networking.NetworkList, out *v1alpha1.NetworkList, s conversion.Scope) error {
return autoConvert_networking_NetworkList_To_v1alpha1_NetworkList(in, out, s)
}
-func autoConvert_v1alpha1_NetworkSpec_To_networking_NetworkSpec(in *NetworkSpec, out *networking.NetworkSpec, s conversion.Scope) error {
+func autoConvert_v1alpha1_NetworkSpec_To_networking_NetworkSpec(in *v1alpha1.NetworkSpec, out *networking.NetworkSpec, s conversion.Scope) error {
out.ProviderID = in.ProviderID
return nil
}
// Convert_v1alpha1_NetworkSpec_To_networking_NetworkSpec is an autogenerated conversion function.
-func Convert_v1alpha1_NetworkSpec_To_networking_NetworkSpec(in *NetworkSpec, out *networking.NetworkSpec, s conversion.Scope) error {
+func Convert_v1alpha1_NetworkSpec_To_networking_NetworkSpec(in *v1alpha1.NetworkSpec, out *networking.NetworkSpec, s conversion.Scope) error {
return autoConvert_v1alpha1_NetworkSpec_To_networking_NetworkSpec(in, out, s)
}
-func autoConvert_networking_NetworkSpec_To_v1alpha1_NetworkSpec(in *networking.NetworkSpec, out *NetworkSpec, s conversion.Scope) error {
+func autoConvert_networking_NetworkSpec_To_v1alpha1_NetworkSpec(in *networking.NetworkSpec, out *v1alpha1.NetworkSpec, s conversion.Scope) error {
out.ProviderID = in.ProviderID
return nil
}
// Convert_networking_NetworkSpec_To_v1alpha1_NetworkSpec is an autogenerated conversion function.
-func Convert_networking_NetworkSpec_To_v1alpha1_NetworkSpec(in *networking.NetworkSpec, out *NetworkSpec, s conversion.Scope) error {
+func Convert_networking_NetworkSpec_To_v1alpha1_NetworkSpec(in *networking.NetworkSpec, out *v1alpha1.NetworkSpec, s conversion.Scope) error {
return autoConvert_networking_NetworkSpec_To_v1alpha1_NetworkSpec(in, out, s)
}
-func autoConvert_v1alpha1_NetworkStatus_To_networking_NetworkStatus(in *NetworkStatus, out *networking.NetworkStatus, s conversion.Scope) error {
+func autoConvert_v1alpha1_NetworkStatus_To_networking_NetworkStatus(in *v1alpha1.NetworkStatus, out *networking.NetworkStatus, s conversion.Scope) error {
out.State = networking.NetworkState(in.State)
return nil
}
// Convert_v1alpha1_NetworkStatus_To_networking_NetworkStatus is an autogenerated conversion function.
-func Convert_v1alpha1_NetworkStatus_To_networking_NetworkStatus(in *NetworkStatus, out *networking.NetworkStatus, s conversion.Scope) error {
+func Convert_v1alpha1_NetworkStatus_To_networking_NetworkStatus(in *v1alpha1.NetworkStatus, out *networking.NetworkStatus, s conversion.Scope) error {
return autoConvert_v1alpha1_NetworkStatus_To_networking_NetworkStatus(in, out, s)
}
-func autoConvert_networking_NetworkStatus_To_v1alpha1_NetworkStatus(in *networking.NetworkStatus, out *NetworkStatus, s conversion.Scope) error {
- out.State = NetworkState(in.State)
+func autoConvert_networking_NetworkStatus_To_v1alpha1_NetworkStatus(in *networking.NetworkStatus, out *v1alpha1.NetworkStatus, s conversion.Scope) error {
+ out.State = v1alpha1.NetworkState(in.State)
return nil
}
// Convert_networking_NetworkStatus_To_v1alpha1_NetworkStatus is an autogenerated conversion function.
-func Convert_networking_NetworkStatus_To_v1alpha1_NetworkStatus(in *networking.NetworkStatus, out *NetworkStatus, s conversion.Scope) error {
+func Convert_networking_NetworkStatus_To_v1alpha1_NetworkStatus(in *networking.NetworkStatus, out *v1alpha1.NetworkStatus, s conversion.Scope) error {
return autoConvert_networking_NetworkStatus_To_v1alpha1_NetworkStatus(in, out, s)
}
-func autoConvert_v1alpha1_PrefixSource_To_networking_PrefixSource(in *PrefixSource, out *networking.PrefixSource, s conversion.Scope) error {
+func autoConvert_v1alpha1_PrefixSource_To_networking_PrefixSource(in *v1alpha1.PrefixSource, out *networking.PrefixSource, s conversion.Scope) error {
out.Value = (*commonv1alpha1.IPPrefix)(unsafe.Pointer(in.Value))
out.Ephemeral = (*networking.EphemeralPrefixSource)(unsafe.Pointer(in.Ephemeral))
return nil
}
// Convert_v1alpha1_PrefixSource_To_networking_PrefixSource is an autogenerated conversion function.
-func Convert_v1alpha1_PrefixSource_To_networking_PrefixSource(in *PrefixSource, out *networking.PrefixSource, s conversion.Scope) error {
+func Convert_v1alpha1_PrefixSource_To_networking_PrefixSource(in *v1alpha1.PrefixSource, out *networking.PrefixSource, s conversion.Scope) error {
return autoConvert_v1alpha1_PrefixSource_To_networking_PrefixSource(in, out, s)
}
-func autoConvert_networking_PrefixSource_To_v1alpha1_PrefixSource(in *networking.PrefixSource, out *PrefixSource, s conversion.Scope) error {
+func autoConvert_networking_PrefixSource_To_v1alpha1_PrefixSource(in *networking.PrefixSource, out *v1alpha1.PrefixSource, s conversion.Scope) error {
out.Value = (*commonv1alpha1.IPPrefix)(unsafe.Pointer(in.Value))
- out.Ephemeral = (*EphemeralPrefixSource)(unsafe.Pointer(in.Ephemeral))
+ out.Ephemeral = (*v1alpha1.EphemeralPrefixSource)(unsafe.Pointer(in.Ephemeral))
return nil
}
// Convert_networking_PrefixSource_To_v1alpha1_PrefixSource is an autogenerated conversion function.
-func Convert_networking_PrefixSource_To_v1alpha1_PrefixSource(in *networking.PrefixSource, out *PrefixSource, s conversion.Scope) error {
+func Convert_networking_PrefixSource_To_v1alpha1_PrefixSource(in *networking.PrefixSource, out *v1alpha1.PrefixSource, s conversion.Scope) error {
return autoConvert_networking_PrefixSource_To_v1alpha1_PrefixSource(in, out, s)
}
-func autoConvert_v1alpha1_VirtualIP_To_networking_VirtualIP(in *VirtualIP, out *networking.VirtualIP, s conversion.Scope) error {
+func autoConvert_v1alpha1_VirtualIP_To_networking_VirtualIP(in *v1alpha1.VirtualIP, out *networking.VirtualIP, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha1_VirtualIPSpec_To_networking_VirtualIPSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -1347,11 +1348,11 @@ func autoConvert_v1alpha1_VirtualIP_To_networking_VirtualIP(in *VirtualIP, out *
}
// Convert_v1alpha1_VirtualIP_To_networking_VirtualIP is an autogenerated conversion function.
-func Convert_v1alpha1_VirtualIP_To_networking_VirtualIP(in *VirtualIP, out *networking.VirtualIP, s conversion.Scope) error {
+func Convert_v1alpha1_VirtualIP_To_networking_VirtualIP(in *v1alpha1.VirtualIP, out *networking.VirtualIP, s conversion.Scope) error {
return autoConvert_v1alpha1_VirtualIP_To_networking_VirtualIP(in, out, s)
}
-func autoConvert_networking_VirtualIP_To_v1alpha1_VirtualIP(in *networking.VirtualIP, out *VirtualIP, s conversion.Scope) error {
+func autoConvert_networking_VirtualIP_To_v1alpha1_VirtualIP(in *networking.VirtualIP, out *v1alpha1.VirtualIP, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_networking_VirtualIPSpec_To_v1alpha1_VirtualIPSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -1363,55 +1364,55 @@ func autoConvert_networking_VirtualIP_To_v1alpha1_VirtualIP(in *networking.Virtu
}
// Convert_networking_VirtualIP_To_v1alpha1_VirtualIP is an autogenerated conversion function.
-func Convert_networking_VirtualIP_To_v1alpha1_VirtualIP(in *networking.VirtualIP, out *VirtualIP, s conversion.Scope) error {
+func Convert_networking_VirtualIP_To_v1alpha1_VirtualIP(in *networking.VirtualIP, out *v1alpha1.VirtualIP, s conversion.Scope) error {
return autoConvert_networking_VirtualIP_To_v1alpha1_VirtualIP(in, out, s)
}
-func autoConvert_v1alpha1_VirtualIPList_To_networking_VirtualIPList(in *VirtualIPList, out *networking.VirtualIPList, s conversion.Scope) error {
+func autoConvert_v1alpha1_VirtualIPList_To_networking_VirtualIPList(in *v1alpha1.VirtualIPList, out *networking.VirtualIPList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]networking.VirtualIP)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1alpha1_VirtualIPList_To_networking_VirtualIPList is an autogenerated conversion function.
-func Convert_v1alpha1_VirtualIPList_To_networking_VirtualIPList(in *VirtualIPList, out *networking.VirtualIPList, s conversion.Scope) error {
+func Convert_v1alpha1_VirtualIPList_To_networking_VirtualIPList(in *v1alpha1.VirtualIPList, out *networking.VirtualIPList, s conversion.Scope) error {
return autoConvert_v1alpha1_VirtualIPList_To_networking_VirtualIPList(in, out, s)
}
-func autoConvert_networking_VirtualIPList_To_v1alpha1_VirtualIPList(in *networking.VirtualIPList, out *VirtualIPList, s conversion.Scope) error {
+func autoConvert_networking_VirtualIPList_To_v1alpha1_VirtualIPList(in *networking.VirtualIPList, out *v1alpha1.VirtualIPList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
- out.Items = *(*[]VirtualIP)(unsafe.Pointer(&in.Items))
+ out.Items = *(*[]v1alpha1.VirtualIP)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_networking_VirtualIPList_To_v1alpha1_VirtualIPList is an autogenerated conversion function.
-func Convert_networking_VirtualIPList_To_v1alpha1_VirtualIPList(in *networking.VirtualIPList, out *VirtualIPList, s conversion.Scope) error {
+func Convert_networking_VirtualIPList_To_v1alpha1_VirtualIPList(in *networking.VirtualIPList, out *v1alpha1.VirtualIPList, s conversion.Scope) error {
return autoConvert_networking_VirtualIPList_To_v1alpha1_VirtualIPList(in, out, s)
}
-func autoConvert_v1alpha1_VirtualIPSource_To_networking_VirtualIPSource(in *VirtualIPSource, out *networking.VirtualIPSource, s conversion.Scope) error {
+func autoConvert_v1alpha1_VirtualIPSource_To_networking_VirtualIPSource(in *v1alpha1.VirtualIPSource, out *networking.VirtualIPSource, s conversion.Scope) error {
out.VirtualIPRef = (*corev1.LocalObjectReference)(unsafe.Pointer(in.VirtualIPRef))
out.Ephemeral = (*networking.EphemeralVirtualIPSource)(unsafe.Pointer(in.Ephemeral))
return nil
}
// Convert_v1alpha1_VirtualIPSource_To_networking_VirtualIPSource is an autogenerated conversion function.
-func Convert_v1alpha1_VirtualIPSource_To_networking_VirtualIPSource(in *VirtualIPSource, out *networking.VirtualIPSource, s conversion.Scope) error {
+func Convert_v1alpha1_VirtualIPSource_To_networking_VirtualIPSource(in *v1alpha1.VirtualIPSource, out *networking.VirtualIPSource, s conversion.Scope) error {
return autoConvert_v1alpha1_VirtualIPSource_To_networking_VirtualIPSource(in, out, s)
}
-func autoConvert_networking_VirtualIPSource_To_v1alpha1_VirtualIPSource(in *networking.VirtualIPSource, out *VirtualIPSource, s conversion.Scope) error {
+func autoConvert_networking_VirtualIPSource_To_v1alpha1_VirtualIPSource(in *networking.VirtualIPSource, out *v1alpha1.VirtualIPSource, s conversion.Scope) error {
out.VirtualIPRef = (*corev1.LocalObjectReference)(unsafe.Pointer(in.VirtualIPRef))
- out.Ephemeral = (*EphemeralVirtualIPSource)(unsafe.Pointer(in.Ephemeral))
+ out.Ephemeral = (*v1alpha1.EphemeralVirtualIPSource)(unsafe.Pointer(in.Ephemeral))
return nil
}
// Convert_networking_VirtualIPSource_To_v1alpha1_VirtualIPSource is an autogenerated conversion function.
-func Convert_networking_VirtualIPSource_To_v1alpha1_VirtualIPSource(in *networking.VirtualIPSource, out *VirtualIPSource, s conversion.Scope) error {
+func Convert_networking_VirtualIPSource_To_v1alpha1_VirtualIPSource(in *networking.VirtualIPSource, out *v1alpha1.VirtualIPSource, s conversion.Scope) error {
return autoConvert_networking_VirtualIPSource_To_v1alpha1_VirtualIPSource(in, out, s)
}
-func autoConvert_v1alpha1_VirtualIPSpec_To_networking_VirtualIPSpec(in *VirtualIPSpec, out *networking.VirtualIPSpec, s conversion.Scope) error {
+func autoConvert_v1alpha1_VirtualIPSpec_To_networking_VirtualIPSpec(in *v1alpha1.VirtualIPSpec, out *networking.VirtualIPSpec, s conversion.Scope) error {
out.Type = networking.VirtualIPType(in.Type)
out.IPFamily = corev1.IPFamily(in.IPFamily)
out.TargetRef = (*commonv1alpha1.LocalUIDReference)(unsafe.Pointer(in.TargetRef))
@@ -1419,23 +1420,23 @@ func autoConvert_v1alpha1_VirtualIPSpec_To_networking_VirtualIPSpec(in *VirtualI
}
// Convert_v1alpha1_VirtualIPSpec_To_networking_VirtualIPSpec is an autogenerated conversion function.
-func Convert_v1alpha1_VirtualIPSpec_To_networking_VirtualIPSpec(in *VirtualIPSpec, out *networking.VirtualIPSpec, s conversion.Scope) error {
+func Convert_v1alpha1_VirtualIPSpec_To_networking_VirtualIPSpec(in *v1alpha1.VirtualIPSpec, out *networking.VirtualIPSpec, s conversion.Scope) error {
return autoConvert_v1alpha1_VirtualIPSpec_To_networking_VirtualIPSpec(in, out, s)
}
-func autoConvert_networking_VirtualIPSpec_To_v1alpha1_VirtualIPSpec(in *networking.VirtualIPSpec, out *VirtualIPSpec, s conversion.Scope) error {
- out.Type = VirtualIPType(in.Type)
+func autoConvert_networking_VirtualIPSpec_To_v1alpha1_VirtualIPSpec(in *networking.VirtualIPSpec, out *v1alpha1.VirtualIPSpec, s conversion.Scope) error {
+ out.Type = v1alpha1.VirtualIPType(in.Type)
out.IPFamily = corev1.IPFamily(in.IPFamily)
out.TargetRef = (*commonv1alpha1.LocalUIDReference)(unsafe.Pointer(in.TargetRef))
return nil
}
// Convert_networking_VirtualIPSpec_To_v1alpha1_VirtualIPSpec is an autogenerated conversion function.
-func Convert_networking_VirtualIPSpec_To_v1alpha1_VirtualIPSpec(in *networking.VirtualIPSpec, out *VirtualIPSpec, s conversion.Scope) error {
+func Convert_networking_VirtualIPSpec_To_v1alpha1_VirtualIPSpec(in *networking.VirtualIPSpec, out *v1alpha1.VirtualIPSpec, s conversion.Scope) error {
return autoConvert_networking_VirtualIPSpec_To_v1alpha1_VirtualIPSpec(in, out, s)
}
-func autoConvert_v1alpha1_VirtualIPStatus_To_networking_VirtualIPStatus(in *VirtualIPStatus, out *networking.VirtualIPStatus, s conversion.Scope) error {
+func autoConvert_v1alpha1_VirtualIPStatus_To_networking_VirtualIPStatus(in *v1alpha1.VirtualIPStatus, out *networking.VirtualIPStatus, s conversion.Scope) error {
out.IP = (*commonv1alpha1.IP)(unsafe.Pointer(in.IP))
out.Phase = networking.VirtualIPPhase(in.Phase)
out.LastPhaseTransitionTime = (*v1.Time)(unsafe.Pointer(in.LastPhaseTransitionTime))
@@ -1443,23 +1444,23 @@ func autoConvert_v1alpha1_VirtualIPStatus_To_networking_VirtualIPStatus(in *Virt
}
// Convert_v1alpha1_VirtualIPStatus_To_networking_VirtualIPStatus is an autogenerated conversion function.
-func Convert_v1alpha1_VirtualIPStatus_To_networking_VirtualIPStatus(in *VirtualIPStatus, out *networking.VirtualIPStatus, s conversion.Scope) error {
+func Convert_v1alpha1_VirtualIPStatus_To_networking_VirtualIPStatus(in *v1alpha1.VirtualIPStatus, out *networking.VirtualIPStatus, s conversion.Scope) error {
return autoConvert_v1alpha1_VirtualIPStatus_To_networking_VirtualIPStatus(in, out, s)
}
-func autoConvert_networking_VirtualIPStatus_To_v1alpha1_VirtualIPStatus(in *networking.VirtualIPStatus, out *VirtualIPStatus, s conversion.Scope) error {
+func autoConvert_networking_VirtualIPStatus_To_v1alpha1_VirtualIPStatus(in *networking.VirtualIPStatus, out *v1alpha1.VirtualIPStatus, s conversion.Scope) error {
out.IP = (*commonv1alpha1.IP)(unsafe.Pointer(in.IP))
- out.Phase = VirtualIPPhase(in.Phase)
+ out.Phase = v1alpha1.VirtualIPPhase(in.Phase)
out.LastPhaseTransitionTime = (*v1.Time)(unsafe.Pointer(in.LastPhaseTransitionTime))
return nil
}
// Convert_networking_VirtualIPStatus_To_v1alpha1_VirtualIPStatus is an autogenerated conversion function.
-func Convert_networking_VirtualIPStatus_To_v1alpha1_VirtualIPStatus(in *networking.VirtualIPStatus, out *VirtualIPStatus, s conversion.Scope) error {
+func Convert_networking_VirtualIPStatus_To_v1alpha1_VirtualIPStatus(in *networking.VirtualIPStatus, out *v1alpha1.VirtualIPStatus, s conversion.Scope) error {
return autoConvert_networking_VirtualIPStatus_To_v1alpha1_VirtualIPStatus(in, out, s)
}
-func autoConvert_v1alpha1_VirtualIPTemplateSpec_To_networking_VirtualIPTemplateSpec(in *VirtualIPTemplateSpec, out *networking.VirtualIPTemplateSpec, s conversion.Scope) error {
+func autoConvert_v1alpha1_VirtualIPTemplateSpec_To_networking_VirtualIPTemplateSpec(in *v1alpha1.VirtualIPTemplateSpec, out *networking.VirtualIPTemplateSpec, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha1_VirtualIPSpec_To_networking_VirtualIPSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -1468,11 +1469,11 @@ func autoConvert_v1alpha1_VirtualIPTemplateSpec_To_networking_VirtualIPTemplateS
}
// Convert_v1alpha1_VirtualIPTemplateSpec_To_networking_VirtualIPTemplateSpec is an autogenerated conversion function.
-func Convert_v1alpha1_VirtualIPTemplateSpec_To_networking_VirtualIPTemplateSpec(in *VirtualIPTemplateSpec, out *networking.VirtualIPTemplateSpec, s conversion.Scope) error {
+func Convert_v1alpha1_VirtualIPTemplateSpec_To_networking_VirtualIPTemplateSpec(in *v1alpha1.VirtualIPTemplateSpec, out *networking.VirtualIPTemplateSpec, s conversion.Scope) error {
return autoConvert_v1alpha1_VirtualIPTemplateSpec_To_networking_VirtualIPTemplateSpec(in, out, s)
}
-func autoConvert_networking_VirtualIPTemplateSpec_To_v1alpha1_VirtualIPTemplateSpec(in *networking.VirtualIPTemplateSpec, out *VirtualIPTemplateSpec, s conversion.Scope) error {
+func autoConvert_networking_VirtualIPTemplateSpec_To_v1alpha1_VirtualIPTemplateSpec(in *networking.VirtualIPTemplateSpec, out *v1alpha1.VirtualIPTemplateSpec, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_networking_VirtualIPSpec_To_v1alpha1_VirtualIPSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -1481,6 +1482,6 @@ func autoConvert_networking_VirtualIPTemplateSpec_To_v1alpha1_VirtualIPTemplateS
}
// Convert_networking_VirtualIPTemplateSpec_To_v1alpha1_VirtualIPTemplateSpec is an autogenerated conversion function.
-func Convert_networking_VirtualIPTemplateSpec_To_v1alpha1_VirtualIPTemplateSpec(in *networking.VirtualIPTemplateSpec, out *VirtualIPTemplateSpec, s conversion.Scope) error {
+func Convert_networking_VirtualIPTemplateSpec_To_v1alpha1_VirtualIPTemplateSpec(in *networking.VirtualIPTemplateSpec, out *v1alpha1.VirtualIPTemplateSpec, s conversion.Scope) error {
return autoConvert_networking_VirtualIPTemplateSpec_To_v1alpha1_VirtualIPTemplateSpec(in, out, s)
}
diff --git a/apis/networking/v1alpha1/zz_generated.defaults.go b/onmetal-apiserver/internal/apis/networking/v1alpha1/zz_generated.defaults.go
similarity index 61%
rename from apis/networking/v1alpha1/zz_generated.defaults.go
rename to onmetal-apiserver/internal/apis/networking/v1alpha1/zz_generated.defaults.go
index 3c2fe7e7c..6fd8fe164 100644
--- a/apis/networking/v1alpha1/zz_generated.defaults.go
+++ b/onmetal-apiserver/internal/apis/networking/v1alpha1/zz_generated.defaults.go
@@ -21,7 +21,8 @@
package v1alpha1
import (
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam/v1alpha1"
runtime "k8s.io/apimachinery/pkg/runtime"
)
@@ -29,14 +30,14 @@ import (
// Public to allow building arbitrary schemes.
// All generated defaulters are covering - they call all nested defaulters.
func RegisterDefaults(scheme *runtime.Scheme) error {
- scheme.AddTypeDefaultingFunc(&AliasPrefix{}, func(obj interface{}) { SetObjectDefaults_AliasPrefix(obj.(*AliasPrefix)) })
- scheme.AddTypeDefaultingFunc(&AliasPrefixList{}, func(obj interface{}) { SetObjectDefaults_AliasPrefixList(obj.(*AliasPrefixList)) })
- scheme.AddTypeDefaultingFunc(&NetworkInterface{}, func(obj interface{}) { SetObjectDefaults_NetworkInterface(obj.(*NetworkInterface)) })
- scheme.AddTypeDefaultingFunc(&NetworkInterfaceList{}, func(obj interface{}) { SetObjectDefaults_NetworkInterfaceList(obj.(*NetworkInterfaceList)) })
+ scheme.AddTypeDefaultingFunc(&v1alpha1.AliasPrefix{}, func(obj interface{}) { SetObjectDefaults_AliasPrefix(obj.(*v1alpha1.AliasPrefix)) })
+ scheme.AddTypeDefaultingFunc(&v1alpha1.AliasPrefixList{}, func(obj interface{}) { SetObjectDefaults_AliasPrefixList(obj.(*v1alpha1.AliasPrefixList)) })
+ scheme.AddTypeDefaultingFunc(&v1alpha1.NetworkInterface{}, func(obj interface{}) { SetObjectDefaults_NetworkInterface(obj.(*v1alpha1.NetworkInterface)) })
+ scheme.AddTypeDefaultingFunc(&v1alpha1.NetworkInterfaceList{}, func(obj interface{}) { SetObjectDefaults_NetworkInterfaceList(obj.(*v1alpha1.NetworkInterfaceList)) })
return nil
}
-func SetObjectDefaults_AliasPrefix(in *AliasPrefix) {
+func SetObjectDefaults_AliasPrefix(in *v1alpha1.AliasPrefix) {
if in.Spec.Prefix.Ephemeral != nil {
if in.Spec.Prefix.Ephemeral.PrefixTemplate != nil {
ipamv1alpha1.SetDefaults_PrefixSpec(&in.Spec.Prefix.Ephemeral.PrefixTemplate.Spec)
@@ -44,14 +45,14 @@ func SetObjectDefaults_AliasPrefix(in *AliasPrefix) {
}
}
-func SetObjectDefaults_AliasPrefixList(in *AliasPrefixList) {
+func SetObjectDefaults_AliasPrefixList(in *v1alpha1.AliasPrefixList) {
for i := range in.Items {
a := &in.Items[i]
SetObjectDefaults_AliasPrefix(a)
}
}
-func SetObjectDefaults_NetworkInterface(in *NetworkInterface) {
+func SetObjectDefaults_NetworkInterface(in *v1alpha1.NetworkInterface) {
SetDefaults_NetworkInterfaceSpec(&in.Spec)
for i := range in.Spec.IPs {
a := &in.Spec.IPs[i]
@@ -63,7 +64,7 @@ func SetObjectDefaults_NetworkInterface(in *NetworkInterface) {
}
}
-func SetObjectDefaults_NetworkInterfaceList(in *NetworkInterfaceList) {
+func SetObjectDefaults_NetworkInterfaceList(in *v1alpha1.NetworkInterfaceList) {
for i := range in.Items {
a := &in.Items[i]
SetObjectDefaults_NetworkInterface(a)
diff --git a/apis/networking/validation/aliasprefix.go b/onmetal-apiserver/internal/apis/networking/validation/aliasprefix.go
similarity index 93%
rename from apis/networking/validation/aliasprefix.go
rename to onmetal-apiserver/internal/apis/networking/validation/aliasprefix.go
index 2813591a1..452ad7a80 100644
--- a/apis/networking/validation/aliasprefix.go
+++ b/onmetal-apiserver/internal/apis/networking/validation/aliasprefix.go
@@ -17,11 +17,11 @@
package validation
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- "github.com/onmetal/onmetal-api/apis/ipam"
- ipamvalidation "github.com/onmetal/onmetal-api/apis/ipam/validation"
- "github.com/onmetal/onmetal-api/apis/networking"
- onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/api/validation"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
+ ipamvalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
corev1 "k8s.io/api/core/v1"
apivalidation "k8s.io/apimachinery/pkg/api/validation"
metav1validation "k8s.io/apimachinery/pkg/apis/meta/v1/validation"
diff --git a/apis/networking/validation/aliasprefix_test.go b/onmetal-apiserver/internal/apis/networking/validation/aliasprefix_test.go
similarity index 89%
rename from apis/networking/validation/aliasprefix_test.go
rename to onmetal-apiserver/internal/apis/networking/validation/aliasprefix_test.go
index ba6ecfe94..82e9d6cd7 100644
--- a/apis/networking/validation/aliasprefix_test.go
+++ b/onmetal-apiserver/internal/apis/networking/validation/aliasprefix_test.go
@@ -17,10 +17,9 @@
package validation
import (
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/testutils/validation"
- . "github.com/onmetal/onmetal-api/testutils/validation"
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/testutils/validation"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
@@ -36,15 +35,15 @@ var _ = Describe("AliasPrefix", func() {
},
Entry("missing name",
&networking.AliasPrefix{},
- ContainElement(validation.RequiredField("metadata.name")),
+ ContainElement(RequiredField("metadata.name")),
),
Entry("missing namespace",
&networking.AliasPrefix{ObjectMeta: metav1.ObjectMeta{Name: "foo"}},
- ContainElement(validation.RequiredField("metadata.namespace")),
+ ContainElement(RequiredField("metadata.namespace")),
),
Entry("bad name",
&networking.AliasPrefix{ObjectMeta: metav1.ObjectMeta{Name: "foo*"}},
- ContainElement(validation.InvalidField("metadata.name")),
+ ContainElement(InvalidField("metadata.name")),
),
Entry("no network ref",
&networking.AliasPrefix{},
diff --git a/apis/networking/validation/aliasprefixrouting.go b/onmetal-apiserver/internal/apis/networking/validation/aliasprefixrouting.go
similarity index 97%
rename from apis/networking/validation/aliasprefixrouting.go
rename to onmetal-apiserver/internal/apis/networking/validation/aliasprefixrouting.go
index 3c3c4b93d..b225327be 100644
--- a/apis/networking/validation/aliasprefixrouting.go
+++ b/onmetal-apiserver/internal/apis/networking/validation/aliasprefixrouting.go
@@ -17,7 +17,7 @@
package validation
import (
- "github.com/onmetal/onmetal-api/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
apivalidation "k8s.io/apimachinery/pkg/api/validation"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/apimachinery/pkg/util/validation/field"
diff --git a/apis/networking/validation/aliasprefixrouting_test.go b/onmetal-apiserver/internal/apis/networking/validation/aliasprefixrouting_test.go
similarity index 78%
rename from apis/networking/validation/aliasprefixrouting_test.go
rename to onmetal-apiserver/internal/apis/networking/validation/aliasprefixrouting_test.go
index 94e8023c4..6375e442b 100644
--- a/apis/networking/validation/aliasprefixrouting_test.go
+++ b/onmetal-apiserver/internal/apis/networking/validation/aliasprefixrouting_test.go
@@ -17,10 +17,9 @@
package validation
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/testutils/validation"
- . "github.com/onmetal/onmetal-api/testutils/validation"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/testutils/validation"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
@@ -35,15 +34,15 @@ var _ = Describe("AliasPrefixRouting", func() {
},
Entry("missing name",
&networking.AliasPrefixRouting{},
- ContainElement(validation.RequiredField("metadata.name")),
+ ContainElement(RequiredField("metadata.name")),
),
Entry("missing namespace",
&networking.AliasPrefixRouting{ObjectMeta: metav1.ObjectMeta{Name: "foo"}},
- ContainElement(validation.RequiredField("metadata.namespace")),
+ ContainElement(RequiredField("metadata.namespace")),
),
Entry("bad name",
&networking.AliasPrefixRouting{ObjectMeta: metav1.ObjectMeta{Name: "foo*"}},
- ContainElement(validation.InvalidField("metadata.name")),
+ ContainElement(InvalidField("metadata.name")),
),
Entry("duplicate destination",
&networking.AliasPrefixRouting{
diff --git a/apis/networking/validation/loadbalancer.go b/onmetal-apiserver/internal/apis/networking/validation/loadbalancer.go
similarity index 98%
rename from apis/networking/validation/loadbalancer.go
rename to onmetal-apiserver/internal/apis/networking/validation/loadbalancer.go
index 9da31ff0d..842fedaca 100644
--- a/apis/networking/validation/loadbalancer.go
+++ b/onmetal-apiserver/internal/apis/networking/validation/loadbalancer.go
@@ -20,8 +20,8 @@ import (
"fmt"
"github.com/onmetal/controller-utils/set"
- "github.com/onmetal/onmetal-api/apis/networking"
- onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/api/validation"
+ onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
corev1 "k8s.io/api/core/v1"
apivalidation "k8s.io/apimachinery/pkg/api/validation"
metav1validation "k8s.io/apimachinery/pkg/apis/meta/v1/validation"
diff --git a/apis/networking/validation/loadbalancer_test.go b/onmetal-apiserver/internal/apis/networking/validation/loadbalancer_test.go
similarity index 91%
rename from apis/networking/validation/loadbalancer_test.go
rename to onmetal-apiserver/internal/apis/networking/validation/loadbalancer_test.go
index adfaa13b6..3d55ddb67 100644
--- a/apis/networking/validation/loadbalancer_test.go
+++ b/onmetal-apiserver/internal/apis/networking/validation/loadbalancer_test.go
@@ -17,9 +17,8 @@
package validation
import (
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/testutils/validation"
- . "github.com/onmetal/onmetal-api/testutils/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/testutils/validation"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
@@ -36,15 +35,15 @@ var _ = Describe("LoadBalancer", func() {
},
Entry("missing name",
&networking.LoadBalancer{},
- ContainElement(validation.RequiredField("metadata.name")),
+ ContainElement(RequiredField("metadata.name")),
),
Entry("missing namespace",
&networking.LoadBalancer{ObjectMeta: metav1.ObjectMeta{Name: "foo"}},
- ContainElement(validation.RequiredField("metadata.namespace")),
+ ContainElement(RequiredField("metadata.namespace")),
),
Entry("bad name",
&networking.LoadBalancer{ObjectMeta: metav1.ObjectMeta{Name: "foo*"}},
- ContainElement(validation.InvalidField("metadata.name")),
+ ContainElement(InvalidField("metadata.name")),
),
Entry("no network ref",
&networking.LoadBalancer{},
diff --git a/apis/networking/validation/loadbalancerrouting.go b/onmetal-apiserver/internal/apis/networking/validation/loadbalancerrouting.go
similarity index 97%
rename from apis/networking/validation/loadbalancerrouting.go
rename to onmetal-apiserver/internal/apis/networking/validation/loadbalancerrouting.go
index 98ed46a65..817510767 100644
--- a/apis/networking/validation/loadbalancerrouting.go
+++ b/onmetal-apiserver/internal/apis/networking/validation/loadbalancerrouting.go
@@ -17,7 +17,7 @@
package validation
import (
- "github.com/onmetal/onmetal-api/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
apivalidation "k8s.io/apimachinery/pkg/api/validation"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/apimachinery/pkg/util/validation/field"
diff --git a/apis/networking/validation/loadbalancerrouting_test.go b/onmetal-apiserver/internal/apis/networking/validation/loadbalancerrouting_test.go
similarity index 79%
rename from apis/networking/validation/loadbalancerrouting_test.go
rename to onmetal-apiserver/internal/apis/networking/validation/loadbalancerrouting_test.go
index d8a6a67b8..06305f3a8 100644
--- a/apis/networking/validation/loadbalancerrouting_test.go
+++ b/onmetal-apiserver/internal/apis/networking/validation/loadbalancerrouting_test.go
@@ -17,10 +17,9 @@
package validation
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/testutils/validation"
- . "github.com/onmetal/onmetal-api/testutils/validation"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/testutils/validation"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
@@ -35,15 +34,15 @@ var _ = Describe("LoadBalancerRouting", func() {
},
Entry("missing name",
&networking.LoadBalancerRouting{},
- ContainElement(validation.RequiredField("metadata.name")),
+ ContainElement(RequiredField("metadata.name")),
),
Entry("missing namespace",
&networking.LoadBalancerRouting{ObjectMeta: metav1.ObjectMeta{Name: "foo"}},
- ContainElement(validation.RequiredField("metadata.namespace")),
+ ContainElement(RequiredField("metadata.namespace")),
),
Entry("bad name",
&networking.LoadBalancerRouting{ObjectMeta: metav1.ObjectMeta{Name: "foo*"}},
- ContainElement(validation.InvalidField("metadata.name")),
+ ContainElement(InvalidField("metadata.name")),
),
Entry("duplicate destination",
&networking.LoadBalancerRouting{
diff --git a/apis/networking/validation/natgateway.go b/onmetal-apiserver/internal/apis/networking/validation/natgateway.go
similarity index 97%
rename from apis/networking/validation/natgateway.go
rename to onmetal-apiserver/internal/apis/networking/validation/natgateway.go
index 1cdd8bb69..1c4a0582b 100644
--- a/apis/networking/validation/natgateway.go
+++ b/onmetal-apiserver/internal/apis/networking/validation/natgateway.go
@@ -18,8 +18,8 @@ package validation
import (
"github.com/onmetal/controller-utils/set"
- "github.com/onmetal/onmetal-api/apis/networking"
- onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/api/validation"
+ onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
apivalidation "k8s.io/apimachinery/pkg/api/validation"
metav1validation "k8s.io/apimachinery/pkg/apis/meta/v1/validation"
"k8s.io/apimachinery/pkg/util/validation/field"
diff --git a/apis/networking/validation/natgateway_test.go b/onmetal-apiserver/internal/apis/networking/validation/natgateway_test.go
similarity index 90%
rename from apis/networking/validation/natgateway_test.go
rename to onmetal-apiserver/internal/apis/networking/validation/natgateway_test.go
index ecf0f5178..8dd4c5c67 100644
--- a/apis/networking/validation/natgateway_test.go
+++ b/onmetal-apiserver/internal/apis/networking/validation/natgateway_test.go
@@ -17,9 +17,8 @@
package validation
import (
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/testutils/validation"
- . "github.com/onmetal/onmetal-api/testutils/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/testutils/validation"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
@@ -36,15 +35,15 @@ var _ = Describe("NATGateway", func() {
},
Entry("missing name",
&networking.NATGateway{},
- ContainElement(validation.RequiredField("metadata.name")),
+ ContainElement(RequiredField("metadata.name")),
),
Entry("missing namespace",
&networking.NATGateway{ObjectMeta: metav1.ObjectMeta{Name: "foo"}},
- ContainElement(validation.RequiredField("metadata.namespace")),
+ ContainElement(RequiredField("metadata.namespace")),
),
Entry("bad name",
&networking.NATGateway{ObjectMeta: metav1.ObjectMeta{Name: "foo*"}},
- ContainElement(validation.InvalidField("metadata.name")),
+ ContainElement(InvalidField("metadata.name")),
),
Entry("no network ref",
&networking.NATGateway{},
diff --git a/apis/networking/validation/natgatewayrouting.go b/onmetal-apiserver/internal/apis/networking/validation/natgatewayrouting.go
similarity index 97%
rename from apis/networking/validation/natgatewayrouting.go
rename to onmetal-apiserver/internal/apis/networking/validation/natgatewayrouting.go
index 93da710b9..373a259e6 100644
--- a/apis/networking/validation/natgatewayrouting.go
+++ b/onmetal-apiserver/internal/apis/networking/validation/natgatewayrouting.go
@@ -17,7 +17,7 @@
package validation
import (
- "github.com/onmetal/onmetal-api/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
apivalidation "k8s.io/apimachinery/pkg/api/validation"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/apimachinery/pkg/util/validation/field"
diff --git a/apis/networking/validation/natgatewayrouting_test.go b/onmetal-apiserver/internal/apis/networking/validation/natgatewayrouting_test.go
similarity index 79%
rename from apis/networking/validation/natgatewayrouting_test.go
rename to onmetal-apiserver/internal/apis/networking/validation/natgatewayrouting_test.go
index 82eec3546..795838fdf 100644
--- a/apis/networking/validation/natgatewayrouting_test.go
+++ b/onmetal-apiserver/internal/apis/networking/validation/natgatewayrouting_test.go
@@ -17,10 +17,9 @@
package validation
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/testutils/validation"
- . "github.com/onmetal/onmetal-api/testutils/validation"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/testutils/validation"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
@@ -35,15 +34,15 @@ var _ = Describe("NATGatewayRouting", func() {
},
Entry("missing name",
&networking.NATGatewayRouting{},
- ContainElement(validation.RequiredField("metadata.name")),
+ ContainElement(RequiredField("metadata.name")),
),
Entry("missing namespace",
&networking.NATGatewayRouting{ObjectMeta: metav1.ObjectMeta{Name: "foo"}},
- ContainElement(validation.RequiredField("metadata.namespace")),
+ ContainElement(RequiredField("metadata.namespace")),
),
Entry("bad name",
&networking.NATGatewayRouting{ObjectMeta: metav1.ObjectMeta{Name: "foo*"}},
- ContainElement(validation.InvalidField("metadata.name")),
+ ContainElement(InvalidField("metadata.name")),
),
Entry("duplicate destination",
&networking.NATGatewayRouting{
diff --git a/apis/networking/validation/network.go b/onmetal-apiserver/internal/apis/networking/validation/network.go
similarity index 95%
rename from apis/networking/validation/network.go
rename to onmetal-apiserver/internal/apis/networking/validation/network.go
index 0fd88ecdc..c9a0390ca 100644
--- a/apis/networking/validation/network.go
+++ b/onmetal-apiserver/internal/apis/networking/validation/network.go
@@ -17,8 +17,8 @@
package validation
import (
- "github.com/onmetal/onmetal-api/apis/networking"
- onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/api/validation"
+ onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
apivalidation "k8s.io/apimachinery/pkg/api/validation"
"k8s.io/apimachinery/pkg/util/validation/field"
)
diff --git a/apis/networking/validation/network_test.go b/onmetal-apiserver/internal/apis/networking/validation/network_test.go
similarity index 92%
rename from apis/networking/validation/network_test.go
rename to onmetal-apiserver/internal/apis/networking/validation/network_test.go
index 234149bff..fadd0b2c0 100644
--- a/apis/networking/validation/network_test.go
+++ b/onmetal-apiserver/internal/apis/networking/validation/network_test.go
@@ -17,8 +17,8 @@
package validation
import (
- "github.com/onmetal/onmetal-api/apis/networking"
- . "github.com/onmetal/onmetal-api/testutils/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/testutils/validation"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
diff --git a/apis/networking/validation/networkinterface.go b/onmetal-apiserver/internal/apis/networking/validation/networkinterface.go
similarity index 94%
rename from apis/networking/validation/networkinterface.go
rename to onmetal-apiserver/internal/apis/networking/validation/networkinterface.go
index 710fb9c10..5845a69fa 100644
--- a/apis/networking/validation/networkinterface.go
+++ b/onmetal-apiserver/internal/apis/networking/validation/networkinterface.go
@@ -19,11 +19,11 @@ package validation
import (
"fmt"
- commonv1alpha1validation "github.com/onmetal/onmetal-api/apis/common/v1alpha1/validation"
- "github.com/onmetal/onmetal-api/apis/ipam"
- ipamvalidation "github.com/onmetal/onmetal-api/apis/ipam/validation"
- "github.com/onmetal/onmetal-api/apis/networking"
- onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/api/validation"
+ onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api/validation"
+ commonvalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/common/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
+ ipamvalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
corev1 "k8s.io/api/core/v1"
apivalidation "k8s.io/apimachinery/pkg/api/validation"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -104,7 +104,7 @@ func validateIPSource(ipSource networking.IPSource, idx int, ipFamily corev1.IPF
var numSources int
if ip := ipSource.Value; ip.IsValid() {
numSources++
- allErrs = append(allErrs, commonv1alpha1validation.ValidateIP(ipFamily, *ip, fldPath.Child("value"))...)
+ allErrs = append(allErrs, commonvalidation.ValidateIP(ipFamily, *ip, fldPath.Child("value"))...)
}
if ephemeral := ipSource.Ephemeral; ephemeral != nil {
if numSources > 0 {
diff --git a/apis/networking/validation/networkinterface_test.go b/onmetal-apiserver/internal/apis/networking/validation/networkinterface_test.go
similarity index 95%
rename from apis/networking/validation/networkinterface_test.go
rename to onmetal-apiserver/internal/apis/networking/validation/networkinterface_test.go
index 23562fe17..7bd3ed0bc 100644
--- a/apis/networking/validation/networkinterface_test.go
+++ b/onmetal-apiserver/internal/apis/networking/validation/networkinterface_test.go
@@ -17,10 +17,10 @@
package validation
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- "github.com/onmetal/onmetal-api/apis/ipam"
- "github.com/onmetal/onmetal-api/apis/networking"
- . "github.com/onmetal/onmetal-api/testutils/validation"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/testutils/validation"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
diff --git a/apis/networking/validation/validation_suite_test.go b/onmetal-apiserver/internal/apis/networking/validation/validation_suite_test.go
similarity index 100%
rename from apis/networking/validation/validation_suite_test.go
rename to onmetal-apiserver/internal/apis/networking/validation/validation_suite_test.go
diff --git a/apis/networking/validation/virtualip.go b/onmetal-apiserver/internal/apis/networking/validation/virtualip.go
similarity index 96%
rename from apis/networking/validation/virtualip.go
rename to onmetal-apiserver/internal/apis/networking/validation/virtualip.go
index 22ff67d35..43d85115d 100644
--- a/apis/networking/validation/virtualip.go
+++ b/onmetal-apiserver/internal/apis/networking/validation/virtualip.go
@@ -18,8 +18,8 @@ package validation
import (
"github.com/onmetal/controller-utils/set"
- "github.com/onmetal/onmetal-api/apis/networking"
- onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/api/validation"
+ onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
apivalidation "k8s.io/apimachinery/pkg/api/validation"
"k8s.io/apimachinery/pkg/util/validation/field"
)
diff --git a/apis/networking/validation/virtualip_test.go b/onmetal-apiserver/internal/apis/networking/validation/virtualip_test.go
similarity index 94%
rename from apis/networking/validation/virtualip_test.go
rename to onmetal-apiserver/internal/apis/networking/validation/virtualip_test.go
index 57ad872ce..f7352bb7d 100644
--- a/apis/networking/validation/virtualip_test.go
+++ b/onmetal-apiserver/internal/apis/networking/validation/virtualip_test.go
@@ -17,9 +17,9 @@
package validation
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- "github.com/onmetal/onmetal-api/apis/networking"
- . "github.com/onmetal/onmetal-api/testutils/validation"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/testutils/validation"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
diff --git a/apis/networking/validation/virtualiptemplate.go b/onmetal-apiserver/internal/apis/networking/validation/virtualiptemplate.go
similarity index 94%
rename from apis/networking/validation/virtualiptemplate.go
rename to onmetal-apiserver/internal/apis/networking/validation/virtualiptemplate.go
index 65b3add99..17f6c281a 100644
--- a/apis/networking/validation/virtualiptemplate.go
+++ b/onmetal-apiserver/internal/apis/networking/validation/virtualiptemplate.go
@@ -15,8 +15,8 @@
package validation
import (
- "github.com/onmetal/onmetal-api/apis/networking"
- onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/api/validation"
+ onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
apivalidation "k8s.io/apimachinery/pkg/api/validation"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
metav1validation "k8s.io/apimachinery/pkg/apis/meta/v1/validation"
diff --git a/apis/networking/virtualip_types.go b/onmetal-apiserver/internal/apis/networking/virtualip_types.go
similarity index 97%
rename from apis/networking/virtualip_types.go
rename to onmetal-apiserver/internal/apis/networking/virtualip_types.go
index bb6f1e39c..a0ca28da4 100644
--- a/apis/networking/virtualip_types.go
+++ b/onmetal-apiserver/internal/apis/networking/virtualip_types.go
@@ -17,7 +17,7 @@
package networking
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/apis/networking/zz_generated.deepcopy.go b/onmetal-apiserver/internal/apis/networking/zz_generated.deepcopy.go
similarity index 99%
rename from apis/networking/zz_generated.deepcopy.go
rename to onmetal-apiserver/internal/apis/networking/zz_generated.deepcopy.go
index ae177f70b..bcc9dc478 100644
--- a/apis/networking/zz_generated.deepcopy.go
+++ b/onmetal-apiserver/internal/apis/networking/zz_generated.deepcopy.go
@@ -21,8 +21,8 @@
package networking
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- ipam "github.com/onmetal/onmetal-api/apis/ipam"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
corev1 "k8s.io/api/core/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
diff --git a/apis/storage/doc.go b/onmetal-apiserver/internal/apis/storage/doc.go
similarity index 92%
rename from apis/storage/doc.go
rename to onmetal-apiserver/internal/apis/storage/doc.go
index 354ff79b2..16cda7a93 100644
--- a/apis/storage/doc.go
+++ b/onmetal-apiserver/internal/apis/storage/doc.go
@@ -21,4 +21,4 @@
// +groupName=storage.api.onmetal.de
// Package storage is the internal version of the API.
-package storage // import "github.com/onmetal/onmetal-api/apis/storage"
+package storage // import "github.com/onmetal/onmetal-api/api/storage"
diff --git a/apis/storage/install/install.go b/onmetal-apiserver/internal/apis/storage/install/install.go
similarity index 85%
rename from apis/storage/install/install.go
rename to onmetal-apiserver/internal/apis/storage/install/install.go
index 545962513..0611ab77a 100644
--- a/apis/storage/install/install.go
+++ b/onmetal-apiserver/internal/apis/storage/install/install.go
@@ -15,8 +15,8 @@
package install
import (
- "github.com/onmetal/onmetal-api/apis/storage"
- "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage/v1alpha1"
"k8s.io/apimachinery/pkg/runtime"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
)
diff --git a/apis/storage/register.go b/onmetal-apiserver/internal/apis/storage/register.go
similarity index 100%
rename from apis/storage/register.go
rename to onmetal-apiserver/internal/apis/storage/register.go
diff --git a/onmetal-apiserver/internal/apis/storage/v1alpha1/doc.go b/onmetal-apiserver/internal/apis/storage/v1alpha1/doc.go
new file mode 100644
index 000000000..5867a83ab
--- /dev/null
+++ b/onmetal-apiserver/internal/apis/storage/v1alpha1/doc.go
@@ -0,0 +1,21 @@
+// Copyright 2022 OnMetal authors
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// +k8s:conversion-gen=github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage
+// +k8s:conversion-gen-external-types=github.com/onmetal/onmetal-api/api/storage/v1alpha1
+// +k8s:defaulter-gen=TypeMeta
+// +k8s:defaulter-gen-input=github.com/onmetal/onmetal-api/api/storage/v1alpha1
+
+// Package v1alpha1 is the v1alpha1 version of the API.
+package v1alpha1 // import "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage/v1alpha1"
diff --git a/onmetal-apiserver/internal/apis/storage/v1alpha1/register.go b/onmetal-apiserver/internal/apis/storage/v1alpha1/register.go
new file mode 100644
index 000000000..be72041ef
--- /dev/null
+++ b/onmetal-apiserver/internal/apis/storage/v1alpha1/register.go
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) 2021 by the OnMetal authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+// Package v1alpha1 contains API Schema definitions for the storage v1alpha1 API group
+// +groupName=storage.api.onmetal.de
+package v1alpha1
+
+import (
+ "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
+ "k8s.io/apimachinery/pkg/runtime/schema"
+)
+
+var (
+ // SchemeGroupVersion is group version used to register these objects
+ SchemeGroupVersion = schema.GroupVersion{Group: "storage.api.onmetal.de", Version: "v1alpha1"}
+
+ localSchemeBuilder = &v1alpha1.SchemeBuilder
+
+ // AddToScheme adds the types in this group-version to the given scheme.
+ AddToScheme = localSchemeBuilder.AddToScheme
+)
+
+func Resource(resource string) schema.GroupResource {
+ return SchemeGroupVersion.WithResource(resource).GroupResource()
+}
diff --git a/apis/storage/v1alpha1/zz_generated.conversion.go b/onmetal-apiserver/internal/apis/storage/v1alpha1/zz_generated.conversion.go
similarity index 62%
rename from apis/storage/v1alpha1/zz_generated.conversion.go
rename to onmetal-apiserver/internal/apis/storage/v1alpha1/zz_generated.conversion.go
index f77007227..e6feb3f39 100644
--- a/apis/storage/v1alpha1/zz_generated.conversion.go
+++ b/onmetal-apiserver/internal/apis/storage/v1alpha1/zz_generated.conversion.go
@@ -23,8 +23,9 @@ package v1alpha1
import (
unsafe "unsafe"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- storage "github.com/onmetal/onmetal-api/apis/storage"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
+ storage "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion"
@@ -38,150 +39,150 @@ func init() {
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(s *runtime.Scheme) error {
- if err := s.AddGeneratedConversionFunc((*Volume)(nil), (*storage.Volume)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_Volume_To_storage_Volume(a.(*Volume), b.(*storage.Volume), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.Volume)(nil), (*storage.Volume)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_Volume_To_storage_Volume(a.(*v1alpha1.Volume), b.(*storage.Volume), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*storage.Volume)(nil), (*Volume)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_storage_Volume_To_v1alpha1_Volume(a.(*storage.Volume), b.(*Volume), scope)
+ if err := s.AddGeneratedConversionFunc((*storage.Volume)(nil), (*v1alpha1.Volume)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_storage_Volume_To_v1alpha1_Volume(a.(*storage.Volume), b.(*v1alpha1.Volume), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VolumeAccess)(nil), (*storage.VolumeAccess)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VolumeAccess_To_storage_VolumeAccess(a.(*VolumeAccess), b.(*storage.VolumeAccess), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VolumeAccess)(nil), (*storage.VolumeAccess)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VolumeAccess_To_storage_VolumeAccess(a.(*v1alpha1.VolumeAccess), b.(*storage.VolumeAccess), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*storage.VolumeAccess)(nil), (*VolumeAccess)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_storage_VolumeAccess_To_v1alpha1_VolumeAccess(a.(*storage.VolumeAccess), b.(*VolumeAccess), scope)
+ if err := s.AddGeneratedConversionFunc((*storage.VolumeAccess)(nil), (*v1alpha1.VolumeAccess)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_storage_VolumeAccess_To_v1alpha1_VolumeAccess(a.(*storage.VolumeAccess), b.(*v1alpha1.VolumeAccess), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VolumeClass)(nil), (*storage.VolumeClass)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VolumeClass_To_storage_VolumeClass(a.(*VolumeClass), b.(*storage.VolumeClass), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VolumeClass)(nil), (*storage.VolumeClass)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VolumeClass_To_storage_VolumeClass(a.(*v1alpha1.VolumeClass), b.(*storage.VolumeClass), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*storage.VolumeClass)(nil), (*VolumeClass)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_storage_VolumeClass_To_v1alpha1_VolumeClass(a.(*storage.VolumeClass), b.(*VolumeClass), scope)
+ if err := s.AddGeneratedConversionFunc((*storage.VolumeClass)(nil), (*v1alpha1.VolumeClass)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_storage_VolumeClass_To_v1alpha1_VolumeClass(a.(*storage.VolumeClass), b.(*v1alpha1.VolumeClass), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VolumeClassList)(nil), (*storage.VolumeClassList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VolumeClassList_To_storage_VolumeClassList(a.(*VolumeClassList), b.(*storage.VolumeClassList), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VolumeClassList)(nil), (*storage.VolumeClassList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VolumeClassList_To_storage_VolumeClassList(a.(*v1alpha1.VolumeClassList), b.(*storage.VolumeClassList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*storage.VolumeClassList)(nil), (*VolumeClassList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_storage_VolumeClassList_To_v1alpha1_VolumeClassList(a.(*storage.VolumeClassList), b.(*VolumeClassList), scope)
+ if err := s.AddGeneratedConversionFunc((*storage.VolumeClassList)(nil), (*v1alpha1.VolumeClassList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_storage_VolumeClassList_To_v1alpha1_VolumeClassList(a.(*storage.VolumeClassList), b.(*v1alpha1.VolumeClassList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VolumeCondition)(nil), (*storage.VolumeCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VolumeCondition_To_storage_VolumeCondition(a.(*VolumeCondition), b.(*storage.VolumeCondition), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VolumeCondition)(nil), (*storage.VolumeCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VolumeCondition_To_storage_VolumeCondition(a.(*v1alpha1.VolumeCondition), b.(*storage.VolumeCondition), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*storage.VolumeCondition)(nil), (*VolumeCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_storage_VolumeCondition_To_v1alpha1_VolumeCondition(a.(*storage.VolumeCondition), b.(*VolumeCondition), scope)
+ if err := s.AddGeneratedConversionFunc((*storage.VolumeCondition)(nil), (*v1alpha1.VolumeCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_storage_VolumeCondition_To_v1alpha1_VolumeCondition(a.(*storage.VolumeCondition), b.(*v1alpha1.VolumeCondition), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VolumeList)(nil), (*storage.VolumeList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VolumeList_To_storage_VolumeList(a.(*VolumeList), b.(*storage.VolumeList), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VolumeList)(nil), (*storage.VolumeList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VolumeList_To_storage_VolumeList(a.(*v1alpha1.VolumeList), b.(*storage.VolumeList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*storage.VolumeList)(nil), (*VolumeList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_storage_VolumeList_To_v1alpha1_VolumeList(a.(*storage.VolumeList), b.(*VolumeList), scope)
+ if err := s.AddGeneratedConversionFunc((*storage.VolumeList)(nil), (*v1alpha1.VolumeList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_storage_VolumeList_To_v1alpha1_VolumeList(a.(*storage.VolumeList), b.(*v1alpha1.VolumeList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VolumePool)(nil), (*storage.VolumePool)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VolumePool_To_storage_VolumePool(a.(*VolumePool), b.(*storage.VolumePool), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VolumePool)(nil), (*storage.VolumePool)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VolumePool_To_storage_VolumePool(a.(*v1alpha1.VolumePool), b.(*storage.VolumePool), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*storage.VolumePool)(nil), (*VolumePool)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_storage_VolumePool_To_v1alpha1_VolumePool(a.(*storage.VolumePool), b.(*VolumePool), scope)
+ if err := s.AddGeneratedConversionFunc((*storage.VolumePool)(nil), (*v1alpha1.VolumePool)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_storage_VolumePool_To_v1alpha1_VolumePool(a.(*storage.VolumePool), b.(*v1alpha1.VolumePool), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VolumePoolCondition)(nil), (*storage.VolumePoolCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VolumePoolCondition_To_storage_VolumePoolCondition(a.(*VolumePoolCondition), b.(*storage.VolumePoolCondition), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VolumePoolCondition)(nil), (*storage.VolumePoolCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VolumePoolCondition_To_storage_VolumePoolCondition(a.(*v1alpha1.VolumePoolCondition), b.(*storage.VolumePoolCondition), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*storage.VolumePoolCondition)(nil), (*VolumePoolCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_storage_VolumePoolCondition_To_v1alpha1_VolumePoolCondition(a.(*storage.VolumePoolCondition), b.(*VolumePoolCondition), scope)
+ if err := s.AddGeneratedConversionFunc((*storage.VolumePoolCondition)(nil), (*v1alpha1.VolumePoolCondition)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_storage_VolumePoolCondition_To_v1alpha1_VolumePoolCondition(a.(*storage.VolumePoolCondition), b.(*v1alpha1.VolumePoolCondition), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VolumePoolList)(nil), (*storage.VolumePoolList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VolumePoolList_To_storage_VolumePoolList(a.(*VolumePoolList), b.(*storage.VolumePoolList), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VolumePoolList)(nil), (*storage.VolumePoolList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VolumePoolList_To_storage_VolumePoolList(a.(*v1alpha1.VolumePoolList), b.(*storage.VolumePoolList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*storage.VolumePoolList)(nil), (*VolumePoolList)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_storage_VolumePoolList_To_v1alpha1_VolumePoolList(a.(*storage.VolumePoolList), b.(*VolumePoolList), scope)
+ if err := s.AddGeneratedConversionFunc((*storage.VolumePoolList)(nil), (*v1alpha1.VolumePoolList)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_storage_VolumePoolList_To_v1alpha1_VolumePoolList(a.(*storage.VolumePoolList), b.(*v1alpha1.VolumePoolList), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VolumePoolSpec)(nil), (*storage.VolumePoolSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VolumePoolSpec_To_storage_VolumePoolSpec(a.(*VolumePoolSpec), b.(*storage.VolumePoolSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VolumePoolSpec)(nil), (*storage.VolumePoolSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VolumePoolSpec_To_storage_VolumePoolSpec(a.(*v1alpha1.VolumePoolSpec), b.(*storage.VolumePoolSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*storage.VolumePoolSpec)(nil), (*VolumePoolSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_storage_VolumePoolSpec_To_v1alpha1_VolumePoolSpec(a.(*storage.VolumePoolSpec), b.(*VolumePoolSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*storage.VolumePoolSpec)(nil), (*v1alpha1.VolumePoolSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_storage_VolumePoolSpec_To_v1alpha1_VolumePoolSpec(a.(*storage.VolumePoolSpec), b.(*v1alpha1.VolumePoolSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VolumePoolStatus)(nil), (*storage.VolumePoolStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VolumePoolStatus_To_storage_VolumePoolStatus(a.(*VolumePoolStatus), b.(*storage.VolumePoolStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VolumePoolStatus)(nil), (*storage.VolumePoolStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VolumePoolStatus_To_storage_VolumePoolStatus(a.(*v1alpha1.VolumePoolStatus), b.(*storage.VolumePoolStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*storage.VolumePoolStatus)(nil), (*VolumePoolStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_storage_VolumePoolStatus_To_v1alpha1_VolumePoolStatus(a.(*storage.VolumePoolStatus), b.(*VolumePoolStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*storage.VolumePoolStatus)(nil), (*v1alpha1.VolumePoolStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_storage_VolumePoolStatus_To_v1alpha1_VolumePoolStatus(a.(*storage.VolumePoolStatus), b.(*v1alpha1.VolumePoolStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VolumeSpec)(nil), (*storage.VolumeSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VolumeSpec_To_storage_VolumeSpec(a.(*VolumeSpec), b.(*storage.VolumeSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VolumeSpec)(nil), (*storage.VolumeSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VolumeSpec_To_storage_VolumeSpec(a.(*v1alpha1.VolumeSpec), b.(*storage.VolumeSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*storage.VolumeSpec)(nil), (*VolumeSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_storage_VolumeSpec_To_v1alpha1_VolumeSpec(a.(*storage.VolumeSpec), b.(*VolumeSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*storage.VolumeSpec)(nil), (*v1alpha1.VolumeSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_storage_VolumeSpec_To_v1alpha1_VolumeSpec(a.(*storage.VolumeSpec), b.(*v1alpha1.VolumeSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VolumeStatus)(nil), (*storage.VolumeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VolumeStatus_To_storage_VolumeStatus(a.(*VolumeStatus), b.(*storage.VolumeStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VolumeStatus)(nil), (*storage.VolumeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VolumeStatus_To_storage_VolumeStatus(a.(*v1alpha1.VolumeStatus), b.(*storage.VolumeStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*storage.VolumeStatus)(nil), (*VolumeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_storage_VolumeStatus_To_v1alpha1_VolumeStatus(a.(*storage.VolumeStatus), b.(*VolumeStatus), scope)
+ if err := s.AddGeneratedConversionFunc((*storage.VolumeStatus)(nil), (*v1alpha1.VolumeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_storage_VolumeStatus_To_v1alpha1_VolumeStatus(a.(*storage.VolumeStatus), b.(*v1alpha1.VolumeStatus), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*VolumeTemplateSpec)(nil), (*storage.VolumeTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_v1alpha1_VolumeTemplateSpec_To_storage_VolumeTemplateSpec(a.(*VolumeTemplateSpec), b.(*storage.VolumeTemplateSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*v1alpha1.VolumeTemplateSpec)(nil), (*storage.VolumeTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_v1alpha1_VolumeTemplateSpec_To_storage_VolumeTemplateSpec(a.(*v1alpha1.VolumeTemplateSpec), b.(*storage.VolumeTemplateSpec), scope)
}); err != nil {
return err
}
- if err := s.AddGeneratedConversionFunc((*storage.VolumeTemplateSpec)(nil), (*VolumeTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
- return Convert_storage_VolumeTemplateSpec_To_v1alpha1_VolumeTemplateSpec(a.(*storage.VolumeTemplateSpec), b.(*VolumeTemplateSpec), scope)
+ if err := s.AddGeneratedConversionFunc((*storage.VolumeTemplateSpec)(nil), (*v1alpha1.VolumeTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
+ return Convert_storage_VolumeTemplateSpec_To_v1alpha1_VolumeTemplateSpec(a.(*storage.VolumeTemplateSpec), b.(*v1alpha1.VolumeTemplateSpec), scope)
}); err != nil {
return err
}
return nil
}
-func autoConvert_v1alpha1_Volume_To_storage_Volume(in *Volume, out *storage.Volume, s conversion.Scope) error {
+func autoConvert_v1alpha1_Volume_To_storage_Volume(in *v1alpha1.Volume, out *storage.Volume, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha1_VolumeSpec_To_storage_VolumeSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -193,11 +194,11 @@ func autoConvert_v1alpha1_Volume_To_storage_Volume(in *Volume, out *storage.Volu
}
// Convert_v1alpha1_Volume_To_storage_Volume is an autogenerated conversion function.
-func Convert_v1alpha1_Volume_To_storage_Volume(in *Volume, out *storage.Volume, s conversion.Scope) error {
+func Convert_v1alpha1_Volume_To_storage_Volume(in *v1alpha1.Volume, out *storage.Volume, s conversion.Scope) error {
return autoConvert_v1alpha1_Volume_To_storage_Volume(in, out, s)
}
-func autoConvert_storage_Volume_To_v1alpha1_Volume(in *storage.Volume, out *Volume, s conversion.Scope) error {
+func autoConvert_storage_Volume_To_v1alpha1_Volume(in *storage.Volume, out *v1alpha1.Volume, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_storage_VolumeSpec_To_v1alpha1_VolumeSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -209,11 +210,11 @@ func autoConvert_storage_Volume_To_v1alpha1_Volume(in *storage.Volume, out *Volu
}
// Convert_storage_Volume_To_v1alpha1_Volume is an autogenerated conversion function.
-func Convert_storage_Volume_To_v1alpha1_Volume(in *storage.Volume, out *Volume, s conversion.Scope) error {
+func Convert_storage_Volume_To_v1alpha1_Volume(in *storage.Volume, out *v1alpha1.Volume, s conversion.Scope) error {
return autoConvert_storage_Volume_To_v1alpha1_Volume(in, out, s)
}
-func autoConvert_v1alpha1_VolumeAccess_To_storage_VolumeAccess(in *VolumeAccess, out *storage.VolumeAccess, s conversion.Scope) error {
+func autoConvert_v1alpha1_VolumeAccess_To_storage_VolumeAccess(in *v1alpha1.VolumeAccess, out *storage.VolumeAccess, s conversion.Scope) error {
out.SecretRef = (*v1.LocalObjectReference)(unsafe.Pointer(in.SecretRef))
out.Driver = in.Driver
out.Handle = in.Handle
@@ -222,11 +223,11 @@ func autoConvert_v1alpha1_VolumeAccess_To_storage_VolumeAccess(in *VolumeAccess,
}
// Convert_v1alpha1_VolumeAccess_To_storage_VolumeAccess is an autogenerated conversion function.
-func Convert_v1alpha1_VolumeAccess_To_storage_VolumeAccess(in *VolumeAccess, out *storage.VolumeAccess, s conversion.Scope) error {
+func Convert_v1alpha1_VolumeAccess_To_storage_VolumeAccess(in *v1alpha1.VolumeAccess, out *storage.VolumeAccess, s conversion.Scope) error {
return autoConvert_v1alpha1_VolumeAccess_To_storage_VolumeAccess(in, out, s)
}
-func autoConvert_storage_VolumeAccess_To_v1alpha1_VolumeAccess(in *storage.VolumeAccess, out *VolumeAccess, s conversion.Scope) error {
+func autoConvert_storage_VolumeAccess_To_v1alpha1_VolumeAccess(in *storage.VolumeAccess, out *v1alpha1.VolumeAccess, s conversion.Scope) error {
out.SecretRef = (*v1.LocalObjectReference)(unsafe.Pointer(in.SecretRef))
out.Driver = in.Driver
out.Handle = in.Handle
@@ -235,55 +236,55 @@ func autoConvert_storage_VolumeAccess_To_v1alpha1_VolumeAccess(in *storage.Volum
}
// Convert_storage_VolumeAccess_To_v1alpha1_VolumeAccess is an autogenerated conversion function.
-func Convert_storage_VolumeAccess_To_v1alpha1_VolumeAccess(in *storage.VolumeAccess, out *VolumeAccess, s conversion.Scope) error {
+func Convert_storage_VolumeAccess_To_v1alpha1_VolumeAccess(in *storage.VolumeAccess, out *v1alpha1.VolumeAccess, s conversion.Scope) error {
return autoConvert_storage_VolumeAccess_To_v1alpha1_VolumeAccess(in, out, s)
}
-func autoConvert_v1alpha1_VolumeClass_To_storage_VolumeClass(in *VolumeClass, out *storage.VolumeClass, s conversion.Scope) error {
+func autoConvert_v1alpha1_VolumeClass_To_storage_VolumeClass(in *v1alpha1.VolumeClass, out *storage.VolumeClass, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
out.Capabilities = *(*v1.ResourceList)(unsafe.Pointer(&in.Capabilities))
return nil
}
// Convert_v1alpha1_VolumeClass_To_storage_VolumeClass is an autogenerated conversion function.
-func Convert_v1alpha1_VolumeClass_To_storage_VolumeClass(in *VolumeClass, out *storage.VolumeClass, s conversion.Scope) error {
+func Convert_v1alpha1_VolumeClass_To_storage_VolumeClass(in *v1alpha1.VolumeClass, out *storage.VolumeClass, s conversion.Scope) error {
return autoConvert_v1alpha1_VolumeClass_To_storage_VolumeClass(in, out, s)
}
-func autoConvert_storage_VolumeClass_To_v1alpha1_VolumeClass(in *storage.VolumeClass, out *VolumeClass, s conversion.Scope) error {
+func autoConvert_storage_VolumeClass_To_v1alpha1_VolumeClass(in *storage.VolumeClass, out *v1alpha1.VolumeClass, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
out.Capabilities = *(*v1.ResourceList)(unsafe.Pointer(&in.Capabilities))
return nil
}
// Convert_storage_VolumeClass_To_v1alpha1_VolumeClass is an autogenerated conversion function.
-func Convert_storage_VolumeClass_To_v1alpha1_VolumeClass(in *storage.VolumeClass, out *VolumeClass, s conversion.Scope) error {
+func Convert_storage_VolumeClass_To_v1alpha1_VolumeClass(in *storage.VolumeClass, out *v1alpha1.VolumeClass, s conversion.Scope) error {
return autoConvert_storage_VolumeClass_To_v1alpha1_VolumeClass(in, out, s)
}
-func autoConvert_v1alpha1_VolumeClassList_To_storage_VolumeClassList(in *VolumeClassList, out *storage.VolumeClassList, s conversion.Scope) error {
+func autoConvert_v1alpha1_VolumeClassList_To_storage_VolumeClassList(in *v1alpha1.VolumeClassList, out *storage.VolumeClassList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]storage.VolumeClass)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1alpha1_VolumeClassList_To_storage_VolumeClassList is an autogenerated conversion function.
-func Convert_v1alpha1_VolumeClassList_To_storage_VolumeClassList(in *VolumeClassList, out *storage.VolumeClassList, s conversion.Scope) error {
+func Convert_v1alpha1_VolumeClassList_To_storage_VolumeClassList(in *v1alpha1.VolumeClassList, out *storage.VolumeClassList, s conversion.Scope) error {
return autoConvert_v1alpha1_VolumeClassList_To_storage_VolumeClassList(in, out, s)
}
-func autoConvert_storage_VolumeClassList_To_v1alpha1_VolumeClassList(in *storage.VolumeClassList, out *VolumeClassList, s conversion.Scope) error {
+func autoConvert_storage_VolumeClassList_To_v1alpha1_VolumeClassList(in *storage.VolumeClassList, out *v1alpha1.VolumeClassList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
- out.Items = *(*[]VolumeClass)(unsafe.Pointer(&in.Items))
+ out.Items = *(*[]v1alpha1.VolumeClass)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_storage_VolumeClassList_To_v1alpha1_VolumeClassList is an autogenerated conversion function.
-func Convert_storage_VolumeClassList_To_v1alpha1_VolumeClassList(in *storage.VolumeClassList, out *VolumeClassList, s conversion.Scope) error {
+func Convert_storage_VolumeClassList_To_v1alpha1_VolumeClassList(in *storage.VolumeClassList, out *v1alpha1.VolumeClassList, s conversion.Scope) error {
return autoConvert_storage_VolumeClassList_To_v1alpha1_VolumeClassList(in, out, s)
}
-func autoConvert_v1alpha1_VolumeCondition_To_storage_VolumeCondition(in *VolumeCondition, out *storage.VolumeCondition, s conversion.Scope) error {
+func autoConvert_v1alpha1_VolumeCondition_To_storage_VolumeCondition(in *v1alpha1.VolumeCondition, out *storage.VolumeCondition, s conversion.Scope) error {
out.Type = storage.VolumeConditionType(in.Type)
out.Status = v1.ConditionStatus(in.Status)
out.Reason = in.Reason
@@ -294,12 +295,12 @@ func autoConvert_v1alpha1_VolumeCondition_To_storage_VolumeCondition(in *VolumeC
}
// Convert_v1alpha1_VolumeCondition_To_storage_VolumeCondition is an autogenerated conversion function.
-func Convert_v1alpha1_VolumeCondition_To_storage_VolumeCondition(in *VolumeCondition, out *storage.VolumeCondition, s conversion.Scope) error {
+func Convert_v1alpha1_VolumeCondition_To_storage_VolumeCondition(in *v1alpha1.VolumeCondition, out *storage.VolumeCondition, s conversion.Scope) error {
return autoConvert_v1alpha1_VolumeCondition_To_storage_VolumeCondition(in, out, s)
}
-func autoConvert_storage_VolumeCondition_To_v1alpha1_VolumeCondition(in *storage.VolumeCondition, out *VolumeCondition, s conversion.Scope) error {
- out.Type = VolumeConditionType(in.Type)
+func autoConvert_storage_VolumeCondition_To_v1alpha1_VolumeCondition(in *storage.VolumeCondition, out *v1alpha1.VolumeCondition, s conversion.Scope) error {
+ out.Type = v1alpha1.VolumeConditionType(in.Type)
out.Status = v1.ConditionStatus(in.Status)
out.Reason = in.Reason
out.Message = in.Message
@@ -309,33 +310,33 @@ func autoConvert_storage_VolumeCondition_To_v1alpha1_VolumeCondition(in *storage
}
// Convert_storage_VolumeCondition_To_v1alpha1_VolumeCondition is an autogenerated conversion function.
-func Convert_storage_VolumeCondition_To_v1alpha1_VolumeCondition(in *storage.VolumeCondition, out *VolumeCondition, s conversion.Scope) error {
+func Convert_storage_VolumeCondition_To_v1alpha1_VolumeCondition(in *storage.VolumeCondition, out *v1alpha1.VolumeCondition, s conversion.Scope) error {
return autoConvert_storage_VolumeCondition_To_v1alpha1_VolumeCondition(in, out, s)
}
-func autoConvert_v1alpha1_VolumeList_To_storage_VolumeList(in *VolumeList, out *storage.VolumeList, s conversion.Scope) error {
+func autoConvert_v1alpha1_VolumeList_To_storage_VolumeList(in *v1alpha1.VolumeList, out *storage.VolumeList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]storage.Volume)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1alpha1_VolumeList_To_storage_VolumeList is an autogenerated conversion function.
-func Convert_v1alpha1_VolumeList_To_storage_VolumeList(in *VolumeList, out *storage.VolumeList, s conversion.Scope) error {
+func Convert_v1alpha1_VolumeList_To_storage_VolumeList(in *v1alpha1.VolumeList, out *storage.VolumeList, s conversion.Scope) error {
return autoConvert_v1alpha1_VolumeList_To_storage_VolumeList(in, out, s)
}
-func autoConvert_storage_VolumeList_To_v1alpha1_VolumeList(in *storage.VolumeList, out *VolumeList, s conversion.Scope) error {
+func autoConvert_storage_VolumeList_To_v1alpha1_VolumeList(in *storage.VolumeList, out *v1alpha1.VolumeList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
- out.Items = *(*[]Volume)(unsafe.Pointer(&in.Items))
+ out.Items = *(*[]v1alpha1.Volume)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_storage_VolumeList_To_v1alpha1_VolumeList is an autogenerated conversion function.
-func Convert_storage_VolumeList_To_v1alpha1_VolumeList(in *storage.VolumeList, out *VolumeList, s conversion.Scope) error {
+func Convert_storage_VolumeList_To_v1alpha1_VolumeList(in *storage.VolumeList, out *v1alpha1.VolumeList, s conversion.Scope) error {
return autoConvert_storage_VolumeList_To_v1alpha1_VolumeList(in, out, s)
}
-func autoConvert_v1alpha1_VolumePool_To_storage_VolumePool(in *VolumePool, out *storage.VolumePool, s conversion.Scope) error {
+func autoConvert_v1alpha1_VolumePool_To_storage_VolumePool(in *v1alpha1.VolumePool, out *storage.VolumePool, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha1_VolumePoolSpec_To_storage_VolumePoolSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -347,11 +348,11 @@ func autoConvert_v1alpha1_VolumePool_To_storage_VolumePool(in *VolumePool, out *
}
// Convert_v1alpha1_VolumePool_To_storage_VolumePool is an autogenerated conversion function.
-func Convert_v1alpha1_VolumePool_To_storage_VolumePool(in *VolumePool, out *storage.VolumePool, s conversion.Scope) error {
+func Convert_v1alpha1_VolumePool_To_storage_VolumePool(in *v1alpha1.VolumePool, out *storage.VolumePool, s conversion.Scope) error {
return autoConvert_v1alpha1_VolumePool_To_storage_VolumePool(in, out, s)
}
-func autoConvert_storage_VolumePool_To_v1alpha1_VolumePool(in *storage.VolumePool, out *VolumePool, s conversion.Scope) error {
+func autoConvert_storage_VolumePool_To_v1alpha1_VolumePool(in *storage.VolumePool, out *v1alpha1.VolumePool, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_storage_VolumePoolSpec_To_v1alpha1_VolumePoolSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -363,11 +364,11 @@ func autoConvert_storage_VolumePool_To_v1alpha1_VolumePool(in *storage.VolumePoo
}
// Convert_storage_VolumePool_To_v1alpha1_VolumePool is an autogenerated conversion function.
-func Convert_storage_VolumePool_To_v1alpha1_VolumePool(in *storage.VolumePool, out *VolumePool, s conversion.Scope) error {
+func Convert_storage_VolumePool_To_v1alpha1_VolumePool(in *storage.VolumePool, out *v1alpha1.VolumePool, s conversion.Scope) error {
return autoConvert_storage_VolumePool_To_v1alpha1_VolumePool(in, out, s)
}
-func autoConvert_v1alpha1_VolumePoolCondition_To_storage_VolumePoolCondition(in *VolumePoolCondition, out *storage.VolumePoolCondition, s conversion.Scope) error {
+func autoConvert_v1alpha1_VolumePoolCondition_To_storage_VolumePoolCondition(in *v1alpha1.VolumePoolCondition, out *storage.VolumePoolCondition, s conversion.Scope) error {
out.Type = storage.VolumePoolConditionType(in.Type)
out.Status = v1.ConditionStatus(in.Status)
out.Reason = in.Reason
@@ -378,12 +379,12 @@ func autoConvert_v1alpha1_VolumePoolCondition_To_storage_VolumePoolCondition(in
}
// Convert_v1alpha1_VolumePoolCondition_To_storage_VolumePoolCondition is an autogenerated conversion function.
-func Convert_v1alpha1_VolumePoolCondition_To_storage_VolumePoolCondition(in *VolumePoolCondition, out *storage.VolumePoolCondition, s conversion.Scope) error {
+func Convert_v1alpha1_VolumePoolCondition_To_storage_VolumePoolCondition(in *v1alpha1.VolumePoolCondition, out *storage.VolumePoolCondition, s conversion.Scope) error {
return autoConvert_v1alpha1_VolumePoolCondition_To_storage_VolumePoolCondition(in, out, s)
}
-func autoConvert_storage_VolumePoolCondition_To_v1alpha1_VolumePoolCondition(in *storage.VolumePoolCondition, out *VolumePoolCondition, s conversion.Scope) error {
- out.Type = VolumePoolConditionType(in.Type)
+func autoConvert_storage_VolumePoolCondition_To_v1alpha1_VolumePoolCondition(in *storage.VolumePoolCondition, out *v1alpha1.VolumePoolCondition, s conversion.Scope) error {
+ out.Type = v1alpha1.VolumePoolConditionType(in.Type)
out.Status = v1.ConditionStatus(in.Status)
out.Reason = in.Reason
out.Message = in.Message
@@ -393,55 +394,55 @@ func autoConvert_storage_VolumePoolCondition_To_v1alpha1_VolumePoolCondition(in
}
// Convert_storage_VolumePoolCondition_To_v1alpha1_VolumePoolCondition is an autogenerated conversion function.
-func Convert_storage_VolumePoolCondition_To_v1alpha1_VolumePoolCondition(in *storage.VolumePoolCondition, out *VolumePoolCondition, s conversion.Scope) error {
+func Convert_storage_VolumePoolCondition_To_v1alpha1_VolumePoolCondition(in *storage.VolumePoolCondition, out *v1alpha1.VolumePoolCondition, s conversion.Scope) error {
return autoConvert_storage_VolumePoolCondition_To_v1alpha1_VolumePoolCondition(in, out, s)
}
-func autoConvert_v1alpha1_VolumePoolList_To_storage_VolumePoolList(in *VolumePoolList, out *storage.VolumePoolList, s conversion.Scope) error {
+func autoConvert_v1alpha1_VolumePoolList_To_storage_VolumePoolList(in *v1alpha1.VolumePoolList, out *storage.VolumePoolList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]storage.VolumePool)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1alpha1_VolumePoolList_To_storage_VolumePoolList is an autogenerated conversion function.
-func Convert_v1alpha1_VolumePoolList_To_storage_VolumePoolList(in *VolumePoolList, out *storage.VolumePoolList, s conversion.Scope) error {
+func Convert_v1alpha1_VolumePoolList_To_storage_VolumePoolList(in *v1alpha1.VolumePoolList, out *storage.VolumePoolList, s conversion.Scope) error {
return autoConvert_v1alpha1_VolumePoolList_To_storage_VolumePoolList(in, out, s)
}
-func autoConvert_storage_VolumePoolList_To_v1alpha1_VolumePoolList(in *storage.VolumePoolList, out *VolumePoolList, s conversion.Scope) error {
+func autoConvert_storage_VolumePoolList_To_v1alpha1_VolumePoolList(in *storage.VolumePoolList, out *v1alpha1.VolumePoolList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
- out.Items = *(*[]VolumePool)(unsafe.Pointer(&in.Items))
+ out.Items = *(*[]v1alpha1.VolumePool)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_storage_VolumePoolList_To_v1alpha1_VolumePoolList is an autogenerated conversion function.
-func Convert_storage_VolumePoolList_To_v1alpha1_VolumePoolList(in *storage.VolumePoolList, out *VolumePoolList, s conversion.Scope) error {
+func Convert_storage_VolumePoolList_To_v1alpha1_VolumePoolList(in *storage.VolumePoolList, out *v1alpha1.VolumePoolList, s conversion.Scope) error {
return autoConvert_storage_VolumePoolList_To_v1alpha1_VolumePoolList(in, out, s)
}
-func autoConvert_v1alpha1_VolumePoolSpec_To_storage_VolumePoolSpec(in *VolumePoolSpec, out *storage.VolumePoolSpec, s conversion.Scope) error {
+func autoConvert_v1alpha1_VolumePoolSpec_To_storage_VolumePoolSpec(in *v1alpha1.VolumePoolSpec, out *storage.VolumePoolSpec, s conversion.Scope) error {
out.ProviderID = in.ProviderID
out.Taints = *(*[]commonv1alpha1.Taint)(unsafe.Pointer(&in.Taints))
return nil
}
// Convert_v1alpha1_VolumePoolSpec_To_storage_VolumePoolSpec is an autogenerated conversion function.
-func Convert_v1alpha1_VolumePoolSpec_To_storage_VolumePoolSpec(in *VolumePoolSpec, out *storage.VolumePoolSpec, s conversion.Scope) error {
+func Convert_v1alpha1_VolumePoolSpec_To_storage_VolumePoolSpec(in *v1alpha1.VolumePoolSpec, out *storage.VolumePoolSpec, s conversion.Scope) error {
return autoConvert_v1alpha1_VolumePoolSpec_To_storage_VolumePoolSpec(in, out, s)
}
-func autoConvert_storage_VolumePoolSpec_To_v1alpha1_VolumePoolSpec(in *storage.VolumePoolSpec, out *VolumePoolSpec, s conversion.Scope) error {
+func autoConvert_storage_VolumePoolSpec_To_v1alpha1_VolumePoolSpec(in *storage.VolumePoolSpec, out *v1alpha1.VolumePoolSpec, s conversion.Scope) error {
out.ProviderID = in.ProviderID
out.Taints = *(*[]commonv1alpha1.Taint)(unsafe.Pointer(&in.Taints))
return nil
}
// Convert_storage_VolumePoolSpec_To_v1alpha1_VolumePoolSpec is an autogenerated conversion function.
-func Convert_storage_VolumePoolSpec_To_v1alpha1_VolumePoolSpec(in *storage.VolumePoolSpec, out *VolumePoolSpec, s conversion.Scope) error {
+func Convert_storage_VolumePoolSpec_To_v1alpha1_VolumePoolSpec(in *storage.VolumePoolSpec, out *v1alpha1.VolumePoolSpec, s conversion.Scope) error {
return autoConvert_storage_VolumePoolSpec_To_v1alpha1_VolumePoolSpec(in, out, s)
}
-func autoConvert_v1alpha1_VolumePoolStatus_To_storage_VolumePoolStatus(in *VolumePoolStatus, out *storage.VolumePoolStatus, s conversion.Scope) error {
+func autoConvert_v1alpha1_VolumePoolStatus_To_storage_VolumePoolStatus(in *v1alpha1.VolumePoolStatus, out *storage.VolumePoolStatus, s conversion.Scope) error {
out.State = storage.VolumePoolState(in.State)
out.Conditions = *(*[]storage.VolumePoolCondition)(unsafe.Pointer(&in.Conditions))
out.AvailableVolumeClasses = *(*[]v1.LocalObjectReference)(unsafe.Pointer(&in.AvailableVolumeClasses))
@@ -451,13 +452,13 @@ func autoConvert_v1alpha1_VolumePoolStatus_To_storage_VolumePoolStatus(in *Volum
}
// Convert_v1alpha1_VolumePoolStatus_To_storage_VolumePoolStatus is an autogenerated conversion function.
-func Convert_v1alpha1_VolumePoolStatus_To_storage_VolumePoolStatus(in *VolumePoolStatus, out *storage.VolumePoolStatus, s conversion.Scope) error {
+func Convert_v1alpha1_VolumePoolStatus_To_storage_VolumePoolStatus(in *v1alpha1.VolumePoolStatus, out *storage.VolumePoolStatus, s conversion.Scope) error {
return autoConvert_v1alpha1_VolumePoolStatus_To_storage_VolumePoolStatus(in, out, s)
}
-func autoConvert_storage_VolumePoolStatus_To_v1alpha1_VolumePoolStatus(in *storage.VolumePoolStatus, out *VolumePoolStatus, s conversion.Scope) error {
- out.State = VolumePoolState(in.State)
- out.Conditions = *(*[]VolumePoolCondition)(unsafe.Pointer(&in.Conditions))
+func autoConvert_storage_VolumePoolStatus_To_v1alpha1_VolumePoolStatus(in *storage.VolumePoolStatus, out *v1alpha1.VolumePoolStatus, s conversion.Scope) error {
+ out.State = v1alpha1.VolumePoolState(in.State)
+ out.Conditions = *(*[]v1alpha1.VolumePoolCondition)(unsafe.Pointer(&in.Conditions))
out.AvailableVolumeClasses = *(*[]v1.LocalObjectReference)(unsafe.Pointer(&in.AvailableVolumeClasses))
out.Available = *(*v1.ResourceList)(unsafe.Pointer(&in.Available))
out.Used = *(*v1.ResourceList)(unsafe.Pointer(&in.Used))
@@ -465,11 +466,11 @@ func autoConvert_storage_VolumePoolStatus_To_v1alpha1_VolumePoolStatus(in *stora
}
// Convert_storage_VolumePoolStatus_To_v1alpha1_VolumePoolStatus is an autogenerated conversion function.
-func Convert_storage_VolumePoolStatus_To_v1alpha1_VolumePoolStatus(in *storage.VolumePoolStatus, out *VolumePoolStatus, s conversion.Scope) error {
+func Convert_storage_VolumePoolStatus_To_v1alpha1_VolumePoolStatus(in *storage.VolumePoolStatus, out *v1alpha1.VolumePoolStatus, s conversion.Scope) error {
return autoConvert_storage_VolumePoolStatus_To_v1alpha1_VolumePoolStatus(in, out, s)
}
-func autoConvert_v1alpha1_VolumeSpec_To_storage_VolumeSpec(in *VolumeSpec, out *storage.VolumeSpec, s conversion.Scope) error {
+func autoConvert_v1alpha1_VolumeSpec_To_storage_VolumeSpec(in *v1alpha1.VolumeSpec, out *storage.VolumeSpec, s conversion.Scope) error {
out.VolumeClassRef = (*v1.LocalObjectReference)(unsafe.Pointer(in.VolumeClassRef))
out.VolumePoolSelector = *(*map[string]string)(unsafe.Pointer(&in.VolumePoolSelector))
out.VolumePoolRef = (*v1.LocalObjectReference)(unsafe.Pointer(in.VolumePoolRef))
@@ -483,11 +484,11 @@ func autoConvert_v1alpha1_VolumeSpec_To_storage_VolumeSpec(in *VolumeSpec, out *
}
// Convert_v1alpha1_VolumeSpec_To_storage_VolumeSpec is an autogenerated conversion function.
-func Convert_v1alpha1_VolumeSpec_To_storage_VolumeSpec(in *VolumeSpec, out *storage.VolumeSpec, s conversion.Scope) error {
+func Convert_v1alpha1_VolumeSpec_To_storage_VolumeSpec(in *v1alpha1.VolumeSpec, out *storage.VolumeSpec, s conversion.Scope) error {
return autoConvert_v1alpha1_VolumeSpec_To_storage_VolumeSpec(in, out, s)
}
-func autoConvert_storage_VolumeSpec_To_v1alpha1_VolumeSpec(in *storage.VolumeSpec, out *VolumeSpec, s conversion.Scope) error {
+func autoConvert_storage_VolumeSpec_To_v1alpha1_VolumeSpec(in *storage.VolumeSpec, out *v1alpha1.VolumeSpec, s conversion.Scope) error {
out.VolumeClassRef = (*v1.LocalObjectReference)(unsafe.Pointer(in.VolumeClassRef))
out.VolumePoolSelector = *(*map[string]string)(unsafe.Pointer(&in.VolumePoolSelector))
out.VolumePoolRef = (*v1.LocalObjectReference)(unsafe.Pointer(in.VolumePoolRef))
@@ -501,11 +502,11 @@ func autoConvert_storage_VolumeSpec_To_v1alpha1_VolumeSpec(in *storage.VolumeSpe
}
// Convert_storage_VolumeSpec_To_v1alpha1_VolumeSpec is an autogenerated conversion function.
-func Convert_storage_VolumeSpec_To_v1alpha1_VolumeSpec(in *storage.VolumeSpec, out *VolumeSpec, s conversion.Scope) error {
+func Convert_storage_VolumeSpec_To_v1alpha1_VolumeSpec(in *storage.VolumeSpec, out *v1alpha1.VolumeSpec, s conversion.Scope) error {
return autoConvert_storage_VolumeSpec_To_v1alpha1_VolumeSpec(in, out, s)
}
-func autoConvert_v1alpha1_VolumeStatus_To_storage_VolumeStatus(in *VolumeStatus, out *storage.VolumeStatus, s conversion.Scope) error {
+func autoConvert_v1alpha1_VolumeStatus_To_storage_VolumeStatus(in *v1alpha1.VolumeStatus, out *storage.VolumeStatus, s conversion.Scope) error {
out.State = storage.VolumeState(in.State)
out.LastStateTransitionTime = (*metav1.Time)(unsafe.Pointer(in.LastStateTransitionTime))
out.Phase = storage.VolumePhase(in.Phase)
@@ -516,26 +517,26 @@ func autoConvert_v1alpha1_VolumeStatus_To_storage_VolumeStatus(in *VolumeStatus,
}
// Convert_v1alpha1_VolumeStatus_To_storage_VolumeStatus is an autogenerated conversion function.
-func Convert_v1alpha1_VolumeStatus_To_storage_VolumeStatus(in *VolumeStatus, out *storage.VolumeStatus, s conversion.Scope) error {
+func Convert_v1alpha1_VolumeStatus_To_storage_VolumeStatus(in *v1alpha1.VolumeStatus, out *storage.VolumeStatus, s conversion.Scope) error {
return autoConvert_v1alpha1_VolumeStatus_To_storage_VolumeStatus(in, out, s)
}
-func autoConvert_storage_VolumeStatus_To_v1alpha1_VolumeStatus(in *storage.VolumeStatus, out *VolumeStatus, s conversion.Scope) error {
- out.State = VolumeState(in.State)
+func autoConvert_storage_VolumeStatus_To_v1alpha1_VolumeStatus(in *storage.VolumeStatus, out *v1alpha1.VolumeStatus, s conversion.Scope) error {
+ out.State = v1alpha1.VolumeState(in.State)
out.LastStateTransitionTime = (*metav1.Time)(unsafe.Pointer(in.LastStateTransitionTime))
- out.Phase = VolumePhase(in.Phase)
+ out.Phase = v1alpha1.VolumePhase(in.Phase)
out.LastPhaseTransitionTime = (*metav1.Time)(unsafe.Pointer(in.LastPhaseTransitionTime))
- out.Access = (*VolumeAccess)(unsafe.Pointer(in.Access))
- out.Conditions = *(*[]VolumeCondition)(unsafe.Pointer(&in.Conditions))
+ out.Access = (*v1alpha1.VolumeAccess)(unsafe.Pointer(in.Access))
+ out.Conditions = *(*[]v1alpha1.VolumeCondition)(unsafe.Pointer(&in.Conditions))
return nil
}
// Convert_storage_VolumeStatus_To_v1alpha1_VolumeStatus is an autogenerated conversion function.
-func Convert_storage_VolumeStatus_To_v1alpha1_VolumeStatus(in *storage.VolumeStatus, out *VolumeStatus, s conversion.Scope) error {
+func Convert_storage_VolumeStatus_To_v1alpha1_VolumeStatus(in *storage.VolumeStatus, out *v1alpha1.VolumeStatus, s conversion.Scope) error {
return autoConvert_storage_VolumeStatus_To_v1alpha1_VolumeStatus(in, out, s)
}
-func autoConvert_v1alpha1_VolumeTemplateSpec_To_storage_VolumeTemplateSpec(in *VolumeTemplateSpec, out *storage.VolumeTemplateSpec, s conversion.Scope) error {
+func autoConvert_v1alpha1_VolumeTemplateSpec_To_storage_VolumeTemplateSpec(in *v1alpha1.VolumeTemplateSpec, out *storage.VolumeTemplateSpec, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1alpha1_VolumeSpec_To_storage_VolumeSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -544,11 +545,11 @@ func autoConvert_v1alpha1_VolumeTemplateSpec_To_storage_VolumeTemplateSpec(in *V
}
// Convert_v1alpha1_VolumeTemplateSpec_To_storage_VolumeTemplateSpec is an autogenerated conversion function.
-func Convert_v1alpha1_VolumeTemplateSpec_To_storage_VolumeTemplateSpec(in *VolumeTemplateSpec, out *storage.VolumeTemplateSpec, s conversion.Scope) error {
+func Convert_v1alpha1_VolumeTemplateSpec_To_storage_VolumeTemplateSpec(in *v1alpha1.VolumeTemplateSpec, out *storage.VolumeTemplateSpec, s conversion.Scope) error {
return autoConvert_v1alpha1_VolumeTemplateSpec_To_storage_VolumeTemplateSpec(in, out, s)
}
-func autoConvert_storage_VolumeTemplateSpec_To_v1alpha1_VolumeTemplateSpec(in *storage.VolumeTemplateSpec, out *VolumeTemplateSpec, s conversion.Scope) error {
+func autoConvert_storage_VolumeTemplateSpec_To_v1alpha1_VolumeTemplateSpec(in *storage.VolumeTemplateSpec, out *v1alpha1.VolumeTemplateSpec, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_storage_VolumeSpec_To_v1alpha1_VolumeSpec(&in.Spec, &out.Spec, s); err != nil {
return err
@@ -557,6 +558,6 @@ func autoConvert_storage_VolumeTemplateSpec_To_v1alpha1_VolumeTemplateSpec(in *s
}
// Convert_storage_VolumeTemplateSpec_To_v1alpha1_VolumeTemplateSpec is an autogenerated conversion function.
-func Convert_storage_VolumeTemplateSpec_To_v1alpha1_VolumeTemplateSpec(in *storage.VolumeTemplateSpec, out *VolumeTemplateSpec, s conversion.Scope) error {
+func Convert_storage_VolumeTemplateSpec_To_v1alpha1_VolumeTemplateSpec(in *storage.VolumeTemplateSpec, out *v1alpha1.VolumeTemplateSpec, s conversion.Scope) error {
return autoConvert_storage_VolumeTemplateSpec_To_v1alpha1_VolumeTemplateSpec(in, out, s)
}
diff --git a/apis/storage/v1alpha1/zz_generated.defaults.go b/onmetal-apiserver/internal/apis/storage/v1alpha1/zz_generated.defaults.go
similarity index 100%
rename from apis/storage/v1alpha1/zz_generated.defaults.go
rename to onmetal-apiserver/internal/apis/storage/v1alpha1/zz_generated.defaults.go
diff --git a/apis/storage/validation/validation_suite_test.go b/onmetal-apiserver/internal/apis/storage/validation/validation_suite_test.go
similarity index 100%
rename from apis/storage/validation/validation_suite_test.go
rename to onmetal-apiserver/internal/apis/storage/validation/validation_suite_test.go
diff --git a/apis/storage/validation/volume.go b/onmetal-apiserver/internal/apis/storage/validation/volume.go
similarity index 97%
rename from apis/storage/validation/volume.go
rename to onmetal-apiserver/internal/apis/storage/validation/volume.go
index 0086b0b65..bc9492441 100644
--- a/apis/storage/validation/volume.go
+++ b/onmetal-apiserver/internal/apis/storage/validation/volume.go
@@ -17,8 +17,8 @@ package validation
import (
"fmt"
- "github.com/onmetal/onmetal-api/apis/storage"
- onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/api/validation"
+ onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
corev1 "k8s.io/api/core/v1"
apivalidation "k8s.io/apimachinery/pkg/api/validation"
metav1validation "k8s.io/apimachinery/pkg/apis/meta/v1/validation"
diff --git a/apis/storage/validation/volume_test.go b/onmetal-apiserver/internal/apis/storage/validation/volume_test.go
similarity index 94%
rename from apis/storage/validation/volume_test.go
rename to onmetal-apiserver/internal/apis/storage/validation/volume_test.go
index 4fbab1cb4..03aab0bcd 100644
--- a/apis/storage/validation/volume_test.go
+++ b/onmetal-apiserver/internal/apis/storage/validation/volume_test.go
@@ -15,10 +15,10 @@
package validation_test
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- "github.com/onmetal/onmetal-api/apis/storage"
- . "github.com/onmetal/onmetal-api/apis/storage/validation"
- . "github.com/onmetal/onmetal-api/testutils/validation"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage/validation"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/testutils/validation"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
diff --git a/apis/storage/validation/volumeclass.go b/onmetal-apiserver/internal/apis/storage/validation/volumeclass.go
similarity index 93%
rename from apis/storage/validation/volumeclass.go
rename to onmetal-apiserver/internal/apis/storage/validation/volumeclass.go
index d17f7d284..49b9e41db 100644
--- a/apis/storage/validation/volumeclass.go
+++ b/onmetal-apiserver/internal/apis/storage/validation/volumeclass.go
@@ -15,8 +15,8 @@
package validation
import (
- "github.com/onmetal/onmetal-api/apis/storage"
- onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/api/validation"
+ onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
apivalidation "k8s.io/apimachinery/pkg/api/validation"
"k8s.io/apimachinery/pkg/util/validation/field"
)
diff --git a/apis/storage/validation/volumeclass_test.go b/onmetal-apiserver/internal/apis/storage/validation/volumeclass_test.go
similarity index 88%
rename from apis/storage/validation/volumeclass_test.go
rename to onmetal-apiserver/internal/apis/storage/validation/volumeclass_test.go
index c7023830c..a1bc7f801 100644
--- a/apis/storage/validation/volumeclass_test.go
+++ b/onmetal-apiserver/internal/apis/storage/validation/volumeclass_test.go
@@ -15,9 +15,9 @@
package validation_test
import (
- "github.com/onmetal/onmetal-api/apis/storage"
- . "github.com/onmetal/onmetal-api/apis/storage/validation"
- . "github.com/onmetal/onmetal-api/testutils/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage/validation"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/testutils/validation"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
diff --git a/apis/storage/validation/volumepool.go b/onmetal-apiserver/internal/apis/storage/validation/volumepool.go
similarity index 95%
rename from apis/storage/validation/volumepool.go
rename to onmetal-apiserver/internal/apis/storage/validation/volumepool.go
index d741a4ad2..fb805abbf 100644
--- a/apis/storage/validation/volumepool.go
+++ b/onmetal-apiserver/internal/apis/storage/validation/volumepool.go
@@ -15,8 +15,8 @@
package validation
import (
- "github.com/onmetal/onmetal-api/apis/storage"
- onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/api/validation"
+ onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
apivalidation "k8s.io/apimachinery/pkg/api/validation"
"k8s.io/apimachinery/pkg/util/validation/field"
)
diff --git a/apis/storage/validation/volumepool_test.go b/onmetal-apiserver/internal/apis/storage/validation/volumepool_test.go
similarity index 89%
rename from apis/storage/validation/volumepool_test.go
rename to onmetal-apiserver/internal/apis/storage/validation/volumepool_test.go
index 702e7d611..e243b2f41 100644
--- a/apis/storage/validation/volumepool_test.go
+++ b/onmetal-apiserver/internal/apis/storage/validation/volumepool_test.go
@@ -15,9 +15,9 @@
package validation_test
import (
- "github.com/onmetal/onmetal-api/apis/storage"
- . "github.com/onmetal/onmetal-api/apis/storage/validation"
- . "github.com/onmetal/onmetal-api/testutils/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage/validation"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/testutils/validation"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
diff --git a/apis/storage/validation/volumetemplate.go b/onmetal-apiserver/internal/apis/storage/validation/volumetemplate.go
similarity index 94%
rename from apis/storage/validation/volumetemplate.go
rename to onmetal-apiserver/internal/apis/storage/validation/volumetemplate.go
index dcdc15cde..ef67af508 100644
--- a/apis/storage/validation/volumetemplate.go
+++ b/onmetal-apiserver/internal/apis/storage/validation/volumetemplate.go
@@ -15,8 +15,8 @@
package validation
import (
- "github.com/onmetal/onmetal-api/apis/storage"
- onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/api/validation"
+ onmetalapivalidation "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
apivalidation "k8s.io/apimachinery/pkg/api/validation"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
metav1validation "k8s.io/apimachinery/pkg/apis/meta/v1/validation"
diff --git a/apis/storage/validation/volumetemplate_test.go b/onmetal-apiserver/internal/apis/storage/validation/volumetemplate_test.go
similarity index 87%
rename from apis/storage/validation/volumetemplate_test.go
rename to onmetal-apiserver/internal/apis/storage/validation/volumetemplate_test.go
index 5aa519e23..6b21aa980 100644
--- a/apis/storage/validation/volumetemplate_test.go
+++ b/onmetal-apiserver/internal/apis/storage/validation/volumetemplate_test.go
@@ -15,15 +15,14 @@
package validation_test
import (
- "github.com/onmetal/onmetal-api/apis/storage"
- . "github.com/onmetal/onmetal-api/testutils/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage/validation"
+ . "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/testutils/validation"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/validation/field"
-
- . "github.com/onmetal/onmetal-api/apis/storage/validation"
)
var _ = Describe("VolumeTemplate", func() {
diff --git a/apis/storage/volume_types.go b/onmetal-apiserver/internal/apis/storage/volume_types.go
similarity index 98%
rename from apis/storage/volume_types.go
rename to onmetal-apiserver/internal/apis/storage/volume_types.go
index ea2f30cbb..78ebdbdb2 100644
--- a/apis/storage/volume_types.go
+++ b/onmetal-apiserver/internal/apis/storage/volume_types.go
@@ -17,7 +17,7 @@
package storage
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/apis/storage/volumeclass_types.go b/onmetal-apiserver/internal/apis/storage/volumeclass_types.go
similarity index 100%
rename from apis/storage/volumeclass_types.go
rename to onmetal-apiserver/internal/apis/storage/volumeclass_types.go
diff --git a/apis/storage/volumepool_types.go b/onmetal-apiserver/internal/apis/storage/volumepool_types.go
similarity index 97%
rename from apis/storage/volumepool_types.go
rename to onmetal-apiserver/internal/apis/storage/volumepool_types.go
index dae397747..641710fe6 100644
--- a/apis/storage/volumepool_types.go
+++ b/onmetal-apiserver/internal/apis/storage/volumepool_types.go
@@ -20,7 +20,7 @@ import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
)
// VolumePoolSpec defines the desired state of VolumePool
diff --git a/apis/storage/zz_generated.deepcopy.go b/onmetal-apiserver/internal/apis/storage/zz_generated.deepcopy.go
similarity index 99%
rename from apis/storage/zz_generated.deepcopy.go
rename to onmetal-apiserver/internal/apis/storage/zz_generated.deepcopy.go
index 1e3e74aa0..d80c736c1 100644
--- a/apis/storage/zz_generated.deepcopy.go
+++ b/onmetal-apiserver/internal/apis/storage/zz_generated.deepcopy.go
@@ -21,7 +21,7 @@
package storage
import (
- v1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
+ v1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
v1 "k8s.io/api/core/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
)
diff --git a/onmetal-apiserver/apiserver/apiserver.go b/onmetal-apiserver/internal/apiserver/apiserver.go
similarity index 91%
rename from onmetal-apiserver/apiserver/apiserver.go
rename to onmetal-apiserver/internal/apiserver/apiserver.go
index 5faecf980..8a2851640 100644
--- a/onmetal-apiserver/apiserver/apiserver.go
+++ b/onmetal-apiserver/internal/apiserver/apiserver.go
@@ -17,11 +17,11 @@ package apiserver
import (
"fmt"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/machinepoollet/client"
- computerest "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/compute/rest"
- ipamrest "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/ipam/rest"
- networkingrest "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/networking/rest"
- storagerest "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/storage/rest"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/machinepoollet/client"
+ computerest "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/compute/rest"
+ ipamrest "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/ipam/rest"
+ networkingrest "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/networking/rest"
+ storagerest "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/storage/rest"
"k8s.io/apimachinery/pkg/version"
"k8s.io/apiserver/pkg/registry/generic"
genericapiserver "k8s.io/apiserver/pkg/server"
diff --git a/onmetal-apiserver/app/apiserver/apiserver.go b/onmetal-apiserver/internal/app/apiserver/apiserver.go
similarity index 89%
rename from onmetal-apiserver/app/apiserver/apiserver.go
rename to onmetal-apiserver/internal/app/apiserver/apiserver.go
index 3183172b7..607d6ec19 100644
--- a/onmetal-apiserver/app/apiserver/apiserver.go
+++ b/onmetal-apiserver/internal/app/apiserver/apiserver.go
@@ -20,18 +20,18 @@ import (
"net"
"time"
- "github.com/onmetal/onmetal-api/apis/compute"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
- clientset "github.com/onmetal/onmetal-api/generated/clientset/versioned"
- informers "github.com/onmetal/onmetal-api/generated/informers/externalversions"
- onmetalopenapi "github.com/onmetal/onmetal-api/generated/openapi"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/admission/plugin/machinevolumedevices"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/apiserver"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/machinepoollet/client"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
+ "github.com/onmetal/onmetal-api/client-go/informers"
+ clientset "github.com/onmetal/onmetal-api/client-go/onmetalapi"
+ onmetalopenapi "github.com/onmetal/onmetal-api/client-go/openapi"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/admission/plugin/machinevolumedevices"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apiserver"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/machinepoollet/client"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"k8s.io/apimachinery/pkg/runtime"
diff --git a/onmetal-apiserver/machinepoollet/client/connectioninfo.go b/onmetal-apiserver/internal/machinepoollet/client/connectioninfo.go
similarity index 99%
rename from onmetal-apiserver/machinepoollet/client/connectioninfo.go
rename to onmetal-apiserver/internal/machinepoollet/client/connectioninfo.go
index 26cacbebb..4f9cb0bc2 100644
--- a/onmetal-apiserver/machinepoollet/client/connectioninfo.go
+++ b/onmetal-apiserver/internal/machinepoollet/client/connectioninfo.go
@@ -21,7 +21,7 @@ import (
"strconv"
"time"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
utilnet "k8s.io/apimachinery/pkg/util/net"
"k8s.io/apiserver/pkg/server/egressselector"
diff --git a/onmetal-apiserver/registry/compute/machine/storage/storage.go b/onmetal-apiserver/internal/registry/compute/machine/storage/storage.go
similarity index 94%
rename from onmetal-apiserver/registry/compute/machine/storage/storage.go
rename to onmetal-apiserver/internal/registry/compute/machine/storage/storage.go
index 8bd818e50..20d36efe7 100644
--- a/onmetal-apiserver/registry/compute/machine/storage/storage.go
+++ b/onmetal-apiserver/internal/registry/compute/machine/storage/storage.go
@@ -20,9 +20,9 @@ import (
"net/http"
"net/url"
- "github.com/onmetal/onmetal-api/apis/compute"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/machinepoollet/client"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/compute/machine"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/machinepoollet/client"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/compute/machine"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/util/proxy"
diff --git a/onmetal-apiserver/registry/compute/machine/storage/tableconvertor.go b/onmetal-apiserver/internal/registry/compute/machine/storage/tableconvertor.go
similarity index 97%
rename from onmetal-apiserver/registry/compute/machine/storage/tableconvertor.go
rename to onmetal-apiserver/internal/registry/compute/machine/storage/tableconvertor.go
index abd245038..e265be65d 100644
--- a/onmetal-apiserver/registry/compute/machine/storage/tableconvertor.go
+++ b/onmetal-apiserver/internal/registry/compute/machine/storage/tableconvertor.go
@@ -17,7 +17,7 @@ package storage
import (
"context"
- "github.com/onmetal/onmetal-api/apis/compute"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta/table"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/onmetal-apiserver/registry/compute/machine/strategy.go b/onmetal-apiserver/internal/registry/compute/machine/strategy.go
similarity index 94%
rename from onmetal-apiserver/registry/compute/machine/strategy.go
rename to onmetal-apiserver/internal/registry/compute/machine/strategy.go
index 29e25d0f0..2ff9e286f 100644
--- a/onmetal-apiserver/registry/compute/machine/strategy.go
+++ b/onmetal-apiserver/internal/registry/compute/machine/strategy.go
@@ -21,10 +21,10 @@ import (
"net/http"
"net/url"
- "github.com/onmetal/onmetal-api/apis/compute"
- "github.com/onmetal/onmetal-api/apis/compute/validation"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/machinepoollet/client"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute/validation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/machinepoollet/client"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/fields"
diff --git a/onmetal-apiserver/registry/compute/machineclass/storage/storage.go b/onmetal-apiserver/internal/registry/compute/machineclass/storage/storage.go
similarity index 91%
rename from onmetal-apiserver/registry/compute/machineclass/storage/storage.go
rename to onmetal-apiserver/internal/registry/compute/machineclass/storage/storage.go
index c3de821c2..dafcf4a8b 100644
--- a/onmetal-apiserver/registry/compute/machineclass/storage/storage.go
+++ b/onmetal-apiserver/internal/registry/compute/machineclass/storage/storage.go
@@ -15,8 +15,8 @@
package storage
import (
- "github.com/onmetal/onmetal-api/apis/compute"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/compute/machineclass"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/compute/machineclass"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/registry/generic"
genericregistry "k8s.io/apiserver/pkg/registry/generic/registry"
diff --git a/onmetal-apiserver/registry/compute/machineclass/storage/tableconvertor.go b/onmetal-apiserver/internal/registry/compute/machineclass/storage/tableconvertor.go
similarity index 96%
rename from onmetal-apiserver/registry/compute/machineclass/storage/tableconvertor.go
rename to onmetal-apiserver/internal/registry/compute/machineclass/storage/tableconvertor.go
index 83cae97cf..3bdeb4d75 100644
--- a/onmetal-apiserver/registry/compute/machineclass/storage/tableconvertor.go
+++ b/onmetal-apiserver/internal/registry/compute/machineclass/storage/tableconvertor.go
@@ -17,7 +17,7 @@ package storage
import (
"context"
- "github.com/onmetal/onmetal-api/apis/compute"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta/table"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/onmetal-apiserver/registry/compute/machineclass/strategy.go b/onmetal-apiserver/internal/registry/compute/machineclass/strategy.go
similarity index 93%
rename from onmetal-apiserver/registry/compute/machineclass/strategy.go
rename to onmetal-apiserver/internal/registry/compute/machineclass/strategy.go
index 9fc6722cd..0254564f7 100644
--- a/onmetal-apiserver/registry/compute/machineclass/strategy.go
+++ b/onmetal-apiserver/internal/registry/compute/machineclass/strategy.go
@@ -18,10 +18,10 @@ import (
"context"
"fmt"
- "github.com/onmetal/onmetal-api/apis/compute"
- "github.com/onmetal/onmetal-api/apis/compute/validation"
"github.com/onmetal/onmetal-api/apiutils/equality"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute/validation"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime"
diff --git a/onmetal-apiserver/registry/compute/machinepool/storage/storage.go b/onmetal-apiserver/internal/registry/compute/machinepool/storage/storage.go
similarity index 88%
rename from onmetal-apiserver/registry/compute/machinepool/storage/storage.go
rename to onmetal-apiserver/internal/registry/compute/machinepool/storage/storage.go
index a24deb34b..de4daddbe 100644
--- a/onmetal-apiserver/registry/compute/machinepool/storage/storage.go
+++ b/onmetal-apiserver/internal/registry/compute/machinepool/storage/storage.go
@@ -18,10 +18,11 @@ import (
"context"
"fmt"
- "github.com/onmetal/onmetal-api/apis/compute"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/machinepoollet/client"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/compute/machinepool"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/machinepoollet/client"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/compute/machinepool"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/registry/generic"
@@ -82,7 +83,7 @@ func NewStorage(optsGetter generic.RESTOptionsGetter, machinePoolletClientConfig
}
// TODO: Remove the conversion. Consider only return the MachinePoolAddresses
externalMachinePool := &computev1alpha1.MachinePool{}
- if err := computev1alpha1.Convert_compute_MachinePool_To_v1alpha1_MachinePool(machinePool, externalMachinePool, nil); err != nil {
+ if err := v1alpha1.Convert_compute_MachinePool_To_v1alpha1_MachinePool(machinePool, externalMachinePool, nil); err != nil {
return nil, fmt.Errorf("failed to convert to v1alpha1.MachinePool: %v", err)
}
return externalMachinePool, nil
diff --git a/onmetal-apiserver/registry/compute/machinepool/storage/tableconvertor.go b/onmetal-apiserver/internal/registry/compute/machinepool/storage/tableconvertor.go
similarity index 97%
rename from onmetal-apiserver/registry/compute/machinepool/storage/tableconvertor.go
rename to onmetal-apiserver/internal/registry/compute/machinepool/storage/tableconvertor.go
index a995d016c..624da6a1d 100644
--- a/onmetal-apiserver/registry/compute/machinepool/storage/tableconvertor.go
+++ b/onmetal-apiserver/internal/registry/compute/machinepool/storage/tableconvertor.go
@@ -19,7 +19,7 @@ import (
"sort"
"strings"
- "github.com/onmetal/onmetal-api/apis/compute"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta/table"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/onmetal-apiserver/registry/compute/machinepool/strategy.go b/onmetal-apiserver/internal/registry/compute/machinepool/strategy.go
similarity index 95%
rename from onmetal-apiserver/registry/compute/machinepool/strategy.go
rename to onmetal-apiserver/internal/registry/compute/machinepool/strategy.go
index dfeb75efa..d91487f5c 100644
--- a/onmetal-apiserver/registry/compute/machinepool/strategy.go
+++ b/onmetal-apiserver/internal/registry/compute/machinepool/strategy.go
@@ -18,10 +18,10 @@ import (
"context"
"fmt"
- "github.com/onmetal/onmetal-api/apis/compute"
- "github.com/onmetal/onmetal-api/apis/compute/validation"
"github.com/onmetal/onmetal-api/apiutils/equality"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute/validation"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime"
diff --git a/onmetal-apiserver/registry/compute/rest/rest.go b/onmetal-apiserver/internal/registry/compute/rest/rest.go
similarity index 87%
rename from onmetal-apiserver/registry/compute/rest/rest.go
rename to onmetal-apiserver/internal/registry/compute/rest/rest.go
index 375b6cb52..d69467a9b 100644
--- a/onmetal-apiserver/registry/compute/rest/rest.go
+++ b/onmetal-apiserver/internal/registry/compute/rest/rest.go
@@ -15,14 +15,14 @@
package rest
import (
- "github.com/onmetal/onmetal-api/apis/compute"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
- machinepoolletclient "github.com/onmetal/onmetal-api/onmetal-apiserver/machinepoollet/client"
- machinestorage "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/compute/machine/storage"
- machineclassstore "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/compute/machineclass/storage"
- machinepoolstorage "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/compute/machinepool/storage"
- onmetalapiserializer "github.com/onmetal/onmetal-api/onmetal-apiserver/serializer"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/compute"
+ machinepoolletclient "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/machinepoollet/client"
+ machinestorage "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/compute/machine/storage"
+ machineclassstore "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/compute/machineclass/storage"
+ machinepoolstorage "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/compute/machinepool/storage"
+ onmetalapiserializer "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/serializer"
"k8s.io/apiserver/pkg/registry/generic"
"k8s.io/apiserver/pkg/registry/rest"
genericapiserver "k8s.io/apiserver/pkg/server"
diff --git a/onmetal-apiserver/registry/ipam/prefix/storage/storage.go b/onmetal-apiserver/internal/registry/ipam/prefix/storage/storage.go
similarity index 94%
rename from onmetal-apiserver/registry/ipam/prefix/storage/storage.go
rename to onmetal-apiserver/internal/registry/ipam/prefix/storage/storage.go
index 2c25a3a84..7b9519be3 100644
--- a/onmetal-apiserver/registry/ipam/prefix/storage/storage.go
+++ b/onmetal-apiserver/internal/registry/ipam/prefix/storage/storage.go
@@ -17,8 +17,8 @@ package storage
import (
"context"
- "github.com/onmetal/onmetal-api/apis/ipam"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/ipam/prefix"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/ipam/prefix"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/registry/generic"
diff --git a/onmetal-apiserver/registry/ipam/prefix/storage/tableconvertor.go b/onmetal-apiserver/internal/registry/ipam/prefix/storage/tableconvertor.go
similarity index 97%
rename from onmetal-apiserver/registry/ipam/prefix/storage/tableconvertor.go
rename to onmetal-apiserver/internal/registry/ipam/prefix/storage/tableconvertor.go
index da5240416..a152b76c9 100644
--- a/onmetal-apiserver/registry/ipam/prefix/storage/tableconvertor.go
+++ b/onmetal-apiserver/internal/registry/ipam/prefix/storage/tableconvertor.go
@@ -17,7 +17,7 @@ package storage
import (
"context"
- "github.com/onmetal/onmetal-api/apis/ipam"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta/table"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/onmetal-apiserver/registry/ipam/prefix/strategy.go b/onmetal-apiserver/internal/registry/ipam/prefix/strategy.go
similarity index 94%
rename from onmetal-apiserver/registry/ipam/prefix/strategy.go
rename to onmetal-apiserver/internal/registry/ipam/prefix/strategy.go
index 55c3cf3fb..f8a2426cb 100644
--- a/onmetal-apiserver/registry/ipam/prefix/strategy.go
+++ b/onmetal-apiserver/internal/registry/ipam/prefix/strategy.go
@@ -18,9 +18,9 @@ import (
"context"
"fmt"
- "github.com/onmetal/onmetal-api/apis/ipam"
- "github.com/onmetal/onmetal-api/apis/ipam/validation"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam/validation"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime"
diff --git a/onmetal-apiserver/registry/ipam/prefixallocation/storage/storage.go b/onmetal-apiserver/internal/registry/ipam/prefixallocation/storage/storage.go
similarity index 94%
rename from onmetal-apiserver/registry/ipam/prefixallocation/storage/storage.go
rename to onmetal-apiserver/internal/registry/ipam/prefixallocation/storage/storage.go
index 86d4de021..4542b44c8 100644
--- a/onmetal-apiserver/registry/ipam/prefixallocation/storage/storage.go
+++ b/onmetal-apiserver/internal/registry/ipam/prefixallocation/storage/storage.go
@@ -17,8 +17,8 @@ package storage
import (
"context"
- "github.com/onmetal/onmetal-api/apis/ipam"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/ipam/prefixallocation"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/ipam/prefixallocation"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/registry/generic"
diff --git a/onmetal-apiserver/registry/ipam/prefixallocation/storage/tableconvertor.go b/onmetal-apiserver/internal/registry/ipam/prefixallocation/storage/tableconvertor.go
similarity index 97%
rename from onmetal-apiserver/registry/ipam/prefixallocation/storage/tableconvertor.go
rename to onmetal-apiserver/internal/registry/ipam/prefixallocation/storage/tableconvertor.go
index 1013bb2f9..b42b319b7 100644
--- a/onmetal-apiserver/registry/ipam/prefixallocation/storage/tableconvertor.go
+++ b/onmetal-apiserver/internal/registry/ipam/prefixallocation/storage/tableconvertor.go
@@ -18,7 +18,7 @@ import (
"context"
"fmt"
- "github.com/onmetal/onmetal-api/apis/ipam"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta/table"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/onmetal-apiserver/registry/ipam/prefixallocation/strategy.go b/onmetal-apiserver/internal/registry/ipam/prefixallocation/strategy.go
similarity index 95%
rename from onmetal-apiserver/registry/ipam/prefixallocation/strategy.go
rename to onmetal-apiserver/internal/registry/ipam/prefixallocation/strategy.go
index 661e17c07..b8760c31d 100644
--- a/onmetal-apiserver/registry/ipam/prefixallocation/strategy.go
+++ b/onmetal-apiserver/internal/registry/ipam/prefixallocation/strategy.go
@@ -18,9 +18,9 @@ import (
"context"
"fmt"
- "github.com/onmetal/onmetal-api/apis/ipam"
- "github.com/onmetal/onmetal-api/apis/ipam/validation"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam/validation"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime"
diff --git a/onmetal-apiserver/registry/ipam/rest/rest.go b/onmetal-apiserver/internal/registry/ipam/rest/rest.go
similarity index 88%
rename from onmetal-apiserver/registry/ipam/rest/rest.go
rename to onmetal-apiserver/internal/registry/ipam/rest/rest.go
index de5444e39..c4f52d480 100644
--- a/onmetal-apiserver/registry/ipam/rest/rest.go
+++ b/onmetal-apiserver/internal/registry/ipam/rest/rest.go
@@ -15,12 +15,12 @@
package rest
import (
- "github.com/onmetal/onmetal-api/apis/ipam"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
- prefixstorage "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/ipam/prefix/storage"
- prefixallocationstorage "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/ipam/prefixallocation/storage"
- onmetalapiserializer "github.com/onmetal/onmetal-api/onmetal-apiserver/serializer"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/ipam"
+ prefixstorage "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/ipam/prefix/storage"
+ prefixallocationstorage "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/ipam/prefixallocation/storage"
+ onmetalapiserializer "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/serializer"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apiserver/pkg/registry/generic"
"k8s.io/apiserver/pkg/registry/rest"
diff --git a/onmetal-apiserver/registry/networking/aliasprefix/storage/storage.go b/onmetal-apiserver/internal/registry/networking/aliasprefix/storage/storage.go
similarity index 94%
rename from onmetal-apiserver/registry/networking/aliasprefix/storage/storage.go
rename to onmetal-apiserver/internal/registry/networking/aliasprefix/storage/storage.go
index 2b81260e0..aa3773b1d 100644
--- a/onmetal-apiserver/registry/networking/aliasprefix/storage/storage.go
+++ b/onmetal-apiserver/internal/registry/networking/aliasprefix/storage/storage.go
@@ -19,8 +19,8 @@ package storage
import (
"context"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/networking/aliasprefix"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/networking/aliasprefix"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/registry/generic"
diff --git a/onmetal-apiserver/registry/networking/aliasprefix/storage/tableconvertor.go b/onmetal-apiserver/internal/registry/networking/aliasprefix/storage/tableconvertor.go
similarity index 96%
rename from onmetal-apiserver/registry/networking/aliasprefix/storage/tableconvertor.go
rename to onmetal-apiserver/internal/registry/networking/aliasprefix/storage/tableconvertor.go
index eb8f48c52..203944f94 100644
--- a/onmetal-apiserver/registry/networking/aliasprefix/storage/tableconvertor.go
+++ b/onmetal-apiserver/internal/registry/networking/aliasprefix/storage/tableconvertor.go
@@ -19,7 +19,7 @@ package storage
import (
"context"
- "github.com/onmetal/onmetal-api/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta/table"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/onmetal-apiserver/registry/networking/aliasprefix/strategy.go b/onmetal-apiserver/internal/registry/networking/aliasprefix/strategy.go
similarity index 94%
rename from onmetal-apiserver/registry/networking/aliasprefix/strategy.go
rename to onmetal-apiserver/internal/registry/networking/aliasprefix/strategy.go
index 943c66be6..89c6ae5bd 100644
--- a/onmetal-apiserver/registry/networking/aliasprefix/strategy.go
+++ b/onmetal-apiserver/internal/registry/networking/aliasprefix/strategy.go
@@ -20,9 +20,9 @@ import (
"context"
"fmt"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/apis/networking/validation"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking/validation"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime"
diff --git a/onmetal-apiserver/registry/networking/aliasprefixrouting/storage/storage.go b/onmetal-apiserver/internal/registry/networking/aliasprefixrouting/storage/storage.go
similarity index 91%
rename from onmetal-apiserver/registry/networking/aliasprefixrouting/storage/storage.go
rename to onmetal-apiserver/internal/registry/networking/aliasprefixrouting/storage/storage.go
index 78e89b931..71842c2dc 100644
--- a/onmetal-apiserver/registry/networking/aliasprefixrouting/storage/storage.go
+++ b/onmetal-apiserver/internal/registry/networking/aliasprefixrouting/storage/storage.go
@@ -17,8 +17,8 @@
package storage
import (
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/networking/aliasprefixrouting"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/networking/aliasprefixrouting"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/registry/generic"
genericregistry "k8s.io/apiserver/pkg/registry/generic/registry"
diff --git a/onmetal-apiserver/registry/networking/aliasprefixrouting/storage/tableconvertor.go b/onmetal-apiserver/internal/registry/networking/aliasprefixrouting/storage/tableconvertor.go
similarity index 91%
rename from onmetal-apiserver/registry/networking/aliasprefixrouting/storage/tableconvertor.go
rename to onmetal-apiserver/internal/registry/networking/aliasprefixrouting/storage/tableconvertor.go
index 624858d90..ab881cbec 100644
--- a/onmetal-apiserver/registry/networking/aliasprefixrouting/storage/tableconvertor.go
+++ b/onmetal-apiserver/internal/registry/networking/aliasprefixrouting/storage/tableconvertor.go
@@ -19,9 +19,9 @@ package storage
import (
"context"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/tableconvertor"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/tableconvertor"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta/table"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/onmetal-apiserver/registry/networking/aliasprefixrouting/strategy.go b/onmetal-apiserver/internal/registry/networking/aliasprefixrouting/strategy.go
similarity index 93%
rename from onmetal-apiserver/registry/networking/aliasprefixrouting/strategy.go
rename to onmetal-apiserver/internal/registry/networking/aliasprefixrouting/strategy.go
index a2b291dba..fafbd0715 100644
--- a/onmetal-apiserver/registry/networking/aliasprefixrouting/strategy.go
+++ b/onmetal-apiserver/internal/registry/networking/aliasprefixrouting/strategy.go
@@ -20,9 +20,9 @@ import (
"context"
"fmt"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/apis/networking/validation"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking/validation"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime"
diff --git a/onmetal-apiserver/registry/networking/loadbalancer/storage/storage.go b/onmetal-apiserver/internal/registry/networking/loadbalancer/storage/storage.go
similarity index 94%
rename from onmetal-apiserver/registry/networking/loadbalancer/storage/storage.go
rename to onmetal-apiserver/internal/registry/networking/loadbalancer/storage/storage.go
index 2f4f4cbeb..a24315e4b 100644
--- a/onmetal-apiserver/registry/networking/loadbalancer/storage/storage.go
+++ b/onmetal-apiserver/internal/registry/networking/loadbalancer/storage/storage.go
@@ -19,8 +19,8 @@ package storage
import (
"context"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/networking/loadbalancer"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/networking/loadbalancer"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/registry/generic"
diff --git a/onmetal-apiserver/registry/networking/loadbalancer/storage/tableconvertor.go b/onmetal-apiserver/internal/registry/networking/loadbalancer/storage/tableconvertor.go
similarity index 96%
rename from onmetal-apiserver/registry/networking/loadbalancer/storage/tableconvertor.go
rename to onmetal-apiserver/internal/registry/networking/loadbalancer/storage/tableconvertor.go
index be4918360..244b2098b 100644
--- a/onmetal-apiserver/registry/networking/loadbalancer/storage/tableconvertor.go
+++ b/onmetal-apiserver/internal/registry/networking/loadbalancer/storage/tableconvertor.go
@@ -20,7 +20,7 @@ import (
"context"
"strings"
- "github.com/onmetal/onmetal-api/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta/table"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/onmetal-apiserver/registry/networking/loadbalancer/strategy.go b/onmetal-apiserver/internal/registry/networking/loadbalancer/strategy.go
similarity index 94%
rename from onmetal-apiserver/registry/networking/loadbalancer/strategy.go
rename to onmetal-apiserver/internal/registry/networking/loadbalancer/strategy.go
index 952898fa0..f44c5821f 100644
--- a/onmetal-apiserver/registry/networking/loadbalancer/strategy.go
+++ b/onmetal-apiserver/internal/registry/networking/loadbalancer/strategy.go
@@ -20,9 +20,9 @@ import (
"context"
"fmt"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/apis/networking/validation"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking/validation"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime"
diff --git a/onmetal-apiserver/registry/networking/loadbalancerrouting/storage/storage.go b/onmetal-apiserver/internal/registry/networking/loadbalancerrouting/storage/storage.go
similarity index 91%
rename from onmetal-apiserver/registry/networking/loadbalancerrouting/storage/storage.go
rename to onmetal-apiserver/internal/registry/networking/loadbalancerrouting/storage/storage.go
index c3ee6a61d..d48a34b16 100644
--- a/onmetal-apiserver/registry/networking/loadbalancerrouting/storage/storage.go
+++ b/onmetal-apiserver/internal/registry/networking/loadbalancerrouting/storage/storage.go
@@ -17,8 +17,8 @@
package storage
import (
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/networking/loadbalancerrouting"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/networking/loadbalancerrouting"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/registry/generic"
genericregistry "k8s.io/apiserver/pkg/registry/generic/registry"
diff --git a/onmetal-apiserver/registry/networking/loadbalancerrouting/storage/tableconvertor.go b/onmetal-apiserver/internal/registry/networking/loadbalancerrouting/storage/tableconvertor.go
similarity index 91%
rename from onmetal-apiserver/registry/networking/loadbalancerrouting/storage/tableconvertor.go
rename to onmetal-apiserver/internal/registry/networking/loadbalancerrouting/storage/tableconvertor.go
index 077d9d9cd..2d0774647 100644
--- a/onmetal-apiserver/registry/networking/loadbalancerrouting/storage/tableconvertor.go
+++ b/onmetal-apiserver/internal/registry/networking/loadbalancerrouting/storage/tableconvertor.go
@@ -19,9 +19,9 @@ package storage
import (
"context"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/tableconvertor"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/tableconvertor"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta/table"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/onmetal-apiserver/registry/networking/loadbalancerrouting/strategy.go b/onmetal-apiserver/internal/registry/networking/loadbalancerrouting/strategy.go
similarity index 93%
rename from onmetal-apiserver/registry/networking/loadbalancerrouting/strategy.go
rename to onmetal-apiserver/internal/registry/networking/loadbalancerrouting/strategy.go
index a098b7980..b0948c967 100644
--- a/onmetal-apiserver/registry/networking/loadbalancerrouting/strategy.go
+++ b/onmetal-apiserver/internal/registry/networking/loadbalancerrouting/strategy.go
@@ -20,9 +20,9 @@ import (
"context"
"fmt"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/apis/networking/validation"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking/validation"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime"
diff --git a/onmetal-apiserver/registry/networking/natgateway/storage/storage.go b/onmetal-apiserver/internal/registry/networking/natgateway/storage/storage.go
similarity index 94%
rename from onmetal-apiserver/registry/networking/natgateway/storage/storage.go
rename to onmetal-apiserver/internal/registry/networking/natgateway/storage/storage.go
index 97b6ec7fb..4e5471667 100644
--- a/onmetal-apiserver/registry/networking/natgateway/storage/storage.go
+++ b/onmetal-apiserver/internal/registry/networking/natgateway/storage/storage.go
@@ -19,8 +19,8 @@ package storage
import (
"context"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/networking/natgateway"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/networking/natgateway"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/registry/generic"
diff --git a/onmetal-apiserver/registry/networking/natgateway/storage/tableconvertor.go b/onmetal-apiserver/internal/registry/networking/natgateway/storage/tableconvertor.go
similarity index 96%
rename from onmetal-apiserver/registry/networking/natgateway/storage/tableconvertor.go
rename to onmetal-apiserver/internal/registry/networking/natgateway/storage/tableconvertor.go
index ca19e492e..b918befdd 100644
--- a/onmetal-apiserver/registry/networking/natgateway/storage/tableconvertor.go
+++ b/onmetal-apiserver/internal/registry/networking/natgateway/storage/tableconvertor.go
@@ -20,7 +20,7 @@ import (
"context"
"strings"
- "github.com/onmetal/onmetal-api/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta/table"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/onmetal-apiserver/registry/networking/natgateway/strategy.go b/onmetal-apiserver/internal/registry/networking/natgateway/strategy.go
similarity index 94%
rename from onmetal-apiserver/registry/networking/natgateway/strategy.go
rename to onmetal-apiserver/internal/registry/networking/natgateway/strategy.go
index 117e32051..05616997c 100644
--- a/onmetal-apiserver/registry/networking/natgateway/strategy.go
+++ b/onmetal-apiserver/internal/registry/networking/natgateway/strategy.go
@@ -20,9 +20,9 @@ import (
"context"
"fmt"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/apis/networking/validation"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking/validation"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime"
diff --git a/onmetal-apiserver/registry/networking/natgatewayrouting/storage/storage.go b/onmetal-apiserver/internal/registry/networking/natgatewayrouting/storage/storage.go
similarity index 91%
rename from onmetal-apiserver/registry/networking/natgatewayrouting/storage/storage.go
rename to onmetal-apiserver/internal/registry/networking/natgatewayrouting/storage/storage.go
index 80e46392e..819a5c5df 100644
--- a/onmetal-apiserver/registry/networking/natgatewayrouting/storage/storage.go
+++ b/onmetal-apiserver/internal/registry/networking/natgatewayrouting/storage/storage.go
@@ -17,8 +17,8 @@
package storage
import (
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/networking/natgatewayrouting"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/networking/natgatewayrouting"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/registry/generic"
genericregistry "k8s.io/apiserver/pkg/registry/generic/registry"
diff --git a/onmetal-apiserver/registry/networking/natgatewayrouting/storage/tableconvertor.go b/onmetal-apiserver/internal/registry/networking/natgatewayrouting/storage/tableconvertor.go
similarity index 93%
rename from onmetal-apiserver/registry/networking/natgatewayrouting/storage/tableconvertor.go
rename to onmetal-apiserver/internal/registry/networking/natgatewayrouting/storage/tableconvertor.go
index 3bc975164..849754fbb 100644
--- a/onmetal-apiserver/registry/networking/natgatewayrouting/storage/tableconvertor.go
+++ b/onmetal-apiserver/internal/registry/networking/natgatewayrouting/storage/tableconvertor.go
@@ -19,8 +19,8 @@ package storage
import (
"context"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/tableconvertor"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/tableconvertor"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta/table"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/onmetal-apiserver/registry/networking/natgatewayrouting/strategy.go b/onmetal-apiserver/internal/registry/networking/natgatewayrouting/strategy.go
similarity index 93%
rename from onmetal-apiserver/registry/networking/natgatewayrouting/strategy.go
rename to onmetal-apiserver/internal/registry/networking/natgatewayrouting/strategy.go
index ad7f2ca48..078bc2fda 100644
--- a/onmetal-apiserver/registry/networking/natgatewayrouting/strategy.go
+++ b/onmetal-apiserver/internal/registry/networking/natgatewayrouting/strategy.go
@@ -20,9 +20,9 @@ import (
"context"
"fmt"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/apis/networking/validation"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking/validation"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime"
diff --git a/onmetal-apiserver/registry/networking/network/storage/storage.go b/onmetal-apiserver/internal/registry/networking/network/storage/storage.go
similarity index 94%
rename from onmetal-apiserver/registry/networking/network/storage/storage.go
rename to onmetal-apiserver/internal/registry/networking/network/storage/storage.go
index 5d47990ad..43ab3464e 100644
--- a/onmetal-apiserver/registry/networking/network/storage/storage.go
+++ b/onmetal-apiserver/internal/registry/networking/network/storage/storage.go
@@ -17,8 +17,8 @@ package storage
import (
"context"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/networking/network"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/networking/network"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/registry/generic"
diff --git a/onmetal-apiserver/registry/networking/network/storage/tableconvertor.go b/onmetal-apiserver/internal/registry/networking/network/storage/tableconvertor.go
similarity index 96%
rename from onmetal-apiserver/registry/networking/network/storage/tableconvertor.go
rename to onmetal-apiserver/internal/registry/networking/network/storage/tableconvertor.go
index 5562f184a..8f9422f63 100644
--- a/onmetal-apiserver/registry/networking/network/storage/tableconvertor.go
+++ b/onmetal-apiserver/internal/registry/networking/network/storage/tableconvertor.go
@@ -17,7 +17,7 @@ package storage
import (
"context"
- "github.com/onmetal/onmetal-api/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta/table"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/onmetal-apiserver/registry/networking/network/strategy.go b/onmetal-apiserver/internal/registry/networking/network/strategy.go
similarity index 94%
rename from onmetal-apiserver/registry/networking/network/strategy.go
rename to onmetal-apiserver/internal/registry/networking/network/strategy.go
index 963b0ef9f..be0cbd4a7 100644
--- a/onmetal-apiserver/registry/networking/network/strategy.go
+++ b/onmetal-apiserver/internal/registry/networking/network/strategy.go
@@ -18,10 +18,10 @@ import (
"context"
"fmt"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/apis/networking/validation"
"github.com/onmetal/onmetal-api/apiutils/equality"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking/validation"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime"
diff --git a/onmetal-apiserver/registry/networking/networkinterface/storage/storage.go b/onmetal-apiserver/internal/registry/networking/networkinterface/storage/storage.go
similarity index 94%
rename from onmetal-apiserver/registry/networking/networkinterface/storage/storage.go
rename to onmetal-apiserver/internal/registry/networking/networkinterface/storage/storage.go
index 76b5f9b1a..8c676abe2 100644
--- a/onmetal-apiserver/registry/networking/networkinterface/storage/storage.go
+++ b/onmetal-apiserver/internal/registry/networking/networkinterface/storage/storage.go
@@ -17,8 +17,8 @@ package storage
import (
"context"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/networking/networkinterface"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/networking/networkinterface"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/registry/generic"
diff --git a/onmetal-apiserver/registry/networking/networkinterface/storage/tableconvertor.go b/onmetal-apiserver/internal/registry/networking/networkinterface/storage/tableconvertor.go
similarity index 97%
rename from onmetal-apiserver/registry/networking/networkinterface/storage/tableconvertor.go
rename to onmetal-apiserver/internal/registry/networking/networkinterface/storage/tableconvertor.go
index daf9f08ad..2f99399a1 100644
--- a/onmetal-apiserver/registry/networking/networkinterface/storage/tableconvertor.go
+++ b/onmetal-apiserver/internal/registry/networking/networkinterface/storage/tableconvertor.go
@@ -18,7 +18,7 @@ import (
"context"
"strings"
- "github.com/onmetal/onmetal-api/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta/table"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/onmetal-apiserver/registry/networking/networkinterface/strategy.go b/onmetal-apiserver/internal/registry/networking/networkinterface/strategy.go
similarity index 94%
rename from onmetal-apiserver/registry/networking/networkinterface/strategy.go
rename to onmetal-apiserver/internal/registry/networking/networkinterface/strategy.go
index 737e0baaf..8808af8f2 100644
--- a/onmetal-apiserver/registry/networking/networkinterface/strategy.go
+++ b/onmetal-apiserver/internal/registry/networking/networkinterface/strategy.go
@@ -18,9 +18,9 @@ import (
"context"
"fmt"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/apis/networking/validation"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking/validation"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime"
diff --git a/onmetal-apiserver/registry/networking/rest/rest.go b/onmetal-apiserver/internal/registry/networking/rest/rest.go
similarity index 85%
rename from onmetal-apiserver/registry/networking/rest/rest.go
rename to onmetal-apiserver/internal/registry/networking/rest/rest.go
index 635320f6c..155c0c3e0 100644
--- a/onmetal-apiserver/registry/networking/rest/rest.go
+++ b/onmetal-apiserver/internal/registry/networking/rest/rest.go
@@ -15,19 +15,19 @@
package rest
import (
- "github.com/onmetal/onmetal-api/apis/networking"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
- aliasprefixstorage "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/networking/aliasprefix/storage"
- aliasprefixroutingstoratge "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/networking/aliasprefixrouting/storage"
- loadbalancerstorage "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/networking/loadbalancer/storage"
- loadbalancerroutingstorage "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/networking/loadbalancerrouting/storage"
- natgatewaystorage "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/networking/natgateway/storage"
- natgatewayroutingstorage "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/networking/natgatewayrouting/storage"
- networkstorage "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/networking/network/storage"
- networkinterfacestorage "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/networking/networkinterface/storage"
- virtualipstorage "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/networking/virtualip/storage"
- onmetalapiserializer "github.com/onmetal/onmetal-api/onmetal-apiserver/serializer"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ aliasprefixstorage "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/networking/aliasprefix/storage"
+ aliasprefixroutingstoratge "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/networking/aliasprefixrouting/storage"
+ loadbalancerstorage "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/networking/loadbalancer/storage"
+ loadbalancerroutingstorage "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/networking/loadbalancerrouting/storage"
+ natgatewaystorage "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/networking/natgateway/storage"
+ natgatewayroutingstorage "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/networking/natgatewayrouting/storage"
+ networkstorage "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/networking/network/storage"
+ networkinterfacestorage "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/networking/networkinterface/storage"
+ virtualipstorage "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/networking/virtualip/storage"
+ onmetalapiserializer "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/serializer"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apiserver/pkg/registry/generic"
diff --git a/onmetal-apiserver/registry/networking/virtualip/storage/storage.go b/onmetal-apiserver/internal/registry/networking/virtualip/storage/storage.go
similarity index 94%
rename from onmetal-apiserver/registry/networking/virtualip/storage/storage.go
rename to onmetal-apiserver/internal/registry/networking/virtualip/storage/storage.go
index 836e013f4..ed8643fa8 100644
--- a/onmetal-apiserver/registry/networking/virtualip/storage/storage.go
+++ b/onmetal-apiserver/internal/registry/networking/virtualip/storage/storage.go
@@ -17,8 +17,8 @@ package storage
import (
"context"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/networking/virtualip"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/networking/virtualip"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/registry/generic"
diff --git a/onmetal-apiserver/registry/networking/virtualip/storage/tableconvertor.go b/onmetal-apiserver/internal/registry/networking/virtualip/storage/tableconvertor.go
similarity index 96%
rename from onmetal-apiserver/registry/networking/virtualip/storage/tableconvertor.go
rename to onmetal-apiserver/internal/registry/networking/virtualip/storage/tableconvertor.go
index 5ea933d8c..c977d29fa 100644
--- a/onmetal-apiserver/registry/networking/virtualip/storage/tableconvertor.go
+++ b/onmetal-apiserver/internal/registry/networking/virtualip/storage/tableconvertor.go
@@ -17,7 +17,7 @@ package storage
import (
"context"
- "github.com/onmetal/onmetal-api/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta/table"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/onmetal-apiserver/registry/networking/virtualip/strategy.go b/onmetal-apiserver/internal/registry/networking/virtualip/strategy.go
similarity index 94%
rename from onmetal-apiserver/registry/networking/virtualip/strategy.go
rename to onmetal-apiserver/internal/registry/networking/virtualip/strategy.go
index 957ee3b7c..329884ca0 100644
--- a/onmetal-apiserver/registry/networking/virtualip/strategy.go
+++ b/onmetal-apiserver/internal/registry/networking/virtualip/strategy.go
@@ -18,9 +18,9 @@ import (
"context"
"fmt"
- "github.com/onmetal/onmetal-api/apis/networking"
- "github.com/onmetal/onmetal-api/apis/networking/validation"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/networking/validation"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime"
diff --git a/onmetal-apiserver/registry/storage/rest/rest.go b/onmetal-apiserver/internal/registry/storage/rest/rest.go
similarity index 87%
rename from onmetal-apiserver/registry/storage/rest/rest.go
rename to onmetal-apiserver/internal/registry/storage/rest/rest.go
index 9a597ca3d..21daf8392 100644
--- a/onmetal-apiserver/registry/storage/rest/rest.go
+++ b/onmetal-apiserver/internal/registry/storage/rest/rest.go
@@ -15,13 +15,13 @@
package rest
import (
- "github.com/onmetal/onmetal-api/apis/storage"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
- volumestorage "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/storage/volume/storage"
- volumeclassstore "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/storage/volumeclass/storage"
- volumepoolstorage "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/storage/volumepool/storage"
- onmetalapiserializer "github.com/onmetal/onmetal-api/onmetal-apiserver/serializer"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
+ volumestorage "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/storage/volume/storage"
+ volumeclassstore "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/storage/volumeclass/storage"
+ volumepoolstorage "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/storage/volumepool/storage"
+ onmetalapiserializer "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/serializer"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apiserver/pkg/registry/generic"
"k8s.io/apiserver/pkg/registry/rest"
diff --git a/onmetal-apiserver/registry/storage/volume/storage/storage.go b/onmetal-apiserver/internal/registry/storage/volume/storage/storage.go
similarity index 94%
rename from onmetal-apiserver/registry/storage/volume/storage/storage.go
rename to onmetal-apiserver/internal/registry/storage/volume/storage/storage.go
index cc3fee8f7..a0ffea7f3 100644
--- a/onmetal-apiserver/registry/storage/volume/storage/storage.go
+++ b/onmetal-apiserver/internal/registry/storage/volume/storage/storage.go
@@ -17,8 +17,8 @@ package storage
import (
"context"
- "github.com/onmetal/onmetal-api/apis/storage"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/storage/volume"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/storage/volume"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/registry/generic"
diff --git a/onmetal-apiserver/registry/storage/volume/storage/tableconvertor.go b/onmetal-apiserver/internal/registry/storage/volume/storage/tableconvertor.go
similarity index 97%
rename from onmetal-apiserver/registry/storage/volume/storage/tableconvertor.go
rename to onmetal-apiserver/internal/registry/storage/volume/storage/tableconvertor.go
index ceb0abd0b..0af3c8377 100644
--- a/onmetal-apiserver/registry/storage/volume/storage/tableconvertor.go
+++ b/onmetal-apiserver/internal/registry/storage/volume/storage/tableconvertor.go
@@ -17,7 +17,7 @@ package storage
import (
"context"
- "github.com/onmetal/onmetal-api/apis/storage"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta/table"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/onmetal-apiserver/registry/storage/volume/strategy.go b/onmetal-apiserver/internal/registry/storage/volume/strategy.go
similarity index 94%
rename from onmetal-apiserver/registry/storage/volume/strategy.go
rename to onmetal-apiserver/internal/registry/storage/volume/strategy.go
index 1a4b8890f..d9eeffd5e 100644
--- a/onmetal-apiserver/registry/storage/volume/strategy.go
+++ b/onmetal-apiserver/internal/registry/storage/volume/strategy.go
@@ -18,9 +18,9 @@ import (
"context"
"fmt"
- "github.com/onmetal/onmetal-api/apis/storage"
- "github.com/onmetal/onmetal-api/apis/storage/validation"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage/validation"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime"
diff --git a/onmetal-apiserver/registry/storage/volumeclass/storage/storage.go b/onmetal-apiserver/internal/registry/storage/volumeclass/storage/storage.go
similarity index 93%
rename from onmetal-apiserver/registry/storage/volumeclass/storage/storage.go
rename to onmetal-apiserver/internal/registry/storage/volumeclass/storage/storage.go
index 1bea4b1f7..c0a3a2bd7 100644
--- a/onmetal-apiserver/registry/storage/volumeclass/storage/storage.go
+++ b/onmetal-apiserver/internal/registry/storage/volumeclass/storage/storage.go
@@ -15,8 +15,8 @@
package storage
import (
- "github.com/onmetal/onmetal-api/apis/storage"
- registryvolumeclass "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/storage/volumeclass"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
+ registryvolumeclass "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/storage/volumeclass"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/registry/generic"
genericregistry "k8s.io/apiserver/pkg/registry/generic/registry"
diff --git a/onmetal-apiserver/registry/storage/volumeclass/storage/tableconvertor.go b/onmetal-apiserver/internal/registry/storage/volumeclass/storage/tableconvertor.go
similarity index 96%
rename from onmetal-apiserver/registry/storage/volumeclass/storage/tableconvertor.go
rename to onmetal-apiserver/internal/registry/storage/volumeclass/storage/tableconvertor.go
index 9578221f7..387b33c6e 100644
--- a/onmetal-apiserver/registry/storage/volumeclass/storage/tableconvertor.go
+++ b/onmetal-apiserver/internal/registry/storage/volumeclass/storage/tableconvertor.go
@@ -17,7 +17,7 @@ package storage
import (
"context"
- "github.com/onmetal/onmetal-api/apis/storage"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta/table"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/onmetal-apiserver/registry/storage/volumeclass/strategy.go b/onmetal-apiserver/internal/registry/storage/volumeclass/strategy.go
similarity index 92%
rename from onmetal-apiserver/registry/storage/volumeclass/strategy.go
rename to onmetal-apiserver/internal/registry/storage/volumeclass/strategy.go
index 0e67bc7fc..05e3d85ad 100644
--- a/onmetal-apiserver/registry/storage/volumeclass/strategy.go
+++ b/onmetal-apiserver/internal/registry/storage/volumeclass/strategy.go
@@ -18,9 +18,9 @@ import (
"context"
"fmt"
- "github.com/onmetal/onmetal-api/apis/storage"
- "github.com/onmetal/onmetal-api/apis/storage/validation"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage/validation"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime"
diff --git a/onmetal-apiserver/registry/storage/volumepool/storage/storage.go b/onmetal-apiserver/internal/registry/storage/volumepool/storage/storage.go
similarity index 94%
rename from onmetal-apiserver/registry/storage/volumepool/storage/storage.go
rename to onmetal-apiserver/internal/registry/storage/volumepool/storage/storage.go
index b19ca81c0..49ce16d37 100644
--- a/onmetal-apiserver/registry/storage/volumepool/storage/storage.go
+++ b/onmetal-apiserver/internal/registry/storage/volumepool/storage/storage.go
@@ -17,8 +17,8 @@ package storage
import (
"context"
- "github.com/onmetal/onmetal-api/apis/storage"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/registry/storage/volumepool"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/registry/storage/volumepool"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/registry/generic"
diff --git a/onmetal-apiserver/registry/storage/volumepool/storage/tableconvertor.go b/onmetal-apiserver/internal/registry/storage/volumepool/storage/tableconvertor.go
similarity index 97%
rename from onmetal-apiserver/registry/storage/volumepool/storage/tableconvertor.go
rename to onmetal-apiserver/internal/registry/storage/volumepool/storage/tableconvertor.go
index e46cbf01f..94f3ca92b 100644
--- a/onmetal-apiserver/registry/storage/volumepool/storage/tableconvertor.go
+++ b/onmetal-apiserver/internal/registry/storage/volumepool/storage/tableconvertor.go
@@ -19,7 +19,7 @@ import (
"sort"
"strings"
- "github.com/onmetal/onmetal-api/apis/storage"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta/table"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/onmetal-apiserver/registry/storage/volumepool/strategy.go b/onmetal-apiserver/internal/registry/storage/volumepool/strategy.go
similarity index 95%
rename from onmetal-apiserver/registry/storage/volumepool/strategy.go
rename to onmetal-apiserver/internal/registry/storage/volumepool/strategy.go
index d9ecded3a..c1616c121 100644
--- a/onmetal-apiserver/registry/storage/volumepool/strategy.go
+++ b/onmetal-apiserver/internal/registry/storage/volumepool/strategy.go
@@ -18,10 +18,10 @@ import (
"context"
"fmt"
- "github.com/onmetal/onmetal-api/apis/storage"
- "github.com/onmetal/onmetal-api/apis/storage/validation"
"github.com/onmetal/onmetal-api/apiutils/equality"
- "github.com/onmetal/onmetal-api/onmetal-apiserver/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/api"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage"
+ "github.com/onmetal/onmetal-api/onmetal-apiserver/internal/apis/storage/validation"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime"
diff --git a/onmetal-apiserver/serializer/serializer.go b/onmetal-apiserver/internal/serializer/serializer.go
similarity index 100%
rename from onmetal-apiserver/serializer/serializer.go
rename to onmetal-apiserver/internal/serializer/serializer.go
diff --git a/onmetal-apiserver/tableconvertor/tableconvertor.go b/onmetal-apiserver/internal/tableconvertor/tableconvertor.go
similarity index 100%
rename from onmetal-apiserver/tableconvertor/tableconvertor.go
rename to onmetal-apiserver/internal/tableconvertor/tableconvertor.go
diff --git a/testutils/validation/validation.go b/onmetal-apiserver/internal/testutils/validation/validation.go
similarity index 100%
rename from testutils/validation/validation.go
rename to onmetal-apiserver/internal/testutils/validation/validation.go
diff --git a/onmetal-controller-manager/client/client.go b/onmetal-controller-manager/client/client.go
index a220e30a1..aa82200ff 100644
--- a/onmetal-controller-manager/client/client.go
+++ b/onmetal-controller-manager/client/client.go
@@ -17,8 +17,8 @@ package client
import (
"context"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
"sigs.k8s.io/controller-runtime/pkg/client"
)
diff --git a/onmetal-controller-manager/controllers/compute/machine_controller.go b/onmetal-controller-manager/controllers/compute/machine_controller.go
index d37f93c9d..f2649976b 100644
--- a/onmetal-controller-manager/controllers/compute/machine_controller.go
+++ b/onmetal-controller-manager/controllers/compute/machine_controller.go
@@ -25,10 +25,10 @@ import (
"github.com/go-logr/logr"
"github.com/onmetal/controller-utils/metautils"
"github.com/onmetal/controller-utils/set"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
onmetalapiclient "github.com/onmetal/onmetal-api/onmetal-controller-manager/client"
onmetalapiclientutils "github.com/onmetal/onmetal-api/onmetal-controller-manager/clientutils"
"github.com/onmetal/onmetal-api/onmetal-controller-manager/controllers/compute/events"
diff --git a/onmetal-controller-manager/controllers/compute/machine_controller_test.go b/onmetal-controller-manager/controllers/compute/machine_controller_test.go
index 91d5ce911..cb3101c6b 100644
--- a/onmetal-controller-manager/controllers/compute/machine_controller_test.go
+++ b/onmetal-controller-manager/controllers/compute/machine_controller_test.go
@@ -17,10 +17,10 @@
package compute
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
"github.com/onmetal/onmetal-api/testutils"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
diff --git a/onmetal-controller-manager/controllers/compute/machine_scheduler.go b/onmetal-controller-manager/controllers/compute/machine_scheduler.go
index 65e4b3c07..b080867dd 100644
--- a/onmetal-controller-manager/controllers/compute/machine_scheduler.go
+++ b/onmetal-controller-manager/controllers/compute/machine_scheduler.go
@@ -34,8 +34,8 @@ import (
"sigs.k8s.io/controller-runtime/pkg/predicate"
"sigs.k8s.io/controller-runtime/pkg/source"
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
)
const (
diff --git a/onmetal-controller-manager/controllers/compute/machine_scheduler_test.go b/onmetal-controller-manager/controllers/compute/machine_scheduler_test.go
index 53584d415..bb5924dcf 100644
--- a/onmetal-controller-manager/controllers/compute/machine_scheduler_test.go
+++ b/onmetal-controller-manager/controllers/compute/machine_scheduler_test.go
@@ -22,8 +22,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"sigs.k8s.io/controller-runtime/pkg/client"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
)
var _ = Describe("MachineScheduler", func() {
diff --git a/onmetal-controller-manager/controllers/compute/machineclass_controller.go b/onmetal-controller-manager/controllers/compute/machineclass_controller.go
index f0a28eefb..07bc9117a 100644
--- a/onmetal-controller-manager/controllers/compute/machineclass_controller.go
+++ b/onmetal-controller-manager/controllers/compute/machineclass_controller.go
@@ -32,7 +32,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/handler"
"sigs.k8s.io/controller-runtime/pkg/source"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
)
// MachineClassReconciler reconciles a MachineClassRef object
diff --git a/onmetal-controller-manager/controllers/compute/machineclass_controller_test.go b/onmetal-controller-manager/controllers/compute/machineclass_controller_test.go
index fc34e1d0c..6f37e0809 100644
--- a/onmetal-controller-manager/controllers/compute/machineclass_controller_test.go
+++ b/onmetal-controller-manager/controllers/compute/machineclass_controller_test.go
@@ -25,7 +25,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"sigs.k8s.io/controller-runtime/pkg/client"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
)
var _ = Describe("machineclass controller", func() {
diff --git a/onmetal-controller-manager/controllers/compute/machinepool_controller.go b/onmetal-controller-manager/controllers/compute/machinepool_controller.go
index 75a25a103..a8f730a42 100644
--- a/onmetal-controller-manager/controllers/compute/machinepool_controller.go
+++ b/onmetal-controller-manager/controllers/compute/machinepool_controller.go
@@ -24,7 +24,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/log"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
)
// MachinePoolReconciler reconciles a MachinePoolRef object
diff --git a/onmetal-controller-manager/controllers/compute/suite_test.go b/onmetal-controller-manager/controllers/compute/suite_test.go
index 57897f4d7..a232fb1c0 100644
--- a/onmetal-controller-manager/controllers/compute/suite_test.go
+++ b/onmetal-controller-manager/controllers/compute/suite_test.go
@@ -21,8 +21,8 @@ import (
"testing"
"time"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
onmetalapiclient "github.com/onmetal/onmetal-api/onmetal-controller-manager/client"
"github.com/onmetal/onmetal-api/onmetal-controller-manager/controllers/networking"
"github.com/onmetal/onmetal-api/onmetal-controller-manager/controllers/storage"
@@ -43,8 +43,8 @@ import (
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
//+kubebuilder:scaffold:imports
)
diff --git a/onmetal-controller-manager/controllers/ipam/ipam.go b/onmetal-controller-manager/controllers/ipam/ipam.go
index 8eb020df6..e9a3c1c7c 100644
--- a/onmetal-controller-manager/controllers/ipam/ipam.go
+++ b/onmetal-controller-manager/controllers/ipam/ipam.go
@@ -17,7 +17,7 @@ package ipam
import (
"context"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
"sigs.k8s.io/controller-runtime/pkg/client"
)
diff --git a/onmetal-controller-manager/controllers/ipam/prefix_controller.go b/onmetal-controller-manager/controllers/ipam/prefix_controller.go
index 601365259..6412bcf96 100644
--- a/onmetal-controller-manager/controllers/ipam/prefix_controller.go
+++ b/onmetal-controller-manager/controllers/ipam/prefix_controller.go
@@ -26,8 +26,8 @@ import (
"github.com/go-logr/logr"
"github.com/onmetal/controller-utils/clientutils"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
"github.com/onmetal/onmetal-api/apiutils/equality"
"go4.org/netipx"
apierrors "k8s.io/apimachinery/pkg/api/errors"
diff --git a/onmetal-controller-manager/controllers/ipam/prefix_controller_test.go b/onmetal-controller-manager/controllers/ipam/prefix_controller_test.go
index b3d43ed72..eaa6e3bbc 100644
--- a/onmetal-controller-manager/controllers/ipam/prefix_controller_test.go
+++ b/onmetal-controller-manager/controllers/ipam/prefix_controller_test.go
@@ -17,8 +17,8 @@ package ipam
import (
"github.com/onmetal/controller-utils/clientutils"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
"github.com/onmetal/onmetal-api/testutils"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
diff --git a/onmetal-controller-manager/controllers/ipam/prefixallocationscheduler_controller.go b/onmetal-controller-manager/controllers/ipam/prefixallocationscheduler_controller.go
index 8299490c6..e39d25651 100644
--- a/onmetal-controller-manager/controllers/ipam/prefixallocationscheduler_controller.go
+++ b/onmetal-controller-manager/controllers/ipam/prefixallocationscheduler_controller.go
@@ -20,7 +20,7 @@ import (
"math/rand"
"github.com/go-logr/logr"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
"go4.org/netipx"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/onmetal-controller-manager/controllers/ipam/suite_test.go b/onmetal-controller-manager/controllers/ipam/suite_test.go
index dcd57cab1..b79f7ad44 100644
--- a/onmetal-controller-manager/controllers/ipam/suite_test.go
+++ b/onmetal-controller-manager/controllers/ipam/suite_test.go
@@ -36,7 +36,7 @@ import (
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
//+kubebuilder:scaffold:imports
)
diff --git a/onmetal-controller-manager/controllers/networking/aliasprefix_controller.go b/onmetal-controller-manager/controllers/networking/aliasprefix_controller.go
index 784d5708d..f427462f7 100644
--- a/onmetal-controller-manager/controllers/networking/aliasprefix_controller.go
+++ b/onmetal-controller-manager/controllers/networking/aliasprefix_controller.go
@@ -19,9 +19,9 @@ import (
"fmt"
"github.com/go-logr/logr"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
onmetalapiclientutils "github.com/onmetal/onmetal-api/onmetal-controller-manager/clientutils"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
diff --git a/onmetal-controller-manager/controllers/networking/aliasprefix_controller_test.go b/onmetal-controller-manager/controllers/networking/aliasprefix_controller_test.go
index ff812b04b..17b371e1b 100644
--- a/onmetal-controller-manager/controllers/networking/aliasprefix_controller_test.go
+++ b/onmetal-controller-manager/controllers/networking/aliasprefix_controller_test.go
@@ -16,8 +16,8 @@
package networking
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
"github.com/onmetal/onmetal-api/testutils"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
diff --git a/onmetal-controller-manager/controllers/networking/network_protection_controller.go b/onmetal-controller-manager/controllers/networking/network_protection_controller.go
index 7f381508e..9be5c3e5d 100644
--- a/onmetal-controller-manager/controllers/networking/network_protection_controller.go
+++ b/onmetal-controller-manager/controllers/networking/network_protection_controller.go
@@ -22,7 +22,7 @@ import (
"github.com/go-logr/logr"
"github.com/onmetal/controller-utils/clientutils"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
ctrl "sigs.k8s.io/controller-runtime"
diff --git a/onmetal-controller-manager/controllers/networking/network_protection_controller_test.go b/onmetal-controller-manager/controllers/networking/network_protection_controller_test.go
index 150f8c53a..a26a4579e 100644
--- a/onmetal-controller-manager/controllers/networking/network_protection_controller_test.go
+++ b/onmetal-controller-manager/controllers/networking/network_protection_controller_test.go
@@ -17,8 +17,8 @@
package networking
import (
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
"github.com/onmetal/onmetal-api/testutils"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
diff --git a/onmetal-controller-manager/controllers/networking/networkinterface_controller.go b/onmetal-controller-manager/controllers/networking/networkinterface_controller.go
index 60d634abd..cd271905f 100644
--- a/onmetal-controller-manager/controllers/networking/networkinterface_controller.go
+++ b/onmetal-controller-manager/controllers/networking/networkinterface_controller.go
@@ -21,9 +21,9 @@ import (
"reflect"
"github.com/go-logr/logr"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
onmetalapiclient "github.com/onmetal/onmetal-api/onmetal-controller-manager/client"
onmetalapiclientutils "github.com/onmetal/onmetal-api/onmetal-controller-manager/clientutils"
"github.com/onmetal/onmetal-api/onmetal-controller-manager/controllers/networking/events"
diff --git a/onmetal-controller-manager/controllers/networking/networkinterface_controller_test.go b/onmetal-controller-manager/controllers/networking/networkinterface_controller_test.go
index d01329a04..13178a73c 100644
--- a/onmetal-controller-manager/controllers/networking/networkinterface_controller_test.go
+++ b/onmetal-controller-manager/controllers/networking/networkinterface_controller_test.go
@@ -16,9 +16,9 @@
package networking
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
"github.com/onmetal/onmetal-api/testutils"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
diff --git a/onmetal-controller-manager/controllers/networking/networkinterfacebind_controller.go b/onmetal-controller-manager/controllers/networking/networkinterfacebind_controller.go
index ff61eb43a..d979950d5 100644
--- a/onmetal-controller-manager/controllers/networking/networkinterfacebind_controller.go
+++ b/onmetal-controller-manager/controllers/networking/networkinterfacebind_controller.go
@@ -21,9 +21,9 @@ import (
"time"
"github.com/go-logr/logr"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
onmetalapiclient "github.com/onmetal/onmetal-api/onmetal-controller-manager/client"
"github.com/onmetal/onmetal-api/onmetal-controller-manager/controllers/networking/events"
corev1 "k8s.io/api/core/v1"
diff --git a/onmetal-controller-manager/controllers/networking/networkinterfacebind_controller_test.go b/onmetal-controller-manager/controllers/networking/networkinterfacebind_controller_test.go
index d0f10eb82..a1bbd99f0 100644
--- a/onmetal-controller-manager/controllers/networking/networkinterfacebind_controller_test.go
+++ b/onmetal-controller-manager/controllers/networking/networkinterfacebind_controller_test.go
@@ -16,9 +16,9 @@
package networking
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
"github.com/onmetal/onmetal-api/testutils"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
diff --git a/onmetal-controller-manager/controllers/networking/suite_test.go b/onmetal-controller-manager/controllers/networking/suite_test.go
index b7a98d417..25579c4e2 100644
--- a/onmetal-controller-manager/controllers/networking/suite_test.go
+++ b/onmetal-controller-manager/controllers/networking/suite_test.go
@@ -21,8 +21,8 @@ import (
"testing"
"time"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
onmetalapiclient "github.com/onmetal/onmetal-api/onmetal-controller-manager/client"
"github.com/onmetal/onmetal-api/onmetal-controller-manager/controllers/ipam"
"github.com/onmetal/onmetal-api/testutils/envtestutils"
@@ -40,7 +40,7 @@ import (
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
//+kubebuilder:scaffold:imports
)
diff --git a/onmetal-controller-manager/controllers/networking/virtualip_controller.go b/onmetal-controller-manager/controllers/networking/virtualip_controller.go
index 97e274356..e8700b45c 100644
--- a/onmetal-controller-manager/controllers/networking/virtualip_controller.go
+++ b/onmetal-controller-manager/controllers/networking/virtualip_controller.go
@@ -23,8 +23,8 @@ import (
"time"
"github.com/go-logr/logr"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
onmetalapiclient "github.com/onmetal/onmetal-api/onmetal-controller-manager/client"
"github.com/onmetal/onmetal-api/onmetal-controller-manager/controllers/networking/events"
corev1 "k8s.io/api/core/v1"
diff --git a/onmetal-controller-manager/controllers/networking/virtualip_controller_test.go b/onmetal-controller-manager/controllers/networking/virtualip_controller_test.go
index 518d9106b..22403f145 100644
--- a/onmetal-controller-manager/controllers/networking/virtualip_controller_test.go
+++ b/onmetal-controller-manager/controllers/networking/virtualip_controller_test.go
@@ -16,8 +16,8 @@
package networking
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
"github.com/onmetal/onmetal-api/testutils"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
diff --git a/onmetal-controller-manager/controllers/storage/suite_test.go b/onmetal-controller-manager/controllers/storage/suite_test.go
index 44a6e0c0b..58a653282 100644
--- a/onmetal-controller-manager/controllers/storage/suite_test.go
+++ b/onmetal-controller-manager/controllers/storage/suite_test.go
@@ -22,7 +22,7 @@ import (
"testing"
"time"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
onmetalapiclient "github.com/onmetal/onmetal-api/onmetal-controller-manager/client"
"github.com/onmetal/onmetal-api/testutils/envtestutils"
"github.com/onmetal/onmetal-api/testutils/envtestutils/apiserver"
@@ -33,7 +33,7 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/envtest/komega"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
diff --git a/onmetal-controller-manager/controllers/storage/volume_controller.go b/onmetal-controller-manager/controllers/storage/volume_controller.go
index cf6e2fb14..f47de8ecf 100644
--- a/onmetal-controller-manager/controllers/storage/volume_controller.go
+++ b/onmetal-controller-manager/controllers/storage/volume_controller.go
@@ -23,9 +23,9 @@ import (
"time"
"github.com/go-logr/logr"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
apiequality "github.com/onmetal/onmetal-api/apiutils/equality"
onmetalapiclient "github.com/onmetal/onmetal-api/onmetal-controller-manager/client"
"github.com/onmetal/onmetal-api/onmetal-controller-manager/controllers/storage/events"
diff --git a/onmetal-controller-manager/controllers/storage/volume_controller_test.go b/onmetal-controller-manager/controllers/storage/volume_controller_test.go
index abd29bf28..0c916316a 100644
--- a/onmetal-controller-manager/controllers/storage/volume_controller_test.go
+++ b/onmetal-controller-manager/controllers/storage/volume_controller_test.go
@@ -17,9 +17,9 @@
package storage
import (
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
"github.com/onmetal/onmetal-api/testutils"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
diff --git a/onmetal-controller-manager/controllers/storage/volume_scheduler.go b/onmetal-controller-manager/controllers/storage/volume_scheduler.go
index 94c19d0cf..f40a365f0 100644
--- a/onmetal-controller-manager/controllers/storage/volume_scheduler.go
+++ b/onmetal-controller-manager/controllers/storage/volume_scheduler.go
@@ -32,8 +32,8 @@ import (
"sigs.k8s.io/controller-runtime/pkg/predicate"
"sigs.k8s.io/controller-runtime/pkg/source"
- "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
)
const (
diff --git a/onmetal-controller-manager/controllers/storage/volume_scheduler_test.go b/onmetal-controller-manager/controllers/storage/volume_scheduler_test.go
index e3c607f36..aaa2e8efc 100644
--- a/onmetal-controller-manager/controllers/storage/volume_scheduler_test.go
+++ b/onmetal-controller-manager/controllers/storage/volume_scheduler_test.go
@@ -23,8 +23,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"sigs.k8s.io/controller-runtime/pkg/client"
- commonv1alpha1 "github.com/onmetal/onmetal-api/apis/common/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ commonv1alpha1 "github.com/onmetal/onmetal-api/api/common/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
)
var _ = Describe("VolumeScheduler", func() {
diff --git a/onmetal-controller-manager/controllers/storage/volumeclass_controller.go b/onmetal-controller-manager/controllers/storage/volumeclass_controller.go
index 909b4be1f..193a002b3 100644
--- a/onmetal-controller-manager/controllers/storage/volumeclass_controller.go
+++ b/onmetal-controller-manager/controllers/storage/volumeclass_controller.go
@@ -32,7 +32,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/handler"
"sigs.k8s.io/controller-runtime/pkg/source"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
)
// VolumeClassReconciler reconciles a VolumeClass object
diff --git a/onmetal-controller-manager/controllers/storage/volumeclass_controller_test.go b/onmetal-controller-manager/controllers/storage/volumeclass_controller_test.go
index 0bb46a2a0..b67826cc8 100644
--- a/onmetal-controller-manager/controllers/storage/volumeclass_controller_test.go
+++ b/onmetal-controller-manager/controllers/storage/volumeclass_controller_test.go
@@ -27,7 +27,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"sigs.k8s.io/controller-runtime/pkg/client"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
)
var _ = Describe("VolumeClass controller", func() {
diff --git a/onmetal-controller-manager/controllers/storage/volumepool_controller.go b/onmetal-controller-manager/controllers/storage/volumepool_controller.go
index cfd599ac4..ca3666d1c 100644
--- a/onmetal-controller-manager/controllers/storage/volumepool_controller.go
+++ b/onmetal-controller-manager/controllers/storage/volumepool_controller.go
@@ -24,7 +24,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/log"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
)
// VolumePoolReconciler reconciles a VolumePoolRef object
diff --git a/onmetal-controller-manager/main.go b/onmetal-controller-manager/main.go
index af0b4b84a..420898377 100644
--- a/onmetal-controller-manager/main.go
+++ b/onmetal-controller-manager/main.go
@@ -23,7 +23,7 @@ import (
"os"
"time"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
onmetalapiclient "github.com/onmetal/onmetal-api/onmetal-controller-manager/client"
"github.com/onmetal/onmetal-api/onmetal-controller-manager/controllers/compute"
"github.com/onmetal/onmetal-api/onmetal-controller-manager/controllers/ipam"
@@ -43,9 +43,9 @@ import (
"github.com/onmetal/controller-utils/cmdutils/switches"
- computev1alpha1 "github.com/onmetal/onmetal-api/apis/compute/v1alpha1"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ computev1alpha1 "github.com/onmetal/onmetal-api/api/compute/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
//+kubebuilder:scaffold:imports
)
diff --git a/ori/apis/compute/v1alpha1/api.pb.go b/ori/apis/compute/v1alpha1/api.pb.go
index 7fdfa0f4a..3b6026e8b 100644
--- a/ori/apis/compute/v1alpha1/api.pb.go
+++ b/ori/apis/compute/v1alpha1/api.pb.go
@@ -6,17 +6,18 @@ package v1alpha1
import (
context "context"
fmt "fmt"
+ io "io"
+ math "math"
+ math_bits "math/bits"
+ reflect "reflect"
+ strings "strings"
+
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
- io "io"
- math "math"
- math_bits "math/bits"
- reflect "reflect"
- strings "strings"
)
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/ori/apis/storage/v1alpha1/api.pb.go b/ori/apis/storage/v1alpha1/api.pb.go
index 42e7af35c..71b536bbc 100644
--- a/ori/apis/storage/v1alpha1/api.pb.go
+++ b/ori/apis/storage/v1alpha1/api.pb.go
@@ -6,17 +6,18 @@ package v1alpha1
import (
context "context"
fmt "fmt"
+ io "io"
+ math "math"
+ math_bits "math/bits"
+ reflect "reflect"
+ strings "strings"
+
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
- io "io"
- math "math"
- math_bits "math/bits"
- reflect "reflect"
- strings "strings"
)
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/orictl/cmd/orictl/compute/compute.go b/orictl/cmd/orictl/compute/compute.go
index 6107c02db..7cec6c034 100644
--- a/orictl/cmd/orictl/compute/compute.go
+++ b/orictl/cmd/orictl/compute/compute.go
@@ -19,7 +19,7 @@ import (
"github.com/onmetal/onmetal-api/orictl/cmd/orictl/compute/common"
"github.com/onmetal/onmetal-api/orictl/cmd/orictl/compute/create"
- delete2 "github.com/onmetal/onmetal-api/orictl/cmd/orictl/compute/delete"
+ "github.com/onmetal/onmetal-api/orictl/cmd/orictl/compute/delete"
"github.com/onmetal/onmetal-api/orictl/cmd/orictl/compute/get"
"github.com/onmetal/onmetal-api/orictl/cmd/orictl/compute/update"
"github.com/spf13/cobra"
@@ -52,7 +52,7 @@ func Command(streams common.Streams) *cobra.Command {
cmd.AddCommand(
get.Command(streams, clientFactory),
create.Command(streams, clientFactory),
- delete2.Command(streams, clientFactory),
+ delete.Command(streams, clientFactory),
update.Command(streams, clientFactory),
)
diff --git a/volumepoollet/cmd/volumepoollet/app/app.go b/volumepoollet/cmd/volumepoollet/app/app.go
index 5ce3b6dac..1a0cca0d8 100644
--- a/volumepoollet/cmd/volumepoollet/app/app.go
+++ b/volumepoollet/cmd/volumepoollet/app/app.go
@@ -22,9 +22,9 @@ import (
"time"
"github.com/go-logr/logr"
- ipamv1alpha1 "github.com/onmetal/onmetal-api/apis/ipam/v1alpha1"
- networkingv1alpha1 "github.com/onmetal/onmetal-api/apis/networking/v1alpha1"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ ipamv1alpha1 "github.com/onmetal/onmetal-api/api/ipam/v1alpha1"
+ networkingv1alpha1 "github.com/onmetal/onmetal-api/api/networking/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
ori "github.com/onmetal/onmetal-api/ori/apis/storage/v1alpha1"
"github.com/onmetal/onmetal-api/volumepoollet/controllers"
"github.com/onmetal/onmetal-api/volumepoollet/vcm"
diff --git a/volumepoollet/controllers/volume_controller.go b/volumepoollet/controllers/volume_controller.go
index 912055c87..3b8df04be 100644
--- a/volumepoollet/controllers/volume_controller.go
+++ b/volumepoollet/controllers/volume_controller.go
@@ -22,7 +22,7 @@ import (
"github.com/go-logr/logr"
"github.com/onmetal/controller-utils/clientutils"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
onmetalapiclient "github.com/onmetal/onmetal-api/apiutils/client"
"github.com/onmetal/onmetal-api/apiutils/predicates"
ori "github.com/onmetal/onmetal-api/ori/apis/storage/v1alpha1"
diff --git a/volumepoollet/controllers/volumepool_controller.go b/volumepoollet/controllers/volumepool_controller.go
index 4fb8db48d..4cee48e9f 100644
--- a/volumepoollet/controllers/volumepool_controller.go
+++ b/volumepoollet/controllers/volumepool_controller.go
@@ -20,7 +20,7 @@ import (
"fmt"
"github.com/go-logr/logr"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
ori "github.com/onmetal/onmetal-api/ori/apis/storage/v1alpha1"
"github.com/onmetal/onmetal-api/volumepoollet/vcm"
corev1 "k8s.io/api/core/v1"
diff --git a/volumepoollet/controllers/volumepool_init.go b/volumepoollet/controllers/volumepool_init.go
index 3600adc96..4d36db2c1 100644
--- a/volumepoollet/controllers/volumepool_init.go
+++ b/volumepoollet/controllers/volumepool_init.go
@@ -18,7 +18,7 @@ import (
"context"
"fmt"
- storagev1alpha1 "github.com/onmetal/onmetal-api/apis/storage/v1alpha1"
+ storagev1alpha1 "github.com/onmetal/onmetal-api/api/storage/v1alpha1"
volumepoolletv1alpha1 "github.com/onmetal/onmetal-api/volumepoollet/api/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
ctrl "sigs.k8s.io/controller-runtime"
|