diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 93b84db55..c5b637f2f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,4 +16,5 @@ jobs: - uses: actions/setup-go@v5 with: go-version-file: 'go.mod' - - run: make test + - name: Run make test + run: make test diff --git a/Makefile b/Makefile index d1b68bd39..8949544cd 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ BUCKETBROKER_IMG ?= bucketbroker:latest IRICTL_BUCKET_IMG ?= irictl-bucket:latest # ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary. -ENVTEST_K8S_VERSION = 1.28.0 +ENVTEST_K8S_VERSION = 1.30.3 # Docker image name for the mkdocs based local development setup IMAGE=ironcore/documentation @@ -82,17 +82,10 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust ./hack/replace.sh config/apiserver/rbac/bucketpool_role.yaml 's/manager-role/storage.ironcore.dev:system:bucketpools/g' .PHONY: generate -generate: vgopath models-schema deepcopy-gen client-gen lister-gen informer-gen defaulter-gen conversion-gen openapi-gen applyconfiguration-gen +generate: vgopath models-schema openapi-gen VGOPATH=$(VGOPATH) \ MODELS_SCHEMA=$(MODELS_SCHEMA) \ - 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) \ - APPLYCONFIGURATION_GEN=$(APPLYCONFIGURATION_GEN) \ ./hack/update-codegen.sh .PHONY: proto @@ -355,14 +348,7 @@ 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 -APPLYCONFIGURATION_GEN ?= $(LOCALBIN)/applyconfiguration-gen VGOPATH ?= $(LOCALBIN)/vgopath GEN_CRD_API_REFERENCE_DOCS ?= $(LOCALBIN)/gen-crd-api-reference-docs ADDLICENSE ?= $(LOCALBIN)/addlicense @@ -373,9 +359,8 @@ GOLANGCI_LINT ?= $(LOCALBIN)/golangci-lint ## Tool Versions KUSTOMIZE_VERSION ?= v5.1.1 -CODE_GENERATOR_VERSION ?= v0.29.7 VGOPATH_VERSION ?= v0.1.3 -CONTROLLER_TOOLS_VERSION ?= v0.14.0 +CONTROLLER_TOOLS_VERSION ?= v0.15.0 GEN_CRD_API_REFERENCE_DOCS_VERSION ?= v0.3.0 ADDLICENSE_VERSION ?= v1.1.1 PROTOC_GEN_GOGO_VERSION ?= v1.3.2 @@ -399,45 +384,12 @@ $(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) + test -s $(LOCALBIN)/openapi-gen || GOBIN=$(LOCALBIN) go install k8s.io/kube-openapi/cmd/openapi-gen -.PHONY: applyconfiguration-gen -applyconfiguration-gen: $(APPLYCONFIGURATION_GEN) ## Download applyconfiguration-gen locally if necessary. -$(APPLYCONFIGURATION_GEN): $(LOCALBIN) - test -s $(LOCALBIN)/applyconfiguration-gen || GOBIN=$(LOCALBIN) go install k8s.io/code-generator/cmd/applyconfiguration-gen@$(CODE_GENERATOR_VERSION) .PHONY: vgopath vgopath: $(VGOPATH) ## Download vgopath locally if necessary. diff --git a/api/common/v1alpha1/zz_generated.defaults.go b/api/common/v1alpha1/zz_generated.defaults.go new file mode 100644 index 000000000..17eade5f2 --- /dev/null +++ b/api/common/v1alpha1/zz_generated.defaults.go @@ -0,0 +1,20 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by defaulter-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + runtime "k8s.io/apimachinery/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + return nil +} diff --git a/broker/machinebroker/server/exec.go b/broker/machinebroker/server/exec.go index 4db6c42c8..606337390 100644 --- a/broker/machinebroker/server/exec.go +++ b/broker/machinebroker/server/exec.go @@ -10,8 +10,8 @@ import ( "github.com/go-logr/logr" computev1alpha1 "github.com/ironcore-dev/ironcore/api/compute/v1alpha1" - "github.com/ironcore-dev/ironcore/client-go/ironcore" - ironcoreclientgoscheme "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" + ironcoreclientgoscheme "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" iri "github.com/ironcore-dev/ironcore/iri/apis/machine/v1alpha1" remotecommandserver "github.com/ironcore-dev/ironcore/poollet/machinepoollet/iri/streaming/remotecommand" "k8s.io/client-go/tools/remotecommand" diff --git a/client-go/applyconfigurations/common/v1alpha1/localuidreference.go b/client-go/applyconfigurations/common/v1alpha1/localuidreference.go deleted file mode 100644 index 9cfec2700..000000000 --- a/client-go/applyconfigurations/common/v1alpha1/localuidreference.go +++ /dev/null @@ -1,39 +0,0 @@ -// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors -// SPDX-License-Identifier: Apache-2.0 - -// Code generated by applyconfiguration-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - types "k8s.io/apimachinery/pkg/types" -) - -// LocalUIDReferenceApplyConfiguration represents an declarative configuration of the LocalUIDReference type for use -// with apply. -type LocalUIDReferenceApplyConfiguration struct { - Name *string `json:"name,omitempty"` - UID *types.UID `json:"uid,omitempty"` -} - -// LocalUIDReferenceApplyConfiguration constructs an declarative configuration of the LocalUIDReference type for use with -// apply. -func LocalUIDReference() *LocalUIDReferenceApplyConfiguration { - return &LocalUIDReferenceApplyConfiguration{} -} - -// WithName sets the Name field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Name field is set to the value of the last call. -func (b *LocalUIDReferenceApplyConfiguration) WithName(value string) *LocalUIDReferenceApplyConfiguration { - b.Name = &value - return b -} - -// WithUID sets the UID field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the UID field is set to the value of the last call. -func (b *LocalUIDReferenceApplyConfiguration) WithUID(value types.UID) *LocalUIDReferenceApplyConfiguration { - b.UID = &value - return b -} diff --git a/client-go/applyconfigurations/common/v1alpha1/secretkeyselector.go b/client-go/applyconfigurations/common/v1alpha1/secretkeyselector.go deleted file mode 100644 index 56d29ed17..000000000 --- a/client-go/applyconfigurations/common/v1alpha1/secretkeyselector.go +++ /dev/null @@ -1,35 +0,0 @@ -// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors -// SPDX-License-Identifier: Apache-2.0 - -// Code generated by applyconfiguration-gen. DO NOT EDIT. - -package v1alpha1 - -// SecretKeySelectorApplyConfiguration represents an declarative configuration of the SecretKeySelector type for use -// with apply. -type SecretKeySelectorApplyConfiguration struct { - Name *string `json:"name,omitempty"` - Key *string `json:"key,omitempty"` -} - -// SecretKeySelectorApplyConfiguration constructs an declarative configuration of the SecretKeySelector type for use with -// apply. -func SecretKeySelector() *SecretKeySelectorApplyConfiguration { - return &SecretKeySelectorApplyConfiguration{} -} - -// WithName sets the Name field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Name field is set to the value of the last call. -func (b *SecretKeySelectorApplyConfiguration) WithName(value string) *SecretKeySelectorApplyConfiguration { - b.Name = &value - return b -} - -// WithKey sets the Key field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Key field is set to the value of the last call. -func (b *SecretKeySelectorApplyConfiguration) WithKey(value string) *SecretKeySelectorApplyConfiguration { - b.Key = &value - return b -} diff --git a/client-go/applyconfigurations/common/v1alpha1/taint.go b/client-go/applyconfigurations/common/v1alpha1/taint.go deleted file mode 100644 index 8118fbd59..000000000 --- a/client-go/applyconfigurations/common/v1alpha1/taint.go +++ /dev/null @@ -1,48 +0,0 @@ -// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors -// SPDX-License-Identifier: Apache-2.0 - -// Code generated by applyconfiguration-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - v1alpha1 "github.com/ironcore-dev/ironcore/api/common/v1alpha1" -) - -// TaintApplyConfiguration represents an declarative configuration of the Taint type for use -// with apply. -type TaintApplyConfiguration struct { - Key *string `json:"key,omitempty"` - Value *string `json:"value,omitempty"` - Effect *v1alpha1.TaintEffect `json:"effect,omitempty"` -} - -// TaintApplyConfiguration constructs an declarative configuration of the Taint type for use with -// apply. -func Taint() *TaintApplyConfiguration { - return &TaintApplyConfiguration{} -} - -// WithKey sets the Key field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Key field is set to the value of the last call. -func (b *TaintApplyConfiguration) WithKey(value string) *TaintApplyConfiguration { - b.Key = &value - return b -} - -// WithValue sets the Value field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Value field is set to the value of the last call. -func (b *TaintApplyConfiguration) WithValue(value string) *TaintApplyConfiguration { - b.Value = &value - return b -} - -// WithEffect sets the Effect field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Effect field is set to the value of the last call. -func (b *TaintApplyConfiguration) WithEffect(value v1alpha1.TaintEffect) *TaintApplyConfiguration { - b.Effect = &value - return b -} diff --git a/client-go/applyconfigurations/common/v1alpha1/toleration.go b/client-go/applyconfigurations/common/v1alpha1/toleration.go deleted file mode 100644 index d2e251688..000000000 --- a/client-go/applyconfigurations/common/v1alpha1/toleration.go +++ /dev/null @@ -1,57 +0,0 @@ -// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors -// SPDX-License-Identifier: Apache-2.0 - -// Code generated by applyconfiguration-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - v1alpha1 "github.com/ironcore-dev/ironcore/api/common/v1alpha1" -) - -// TolerationApplyConfiguration represents an declarative configuration of the Toleration type for use -// with apply. -type TolerationApplyConfiguration struct { - Key *string `json:"key,omitempty"` - Operator *v1alpha1.TolerationOperator `json:"operator,omitempty"` - Value *string `json:"value,omitempty"` - Effect *v1alpha1.TaintEffect `json:"effect,omitempty"` -} - -// TolerationApplyConfiguration constructs an declarative configuration of the Toleration type for use with -// apply. -func Toleration() *TolerationApplyConfiguration { - return &TolerationApplyConfiguration{} -} - -// WithKey sets the Key field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Key field is set to the value of the last call. -func (b *TolerationApplyConfiguration) WithKey(value string) *TolerationApplyConfiguration { - b.Key = &value - return b -} - -// WithOperator sets the Operator field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Operator field is set to the value of the last call. -func (b *TolerationApplyConfiguration) WithOperator(value v1alpha1.TolerationOperator) *TolerationApplyConfiguration { - b.Operator = &value - return b -} - -// WithValue sets the Value field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Value field is set to the value of the last call. -func (b *TolerationApplyConfiguration) WithValue(value string) *TolerationApplyConfiguration { - b.Value = &value - return b -} - -// WithEffect sets the Effect field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Effect field is set to the value of the last call. -func (b *TolerationApplyConfiguration) WithEffect(value v1alpha1.TaintEffect) *TolerationApplyConfiguration { - b.Effect = &value - return b -} diff --git a/client-go/applyconfigurations/compute/v1alpha1/machine.go b/client-go/applyconfigurations/compute/v1alpha1/machine.go index b741afa45..0779dee63 100644 --- a/client-go/applyconfigurations/compute/v1alpha1/machine.go +++ b/client-go/applyconfigurations/compute/v1alpha1/machine.go @@ -8,10 +8,10 @@ package v1alpha1 import ( computev1alpha1 "github.com/ironcore-dev/ironcore/api/compute/v1alpha1" internal "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/internal" - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // MachineApplyConfiguration represents an declarative configuration of the Machine type for use diff --git a/client-go/applyconfigurations/compute/v1alpha1/machineclass.go b/client-go/applyconfigurations/compute/v1alpha1/machineclass.go index 3c53d9691..4084da298 100644 --- a/client-go/applyconfigurations/compute/v1alpha1/machineclass.go +++ b/client-go/applyconfigurations/compute/v1alpha1/machineclass.go @@ -9,10 +9,10 @@ import ( computev1alpha1 "github.com/ironcore-dev/ironcore/api/compute/v1alpha1" v1alpha1 "github.com/ironcore-dev/ironcore/api/core/v1alpha1" internal "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/internal" - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // MachineClassApplyConfiguration represents an declarative configuration of the MachineClass type for use diff --git a/client-go/applyconfigurations/compute/v1alpha1/machinepool.go b/client-go/applyconfigurations/compute/v1alpha1/machinepool.go index bd90462ff..cff6ce701 100644 --- a/client-go/applyconfigurations/compute/v1alpha1/machinepool.go +++ b/client-go/applyconfigurations/compute/v1alpha1/machinepool.go @@ -8,10 +8,10 @@ package v1alpha1 import ( computev1alpha1 "github.com/ironcore-dev/ironcore/api/compute/v1alpha1" internal "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/internal" - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // MachinePoolApplyConfiguration represents an declarative configuration of the MachinePool type for use diff --git a/client-go/applyconfigurations/compute/v1alpha1/machinepoolspec.go b/client-go/applyconfigurations/compute/v1alpha1/machinepoolspec.go index f12d0e11d..e690f4111 100644 --- a/client-go/applyconfigurations/compute/v1alpha1/machinepoolspec.go +++ b/client-go/applyconfigurations/compute/v1alpha1/machinepoolspec.go @@ -6,14 +6,14 @@ package v1alpha1 import ( - v1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/common/v1alpha1" + v1alpha1 "github.com/ironcore-dev/ironcore/api/common/v1alpha1" ) // MachinePoolSpecApplyConfiguration represents an declarative configuration of the MachinePoolSpec type for use // with apply. type MachinePoolSpecApplyConfiguration struct { - ProviderID *string `json:"providerID,omitempty"` - Taints []v1alpha1.TaintApplyConfiguration `json:"taints,omitempty"` + ProviderID *string `json:"providerID,omitempty"` + Taints []v1alpha1.Taint `json:"taints,omitempty"` } // MachinePoolSpecApplyConfiguration constructs an declarative configuration of the MachinePoolSpec type for use with @@ -33,12 +33,9 @@ func (b *MachinePoolSpecApplyConfiguration) WithProviderID(value string) *Machin // WithTaints adds the given value to the Taints field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the Taints field. -func (b *MachinePoolSpecApplyConfiguration) WithTaints(values ...*v1alpha1.TaintApplyConfiguration) *MachinePoolSpecApplyConfiguration { +func (b *MachinePoolSpecApplyConfiguration) WithTaints(values ...v1alpha1.Taint) *MachinePoolSpecApplyConfiguration { for i := range values { - if values[i] == nil { - panic("nil value passed to WithTaints") - } - b.Taints = append(b.Taints, *values[i]) + b.Taints = append(b.Taints, values[i]) } return b } diff --git a/client-go/applyconfigurations/compute/v1alpha1/machinespec.go b/client-go/applyconfigurations/compute/v1alpha1/machinespec.go index 0a6037156..891ac0909 100644 --- a/client-go/applyconfigurations/compute/v1alpha1/machinespec.go +++ b/client-go/applyconfigurations/compute/v1alpha1/machinespec.go @@ -6,25 +6,25 @@ package v1alpha1 import ( + commonv1alpha1 "github.com/ironcore-dev/ironcore/api/common/v1alpha1" v1alpha1 "github.com/ironcore-dev/ironcore/api/compute/v1alpha1" - commonv1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/common/v1alpha1" v1 "k8s.io/api/core/v1" ) // MachineSpecApplyConfiguration represents an declarative configuration of the MachineSpec type for use // with apply. type MachineSpecApplyConfiguration struct { - MachineClassRef *v1.LocalObjectReference `json:"machineClassRef,omitempty"` - MachinePoolSelector map[string]string `json:"machinePoolSelector,omitempty"` - MachinePoolRef *v1.LocalObjectReference `json:"machinePoolRef,omitempty"` - Power *v1alpha1.Power `json:"power,omitempty"` - Image *string `json:"image,omitempty"` - ImagePullSecretRef *v1.LocalObjectReference `json:"imagePullSecret,omitempty"` - NetworkInterfaces []NetworkInterfaceApplyConfiguration `json:"networkInterfaces,omitempty"` - Volumes []VolumeApplyConfiguration `json:"volumes,omitempty"` - IgnitionRef *commonv1alpha1.SecretKeySelectorApplyConfiguration `json:"ignitionRef,omitempty"` - EFIVars []EFIVarApplyConfiguration `json:"efiVars,omitempty"` - Tolerations []commonv1alpha1.TolerationApplyConfiguration `json:"tolerations,omitempty"` + MachineClassRef *v1.LocalObjectReference `json:"machineClassRef,omitempty"` + MachinePoolSelector map[string]string `json:"machinePoolSelector,omitempty"` + MachinePoolRef *v1.LocalObjectReference `json:"machinePoolRef,omitempty"` + Power *v1alpha1.Power `json:"power,omitempty"` + Image *string `json:"image,omitempty"` + ImagePullSecretRef *v1.LocalObjectReference `json:"imagePullSecret,omitempty"` + NetworkInterfaces []NetworkInterfaceApplyConfiguration `json:"networkInterfaces,omitempty"` + Volumes []VolumeApplyConfiguration `json:"volumes,omitempty"` + IgnitionRef *commonv1alpha1.SecretKeySelector `json:"ignitionRef,omitempty"` + EFIVars []EFIVarApplyConfiguration `json:"efiVars,omitempty"` + Tolerations []commonv1alpha1.Toleration `json:"tolerations,omitempty"` } // MachineSpecApplyConfiguration constructs an declarative configuration of the MachineSpec type for use with @@ -116,8 +116,8 @@ func (b *MachineSpecApplyConfiguration) WithVolumes(values ...*VolumeApplyConfig // WithIgnitionRef sets the IgnitionRef field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the IgnitionRef field is set to the value of the last call. -func (b *MachineSpecApplyConfiguration) WithIgnitionRef(value *commonv1alpha1.SecretKeySelectorApplyConfiguration) *MachineSpecApplyConfiguration { - b.IgnitionRef = value +func (b *MachineSpecApplyConfiguration) WithIgnitionRef(value commonv1alpha1.SecretKeySelector) *MachineSpecApplyConfiguration { + b.IgnitionRef = &value return b } @@ -137,12 +137,9 @@ func (b *MachineSpecApplyConfiguration) WithEFIVars(values ...*EFIVarApplyConfig // WithTolerations adds the given value to the Tolerations field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the Tolerations field. -func (b *MachineSpecApplyConfiguration) WithTolerations(values ...*commonv1alpha1.TolerationApplyConfiguration) *MachineSpecApplyConfiguration { +func (b *MachineSpecApplyConfiguration) WithTolerations(values ...commonv1alpha1.Toleration) *MachineSpecApplyConfiguration { for i := range values { - if values[i] == nil { - panic("nil value passed to WithTolerations") - } - b.Tolerations = append(b.Tolerations, *values[i]) + b.Tolerations = append(b.Tolerations, values[i]) } return b } diff --git a/client-go/applyconfigurations/core/v1alpha1/objectselector.go b/client-go/applyconfigurations/core/v1alpha1/objectselector.go index 08b4b0be2..f8fa39595 100644 --- a/client-go/applyconfigurations/core/v1alpha1/objectselector.go +++ b/client-go/applyconfigurations/core/v1alpha1/objectselector.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // ObjectSelectorApplyConfiguration represents an declarative configuration of the ObjectSelector type for use diff --git a/client-go/applyconfigurations/core/v1alpha1/resourcequota.go b/client-go/applyconfigurations/core/v1alpha1/resourcequota.go index 57984b839..3cd8af747 100644 --- a/client-go/applyconfigurations/core/v1alpha1/resourcequota.go +++ b/client-go/applyconfigurations/core/v1alpha1/resourcequota.go @@ -8,10 +8,10 @@ package v1alpha1 import ( corev1alpha1 "github.com/ironcore-dev/ironcore/api/core/v1alpha1" internal "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/internal" - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // ResourceQuotaApplyConfiguration represents an declarative configuration of the ResourceQuota type for use diff --git a/client-go/applyconfigurations/internal/internal.go b/client-go/applyconfigurations/internal/internal.go index 39691282b..ddbc611d6 100644 --- a/client-go/applyconfigurations/internal/internal.go +++ b/client-go/applyconfigurations/internal/internal.go @@ -1691,6 +1691,7 @@ var schemaYAML = typed.YAMLObject(`types: - name: name type: scalar: string + default: "" elementRelationship: atomic - name: io.k8s.apimachinery.pkg.api.resource.Quantity scalar: untyped diff --git a/client-go/applyconfigurations/ipam/v1alpha1/prefix.go b/client-go/applyconfigurations/ipam/v1alpha1/prefix.go index c51715fed..89706f75a 100644 --- a/client-go/applyconfigurations/ipam/v1alpha1/prefix.go +++ b/client-go/applyconfigurations/ipam/v1alpha1/prefix.go @@ -8,10 +8,10 @@ package v1alpha1 import ( ipamv1alpha1 "github.com/ironcore-dev/ironcore/api/ipam/v1alpha1" internal "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/internal" - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // PrefixApplyConfiguration represents an declarative configuration of the Prefix type for use diff --git a/client-go/applyconfigurations/ipam/v1alpha1/prefixallocation.go b/client-go/applyconfigurations/ipam/v1alpha1/prefixallocation.go index fb65a5ab3..699c9dfc5 100644 --- a/client-go/applyconfigurations/ipam/v1alpha1/prefixallocation.go +++ b/client-go/applyconfigurations/ipam/v1alpha1/prefixallocation.go @@ -8,10 +8,10 @@ package v1alpha1 import ( ipamv1alpha1 "github.com/ironcore-dev/ironcore/api/ipam/v1alpha1" internal "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/internal" - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // PrefixAllocationApplyConfiguration represents an declarative configuration of the PrefixAllocation type for use diff --git a/client-go/applyconfigurations/ipam/v1alpha1/prefixallocationspec.go b/client-go/applyconfigurations/ipam/v1alpha1/prefixallocationspec.go index f1964e695..674d3f758 100644 --- a/client-go/applyconfigurations/ipam/v1alpha1/prefixallocationspec.go +++ b/client-go/applyconfigurations/ipam/v1alpha1/prefixallocationspec.go @@ -7,8 +7,8 @@ package v1alpha1 import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/common/v1alpha1" - metav1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" v1 "k8s.io/api/core/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // PrefixAllocationSpecApplyConfiguration represents an declarative configuration of the PrefixAllocationSpec type for use diff --git a/client-go/applyconfigurations/ipam/v1alpha1/prefixspec.go b/client-go/applyconfigurations/ipam/v1alpha1/prefixspec.go index 18fc71fc9..2314b2b40 100644 --- a/client-go/applyconfigurations/ipam/v1alpha1/prefixspec.go +++ b/client-go/applyconfigurations/ipam/v1alpha1/prefixspec.go @@ -7,8 +7,8 @@ package v1alpha1 import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/common/v1alpha1" - metav1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" v1 "k8s.io/api/core/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // PrefixSpecApplyConfiguration represents an declarative configuration of the PrefixSpec type for use diff --git a/client-go/applyconfigurations/ipam/v1alpha1/prefixtemplatespec.go b/client-go/applyconfigurations/ipam/v1alpha1/prefixtemplatespec.go index a4d217c09..e9e289df6 100644 --- a/client-go/applyconfigurations/ipam/v1alpha1/prefixtemplatespec.go +++ b/client-go/applyconfigurations/ipam/v1alpha1/prefixtemplatespec.go @@ -6,9 +6,9 @@ package v1alpha1 import ( - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // PrefixTemplateSpecApplyConfiguration represents an declarative configuration of the PrefixTemplateSpec type for use diff --git a/client-go/applyconfigurations/meta/v1/labelselector.go b/client-go/applyconfigurations/meta/v1/labelselector.go deleted file mode 100644 index 0a4ebaa82..000000000 --- a/client-go/applyconfigurations/meta/v1/labelselector.go +++ /dev/null @@ -1,46 +0,0 @@ -// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors -// SPDX-License-Identifier: Apache-2.0 - -// Code generated by applyconfiguration-gen. DO NOT EDIT. - -package v1 - -// LabelSelectorApplyConfiguration represents an declarative configuration of the LabelSelector type for use -// with apply. -type LabelSelectorApplyConfiguration struct { - MatchLabels map[string]string `json:"matchLabels,omitempty"` - MatchExpressions []LabelSelectorRequirementApplyConfiguration `json:"matchExpressions,omitempty"` -} - -// LabelSelectorApplyConfiguration constructs an declarative configuration of the LabelSelector type for use with -// apply. -func LabelSelector() *LabelSelectorApplyConfiguration { - return &LabelSelectorApplyConfiguration{} -} - -// WithMatchLabels puts the entries into the MatchLabels field in the declarative configuration -// and returns the receiver, so that objects can be build by chaining "With" function invocations. -// If called multiple times, the entries provided by each call will be put on the MatchLabels field, -// overwriting an existing map entries in MatchLabels field with the same key. -func (b *LabelSelectorApplyConfiguration) WithMatchLabels(entries map[string]string) *LabelSelectorApplyConfiguration { - if b.MatchLabels == nil && len(entries) > 0 { - b.MatchLabels = make(map[string]string, len(entries)) - } - for k, v := range entries { - b.MatchLabels[k] = v - } - return b -} - -// WithMatchExpressions adds the given value to the MatchExpressions field in the declarative configuration -// and returns the receiver, so that objects can be build by chaining "With" function invocations. -// If called multiple times, values provided by each call will be appended to the MatchExpressions field. -func (b *LabelSelectorApplyConfiguration) WithMatchExpressions(values ...*LabelSelectorRequirementApplyConfiguration) *LabelSelectorApplyConfiguration { - for i := range values { - if values[i] == nil { - panic("nil value passed to WithMatchExpressions") - } - b.MatchExpressions = append(b.MatchExpressions, *values[i]) - } - return b -} diff --git a/client-go/applyconfigurations/meta/v1/labelselectorrequirement.go b/client-go/applyconfigurations/meta/v1/labelselectorrequirement.go deleted file mode 100644 index ce4cbec90..000000000 --- a/client-go/applyconfigurations/meta/v1/labelselectorrequirement.go +++ /dev/null @@ -1,50 +0,0 @@ -// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors -// SPDX-License-Identifier: Apache-2.0 - -// Code generated by applyconfiguration-gen. DO NOT EDIT. - -package v1 - -import ( - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// LabelSelectorRequirementApplyConfiguration represents an declarative configuration of the LabelSelectorRequirement type for use -// with apply. -type LabelSelectorRequirementApplyConfiguration struct { - Key *string `json:"key,omitempty"` - Operator *v1.LabelSelectorOperator `json:"operator,omitempty"` - Values []string `json:"values,omitempty"` -} - -// LabelSelectorRequirementApplyConfiguration constructs an declarative configuration of the LabelSelectorRequirement type for use with -// apply. -func LabelSelectorRequirement() *LabelSelectorRequirementApplyConfiguration { - return &LabelSelectorRequirementApplyConfiguration{} -} - -// WithKey sets the Key field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Key field is set to the value of the last call. -func (b *LabelSelectorRequirementApplyConfiguration) WithKey(value string) *LabelSelectorRequirementApplyConfiguration { - b.Key = &value - return b -} - -// WithOperator sets the Operator field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Operator field is set to the value of the last call. -func (b *LabelSelectorRequirementApplyConfiguration) WithOperator(value v1.LabelSelectorOperator) *LabelSelectorRequirementApplyConfiguration { - b.Operator = &value - return b -} - -// WithValues adds the given value to the Values field in the declarative configuration -// and returns the receiver, so that objects can be build by chaining "With" function invocations. -// If called multiple times, values provided by each call will be appended to the Values field. -func (b *LabelSelectorRequirementApplyConfiguration) WithValues(values ...string) *LabelSelectorRequirementApplyConfiguration { - for i := range values { - b.Values = append(b.Values, values[i]) - } - return b -} diff --git a/client-go/applyconfigurations/meta/v1/managedfieldsentry.go b/client-go/applyconfigurations/meta/v1/managedfieldsentry.go deleted file mode 100644 index e5baa0609..000000000 --- a/client-go/applyconfigurations/meta/v1/managedfieldsentry.go +++ /dev/null @@ -1,84 +0,0 @@ -// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors -// SPDX-License-Identifier: Apache-2.0 - -// Code generated by applyconfiguration-gen. DO NOT EDIT. - -package v1 - -import ( - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// ManagedFieldsEntryApplyConfiguration represents an declarative configuration of the ManagedFieldsEntry type for use -// with apply. -type ManagedFieldsEntryApplyConfiguration struct { - Manager *string `json:"manager,omitempty"` - Operation *v1.ManagedFieldsOperationType `json:"operation,omitempty"` - APIVersion *string `json:"apiVersion,omitempty"` - Time *v1.Time `json:"time,omitempty"` - FieldsType *string `json:"fieldsType,omitempty"` - FieldsV1 *v1.FieldsV1 `json:"fieldsV1,omitempty"` - Subresource *string `json:"subresource,omitempty"` -} - -// ManagedFieldsEntryApplyConfiguration constructs an declarative configuration of the ManagedFieldsEntry type for use with -// apply. -func ManagedFieldsEntry() *ManagedFieldsEntryApplyConfiguration { - return &ManagedFieldsEntryApplyConfiguration{} -} - -// WithManager sets the Manager field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Manager field is set to the value of the last call. -func (b *ManagedFieldsEntryApplyConfiguration) WithManager(value string) *ManagedFieldsEntryApplyConfiguration { - b.Manager = &value - return b -} - -// WithOperation sets the Operation field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Operation field is set to the value of the last call. -func (b *ManagedFieldsEntryApplyConfiguration) WithOperation(value v1.ManagedFieldsOperationType) *ManagedFieldsEntryApplyConfiguration { - b.Operation = &value - return b -} - -// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the APIVersion field is set to the value of the last call. -func (b *ManagedFieldsEntryApplyConfiguration) WithAPIVersion(value string) *ManagedFieldsEntryApplyConfiguration { - b.APIVersion = &value - return b -} - -// WithTime sets the Time field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Time field is set to the value of the last call. -func (b *ManagedFieldsEntryApplyConfiguration) WithTime(value v1.Time) *ManagedFieldsEntryApplyConfiguration { - b.Time = &value - return b -} - -// WithFieldsType sets the FieldsType field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the FieldsType field is set to the value of the last call. -func (b *ManagedFieldsEntryApplyConfiguration) WithFieldsType(value string) *ManagedFieldsEntryApplyConfiguration { - b.FieldsType = &value - return b -} - -// WithFieldsV1 sets the FieldsV1 field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the FieldsV1 field is set to the value of the last call. -func (b *ManagedFieldsEntryApplyConfiguration) WithFieldsV1(value v1.FieldsV1) *ManagedFieldsEntryApplyConfiguration { - b.FieldsV1 = &value - return b -} - -// WithSubresource sets the Subresource field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Subresource field is set to the value of the last call. -func (b *ManagedFieldsEntryApplyConfiguration) WithSubresource(value string) *ManagedFieldsEntryApplyConfiguration { - b.Subresource = &value - return b -} diff --git a/client-go/applyconfigurations/meta/v1/objectmeta.go b/client-go/applyconfigurations/meta/v1/objectmeta.go deleted file mode 100644 index 2bff06c86..000000000 --- a/client-go/applyconfigurations/meta/v1/objectmeta.go +++ /dev/null @@ -1,158 +0,0 @@ -// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors -// SPDX-License-Identifier: Apache-2.0 - -// Code generated by applyconfiguration-gen. DO NOT EDIT. - -package v1 - -import ( - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" -) - -// ObjectMetaApplyConfiguration represents an declarative configuration of the ObjectMeta type for use -// with apply. -type ObjectMetaApplyConfiguration struct { - Name *string `json:"name,omitempty"` - GenerateName *string `json:"generateName,omitempty"` - Namespace *string `json:"namespace,omitempty"` - UID *types.UID `json:"uid,omitempty"` - ResourceVersion *string `json:"resourceVersion,omitempty"` - Generation *int64 `json:"generation,omitempty"` - CreationTimestamp *v1.Time `json:"creationTimestamp,omitempty"` - DeletionTimestamp *v1.Time `json:"deletionTimestamp,omitempty"` - DeletionGracePeriodSeconds *int64 `json:"deletionGracePeriodSeconds,omitempty"` - Labels map[string]string `json:"labels,omitempty"` - Annotations map[string]string `json:"annotations,omitempty"` - OwnerReferences []OwnerReferenceApplyConfiguration `json:"ownerReferences,omitempty"` - Finalizers []string `json:"finalizers,omitempty"` -} - -// ObjectMetaApplyConfiguration constructs an declarative configuration of the ObjectMeta type for use with -// apply. -func ObjectMeta() *ObjectMetaApplyConfiguration { - return &ObjectMetaApplyConfiguration{} -} - -// WithName sets the Name field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Name field is set to the value of the last call. -func (b *ObjectMetaApplyConfiguration) WithName(value string) *ObjectMetaApplyConfiguration { - b.Name = &value - return b -} - -// WithGenerateName sets the GenerateName field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the GenerateName field is set to the value of the last call. -func (b *ObjectMetaApplyConfiguration) WithGenerateName(value string) *ObjectMetaApplyConfiguration { - b.GenerateName = &value - return b -} - -// WithNamespace sets the Namespace field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Namespace field is set to the value of the last call. -func (b *ObjectMetaApplyConfiguration) WithNamespace(value string) *ObjectMetaApplyConfiguration { - b.Namespace = &value - return b -} - -// WithUID sets the UID field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the UID field is set to the value of the last call. -func (b *ObjectMetaApplyConfiguration) WithUID(value types.UID) *ObjectMetaApplyConfiguration { - b.UID = &value - return b -} - -// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the ResourceVersion field is set to the value of the last call. -func (b *ObjectMetaApplyConfiguration) WithResourceVersion(value string) *ObjectMetaApplyConfiguration { - b.ResourceVersion = &value - return b -} - -// WithGeneration sets the Generation field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Generation field is set to the value of the last call. -func (b *ObjectMetaApplyConfiguration) WithGeneration(value int64) *ObjectMetaApplyConfiguration { - b.Generation = &value - return b -} - -// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *ObjectMetaApplyConfiguration) WithCreationTimestamp(value v1.Time) *ObjectMetaApplyConfiguration { - b.CreationTimestamp = &value - return b -} - -// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *ObjectMetaApplyConfiguration) WithDeletionTimestamp(value v1.Time) *ObjectMetaApplyConfiguration { - b.DeletionTimestamp = &value - return b -} - -// WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. -func (b *ObjectMetaApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ObjectMetaApplyConfiguration { - b.DeletionGracePeriodSeconds = &value - return b -} - -// WithLabels puts the entries into the Labels field in the declarative configuration -// and returns the receiver, so that objects can be build by chaining "With" function invocations. -// If called multiple times, the entries provided by each call will be put on the Labels field, -// overwriting an existing map entries in Labels field with the same key. -func (b *ObjectMetaApplyConfiguration) WithLabels(entries map[string]string) *ObjectMetaApplyConfiguration { - if b.Labels == nil && len(entries) > 0 { - b.Labels = make(map[string]string, len(entries)) - } - for k, v := range entries { - b.Labels[k] = v - } - return b -} - -// WithAnnotations puts the entries into the Annotations field in the declarative configuration -// and returns the receiver, so that objects can be build by chaining "With" function invocations. -// If called multiple times, the entries provided by each call will be put on the Annotations field, -// overwriting an existing map entries in Annotations field with the same key. -func (b *ObjectMetaApplyConfiguration) WithAnnotations(entries map[string]string) *ObjectMetaApplyConfiguration { - if b.Annotations == nil && len(entries) > 0 { - b.Annotations = make(map[string]string, len(entries)) - } - for k, v := range entries { - b.Annotations[k] = v - } - return b -} - -// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration -// and returns the receiver, so that objects can be build by chaining "With" function invocations. -// If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *ObjectMetaApplyConfiguration) WithOwnerReferences(values ...*OwnerReferenceApplyConfiguration) *ObjectMetaApplyConfiguration { - for i := range values { - if values[i] == nil { - panic("nil value passed to WithOwnerReferences") - } - b.OwnerReferences = append(b.OwnerReferences, *values[i]) - } - return b -} - -// WithFinalizers adds the given value to the Finalizers field in the declarative configuration -// and returns the receiver, so that objects can be build by chaining "With" function invocations. -// If called multiple times, values provided by each call will be appended to the Finalizers field. -func (b *ObjectMetaApplyConfiguration) WithFinalizers(values ...string) *ObjectMetaApplyConfiguration { - for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) - } - return b -} diff --git a/client-go/applyconfigurations/meta/v1/ownerreference.go b/client-go/applyconfigurations/meta/v1/ownerreference.go deleted file mode 100644 index 089008a39..000000000 --- a/client-go/applyconfigurations/meta/v1/ownerreference.go +++ /dev/null @@ -1,75 +0,0 @@ -// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors -// SPDX-License-Identifier: Apache-2.0 - -// Code generated by applyconfiguration-gen. DO NOT EDIT. - -package v1 - -import ( - types "k8s.io/apimachinery/pkg/types" -) - -// OwnerReferenceApplyConfiguration represents an declarative configuration of the OwnerReference type for use -// with apply. -type OwnerReferenceApplyConfiguration struct { - APIVersion *string `json:"apiVersion,omitempty"` - Kind *string `json:"kind,omitempty"` - Name *string `json:"name,omitempty"` - UID *types.UID `json:"uid,omitempty"` - Controller *bool `json:"controller,omitempty"` - BlockOwnerDeletion *bool `json:"blockOwnerDeletion,omitempty"` -} - -// OwnerReferenceApplyConfiguration constructs an declarative configuration of the OwnerReference type for use with -// apply. -func OwnerReference() *OwnerReferenceApplyConfiguration { - return &OwnerReferenceApplyConfiguration{} -} - -// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the APIVersion field is set to the value of the last call. -func (b *OwnerReferenceApplyConfiguration) WithAPIVersion(value string) *OwnerReferenceApplyConfiguration { - b.APIVersion = &value - return b -} - -// WithKind sets the Kind field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Kind field is set to the value of the last call. -func (b *OwnerReferenceApplyConfiguration) WithKind(value string) *OwnerReferenceApplyConfiguration { - b.Kind = &value - return b -} - -// WithName sets the Name field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Name field is set to the value of the last call. -func (b *OwnerReferenceApplyConfiguration) WithName(value string) *OwnerReferenceApplyConfiguration { - b.Name = &value - return b -} - -// WithUID sets the UID field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the UID field is set to the value of the last call. -func (b *OwnerReferenceApplyConfiguration) WithUID(value types.UID) *OwnerReferenceApplyConfiguration { - b.UID = &value - return b -} - -// WithController sets the Controller field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Controller field is set to the value of the last call. -func (b *OwnerReferenceApplyConfiguration) WithController(value bool) *OwnerReferenceApplyConfiguration { - b.Controller = &value - return b -} - -// WithBlockOwnerDeletion sets the BlockOwnerDeletion field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the BlockOwnerDeletion field is set to the value of the last call. -func (b *OwnerReferenceApplyConfiguration) WithBlockOwnerDeletion(value bool) *OwnerReferenceApplyConfiguration { - b.BlockOwnerDeletion = &value - return b -} diff --git a/client-go/applyconfigurations/meta/v1/typemeta.go b/client-go/applyconfigurations/meta/v1/typemeta.go deleted file mode 100644 index 282cbaa9e..000000000 --- a/client-go/applyconfigurations/meta/v1/typemeta.go +++ /dev/null @@ -1,35 +0,0 @@ -// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors -// SPDX-License-Identifier: Apache-2.0 - -// Code generated by applyconfiguration-gen. DO NOT EDIT. - -package v1 - -// TypeMetaApplyConfiguration represents an declarative configuration of the TypeMeta type for use -// with apply. -type TypeMetaApplyConfiguration struct { - Kind *string `json:"kind,omitempty"` - APIVersion *string `json:"apiVersion,omitempty"` -} - -// TypeMetaApplyConfiguration constructs an declarative configuration of the TypeMeta type for use with -// apply. -func TypeMeta() *TypeMetaApplyConfiguration { - return &TypeMetaApplyConfiguration{} -} - -// WithKind sets the Kind field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Kind field is set to the value of the last call. -func (b *TypeMetaApplyConfiguration) WithKind(value string) *TypeMetaApplyConfiguration { - b.Kind = &value - return b -} - -// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the APIVersion field is set to the value of the last call. -func (b *TypeMetaApplyConfiguration) WithAPIVersion(value string) *TypeMetaApplyConfiguration { - b.APIVersion = &value - return b -} diff --git a/client-go/applyconfigurations/networking/v1alpha1/loadbalancer.go b/client-go/applyconfigurations/networking/v1alpha1/loadbalancer.go index 006793972..264eeda4f 100644 --- a/client-go/applyconfigurations/networking/v1alpha1/loadbalancer.go +++ b/client-go/applyconfigurations/networking/v1alpha1/loadbalancer.go @@ -8,10 +8,10 @@ package v1alpha1 import ( networkingv1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" internal "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/internal" - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // LoadBalancerApplyConfiguration represents an declarative configuration of the LoadBalancer type for use diff --git a/client-go/applyconfigurations/networking/v1alpha1/loadbalancerrouting.go b/client-go/applyconfigurations/networking/v1alpha1/loadbalancerrouting.go index f25dcfce7..8457f177e 100644 --- a/client-go/applyconfigurations/networking/v1alpha1/loadbalancerrouting.go +++ b/client-go/applyconfigurations/networking/v1alpha1/loadbalancerrouting.go @@ -6,13 +6,13 @@ package v1alpha1 import ( + v1alpha1 "github.com/ironcore-dev/ironcore/api/common/v1alpha1" apinetworkingv1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" - v1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/common/v1alpha1" internal "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/internal" - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // LoadBalancerRoutingApplyConfiguration represents an declarative configuration of the LoadBalancerRouting type for use @@ -20,8 +20,8 @@ import ( type LoadBalancerRoutingApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - NetworkRef *v1alpha1.LocalUIDReferenceApplyConfiguration `json:"networkRef,omitempty"` - Destinations []LoadBalancerDestinationApplyConfiguration `json:"destinations,omitempty"` + NetworkRef *v1alpha1.LocalUIDReference `json:"networkRef,omitempty"` + Destinations []LoadBalancerDestinationApplyConfiguration `json:"destinations,omitempty"` } // LoadBalancerRouting constructs an declarative configuration of the LoadBalancerRouting type for use with @@ -232,8 +232,8 @@ func (b *LoadBalancerRoutingApplyConfiguration) ensureObjectMetaApplyConfigurati // WithNetworkRef sets the NetworkRef field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the NetworkRef field is set to the value of the last call. -func (b *LoadBalancerRoutingApplyConfiguration) WithNetworkRef(value *v1alpha1.LocalUIDReferenceApplyConfiguration) *LoadBalancerRoutingApplyConfiguration { - b.NetworkRef = value +func (b *LoadBalancerRoutingApplyConfiguration) WithNetworkRef(value v1alpha1.LocalUIDReference) *LoadBalancerRoutingApplyConfiguration { + b.NetworkRef = &value return b } diff --git a/client-go/applyconfigurations/networking/v1alpha1/loadbalancerspec.go b/client-go/applyconfigurations/networking/v1alpha1/loadbalancerspec.go index ed5f4d93e..f29e26dcf 100644 --- a/client-go/applyconfigurations/networking/v1alpha1/loadbalancerspec.go +++ b/client-go/applyconfigurations/networking/v1alpha1/loadbalancerspec.go @@ -7,8 +7,8 @@ package v1alpha1 import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" - metav1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" v1 "k8s.io/api/core/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // LoadBalancerSpecApplyConfiguration represents an declarative configuration of the LoadBalancerSpec type for use diff --git a/client-go/applyconfigurations/networking/v1alpha1/natgateway.go b/client-go/applyconfigurations/networking/v1alpha1/natgateway.go index 559928274..5cf809b2c 100644 --- a/client-go/applyconfigurations/networking/v1alpha1/natgateway.go +++ b/client-go/applyconfigurations/networking/v1alpha1/natgateway.go @@ -8,10 +8,10 @@ package v1alpha1 import ( networkingv1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" internal "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/internal" - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // NATGatewayApplyConfiguration represents an declarative configuration of the NATGateway type for use diff --git a/client-go/applyconfigurations/networking/v1alpha1/network.go b/client-go/applyconfigurations/networking/v1alpha1/network.go index d4e15e2ab..f29ef5827 100644 --- a/client-go/applyconfigurations/networking/v1alpha1/network.go +++ b/client-go/applyconfigurations/networking/v1alpha1/network.go @@ -8,10 +8,10 @@ package v1alpha1 import ( networkingv1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" internal "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/internal" - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // NetworkApplyConfiguration represents an declarative configuration of the Network type for use diff --git a/client-go/applyconfigurations/networking/v1alpha1/networkinterface.go b/client-go/applyconfigurations/networking/v1alpha1/networkinterface.go index c78b3aec8..0e56e4967 100644 --- a/client-go/applyconfigurations/networking/v1alpha1/networkinterface.go +++ b/client-go/applyconfigurations/networking/v1alpha1/networkinterface.go @@ -8,10 +8,10 @@ package v1alpha1 import ( networkingv1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" internal "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/internal" - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // NetworkInterfaceApplyConfiguration represents an declarative configuration of the NetworkInterface type for use diff --git a/client-go/applyconfigurations/networking/v1alpha1/networkinterfacespec.go b/client-go/applyconfigurations/networking/v1alpha1/networkinterfacespec.go index b149a1c92..bc8fb7327 100644 --- a/client-go/applyconfigurations/networking/v1alpha1/networkinterfacespec.go +++ b/client-go/applyconfigurations/networking/v1alpha1/networkinterfacespec.go @@ -6,21 +6,21 @@ package v1alpha1 import ( - v1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/common/v1alpha1" + v1alpha1 "github.com/ironcore-dev/ironcore/api/common/v1alpha1" v1 "k8s.io/api/core/v1" ) // NetworkInterfaceSpecApplyConfiguration represents an declarative configuration of the NetworkInterfaceSpec type for use // with apply. type NetworkInterfaceSpecApplyConfiguration struct { - ProviderID *string `json:"providerID,omitempty"` - NetworkRef *v1.LocalObjectReference `json:"networkRef,omitempty"` - MachineRef *v1alpha1.LocalUIDReferenceApplyConfiguration `json:"machineRef,omitempty"` - IPFamilies []v1.IPFamily `json:"ipFamilies,omitempty"` - IPs []IPSourceApplyConfiguration `json:"ips,omitempty"` - Prefixes []PrefixSourceApplyConfiguration `json:"prefixes,omitempty"` - VirtualIP *VirtualIPSourceApplyConfiguration `json:"virtualIP,omitempty"` - Attributes map[string]string `json:"attributes,omitempty"` + ProviderID *string `json:"providerID,omitempty"` + NetworkRef *v1.LocalObjectReference `json:"networkRef,omitempty"` + MachineRef *v1alpha1.LocalUIDReference `json:"machineRef,omitempty"` + IPFamilies []v1.IPFamily `json:"ipFamilies,omitempty"` + IPs []IPSourceApplyConfiguration `json:"ips,omitempty"` + Prefixes []PrefixSourceApplyConfiguration `json:"prefixes,omitempty"` + VirtualIP *VirtualIPSourceApplyConfiguration `json:"virtualIP,omitempty"` + Attributes map[string]string `json:"attributes,omitempty"` } // NetworkInterfaceSpecApplyConfiguration constructs an declarative configuration of the NetworkInterfaceSpec type for use with @@ -48,8 +48,8 @@ func (b *NetworkInterfaceSpecApplyConfiguration) WithNetworkRef(value v1.LocalOb // WithMachineRef sets the MachineRef field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the MachineRef field is set to the value of the last call. -func (b *NetworkInterfaceSpecApplyConfiguration) WithMachineRef(value *v1alpha1.LocalUIDReferenceApplyConfiguration) *NetworkInterfaceSpecApplyConfiguration { - b.MachineRef = value +func (b *NetworkInterfaceSpecApplyConfiguration) WithMachineRef(value v1alpha1.LocalUIDReference) *NetworkInterfaceSpecApplyConfiguration { + b.MachineRef = &value return b } diff --git a/client-go/applyconfigurations/networking/v1alpha1/networkinterfacetemplatespec.go b/client-go/applyconfigurations/networking/v1alpha1/networkinterfacetemplatespec.go index 55193c62f..22cfa5105 100644 --- a/client-go/applyconfigurations/networking/v1alpha1/networkinterfacetemplatespec.go +++ b/client-go/applyconfigurations/networking/v1alpha1/networkinterfacetemplatespec.go @@ -6,9 +6,9 @@ package v1alpha1 import ( - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // NetworkInterfaceTemplateSpecApplyConfiguration represents an declarative configuration of the NetworkInterfaceTemplateSpec type for use diff --git a/client-go/applyconfigurations/networking/v1alpha1/networkpolicy.go b/client-go/applyconfigurations/networking/v1alpha1/networkpolicy.go index c2c743dce..be4539058 100644 --- a/client-go/applyconfigurations/networking/v1alpha1/networkpolicy.go +++ b/client-go/applyconfigurations/networking/v1alpha1/networkpolicy.go @@ -8,10 +8,10 @@ package v1alpha1 import ( networkingv1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" internal "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/internal" - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // NetworkPolicyApplyConfiguration represents an declarative configuration of the NetworkPolicy type for use diff --git a/client-go/applyconfigurations/networking/v1alpha1/networkpolicyspec.go b/client-go/applyconfigurations/networking/v1alpha1/networkpolicyspec.go index 82535fb53..78e8feb12 100644 --- a/client-go/applyconfigurations/networking/v1alpha1/networkpolicyspec.go +++ b/client-go/applyconfigurations/networking/v1alpha1/networkpolicyspec.go @@ -7,8 +7,8 @@ package v1alpha1 import ( networkingv1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" - metav1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" v1 "k8s.io/api/core/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // NetworkPolicySpecApplyConfiguration represents an declarative configuration of the NetworkPolicySpec type for use diff --git a/client-go/applyconfigurations/networking/v1alpha1/peeringprefixes.go b/client-go/applyconfigurations/networking/v1alpha1/peeringprefixes.go deleted file mode 100644 index d3c65ae8e..000000000 --- a/client-go/applyconfigurations/networking/v1alpha1/peeringprefixes.go +++ /dev/null @@ -1,48 +0,0 @@ -// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors -// SPDX-License-Identifier: Apache-2.0 - -// Code generated by applyconfiguration-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - v1alpha1 "github.com/ironcore-dev/ironcore/api/common/v1alpha1" -) - -// PeeringPrefixesApplyConfiguration represents an declarative configuration of the PeeringPrefixes type for use -// with apply. -type PeeringPrefixesApplyConfiguration struct { - Name *string `json:"name,omitempty"` - Prefix *v1alpha1.IPPrefix `json:"prefix,omitempty"` - PrefixRef *PeeringPrefixRefApplyConfiguration `json:"prefixRef,omitempty"` -} - -// PeeringPrefixesApplyConfiguration constructs an declarative configuration of the PeeringPrefixes type for use with -// apply. -func PeeringPrefixes() *PeeringPrefixesApplyConfiguration { - return &PeeringPrefixesApplyConfiguration{} -} - -// WithName sets the Name field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Name field is set to the value of the last call. -func (b *PeeringPrefixesApplyConfiguration) WithName(value string) *PeeringPrefixesApplyConfiguration { - b.Name = &value - return b -} - -// WithPrefix sets the Prefix field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Prefix field is set to the value of the last call. -func (b *PeeringPrefixesApplyConfiguration) WithPrefix(value v1alpha1.IPPrefix) *PeeringPrefixesApplyConfiguration { - b.Prefix = &value - return b -} - -// WithPrefixRef sets the PrefixRef field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the PrefixRef field is set to the value of the last call. -func (b *PeeringPrefixesApplyConfiguration) WithPrefixRef(value *PeeringPrefixRefApplyConfiguration) *PeeringPrefixesApplyConfiguration { - b.PrefixRef = value - return b -} diff --git a/client-go/applyconfigurations/networking/v1alpha1/peeringprefixref.go b/client-go/applyconfigurations/networking/v1alpha1/peeringprefixref.go deleted file mode 100644 index 0abae6c3a..000000000 --- a/client-go/applyconfigurations/networking/v1alpha1/peeringprefixref.go +++ /dev/null @@ -1,35 +0,0 @@ -// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors -// SPDX-License-Identifier: Apache-2.0 - -// Code generated by applyconfiguration-gen. DO NOT EDIT. - -package v1alpha1 - -// PeeringPrefixRefApplyConfiguration represents an declarative configuration of the PeeringPrefixRef type for use -// with apply. -type PeeringPrefixRefApplyConfiguration struct { - Namespace *string `json:"namespace,omitempty"` - Name *string `json:"name,omitempty"` -} - -// PeeringPrefixRefApplyConfiguration constructs an declarative configuration of the PeeringPrefixRef type for use with -// apply. -func PeeringPrefixRef() *PeeringPrefixRefApplyConfiguration { - return &PeeringPrefixRefApplyConfiguration{} -} - -// WithNamespace sets the Namespace field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Namespace field is set to the value of the last call. -func (b *PeeringPrefixRefApplyConfiguration) WithNamespace(value string) *PeeringPrefixRefApplyConfiguration { - b.Namespace = &value - return b -} - -// WithName sets the Name field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Name field is set to the value of the last call. -func (b *PeeringPrefixRefApplyConfiguration) WithName(value string) *PeeringPrefixRefApplyConfiguration { - b.Name = &value - return b -} diff --git a/client-go/applyconfigurations/networking/v1alpha1/virtualip.go b/client-go/applyconfigurations/networking/v1alpha1/virtualip.go index 3d7f55995..ae52d8df1 100644 --- a/client-go/applyconfigurations/networking/v1alpha1/virtualip.go +++ b/client-go/applyconfigurations/networking/v1alpha1/virtualip.go @@ -8,10 +8,10 @@ package v1alpha1 import ( networkingv1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" internal "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/internal" - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // VirtualIPApplyConfiguration represents an declarative configuration of the VirtualIP type for use diff --git a/client-go/applyconfigurations/networking/v1alpha1/virtualipspec.go b/client-go/applyconfigurations/networking/v1alpha1/virtualipspec.go index 356fd3831..011a81d27 100644 --- a/client-go/applyconfigurations/networking/v1alpha1/virtualipspec.go +++ b/client-go/applyconfigurations/networking/v1alpha1/virtualipspec.go @@ -6,17 +6,17 @@ package v1alpha1 import ( + commonv1alpha1 "github.com/ironcore-dev/ironcore/api/common/v1alpha1" v1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" - commonv1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/common/v1alpha1" v1 "k8s.io/api/core/v1" ) // VirtualIPSpecApplyConfiguration represents an declarative configuration of the VirtualIPSpec type for use // with apply. type VirtualIPSpecApplyConfiguration struct { - Type *v1alpha1.VirtualIPType `json:"type,omitempty"` - IPFamily *v1.IPFamily `json:"ipFamily,omitempty"` - TargetRef *commonv1alpha1.LocalUIDReferenceApplyConfiguration `json:"targetRef,omitempty"` + Type *v1alpha1.VirtualIPType `json:"type,omitempty"` + IPFamily *v1.IPFamily `json:"ipFamily,omitempty"` + TargetRef *commonv1alpha1.LocalUIDReference `json:"targetRef,omitempty"` } // VirtualIPSpecApplyConfiguration constructs an declarative configuration of the VirtualIPSpec type for use with @@ -44,7 +44,7 @@ func (b *VirtualIPSpecApplyConfiguration) WithIPFamily(value v1.IPFamily) *Virtu // WithTargetRef sets the TargetRef field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the TargetRef field is set to the value of the last call. -func (b *VirtualIPSpecApplyConfiguration) WithTargetRef(value *commonv1alpha1.LocalUIDReferenceApplyConfiguration) *VirtualIPSpecApplyConfiguration { - b.TargetRef = value +func (b *VirtualIPSpecApplyConfiguration) WithTargetRef(value commonv1alpha1.LocalUIDReference) *VirtualIPSpecApplyConfiguration { + b.TargetRef = &value return b } diff --git a/client-go/applyconfigurations/networking/v1alpha1/virtualiptemplatespec.go b/client-go/applyconfigurations/networking/v1alpha1/virtualiptemplatespec.go index f71de33d4..19df598ee 100644 --- a/client-go/applyconfigurations/networking/v1alpha1/virtualiptemplatespec.go +++ b/client-go/applyconfigurations/networking/v1alpha1/virtualiptemplatespec.go @@ -6,9 +6,9 @@ package v1alpha1 import ( - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // VirtualIPTemplateSpecApplyConfiguration represents an declarative configuration of the VirtualIPTemplateSpec type for use diff --git a/client-go/applyconfigurations/storage/v1alpha1/bucket.go b/client-go/applyconfigurations/storage/v1alpha1/bucket.go index 1cbc1d38b..6b7342209 100644 --- a/client-go/applyconfigurations/storage/v1alpha1/bucket.go +++ b/client-go/applyconfigurations/storage/v1alpha1/bucket.go @@ -8,10 +8,10 @@ package v1alpha1 import ( storagev1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" internal "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/internal" - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // BucketApplyConfiguration represents an declarative configuration of the Bucket type for use diff --git a/client-go/applyconfigurations/storage/v1alpha1/bucketclass.go b/client-go/applyconfigurations/storage/v1alpha1/bucketclass.go index 1247f8fb7..738bcc512 100644 --- a/client-go/applyconfigurations/storage/v1alpha1/bucketclass.go +++ b/client-go/applyconfigurations/storage/v1alpha1/bucketclass.go @@ -9,10 +9,10 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/core/v1alpha1" storagev1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" internal "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/internal" - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // BucketClassApplyConfiguration represents an declarative configuration of the BucketClass type for use diff --git a/client-go/applyconfigurations/storage/v1alpha1/bucketpool.go b/client-go/applyconfigurations/storage/v1alpha1/bucketpool.go index 1a765450f..7e7ec7c39 100644 --- a/client-go/applyconfigurations/storage/v1alpha1/bucketpool.go +++ b/client-go/applyconfigurations/storage/v1alpha1/bucketpool.go @@ -8,10 +8,10 @@ package v1alpha1 import ( storagev1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" internal "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/internal" - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // BucketPoolApplyConfiguration represents an declarative configuration of the BucketPool type for use diff --git a/client-go/applyconfigurations/storage/v1alpha1/bucketpoolspec.go b/client-go/applyconfigurations/storage/v1alpha1/bucketpoolspec.go index ed96f396c..1229fca09 100644 --- a/client-go/applyconfigurations/storage/v1alpha1/bucketpoolspec.go +++ b/client-go/applyconfigurations/storage/v1alpha1/bucketpoolspec.go @@ -6,14 +6,14 @@ package v1alpha1 import ( - v1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/common/v1alpha1" + v1alpha1 "github.com/ironcore-dev/ironcore/api/common/v1alpha1" ) // BucketPoolSpecApplyConfiguration represents an declarative configuration of the BucketPoolSpec type for use // with apply. type BucketPoolSpecApplyConfiguration struct { - ProviderID *string `json:"providerID,omitempty"` - Taints []v1alpha1.TaintApplyConfiguration `json:"taints,omitempty"` + ProviderID *string `json:"providerID,omitempty"` + Taints []v1alpha1.Taint `json:"taints,omitempty"` } // BucketPoolSpecApplyConfiguration constructs an declarative configuration of the BucketPoolSpec type for use with @@ -33,12 +33,9 @@ func (b *BucketPoolSpecApplyConfiguration) WithProviderID(value string) *BucketP // WithTaints adds the given value to the Taints field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the Taints field. -func (b *BucketPoolSpecApplyConfiguration) WithTaints(values ...*v1alpha1.TaintApplyConfiguration) *BucketPoolSpecApplyConfiguration { +func (b *BucketPoolSpecApplyConfiguration) WithTaints(values ...v1alpha1.Taint) *BucketPoolSpecApplyConfiguration { for i := range values { - if values[i] == nil { - panic("nil value passed to WithTaints") - } - b.Taints = append(b.Taints, *values[i]) + b.Taints = append(b.Taints, values[i]) } return b } diff --git a/client-go/applyconfigurations/storage/v1alpha1/bucketspec.go b/client-go/applyconfigurations/storage/v1alpha1/bucketspec.go index 61cd00f7b..42934bd4f 100644 --- a/client-go/applyconfigurations/storage/v1alpha1/bucketspec.go +++ b/client-go/applyconfigurations/storage/v1alpha1/bucketspec.go @@ -6,17 +6,17 @@ package v1alpha1 import ( - v1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/common/v1alpha1" + v1alpha1 "github.com/ironcore-dev/ironcore/api/common/v1alpha1" v1 "k8s.io/api/core/v1" ) // BucketSpecApplyConfiguration represents an declarative configuration of the BucketSpec type for use // with apply. type BucketSpecApplyConfiguration struct { - BucketClassRef *v1.LocalObjectReference `json:"bucketClassRef,omitempty"` - BucketPoolSelector map[string]string `json:"bucketPoolSelector,omitempty"` - BucketPoolRef *v1.LocalObjectReference `json:"bucketPoolRef,omitempty"` - Tolerations []v1alpha1.TolerationApplyConfiguration `json:"tolerations,omitempty"` + BucketClassRef *v1.LocalObjectReference `json:"bucketClassRef,omitempty"` + BucketPoolSelector map[string]string `json:"bucketPoolSelector,omitempty"` + BucketPoolRef *v1.LocalObjectReference `json:"bucketPoolRef,omitempty"` + Tolerations []v1alpha1.Toleration `json:"tolerations,omitempty"` } // BucketSpecApplyConfiguration constructs an declarative configuration of the BucketSpec type for use with @@ -58,12 +58,9 @@ func (b *BucketSpecApplyConfiguration) WithBucketPoolRef(value v1.LocalObjectRef // WithTolerations adds the given value to the Tolerations field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the Tolerations field. -func (b *BucketSpecApplyConfiguration) WithTolerations(values ...*v1alpha1.TolerationApplyConfiguration) *BucketSpecApplyConfiguration { +func (b *BucketSpecApplyConfiguration) WithTolerations(values ...v1alpha1.Toleration) *BucketSpecApplyConfiguration { for i := range values { - if values[i] == nil { - panic("nil value passed to WithTolerations") - } - b.Tolerations = append(b.Tolerations, *values[i]) + b.Tolerations = append(b.Tolerations, values[i]) } return b } diff --git a/client-go/applyconfigurations/storage/v1alpha1/volume.go b/client-go/applyconfigurations/storage/v1alpha1/volume.go index 25f6b53b8..34ab8628d 100644 --- a/client-go/applyconfigurations/storage/v1alpha1/volume.go +++ b/client-go/applyconfigurations/storage/v1alpha1/volume.go @@ -8,10 +8,10 @@ package v1alpha1 import ( storagev1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" internal "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/internal" - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // VolumeApplyConfiguration represents an declarative configuration of the Volume type for use diff --git a/client-go/applyconfigurations/storage/v1alpha1/volumeclass.go b/client-go/applyconfigurations/storage/v1alpha1/volumeclass.go index f1eb048aa..6d3810366 100644 --- a/client-go/applyconfigurations/storage/v1alpha1/volumeclass.go +++ b/client-go/applyconfigurations/storage/v1alpha1/volumeclass.go @@ -9,10 +9,10 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/core/v1alpha1" storagev1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" internal "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/internal" - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // VolumeClassApplyConfiguration represents an declarative configuration of the VolumeClass type for use diff --git a/client-go/applyconfigurations/storage/v1alpha1/volumepool.go b/client-go/applyconfigurations/storage/v1alpha1/volumepool.go index 760642712..7cfcfffc3 100644 --- a/client-go/applyconfigurations/storage/v1alpha1/volumepool.go +++ b/client-go/applyconfigurations/storage/v1alpha1/volumepool.go @@ -8,10 +8,10 @@ package v1alpha1 import ( storagev1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" internal "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/internal" - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" managedfields "k8s.io/apimachinery/pkg/util/managedfields" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // VolumePoolApplyConfiguration represents an declarative configuration of the VolumePool type for use diff --git a/client-go/applyconfigurations/storage/v1alpha1/volumepoolspec.go b/client-go/applyconfigurations/storage/v1alpha1/volumepoolspec.go index ea66be7a6..4b637d925 100644 --- a/client-go/applyconfigurations/storage/v1alpha1/volumepoolspec.go +++ b/client-go/applyconfigurations/storage/v1alpha1/volumepoolspec.go @@ -6,14 +6,14 @@ package v1alpha1 import ( - v1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/common/v1alpha1" + v1alpha1 "github.com/ironcore-dev/ironcore/api/common/v1alpha1" ) // VolumePoolSpecApplyConfiguration represents an declarative configuration of the VolumePoolSpec type for use // with apply. type VolumePoolSpecApplyConfiguration struct { - ProviderID *string `json:"providerID,omitempty"` - Taints []v1alpha1.TaintApplyConfiguration `json:"taints,omitempty"` + ProviderID *string `json:"providerID,omitempty"` + Taints []v1alpha1.Taint `json:"taints,omitempty"` } // VolumePoolSpecApplyConfiguration constructs an declarative configuration of the VolumePoolSpec type for use with @@ -33,12 +33,9 @@ func (b *VolumePoolSpecApplyConfiguration) WithProviderID(value string) *VolumeP // WithTaints adds the given value to the Taints field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the Taints field. -func (b *VolumePoolSpecApplyConfiguration) WithTaints(values ...*v1alpha1.TaintApplyConfiguration) *VolumePoolSpecApplyConfiguration { +func (b *VolumePoolSpecApplyConfiguration) WithTaints(values ...v1alpha1.Taint) *VolumePoolSpecApplyConfiguration { for i := range values { - if values[i] == nil { - panic("nil value passed to WithTaints") - } - b.Taints = append(b.Taints, *values[i]) + b.Taints = append(b.Taints, values[i]) } return b } diff --git a/client-go/applyconfigurations/storage/v1alpha1/volumespec.go b/client-go/applyconfigurations/storage/v1alpha1/volumespec.go index 5301921c0..a4081685f 100644 --- a/client-go/applyconfigurations/storage/v1alpha1/volumespec.go +++ b/client-go/applyconfigurations/storage/v1alpha1/volumespec.go @@ -6,24 +6,24 @@ package v1alpha1 import ( + v1alpha1 "github.com/ironcore-dev/ironcore/api/common/v1alpha1" corev1alpha1 "github.com/ironcore-dev/ironcore/api/core/v1alpha1" - v1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/common/v1alpha1" v1 "k8s.io/api/core/v1" ) // VolumeSpecApplyConfiguration represents an declarative configuration of the VolumeSpec type for use // with apply. type VolumeSpecApplyConfiguration struct { - VolumeClassRef *v1.LocalObjectReference `json:"volumeClassRef,omitempty"` - VolumePoolSelector map[string]string `json:"volumePoolSelector,omitempty"` - VolumePoolRef *v1.LocalObjectReference `json:"volumePoolRef,omitempty"` - ClaimRef *v1alpha1.LocalUIDReferenceApplyConfiguration `json:"claimRef,omitempty"` - Resources *corev1alpha1.ResourceList `json:"resources,omitempty"` - Image *string `json:"image,omitempty"` - ImagePullSecretRef *v1.LocalObjectReference `json:"imagePullSecretRef,omitempty"` - Unclaimable *bool `json:"unclaimable,omitempty"` - Tolerations []v1alpha1.TolerationApplyConfiguration `json:"tolerations,omitempty"` - Encryption *VolumeEncryptionApplyConfiguration `json:"encryption,omitempty"` + VolumeClassRef *v1.LocalObjectReference `json:"volumeClassRef,omitempty"` + VolumePoolSelector map[string]string `json:"volumePoolSelector,omitempty"` + VolumePoolRef *v1.LocalObjectReference `json:"volumePoolRef,omitempty"` + ClaimRef *v1alpha1.LocalUIDReference `json:"claimRef,omitempty"` + Resources *corev1alpha1.ResourceList `json:"resources,omitempty"` + Image *string `json:"image,omitempty"` + ImagePullSecretRef *v1.LocalObjectReference `json:"imagePullSecretRef,omitempty"` + Unclaimable *bool `json:"unclaimable,omitempty"` + Tolerations []v1alpha1.Toleration `json:"tolerations,omitempty"` + Encryption *VolumeEncryptionApplyConfiguration `json:"encryption,omitempty"` } // VolumeSpecApplyConfiguration constructs an declarative configuration of the VolumeSpec type for use with @@ -65,8 +65,8 @@ func (b *VolumeSpecApplyConfiguration) WithVolumePoolRef(value v1.LocalObjectRef // WithClaimRef sets the ClaimRef field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the ClaimRef field is set to the value of the last call. -func (b *VolumeSpecApplyConfiguration) WithClaimRef(value *v1alpha1.LocalUIDReferenceApplyConfiguration) *VolumeSpecApplyConfiguration { - b.ClaimRef = value +func (b *VolumeSpecApplyConfiguration) WithClaimRef(value v1alpha1.LocalUIDReference) *VolumeSpecApplyConfiguration { + b.ClaimRef = &value return b } @@ -105,12 +105,9 @@ func (b *VolumeSpecApplyConfiguration) WithUnclaimable(value bool) *VolumeSpecAp // WithTolerations adds the given value to the Tolerations field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the Tolerations field. -func (b *VolumeSpecApplyConfiguration) WithTolerations(values ...*v1alpha1.TolerationApplyConfiguration) *VolumeSpecApplyConfiguration { +func (b *VolumeSpecApplyConfiguration) WithTolerations(values ...v1alpha1.Toleration) *VolumeSpecApplyConfiguration { for i := range values { - if values[i] == nil { - panic("nil value passed to WithTolerations") - } - b.Tolerations = append(b.Tolerations, *values[i]) + b.Tolerations = append(b.Tolerations, values[i]) } return b } diff --git a/client-go/applyconfigurations/storage/v1alpha1/volumetemplatespec.go b/client-go/applyconfigurations/storage/v1alpha1/volumetemplatespec.go index f55a5f298..324150023 100644 --- a/client-go/applyconfigurations/storage/v1alpha1/volumetemplatespec.go +++ b/client-go/applyconfigurations/storage/v1alpha1/volumetemplatespec.go @@ -6,9 +6,9 @@ package v1alpha1 import ( - v1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // VolumeTemplateSpecApplyConfiguration represents an declarative configuration of the VolumeTemplateSpec type for use diff --git a/client-go/applyconfigurations/utils.go b/client-go/applyconfigurations/utils.go index 4c775f14d..3384fc3b6 100644 --- a/client-go/applyconfigurations/utils.go +++ b/client-go/applyconfigurations/utils.go @@ -6,20 +6,16 @@ package applyconfigurations import ( - v1alpha1 "github.com/ironcore-dev/ironcore/api/common/v1alpha1" - computev1alpha1 "github.com/ironcore-dev/ironcore/api/compute/v1alpha1" + v1alpha1 "github.com/ironcore-dev/ironcore/api/compute/v1alpha1" corev1alpha1 "github.com/ironcore-dev/ironcore/api/core/v1alpha1" ipamv1alpha1 "github.com/ironcore-dev/ironcore/api/ipam/v1alpha1" networkingv1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" storagev1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" - commonv1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/common/v1alpha1" - applyconfigurationscomputev1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/compute/v1alpha1" + computev1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/compute/v1alpha1" applyconfigurationscorev1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/core/v1alpha1" applyconfigurationsipamv1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/ipam/v1alpha1" - metav1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/meta/v1" applyconfigurationsnetworkingv1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/networking/v1alpha1" applyconfigurationsstoragev1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/storage/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" schema "k8s.io/apimachinery/pkg/runtime/schema" ) @@ -27,59 +23,49 @@ import ( // apply configuration type exists for the given GroupVersionKind. func ForKind(kind schema.GroupVersionKind) interface{} { switch kind { - // Group=common.ironcore.dev, Version=v1alpha1 - case v1alpha1.SchemeGroupVersion.WithKind("LocalUIDReference"): - return &commonv1alpha1.LocalUIDReferenceApplyConfiguration{} - case v1alpha1.SchemeGroupVersion.WithKind("SecretKeySelector"): - return &commonv1alpha1.SecretKeySelectorApplyConfiguration{} - case v1alpha1.SchemeGroupVersion.WithKind("Taint"): - return &commonv1alpha1.TaintApplyConfiguration{} - case v1alpha1.SchemeGroupVersion.WithKind("Toleration"): - return &commonv1alpha1.TolerationApplyConfiguration{} - - // Group=compute.ironcore.dev, Version=v1alpha1 - case computev1alpha1.SchemeGroupVersion.WithKind("DaemonEndpoint"): - return &applyconfigurationscomputev1alpha1.DaemonEndpointApplyConfiguration{} - case computev1alpha1.SchemeGroupVersion.WithKind("EFIVar"): - return &applyconfigurationscomputev1alpha1.EFIVarApplyConfiguration{} - case computev1alpha1.SchemeGroupVersion.WithKind("EmptyDiskVolumeSource"): - return &applyconfigurationscomputev1alpha1.EmptyDiskVolumeSourceApplyConfiguration{} - case computev1alpha1.SchemeGroupVersion.WithKind("EphemeralNetworkInterfaceSource"): - return &applyconfigurationscomputev1alpha1.EphemeralNetworkInterfaceSourceApplyConfiguration{} - case computev1alpha1.SchemeGroupVersion.WithKind("EphemeralVolumeSource"): - return &applyconfigurationscomputev1alpha1.EphemeralVolumeSourceApplyConfiguration{} - case computev1alpha1.SchemeGroupVersion.WithKind("Machine"): - return &applyconfigurationscomputev1alpha1.MachineApplyConfiguration{} - case computev1alpha1.SchemeGroupVersion.WithKind("MachineClass"): - return &applyconfigurationscomputev1alpha1.MachineClassApplyConfiguration{} - case computev1alpha1.SchemeGroupVersion.WithKind("MachinePool"): - return &applyconfigurationscomputev1alpha1.MachinePoolApplyConfiguration{} - case computev1alpha1.SchemeGroupVersion.WithKind("MachinePoolAddress"): - return &applyconfigurationscomputev1alpha1.MachinePoolAddressApplyConfiguration{} - case computev1alpha1.SchemeGroupVersion.WithKind("MachinePoolCondition"): - return &applyconfigurationscomputev1alpha1.MachinePoolConditionApplyConfiguration{} - case computev1alpha1.SchemeGroupVersion.WithKind("MachinePoolDaemonEndpoints"): - return &applyconfigurationscomputev1alpha1.MachinePoolDaemonEndpointsApplyConfiguration{} - case computev1alpha1.SchemeGroupVersion.WithKind("MachinePoolSpec"): - return &applyconfigurationscomputev1alpha1.MachinePoolSpecApplyConfiguration{} - case computev1alpha1.SchemeGroupVersion.WithKind("MachinePoolStatus"): - return &applyconfigurationscomputev1alpha1.MachinePoolStatusApplyConfiguration{} - case computev1alpha1.SchemeGroupVersion.WithKind("MachineSpec"): - return &applyconfigurationscomputev1alpha1.MachineSpecApplyConfiguration{} - case computev1alpha1.SchemeGroupVersion.WithKind("MachineStatus"): - return &applyconfigurationscomputev1alpha1.MachineStatusApplyConfiguration{} - case computev1alpha1.SchemeGroupVersion.WithKind("NetworkInterface"): - return &applyconfigurationscomputev1alpha1.NetworkInterfaceApplyConfiguration{} - case computev1alpha1.SchemeGroupVersion.WithKind("NetworkInterfaceSource"): - return &applyconfigurationscomputev1alpha1.NetworkInterfaceSourceApplyConfiguration{} - case computev1alpha1.SchemeGroupVersion.WithKind("NetworkInterfaceStatus"): - return &applyconfigurationscomputev1alpha1.NetworkInterfaceStatusApplyConfiguration{} - case computev1alpha1.SchemeGroupVersion.WithKind("Volume"): - return &applyconfigurationscomputev1alpha1.VolumeApplyConfiguration{} - case computev1alpha1.SchemeGroupVersion.WithKind("VolumeSource"): - return &applyconfigurationscomputev1alpha1.VolumeSourceApplyConfiguration{} - case computev1alpha1.SchemeGroupVersion.WithKind("VolumeStatus"): - return &applyconfigurationscomputev1alpha1.VolumeStatusApplyConfiguration{} + // Group=compute.ironcore.dev, Version=v1alpha1 + case v1alpha1.SchemeGroupVersion.WithKind("DaemonEndpoint"): + return &computev1alpha1.DaemonEndpointApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("EFIVar"): + return &computev1alpha1.EFIVarApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("EmptyDiskVolumeSource"): + return &computev1alpha1.EmptyDiskVolumeSourceApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("EphemeralNetworkInterfaceSource"): + return &computev1alpha1.EphemeralNetworkInterfaceSourceApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("EphemeralVolumeSource"): + return &computev1alpha1.EphemeralVolumeSourceApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("Machine"): + return &computev1alpha1.MachineApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("MachineClass"): + return &computev1alpha1.MachineClassApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("MachinePool"): + return &computev1alpha1.MachinePoolApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("MachinePoolAddress"): + return &computev1alpha1.MachinePoolAddressApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("MachinePoolCondition"): + return &computev1alpha1.MachinePoolConditionApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("MachinePoolDaemonEndpoints"): + return &computev1alpha1.MachinePoolDaemonEndpointsApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("MachinePoolSpec"): + return &computev1alpha1.MachinePoolSpecApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("MachinePoolStatus"): + return &computev1alpha1.MachinePoolStatusApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("MachineSpec"): + return &computev1alpha1.MachineSpecApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("MachineStatus"): + return &computev1alpha1.MachineStatusApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("NetworkInterface"): + return &computev1alpha1.NetworkInterfaceApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("NetworkInterfaceSource"): + return &computev1alpha1.NetworkInterfaceSourceApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("NetworkInterfaceStatus"): + return &computev1alpha1.NetworkInterfaceStatusApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("Volume"): + return &computev1alpha1.VolumeApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("VolumeSource"): + return &computev1alpha1.VolumeSourceApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("VolumeStatus"): + return &computev1alpha1.VolumeStatusApplyConfiguration{} // Group=core.ironcore.dev, Version=v1alpha1 case corev1alpha1.SchemeGroupVersion.WithKind("ObjectSelector"): @@ -111,20 +97,6 @@ func ForKind(kind schema.GroupVersionKind) interface{} { case ipamv1alpha1.SchemeGroupVersion.WithKind("PrefixTemplateSpec"): return &applyconfigurationsipamv1alpha1.PrefixTemplateSpecApplyConfiguration{} - // Group=meta.k8s.io, Version=v1 - case v1.SchemeGroupVersion.WithKind("LabelSelector"): - return &metav1.LabelSelectorApplyConfiguration{} - case v1.SchemeGroupVersion.WithKind("LabelSelectorRequirement"): - return &metav1.LabelSelectorRequirementApplyConfiguration{} - case v1.SchemeGroupVersion.WithKind("ManagedFieldsEntry"): - return &metav1.ManagedFieldsEntryApplyConfiguration{} - case v1.SchemeGroupVersion.WithKind("ObjectMeta"): - return &metav1.ObjectMetaApplyConfiguration{} - case v1.SchemeGroupVersion.WithKind("OwnerReference"): - return &metav1.OwnerReferenceApplyConfiguration{} - case v1.SchemeGroupVersion.WithKind("TypeMeta"): - return &metav1.TypeMetaApplyConfiguration{} - // Group=networking.ironcore.dev, Version=v1alpha1 case networkingv1alpha1.SchemeGroupVersion.WithKind("EphemeralPrefixSource"): return &applyconfigurationsnetworkingv1alpha1.EphemeralPrefixSourceApplyConfiguration{} diff --git a/client-go/informers/compute/interface.go b/client-go/informers/externalversions/compute/interface.go similarity index 93% rename from client-go/informers/compute/interface.go rename to client-go/informers/externalversions/compute/interface.go index 9a167e486..4c455e061 100644 --- a/client-go/informers/compute/interface.go +++ b/client-go/informers/externalversions/compute/interface.go @@ -6,8 +6,8 @@ package compute import ( - v1alpha1 "github.com/ironcore-dev/ironcore/client-go/informers/compute/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" + v1alpha1 "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/compute/v1alpha1" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" ) // Interface provides access to each of this group's versions. diff --git a/client-go/informers/compute/v1alpha1/interface.go b/client-go/informers/externalversions/compute/v1alpha1/interface.go similarity index 97% rename from client-go/informers/compute/v1alpha1/interface.go rename to client-go/informers/externalversions/compute/v1alpha1/interface.go index f03d0e25d..7867e1802 100644 --- a/client-go/informers/compute/v1alpha1/interface.go +++ b/client-go/informers/externalversions/compute/v1alpha1/interface.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" ) // Interface provides access to all the informers in this group version. diff --git a/client-go/informers/compute/v1alpha1/machine.go b/client-go/informers/externalversions/compute/v1alpha1/machine.go similarity index 80% rename from client-go/informers/compute/v1alpha1/machine.go rename to client-go/informers/externalversions/compute/v1alpha1/machine.go index f3c2c9e5a..f11f31af1 100644 --- a/client-go/informers/compute/v1alpha1/machine.go +++ b/client-go/informers/externalversions/compute/v1alpha1/machine.go @@ -10,8 +10,8 @@ import ( time "time" computev1alpha1 "github.com/ironcore-dev/ironcore/api/compute/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1alpha1 "github.com/ironcore-dev/ironcore/client-go/listers/compute/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -35,14 +35,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 ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { +func NewMachineInformer(client versioned.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 ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { +func NewFilteredMachineInformer(client versioned.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) { @@ -64,7 +64,7 @@ func NewFilteredMachineInformer(client ironcore.Interface, namespace string, res ) } -func (f *machineInformer) defaultInformer(client ironcore.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { +func (f *machineInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredMachineInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } diff --git a/client-go/informers/compute/v1alpha1/machineclass.go b/client-go/informers/externalversions/compute/v1alpha1/machineclass.go similarity index 81% rename from client-go/informers/compute/v1alpha1/machineclass.go rename to client-go/informers/externalversions/compute/v1alpha1/machineclass.go index 35c8f7c8f..9fc101ec4 100644 --- a/client-go/informers/compute/v1alpha1/machineclass.go +++ b/client-go/informers/externalversions/compute/v1alpha1/machineclass.go @@ -10,8 +10,8 @@ import ( time "time" computev1alpha1 "github.com/ironcore-dev/ironcore/api/compute/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1alpha1 "github.com/ironcore-dev/ironcore/client-go/listers/compute/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -34,14 +34,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 ironcore.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { +func NewMachineClassInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { return NewFilteredMachineClassInformer(client, 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 ironcore.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { +func NewFilteredMachineClassInformer(client versioned.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) { @@ -63,7 +63,7 @@ func NewFilteredMachineClassInformer(client ironcore.Interface, resyncPeriod tim ) } -func (f *machineClassInformer) defaultInformer(client ironcore.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { +func (f *machineClassInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredMachineClassInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } diff --git a/client-go/informers/compute/v1alpha1/machinepool.go b/client-go/informers/externalversions/compute/v1alpha1/machinepool.go similarity index 81% rename from client-go/informers/compute/v1alpha1/machinepool.go rename to client-go/informers/externalversions/compute/v1alpha1/machinepool.go index 2c2bf6c30..e0bfabfaa 100644 --- a/client-go/informers/compute/v1alpha1/machinepool.go +++ b/client-go/informers/externalversions/compute/v1alpha1/machinepool.go @@ -10,8 +10,8 @@ import ( time "time" computev1alpha1 "github.com/ironcore-dev/ironcore/api/compute/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1alpha1 "github.com/ironcore-dev/ironcore/client-go/listers/compute/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -34,14 +34,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 ironcore.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { +func NewMachinePoolInformer(client versioned.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 ironcore.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { +func NewFilteredMachinePoolInformer(client versioned.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) { @@ -63,7 +63,7 @@ func NewFilteredMachinePoolInformer(client ironcore.Interface, resyncPeriod time ) } -func (f *machinePoolInformer) defaultInformer(client ironcore.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { +func (f *machinePoolInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredMachinePoolInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } diff --git a/client-go/informers/core/interface.go b/client-go/informers/externalversions/core/interface.go similarity index 93% rename from client-go/informers/core/interface.go rename to client-go/informers/externalversions/core/interface.go index 7427bb94f..b3cd2b8e9 100644 --- a/client-go/informers/core/interface.go +++ b/client-go/informers/externalversions/core/interface.go @@ -6,8 +6,8 @@ package core import ( - v1alpha1 "github.com/ironcore-dev/ironcore/client-go/informers/core/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" + v1alpha1 "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/core/v1alpha1" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" ) // Interface provides access to each of this group's versions. diff --git a/client-go/informers/core/v1alpha1/interface.go b/client-go/informers/externalversions/core/v1alpha1/interface.go similarity index 95% rename from client-go/informers/core/v1alpha1/interface.go rename to client-go/informers/externalversions/core/v1alpha1/interface.go index 085b0d3a8..0cca09be4 100644 --- a/client-go/informers/core/v1alpha1/interface.go +++ b/client-go/informers/externalversions/core/v1alpha1/interface.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" ) // Interface provides access to all the informers in this group version. diff --git a/client-go/informers/core/v1alpha1/resourcequota.go b/client-go/informers/externalversions/core/v1alpha1/resourcequota.go similarity index 80% rename from client-go/informers/core/v1alpha1/resourcequota.go rename to client-go/informers/externalversions/core/v1alpha1/resourcequota.go index 39850a955..2032b2758 100644 --- a/client-go/informers/core/v1alpha1/resourcequota.go +++ b/client-go/informers/externalversions/core/v1alpha1/resourcequota.go @@ -10,8 +10,8 @@ import ( time "time" corev1alpha1 "github.com/ironcore-dev/ironcore/api/core/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1alpha1 "github.com/ironcore-dev/ironcore/client-go/listers/core/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -35,14 +35,14 @@ type resourceQuotaInformer struct { // NewResourceQuotaInformer constructs a new informer for ResourceQuota 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 NewResourceQuotaInformer(client ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { +func NewResourceQuotaInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { return NewFilteredResourceQuotaInformer(client, namespace, resyncPeriod, indexers, nil) } // NewFilteredResourceQuotaInformer constructs a new informer for ResourceQuota 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 NewFilteredResourceQuotaInformer(client ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { +func NewFilteredResourceQuotaInformer(client versioned.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) { @@ -64,7 +64,7 @@ func NewFilteredResourceQuotaInformer(client ironcore.Interface, namespace strin ) } -func (f *resourceQuotaInformer) defaultInformer(client ironcore.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { +func (f *resourceQuotaInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredResourceQuotaInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } diff --git a/client-go/informers/factory.go b/client-go/informers/externalversions/factory.go similarity index 89% rename from client-go/informers/factory.go rename to client-go/informers/externalversions/factory.go index 6b2c3b260..6aeec3cd8 100644 --- a/client-go/informers/factory.go +++ b/client-go/informers/externalversions/factory.go @@ -3,20 +3,20 @@ // Code generated by informer-gen. DO NOT EDIT. -package informers +package externalversions import ( reflect "reflect" sync "sync" time "time" - compute "github.com/ironcore-dev/ironcore/client-go/informers/compute" - core "github.com/ironcore-dev/ironcore/client-go/informers/core" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - ipam "github.com/ironcore-dev/ironcore/client-go/informers/ipam" - networking "github.com/ironcore-dev/ironcore/client-go/informers/networking" - storage "github.com/ironcore-dev/ironcore/client-go/informers/storage" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + compute "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/compute" + core "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/core" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + ipam "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/ipam" + networking "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/networking" + storage "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/storage" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -27,7 +27,7 @@ import ( type SharedInformerOption func(*sharedInformerFactory) *sharedInformerFactory type sharedInformerFactory struct { - client ironcore.Interface + client versioned.Interface namespace string tweakListOptions internalinterfaces.TweakListOptionsFunc lock sync.Mutex @@ -81,7 +81,7 @@ func WithTransform(transform cache.TransformFunc) SharedInformerOption { } // NewSharedInformerFactory constructs a new instance of sharedInformerFactory for all namespaces. -func NewSharedInformerFactory(client ironcore.Interface, defaultResync time.Duration) SharedInformerFactory { +func NewSharedInformerFactory(client versioned.Interface, defaultResync time.Duration) SharedInformerFactory { return NewSharedInformerFactoryWithOptions(client, defaultResync) } @@ -89,12 +89,12 @@ func NewSharedInformerFactory(client ironcore.Interface, defaultResync time.Dura // Listers obtained via this SharedInformerFactory will be subject to the same filters // as specified here. // Deprecated: Please use NewSharedInformerFactoryWithOptions instead -func NewFilteredSharedInformerFactory(client ironcore.Interface, defaultResync time.Duration, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) SharedInformerFactory { +func NewFilteredSharedInformerFactory(client versioned.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 ironcore.Interface, defaultResync time.Duration, options ...SharedInformerOption) SharedInformerFactory { +func NewSharedInformerFactoryWithOptions(client versioned.Interface, defaultResync time.Duration, options ...SharedInformerOption) SharedInformerFactory { factory := &sharedInformerFactory{ client: client, namespace: v1.NamespaceAll, diff --git a/client-go/informers/generic.go b/client-go/informers/externalversions/generic.go similarity index 99% rename from client-go/informers/generic.go rename to client-go/informers/externalversions/generic.go index af6242468..3a5b2f3cb 100644 --- a/client-go/informers/generic.go +++ b/client-go/informers/externalversions/generic.go @@ -3,7 +3,7 @@ // Code generated by informer-gen. DO NOT EDIT. -package informers +package externalversions import ( "fmt" diff --git a/client-go/informers/internalinterfaces/factory_interfaces.go b/client-go/informers/externalversions/internalinterfaces/factory_interfaces.go similarity index 73% rename from client-go/informers/internalinterfaces/factory_interfaces.go rename to client-go/informers/externalversions/internalinterfaces/factory_interfaces.go index 01549d367..d778acbe3 100644 --- a/client-go/informers/internalinterfaces/factory_interfaces.go +++ b/client-go/informers/externalversions/internalinterfaces/factory_interfaces.go @@ -8,14 +8,14 @@ package internalinterfaces import ( time "time" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" cache "k8s.io/client-go/tools/cache" ) -// NewInformerFunc takes ironcore.Interface and time.Duration to return a SharedIndexInformer. -type NewInformerFunc func(ironcore.Interface, time.Duration) cache.SharedIndexInformer +// NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer. +type NewInformerFunc func(versioned.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/client-go/informers/ipam/interface.go b/client-go/informers/externalversions/ipam/interface.go similarity index 93% rename from client-go/informers/ipam/interface.go rename to client-go/informers/externalversions/ipam/interface.go index 83d22c936..e7edaab64 100644 --- a/client-go/informers/ipam/interface.go +++ b/client-go/informers/externalversions/ipam/interface.go @@ -6,8 +6,8 @@ package ipam import ( - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - v1alpha1 "github.com/ironcore-dev/ironcore/client-go/informers/ipam/v1alpha1" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/ipam/v1alpha1" ) // Interface provides access to each of this group's versions. diff --git a/client-go/informers/ipam/v1alpha1/interface.go b/client-go/informers/externalversions/ipam/v1alpha1/interface.go similarity index 96% rename from client-go/informers/ipam/v1alpha1/interface.go rename to client-go/informers/externalversions/ipam/v1alpha1/interface.go index f219155be..f8b502c7d 100644 --- a/client-go/informers/ipam/v1alpha1/interface.go +++ b/client-go/informers/externalversions/ipam/v1alpha1/interface.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" ) // Interface provides access to all the informers in this group version. diff --git a/client-go/informers/ipam/v1alpha1/prefix.go b/client-go/informers/externalversions/ipam/v1alpha1/prefix.go similarity index 80% rename from client-go/informers/ipam/v1alpha1/prefix.go rename to client-go/informers/externalversions/ipam/v1alpha1/prefix.go index c7cbe3d3b..b4ba7bbc3 100644 --- a/client-go/informers/ipam/v1alpha1/prefix.go +++ b/client-go/informers/externalversions/ipam/v1alpha1/prefix.go @@ -10,8 +10,8 @@ import ( time "time" ipamv1alpha1 "github.com/ironcore-dev/ironcore/api/ipam/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1alpha1 "github.com/ironcore-dev/ironcore/client-go/listers/ipam/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -35,14 +35,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 ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { +func NewPrefixInformer(client versioned.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 ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { +func NewFilteredPrefixInformer(client versioned.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) { @@ -64,7 +64,7 @@ func NewFilteredPrefixInformer(client ironcore.Interface, namespace string, resy ) } -func (f *prefixInformer) defaultInformer(client ironcore.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { +func (f *prefixInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredPrefixInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } diff --git a/client-go/informers/ipam/v1alpha1/prefixallocation.go b/client-go/informers/externalversions/ipam/v1alpha1/prefixallocation.go similarity index 81% rename from client-go/informers/ipam/v1alpha1/prefixallocation.go rename to client-go/informers/externalversions/ipam/v1alpha1/prefixallocation.go index 23e2f9884..55b2e9805 100644 --- a/client-go/informers/ipam/v1alpha1/prefixallocation.go +++ b/client-go/informers/externalversions/ipam/v1alpha1/prefixallocation.go @@ -10,8 +10,8 @@ import ( time "time" ipamv1alpha1 "github.com/ironcore-dev/ironcore/api/ipam/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1alpha1 "github.com/ironcore-dev/ironcore/client-go/listers/ipam/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -35,14 +35,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 ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { +func NewPrefixAllocationInformer(client versioned.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 ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { +func NewFilteredPrefixAllocationInformer(client versioned.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) { @@ -64,7 +64,7 @@ func NewFilteredPrefixAllocationInformer(client ironcore.Interface, namespace st ) } -func (f *prefixAllocationInformer) defaultInformer(client ironcore.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { +func (f *prefixAllocationInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredPrefixAllocationInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } diff --git a/client-go/informers/networking/interface.go b/client-go/informers/externalversions/networking/interface.go similarity index 92% rename from client-go/informers/networking/interface.go rename to client-go/informers/externalversions/networking/interface.go index bf27968a7..788089347 100644 --- a/client-go/informers/networking/interface.go +++ b/client-go/informers/externalversions/networking/interface.go @@ -6,8 +6,8 @@ package networking import ( - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - v1alpha1 "github.com/ironcore-dev/ironcore/client-go/informers/networking/v1alpha1" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/networking/v1alpha1" ) // Interface provides access to each of this group's versions. diff --git a/client-go/informers/networking/v1alpha1/interface.go b/client-go/informers/externalversions/networking/v1alpha1/interface.go similarity index 98% rename from client-go/informers/networking/v1alpha1/interface.go rename to client-go/informers/externalversions/networking/v1alpha1/interface.go index 27393a22a..0307270c8 100644 --- a/client-go/informers/networking/v1alpha1/interface.go +++ b/client-go/informers/externalversions/networking/v1alpha1/interface.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" ) // Interface provides access to all the informers in this group version. diff --git a/client-go/informers/networking/v1alpha1/loadbalancer.go b/client-go/informers/externalversions/networking/v1alpha1/loadbalancer.go similarity index 81% rename from client-go/informers/networking/v1alpha1/loadbalancer.go rename to client-go/informers/externalversions/networking/v1alpha1/loadbalancer.go index 0967d89ce..e95a39dc1 100644 --- a/client-go/informers/networking/v1alpha1/loadbalancer.go +++ b/client-go/informers/externalversions/networking/v1alpha1/loadbalancer.go @@ -10,8 +10,8 @@ import ( time "time" networkingv1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1alpha1 "github.com/ironcore-dev/ironcore/client-go/listers/networking/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -35,14 +35,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 ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { +func NewLoadBalancerInformer(client versioned.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 ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { +func NewFilteredLoadBalancerInformer(client versioned.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) { @@ -64,7 +64,7 @@ func NewFilteredLoadBalancerInformer(client ironcore.Interface, namespace string ) } -func (f *loadBalancerInformer) defaultInformer(client ironcore.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { +func (f *loadBalancerInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredLoadBalancerInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } diff --git a/client-go/informers/networking/v1alpha1/loadbalancerrouting.go b/client-go/informers/externalversions/networking/v1alpha1/loadbalancerrouting.go similarity index 81% rename from client-go/informers/networking/v1alpha1/loadbalancerrouting.go rename to client-go/informers/externalversions/networking/v1alpha1/loadbalancerrouting.go index 78ead92bf..4b563e62e 100644 --- a/client-go/informers/networking/v1alpha1/loadbalancerrouting.go +++ b/client-go/informers/externalversions/networking/v1alpha1/loadbalancerrouting.go @@ -10,8 +10,8 @@ import ( time "time" networkingv1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1alpha1 "github.com/ironcore-dev/ironcore/client-go/listers/networking/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -35,14 +35,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 ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { +func NewLoadBalancerRoutingInformer(client versioned.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 ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { +func NewFilteredLoadBalancerRoutingInformer(client versioned.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) { @@ -64,7 +64,7 @@ func NewFilteredLoadBalancerRoutingInformer(client ironcore.Interface, namespace ) } -func (f *loadBalancerRoutingInformer) defaultInformer(client ironcore.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { +func (f *loadBalancerRoutingInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredLoadBalancerRoutingInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } diff --git a/client-go/informers/networking/v1alpha1/natgateway.go b/client-go/informers/externalversions/networking/v1alpha1/natgateway.go similarity index 81% rename from client-go/informers/networking/v1alpha1/natgateway.go rename to client-go/informers/externalversions/networking/v1alpha1/natgateway.go index 77d5a5fb3..0bd40fbcd 100644 --- a/client-go/informers/networking/v1alpha1/natgateway.go +++ b/client-go/informers/externalversions/networking/v1alpha1/natgateway.go @@ -10,8 +10,8 @@ import ( time "time" networkingv1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1alpha1 "github.com/ironcore-dev/ironcore/client-go/listers/networking/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -35,14 +35,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 ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { +func NewNATGatewayInformer(client versioned.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 ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { +func NewFilteredNATGatewayInformer(client versioned.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) { @@ -64,7 +64,7 @@ func NewFilteredNATGatewayInformer(client ironcore.Interface, namespace string, ) } -func (f *nATGatewayInformer) defaultInformer(client ironcore.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { +func (f *nATGatewayInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredNATGatewayInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } diff --git a/client-go/informers/networking/v1alpha1/network.go b/client-go/informers/externalversions/networking/v1alpha1/network.go similarity index 80% rename from client-go/informers/networking/v1alpha1/network.go rename to client-go/informers/externalversions/networking/v1alpha1/network.go index 2509c6f26..68a8baeab 100644 --- a/client-go/informers/networking/v1alpha1/network.go +++ b/client-go/informers/externalversions/networking/v1alpha1/network.go @@ -10,8 +10,8 @@ import ( time "time" networkingv1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1alpha1 "github.com/ironcore-dev/ironcore/client-go/listers/networking/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -35,14 +35,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 ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { +func NewNetworkInformer(client versioned.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 ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { +func NewFilteredNetworkInformer(client versioned.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) { @@ -64,7 +64,7 @@ func NewFilteredNetworkInformer(client ironcore.Interface, namespace string, res ) } -func (f *networkInformer) defaultInformer(client ironcore.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { +func (f *networkInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredNetworkInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } diff --git a/client-go/informers/networking/v1alpha1/networkinterface.go b/client-go/informers/externalversions/networking/v1alpha1/networkinterface.go similarity index 81% rename from client-go/informers/networking/v1alpha1/networkinterface.go rename to client-go/informers/externalversions/networking/v1alpha1/networkinterface.go index bf3efb121..07bf8c66b 100644 --- a/client-go/informers/networking/v1alpha1/networkinterface.go +++ b/client-go/informers/externalversions/networking/v1alpha1/networkinterface.go @@ -10,8 +10,8 @@ import ( time "time" networkingv1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1alpha1 "github.com/ironcore-dev/ironcore/client-go/listers/networking/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -35,14 +35,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 ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { +func NewNetworkInterfaceInformer(client versioned.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 ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { +func NewFilteredNetworkInterfaceInformer(client versioned.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) { @@ -64,7 +64,7 @@ func NewFilteredNetworkInterfaceInformer(client ironcore.Interface, namespace st ) } -func (f *networkInterfaceInformer) defaultInformer(client ironcore.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { +func (f *networkInterfaceInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredNetworkInterfaceInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } diff --git a/client-go/informers/networking/v1alpha1/networkpolicy.go b/client-go/informers/externalversions/networking/v1alpha1/networkpolicy.go similarity index 81% rename from client-go/informers/networking/v1alpha1/networkpolicy.go rename to client-go/informers/externalversions/networking/v1alpha1/networkpolicy.go index 310c07a0f..9aaf3881f 100644 --- a/client-go/informers/networking/v1alpha1/networkpolicy.go +++ b/client-go/informers/externalversions/networking/v1alpha1/networkpolicy.go @@ -10,8 +10,8 @@ import ( time "time" networkingv1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1alpha1 "github.com/ironcore-dev/ironcore/client-go/listers/networking/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -35,14 +35,14 @@ type networkPolicyInformer struct { // NewNetworkPolicyInformer constructs a new informer for NetworkPolicy 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 NewNetworkPolicyInformer(client ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { +func NewNetworkPolicyInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { return NewFilteredNetworkPolicyInformer(client, namespace, resyncPeriod, indexers, nil) } // NewFilteredNetworkPolicyInformer constructs a new informer for NetworkPolicy 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 NewFilteredNetworkPolicyInformer(client ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { +func NewFilteredNetworkPolicyInformer(client versioned.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) { @@ -64,7 +64,7 @@ func NewFilteredNetworkPolicyInformer(client ironcore.Interface, namespace strin ) } -func (f *networkPolicyInformer) defaultInformer(client ironcore.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { +func (f *networkPolicyInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredNetworkPolicyInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } diff --git a/client-go/informers/networking/v1alpha1/virtualip.go b/client-go/informers/externalversions/networking/v1alpha1/virtualip.go similarity index 80% rename from client-go/informers/networking/v1alpha1/virtualip.go rename to client-go/informers/externalversions/networking/v1alpha1/virtualip.go index a9a209856..8e811dc80 100644 --- a/client-go/informers/networking/v1alpha1/virtualip.go +++ b/client-go/informers/externalversions/networking/v1alpha1/virtualip.go @@ -10,8 +10,8 @@ import ( time "time" networkingv1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1alpha1 "github.com/ironcore-dev/ironcore/client-go/listers/networking/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -35,14 +35,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 ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { +func NewVirtualIPInformer(client versioned.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 ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { +func NewFilteredVirtualIPInformer(client versioned.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) { @@ -64,7 +64,7 @@ func NewFilteredVirtualIPInformer(client ironcore.Interface, namespace string, r ) } -func (f *virtualIPInformer) defaultInformer(client ironcore.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { +func (f *virtualIPInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredVirtualIPInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } diff --git a/client-go/informers/storage/interface.go b/client-go/informers/externalversions/storage/interface.go similarity index 93% rename from client-go/informers/storage/interface.go rename to client-go/informers/externalversions/storage/interface.go index 932798bbf..30eed63fb 100644 --- a/client-go/informers/storage/interface.go +++ b/client-go/informers/externalversions/storage/interface.go @@ -6,8 +6,8 @@ package storage import ( - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - v1alpha1 "github.com/ironcore-dev/ironcore/client-go/informers/storage/v1alpha1" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/storage/v1alpha1" ) // Interface provides access to each of this group's versions. diff --git a/client-go/informers/storage/v1alpha1/bucket.go b/client-go/informers/externalversions/storage/v1alpha1/bucket.go similarity index 80% rename from client-go/informers/storage/v1alpha1/bucket.go rename to client-go/informers/externalversions/storage/v1alpha1/bucket.go index cceefacbb..4c42e0df0 100644 --- a/client-go/informers/storage/v1alpha1/bucket.go +++ b/client-go/informers/externalversions/storage/v1alpha1/bucket.go @@ -10,8 +10,8 @@ import ( time "time" storagev1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1alpha1 "github.com/ironcore-dev/ironcore/client-go/listers/storage/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -35,14 +35,14 @@ type bucketInformer struct { // NewBucketInformer constructs a new informer for Bucket 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 NewBucketInformer(client ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { +func NewBucketInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { return NewFilteredBucketInformer(client, namespace, resyncPeriod, indexers, nil) } // NewFilteredBucketInformer constructs a new informer for Bucket 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 NewFilteredBucketInformer(client ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { +func NewFilteredBucketInformer(client versioned.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) { @@ -64,7 +64,7 @@ func NewFilteredBucketInformer(client ironcore.Interface, namespace string, resy ) } -func (f *bucketInformer) defaultInformer(client ironcore.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { +func (f *bucketInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredBucketInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } diff --git a/client-go/informers/storage/v1alpha1/bucketclass.go b/client-go/informers/externalversions/storage/v1alpha1/bucketclass.go similarity index 81% rename from client-go/informers/storage/v1alpha1/bucketclass.go rename to client-go/informers/externalversions/storage/v1alpha1/bucketclass.go index 0379f6af1..7e463252a 100644 --- a/client-go/informers/storage/v1alpha1/bucketclass.go +++ b/client-go/informers/externalversions/storage/v1alpha1/bucketclass.go @@ -10,8 +10,8 @@ import ( time "time" storagev1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1alpha1 "github.com/ironcore-dev/ironcore/client-go/listers/storage/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -34,14 +34,14 @@ type bucketClassInformer struct { // NewBucketClassInformer constructs a new informer for BucketClass 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 NewBucketClassInformer(client ironcore.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { +func NewBucketClassInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { return NewFilteredBucketClassInformer(client, resyncPeriod, indexers, nil) } // NewFilteredBucketClassInformer constructs a new informer for BucketClass 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 NewFilteredBucketClassInformer(client ironcore.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { +func NewFilteredBucketClassInformer(client versioned.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) { @@ -63,7 +63,7 @@ func NewFilteredBucketClassInformer(client ironcore.Interface, resyncPeriod time ) } -func (f *bucketClassInformer) defaultInformer(client ironcore.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { +func (f *bucketClassInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredBucketClassInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } diff --git a/client-go/informers/storage/v1alpha1/bucketpool.go b/client-go/informers/externalversions/storage/v1alpha1/bucketpool.go similarity index 81% rename from client-go/informers/storage/v1alpha1/bucketpool.go rename to client-go/informers/externalversions/storage/v1alpha1/bucketpool.go index ccd06de4f..4838c09d9 100644 --- a/client-go/informers/storage/v1alpha1/bucketpool.go +++ b/client-go/informers/externalversions/storage/v1alpha1/bucketpool.go @@ -10,8 +10,8 @@ import ( time "time" storagev1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1alpha1 "github.com/ironcore-dev/ironcore/client-go/listers/storage/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -34,14 +34,14 @@ type bucketPoolInformer struct { // NewBucketPoolInformer constructs a new informer for BucketPool 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 NewBucketPoolInformer(client ironcore.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { +func NewBucketPoolInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { return NewFilteredBucketPoolInformer(client, resyncPeriod, indexers, nil) } // NewFilteredBucketPoolInformer constructs a new informer for BucketPool 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 NewFilteredBucketPoolInformer(client ironcore.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { +func NewFilteredBucketPoolInformer(client versioned.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) { @@ -63,7 +63,7 @@ func NewFilteredBucketPoolInformer(client ironcore.Interface, resyncPeriod time. ) } -func (f *bucketPoolInformer) defaultInformer(client ironcore.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { +func (f *bucketPoolInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredBucketPoolInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } diff --git a/client-go/informers/storage/v1alpha1/interface.go b/client-go/informers/externalversions/storage/v1alpha1/interface.go similarity index 98% rename from client-go/informers/storage/v1alpha1/interface.go rename to client-go/informers/externalversions/storage/v1alpha1/interface.go index ceaa6a8ce..8a9bd878a 100644 --- a/client-go/informers/storage/v1alpha1/interface.go +++ b/client-go/informers/externalversions/storage/v1alpha1/interface.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" ) // Interface provides access to all the informers in this group version. diff --git a/client-go/informers/storage/v1alpha1/volume.go b/client-go/informers/externalversions/storage/v1alpha1/volume.go similarity index 80% rename from client-go/informers/storage/v1alpha1/volume.go rename to client-go/informers/externalversions/storage/v1alpha1/volume.go index 5181f349c..fd190e898 100644 --- a/client-go/informers/storage/v1alpha1/volume.go +++ b/client-go/informers/externalversions/storage/v1alpha1/volume.go @@ -10,8 +10,8 @@ import ( time "time" storagev1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1alpha1 "github.com/ironcore-dev/ironcore/client-go/listers/storage/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -35,14 +35,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 ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { +func NewVolumeInformer(client versioned.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 ironcore.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { +func NewFilteredVolumeInformer(client versioned.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) { @@ -64,7 +64,7 @@ func NewFilteredVolumeInformer(client ironcore.Interface, namespace string, resy ) } -func (f *volumeInformer) defaultInformer(client ironcore.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { +func (f *volumeInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredVolumeInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } diff --git a/client-go/informers/storage/v1alpha1/volumeclass.go b/client-go/informers/externalversions/storage/v1alpha1/volumeclass.go similarity index 81% rename from client-go/informers/storage/v1alpha1/volumeclass.go rename to client-go/informers/externalversions/storage/v1alpha1/volumeclass.go index 22ad05b60..65426e827 100644 --- a/client-go/informers/storage/v1alpha1/volumeclass.go +++ b/client-go/informers/externalversions/storage/v1alpha1/volumeclass.go @@ -10,8 +10,8 @@ import ( time "time" storagev1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1alpha1 "github.com/ironcore-dev/ironcore/client-go/listers/storage/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -34,14 +34,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 ironcore.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { +func NewVolumeClassInformer(client versioned.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 ironcore.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { +func NewFilteredVolumeClassInformer(client versioned.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) { @@ -63,7 +63,7 @@ func NewFilteredVolumeClassInformer(client ironcore.Interface, resyncPeriod time ) } -func (f *volumeClassInformer) defaultInformer(client ironcore.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { +func (f *volumeClassInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredVolumeClassInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } diff --git a/client-go/informers/storage/v1alpha1/volumepool.go b/client-go/informers/externalversions/storage/v1alpha1/volumepool.go similarity index 81% rename from client-go/informers/storage/v1alpha1/volumepool.go rename to client-go/informers/externalversions/storage/v1alpha1/volumepool.go index 132c7c51b..855c2ca0b 100644 --- a/client-go/informers/storage/v1alpha1/volumepool.go +++ b/client-go/informers/externalversions/storage/v1alpha1/volumepool.go @@ -10,8 +10,8 @@ import ( time "time" storagev1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" - internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/internalinterfaces" - ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore" + internalinterfaces "github.com/ironcore-dev/ironcore/client-go/informers/externalversions/internalinterfaces" + versioned "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" v1alpha1 "github.com/ironcore-dev/ironcore/client-go/listers/storage/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -34,14 +34,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 ironcore.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { +func NewVolumePoolInformer(client versioned.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 ironcore.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { +func NewFilteredVolumePoolInformer(client versioned.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) { @@ -63,7 +63,7 @@ func NewFilteredVolumePoolInformer(client ironcore.Interface, resyncPeriod time. ) } -func (f *volumePoolInformer) defaultInformer(client ironcore.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { +func (f *volumePoolInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredVolumePoolInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } diff --git a/client-go/ironcore/clientset.go b/client-go/ironcore/versioned/clientset.go similarity index 96% rename from client-go/ironcore/clientset.go rename to client-go/ironcore/versioned/clientset.go index 0c87678aa..1e50735a7 100644 --- a/client-go/ironcore/clientset.go +++ b/client-go/ironcore/versioned/clientset.go @@ -3,17 +3,17 @@ // Code generated by client-gen. DO NOT EDIT. -package ironcore +package versioned import ( "fmt" "net/http" - computev1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/typed/compute/v1alpha1" - corev1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/typed/core/v1alpha1" - ipamv1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/typed/ipam/v1alpha1" - networkingv1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/typed/networking/v1alpha1" - storagev1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/typed/storage/v1alpha1" + computev1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/typed/compute/v1alpha1" + corev1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/typed/core/v1alpha1" + ipamv1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/typed/ipam/v1alpha1" + networkingv1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/typed/networking/v1alpha1" + storagev1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/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/client-go/ironcore/fake/clientset_generated.go b/client-go/ironcore/versioned/fake/clientset_generated.go similarity index 87% rename from client-go/ironcore/fake/clientset_generated.go rename to client-go/ironcore/versioned/fake/clientset_generated.go index 6e19141b2..0d92cabab 100644 --- a/client-go/ironcore/fake/clientset_generated.go +++ b/client-go/ironcore/versioned/fake/clientset_generated.go @@ -6,17 +6,17 @@ package fake import ( - clientset "github.com/ironcore-dev/ironcore/client-go/ironcore" - computev1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/typed/compute/v1alpha1" - fakecomputev1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/typed/compute/v1alpha1/fake" - corev1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/typed/core/v1alpha1" - fakecorev1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/typed/core/v1alpha1/fake" - ipamv1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/typed/ipam/v1alpha1" - fakeipamv1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/typed/ipam/v1alpha1/fake" - networkingv1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/typed/networking/v1alpha1" - fakenetworkingv1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/typed/networking/v1alpha1/fake" - storagev1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/typed/storage/v1alpha1" - fakestoragev1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/typed/storage/v1alpha1/fake" + clientset "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" + computev1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/typed/compute/v1alpha1" + fakecomputev1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/typed/compute/v1alpha1/fake" + corev1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/typed/core/v1alpha1" + fakecorev1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/typed/core/v1alpha1/fake" + ipamv1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/typed/ipam/v1alpha1" + fakeipamv1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/typed/ipam/v1alpha1/fake" + networkingv1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/typed/networking/v1alpha1" + fakenetworkingv1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/typed/networking/v1alpha1/fake" + storagev1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/typed/storage/v1alpha1" + fakestoragev1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/typed/storage/v1alpha1/fake" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/watch" "k8s.io/client-go/discovery" diff --git a/client-go/ironcore/fake/doc.go b/client-go/ironcore/versioned/fake/doc.go similarity index 100% rename from client-go/ironcore/fake/doc.go rename to client-go/ironcore/versioned/fake/doc.go diff --git a/client-go/ironcore/fake/register.go b/client-go/ironcore/versioned/fake/register.go similarity index 100% rename from client-go/ironcore/fake/register.go rename to client-go/ironcore/versioned/fake/register.go diff --git a/client-go/ironcore/scheme/doc.go b/client-go/ironcore/versioned/scheme/doc.go similarity index 100% rename from client-go/ironcore/scheme/doc.go rename to client-go/ironcore/versioned/scheme/doc.go diff --git a/client-go/ironcore/scheme/register.go b/client-go/ironcore/versioned/scheme/register.go similarity index 100% rename from client-go/ironcore/scheme/register.go rename to client-go/ironcore/versioned/scheme/register.go diff --git a/client-go/ironcore/typed/compute/v1alpha1/compute_client.go b/client-go/ironcore/versioned/typed/compute/v1alpha1/compute_client.go similarity index 97% rename from client-go/ironcore/typed/compute/v1alpha1/compute_client.go rename to client-go/ironcore/versioned/typed/compute/v1alpha1/compute_client.go index b1ec44061..b45aa1acc 100644 --- a/client-go/ironcore/typed/compute/v1alpha1/compute_client.go +++ b/client-go/ironcore/versioned/typed/compute/v1alpha1/compute_client.go @@ -9,7 +9,7 @@ import ( "net/http" v1alpha1 "github.com/ironcore-dev/ironcore/api/compute/v1alpha1" - "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" rest "k8s.io/client-go/rest" ) diff --git a/client-go/ironcore/typed/compute/v1alpha1/doc.go b/client-go/ironcore/versioned/typed/compute/v1alpha1/doc.go similarity index 100% rename from client-go/ironcore/typed/compute/v1alpha1/doc.go rename to client-go/ironcore/versioned/typed/compute/v1alpha1/doc.go diff --git a/client-go/ironcore/typed/compute/v1alpha1/fake/doc.go b/client-go/ironcore/versioned/typed/compute/v1alpha1/fake/doc.go similarity index 100% rename from client-go/ironcore/typed/compute/v1alpha1/fake/doc.go rename to client-go/ironcore/versioned/typed/compute/v1alpha1/fake/doc.go diff --git a/client-go/ironcore/typed/compute/v1alpha1/fake/fake_compute_client.go b/client-go/ironcore/versioned/typed/compute/v1alpha1/fake/fake_compute_client.go similarity index 90% rename from client-go/ironcore/typed/compute/v1alpha1/fake/fake_compute_client.go rename to client-go/ironcore/versioned/typed/compute/v1alpha1/fake/fake_compute_client.go index effd07f8b..504861a1a 100644 --- a/client-go/ironcore/typed/compute/v1alpha1/fake/fake_compute_client.go +++ b/client-go/ironcore/versioned/typed/compute/v1alpha1/fake/fake_compute_client.go @@ -6,7 +6,7 @@ package fake import ( - v1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/typed/compute/v1alpha1" + v1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/typed/compute/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) diff --git a/client-go/ironcore/typed/compute/v1alpha1/fake/fake_machine.go b/client-go/ironcore/versioned/typed/compute/v1alpha1/fake/fake_machine.go similarity index 100% rename from client-go/ironcore/typed/compute/v1alpha1/fake/fake_machine.go rename to client-go/ironcore/versioned/typed/compute/v1alpha1/fake/fake_machine.go diff --git a/client-go/ironcore/typed/compute/v1alpha1/fake/fake_machineclass.go b/client-go/ironcore/versioned/typed/compute/v1alpha1/fake/fake_machineclass.go similarity index 100% rename from client-go/ironcore/typed/compute/v1alpha1/fake/fake_machineclass.go rename to client-go/ironcore/versioned/typed/compute/v1alpha1/fake/fake_machineclass.go diff --git a/client-go/ironcore/typed/compute/v1alpha1/fake/fake_machinepool.go b/client-go/ironcore/versioned/typed/compute/v1alpha1/fake/fake_machinepool.go similarity index 100% rename from client-go/ironcore/typed/compute/v1alpha1/fake/fake_machinepool.go rename to client-go/ironcore/versioned/typed/compute/v1alpha1/fake/fake_machinepool.go diff --git a/client-go/ironcore/typed/compute/v1alpha1/generated_expansion.go b/client-go/ironcore/versioned/typed/compute/v1alpha1/generated_expansion.go similarity index 100% rename from client-go/ironcore/typed/compute/v1alpha1/generated_expansion.go rename to client-go/ironcore/versioned/typed/compute/v1alpha1/generated_expansion.go diff --git a/client-go/ironcore/typed/compute/v1alpha1/machine.go b/client-go/ironcore/versioned/typed/compute/v1alpha1/machine.go similarity index 99% rename from client-go/ironcore/typed/compute/v1alpha1/machine.go rename to client-go/ironcore/versioned/typed/compute/v1alpha1/machine.go index 1c407f2fc..910d773d6 100644 --- a/client-go/ironcore/typed/compute/v1alpha1/machine.go +++ b/client-go/ironcore/versioned/typed/compute/v1alpha1/machine.go @@ -13,7 +13,7 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/compute/v1alpha1" computev1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/compute/v1alpha1" - scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/client-go/ironcore/typed/compute/v1alpha1/machineclass.go b/client-go/ironcore/versioned/typed/compute/v1alpha1/machineclass.go similarity index 98% rename from client-go/ironcore/typed/compute/v1alpha1/machineclass.go rename to client-go/ironcore/versioned/typed/compute/v1alpha1/machineclass.go index fccb716a5..2b9516b90 100644 --- a/client-go/ironcore/typed/compute/v1alpha1/machineclass.go +++ b/client-go/ironcore/versioned/typed/compute/v1alpha1/machineclass.go @@ -13,7 +13,7 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/compute/v1alpha1" computev1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/compute/v1alpha1" - scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/client-go/ironcore/typed/compute/v1alpha1/machinepool.go b/client-go/ironcore/versioned/typed/compute/v1alpha1/machinepool.go similarity index 99% rename from client-go/ironcore/typed/compute/v1alpha1/machinepool.go rename to client-go/ironcore/versioned/typed/compute/v1alpha1/machinepool.go index 1b31bc043..15f503544 100644 --- a/client-go/ironcore/typed/compute/v1alpha1/machinepool.go +++ b/client-go/ironcore/versioned/typed/compute/v1alpha1/machinepool.go @@ -13,7 +13,7 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/compute/v1alpha1" computev1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/compute/v1alpha1" - scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/client-go/ironcore/typed/core/v1alpha1/core_client.go b/client-go/ironcore/versioned/typed/core/v1alpha1/core_client.go similarity index 97% rename from client-go/ironcore/typed/core/v1alpha1/core_client.go rename to client-go/ironcore/versioned/typed/core/v1alpha1/core_client.go index f579adfcc..11c2a32dd 100644 --- a/client-go/ironcore/typed/core/v1alpha1/core_client.go +++ b/client-go/ironcore/versioned/typed/core/v1alpha1/core_client.go @@ -9,7 +9,7 @@ import ( "net/http" v1alpha1 "github.com/ironcore-dev/ironcore/api/core/v1alpha1" - "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" rest "k8s.io/client-go/rest" ) diff --git a/client-go/ironcore/typed/core/v1alpha1/doc.go b/client-go/ironcore/versioned/typed/core/v1alpha1/doc.go similarity index 100% rename from client-go/ironcore/typed/core/v1alpha1/doc.go rename to client-go/ironcore/versioned/typed/core/v1alpha1/doc.go diff --git a/client-go/ironcore/typed/core/v1alpha1/fake/doc.go b/client-go/ironcore/versioned/typed/core/v1alpha1/fake/doc.go similarity index 100% rename from client-go/ironcore/typed/core/v1alpha1/fake/doc.go rename to client-go/ironcore/versioned/typed/core/v1alpha1/fake/doc.go diff --git a/client-go/ironcore/typed/core/v1alpha1/fake/fake_core_client.go b/client-go/ironcore/versioned/typed/core/v1alpha1/fake/fake_core_client.go similarity index 87% rename from client-go/ironcore/typed/core/v1alpha1/fake/fake_core_client.go rename to client-go/ironcore/versioned/typed/core/v1alpha1/fake/fake_core_client.go index 0fbf7f7db..7980f6eba 100644 --- a/client-go/ironcore/typed/core/v1alpha1/fake/fake_core_client.go +++ b/client-go/ironcore/versioned/typed/core/v1alpha1/fake/fake_core_client.go @@ -6,7 +6,7 @@ package fake import ( - v1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/typed/core/v1alpha1" + v1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/typed/core/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) diff --git a/client-go/ironcore/typed/core/v1alpha1/fake/fake_resourcequota.go b/client-go/ironcore/versioned/typed/core/v1alpha1/fake/fake_resourcequota.go similarity index 100% rename from client-go/ironcore/typed/core/v1alpha1/fake/fake_resourcequota.go rename to client-go/ironcore/versioned/typed/core/v1alpha1/fake/fake_resourcequota.go diff --git a/client-go/ironcore/typed/core/v1alpha1/generated_expansion.go b/client-go/ironcore/versioned/typed/core/v1alpha1/generated_expansion.go similarity index 100% rename from client-go/ironcore/typed/core/v1alpha1/generated_expansion.go rename to client-go/ironcore/versioned/typed/core/v1alpha1/generated_expansion.go diff --git a/client-go/ironcore/typed/core/v1alpha1/resourcequota.go b/client-go/ironcore/versioned/typed/core/v1alpha1/resourcequota.go similarity index 99% rename from client-go/ironcore/typed/core/v1alpha1/resourcequota.go rename to client-go/ironcore/versioned/typed/core/v1alpha1/resourcequota.go index 9b41727c3..ab71578d0 100644 --- a/client-go/ironcore/typed/core/v1alpha1/resourcequota.go +++ b/client-go/ironcore/versioned/typed/core/v1alpha1/resourcequota.go @@ -13,7 +13,7 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/core/v1alpha1" corev1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/core/v1alpha1" - scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/client-go/ironcore/typed/ipam/v1alpha1/doc.go b/client-go/ironcore/versioned/typed/ipam/v1alpha1/doc.go similarity index 100% rename from client-go/ironcore/typed/ipam/v1alpha1/doc.go rename to client-go/ironcore/versioned/typed/ipam/v1alpha1/doc.go diff --git a/client-go/ironcore/typed/ipam/v1alpha1/fake/doc.go b/client-go/ironcore/versioned/typed/ipam/v1alpha1/fake/doc.go similarity index 100% rename from client-go/ironcore/typed/ipam/v1alpha1/fake/doc.go rename to client-go/ironcore/versioned/typed/ipam/v1alpha1/fake/doc.go diff --git a/client-go/ironcore/typed/ipam/v1alpha1/fake/fake_ipam_client.go b/client-go/ironcore/versioned/typed/ipam/v1alpha1/fake/fake_ipam_client.go similarity index 89% rename from client-go/ironcore/typed/ipam/v1alpha1/fake/fake_ipam_client.go rename to client-go/ironcore/versioned/typed/ipam/v1alpha1/fake/fake_ipam_client.go index 986755b2a..ef2567d82 100644 --- a/client-go/ironcore/typed/ipam/v1alpha1/fake/fake_ipam_client.go +++ b/client-go/ironcore/versioned/typed/ipam/v1alpha1/fake/fake_ipam_client.go @@ -6,7 +6,7 @@ package fake import ( - v1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/typed/ipam/v1alpha1" + v1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/typed/ipam/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) diff --git a/client-go/ironcore/typed/ipam/v1alpha1/fake/fake_prefix.go b/client-go/ironcore/versioned/typed/ipam/v1alpha1/fake/fake_prefix.go similarity index 100% rename from client-go/ironcore/typed/ipam/v1alpha1/fake/fake_prefix.go rename to client-go/ironcore/versioned/typed/ipam/v1alpha1/fake/fake_prefix.go diff --git a/client-go/ironcore/typed/ipam/v1alpha1/fake/fake_prefixallocation.go b/client-go/ironcore/versioned/typed/ipam/v1alpha1/fake/fake_prefixallocation.go similarity index 100% rename from client-go/ironcore/typed/ipam/v1alpha1/fake/fake_prefixallocation.go rename to client-go/ironcore/versioned/typed/ipam/v1alpha1/fake/fake_prefixallocation.go diff --git a/client-go/ironcore/typed/ipam/v1alpha1/generated_expansion.go b/client-go/ironcore/versioned/typed/ipam/v1alpha1/generated_expansion.go similarity index 100% rename from client-go/ironcore/typed/ipam/v1alpha1/generated_expansion.go rename to client-go/ironcore/versioned/typed/ipam/v1alpha1/generated_expansion.go diff --git a/client-go/ironcore/typed/ipam/v1alpha1/ipam_client.go b/client-go/ironcore/versioned/typed/ipam/v1alpha1/ipam_client.go similarity index 97% rename from client-go/ironcore/typed/ipam/v1alpha1/ipam_client.go rename to client-go/ironcore/versioned/typed/ipam/v1alpha1/ipam_client.go index b8fa2e3bb..3e8eb15a8 100644 --- a/client-go/ironcore/typed/ipam/v1alpha1/ipam_client.go +++ b/client-go/ironcore/versioned/typed/ipam/v1alpha1/ipam_client.go @@ -9,7 +9,7 @@ import ( "net/http" v1alpha1 "github.com/ironcore-dev/ironcore/api/ipam/v1alpha1" - "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" rest "k8s.io/client-go/rest" ) diff --git a/client-go/ironcore/typed/ipam/v1alpha1/prefix.go b/client-go/ironcore/versioned/typed/ipam/v1alpha1/prefix.go similarity index 99% rename from client-go/ironcore/typed/ipam/v1alpha1/prefix.go rename to client-go/ironcore/versioned/typed/ipam/v1alpha1/prefix.go index 103f33616..c16aa477d 100644 --- a/client-go/ironcore/typed/ipam/v1alpha1/prefix.go +++ b/client-go/ironcore/versioned/typed/ipam/v1alpha1/prefix.go @@ -13,7 +13,7 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/ipam/v1alpha1" ipamv1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/ipam/v1alpha1" - scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/client-go/ironcore/typed/ipam/v1alpha1/prefixallocation.go b/client-go/ironcore/versioned/typed/ipam/v1alpha1/prefixallocation.go similarity index 99% rename from client-go/ironcore/typed/ipam/v1alpha1/prefixallocation.go rename to client-go/ironcore/versioned/typed/ipam/v1alpha1/prefixallocation.go index 238fe6a8f..9c24fb8ca 100644 --- a/client-go/ironcore/typed/ipam/v1alpha1/prefixallocation.go +++ b/client-go/ironcore/versioned/typed/ipam/v1alpha1/prefixallocation.go @@ -13,7 +13,7 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/ipam/v1alpha1" ipamv1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/ipam/v1alpha1" - scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/client-go/ironcore/typed/networking/v1alpha1/doc.go b/client-go/ironcore/versioned/typed/networking/v1alpha1/doc.go similarity index 100% rename from client-go/ironcore/typed/networking/v1alpha1/doc.go rename to client-go/ironcore/versioned/typed/networking/v1alpha1/doc.go diff --git a/client-go/ironcore/typed/networking/v1alpha1/fake/doc.go b/client-go/ironcore/versioned/typed/networking/v1alpha1/fake/doc.go similarity index 100% rename from client-go/ironcore/typed/networking/v1alpha1/fake/doc.go rename to client-go/ironcore/versioned/typed/networking/v1alpha1/fake/doc.go diff --git a/client-go/ironcore/typed/networking/v1alpha1/fake/fake_loadbalancer.go b/client-go/ironcore/versioned/typed/networking/v1alpha1/fake/fake_loadbalancer.go similarity index 100% rename from client-go/ironcore/typed/networking/v1alpha1/fake/fake_loadbalancer.go rename to client-go/ironcore/versioned/typed/networking/v1alpha1/fake/fake_loadbalancer.go diff --git a/client-go/ironcore/typed/networking/v1alpha1/fake/fake_loadbalancerrouting.go b/client-go/ironcore/versioned/typed/networking/v1alpha1/fake/fake_loadbalancerrouting.go similarity index 100% rename from client-go/ironcore/typed/networking/v1alpha1/fake/fake_loadbalancerrouting.go rename to client-go/ironcore/versioned/typed/networking/v1alpha1/fake/fake_loadbalancerrouting.go diff --git a/client-go/ironcore/typed/networking/v1alpha1/fake/fake_natgateway.go b/client-go/ironcore/versioned/typed/networking/v1alpha1/fake/fake_natgateway.go similarity index 100% rename from client-go/ironcore/typed/networking/v1alpha1/fake/fake_natgateway.go rename to client-go/ironcore/versioned/typed/networking/v1alpha1/fake/fake_natgateway.go diff --git a/client-go/ironcore/typed/networking/v1alpha1/fake/fake_network.go b/client-go/ironcore/versioned/typed/networking/v1alpha1/fake/fake_network.go similarity index 100% rename from client-go/ironcore/typed/networking/v1alpha1/fake/fake_network.go rename to client-go/ironcore/versioned/typed/networking/v1alpha1/fake/fake_network.go diff --git a/client-go/ironcore/typed/networking/v1alpha1/fake/fake_networking_client.go b/client-go/ironcore/versioned/typed/networking/v1alpha1/fake/fake_networking_client.go similarity index 93% rename from client-go/ironcore/typed/networking/v1alpha1/fake/fake_networking_client.go rename to client-go/ironcore/versioned/typed/networking/v1alpha1/fake/fake_networking_client.go index a7979715f..c1788144f 100644 --- a/client-go/ironcore/typed/networking/v1alpha1/fake/fake_networking_client.go +++ b/client-go/ironcore/versioned/typed/networking/v1alpha1/fake/fake_networking_client.go @@ -6,7 +6,7 @@ package fake import ( - v1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/typed/networking/v1alpha1" + v1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/typed/networking/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) diff --git a/client-go/ironcore/typed/networking/v1alpha1/fake/fake_networkinterface.go b/client-go/ironcore/versioned/typed/networking/v1alpha1/fake/fake_networkinterface.go similarity index 100% rename from client-go/ironcore/typed/networking/v1alpha1/fake/fake_networkinterface.go rename to client-go/ironcore/versioned/typed/networking/v1alpha1/fake/fake_networkinterface.go diff --git a/client-go/ironcore/typed/networking/v1alpha1/fake/fake_networkpolicy.go b/client-go/ironcore/versioned/typed/networking/v1alpha1/fake/fake_networkpolicy.go similarity index 100% rename from client-go/ironcore/typed/networking/v1alpha1/fake/fake_networkpolicy.go rename to client-go/ironcore/versioned/typed/networking/v1alpha1/fake/fake_networkpolicy.go diff --git a/client-go/ironcore/typed/networking/v1alpha1/fake/fake_virtualip.go b/client-go/ironcore/versioned/typed/networking/v1alpha1/fake/fake_virtualip.go similarity index 100% rename from client-go/ironcore/typed/networking/v1alpha1/fake/fake_virtualip.go rename to client-go/ironcore/versioned/typed/networking/v1alpha1/fake/fake_virtualip.go diff --git a/client-go/ironcore/typed/networking/v1alpha1/generated_expansion.go b/client-go/ironcore/versioned/typed/networking/v1alpha1/generated_expansion.go similarity index 100% rename from client-go/ironcore/typed/networking/v1alpha1/generated_expansion.go rename to client-go/ironcore/versioned/typed/networking/v1alpha1/generated_expansion.go diff --git a/client-go/ironcore/typed/networking/v1alpha1/loadbalancer.go b/client-go/ironcore/versioned/typed/networking/v1alpha1/loadbalancer.go similarity index 99% rename from client-go/ironcore/typed/networking/v1alpha1/loadbalancer.go rename to client-go/ironcore/versioned/typed/networking/v1alpha1/loadbalancer.go index 15acb7f11..a5545c621 100644 --- a/client-go/ironcore/typed/networking/v1alpha1/loadbalancer.go +++ b/client-go/ironcore/versioned/typed/networking/v1alpha1/loadbalancer.go @@ -13,7 +13,7 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" networkingv1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/networking/v1alpha1" - scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/client-go/ironcore/typed/networking/v1alpha1/loadbalancerrouting.go b/client-go/ironcore/versioned/typed/networking/v1alpha1/loadbalancerrouting.go similarity index 98% rename from client-go/ironcore/typed/networking/v1alpha1/loadbalancerrouting.go rename to client-go/ironcore/versioned/typed/networking/v1alpha1/loadbalancerrouting.go index 62ed023c7..40ac60c2c 100644 --- a/client-go/ironcore/typed/networking/v1alpha1/loadbalancerrouting.go +++ b/client-go/ironcore/versioned/typed/networking/v1alpha1/loadbalancerrouting.go @@ -13,7 +13,7 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" networkingv1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/networking/v1alpha1" - scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/client-go/ironcore/typed/networking/v1alpha1/natgateway.go b/client-go/ironcore/versioned/typed/networking/v1alpha1/natgateway.go similarity index 99% rename from client-go/ironcore/typed/networking/v1alpha1/natgateway.go rename to client-go/ironcore/versioned/typed/networking/v1alpha1/natgateway.go index 03a67a767..35929c3b2 100644 --- a/client-go/ironcore/typed/networking/v1alpha1/natgateway.go +++ b/client-go/ironcore/versioned/typed/networking/v1alpha1/natgateway.go @@ -13,7 +13,7 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" networkingv1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/networking/v1alpha1" - scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/client-go/ironcore/typed/networking/v1alpha1/network.go b/client-go/ironcore/versioned/typed/networking/v1alpha1/network.go similarity index 99% rename from client-go/ironcore/typed/networking/v1alpha1/network.go rename to client-go/ironcore/versioned/typed/networking/v1alpha1/network.go index d808b3e35..e5090ea77 100644 --- a/client-go/ironcore/typed/networking/v1alpha1/network.go +++ b/client-go/ironcore/versioned/typed/networking/v1alpha1/network.go @@ -13,7 +13,7 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" networkingv1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/networking/v1alpha1" - scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/client-go/ironcore/typed/networking/v1alpha1/networking_client.go b/client-go/ironcore/versioned/typed/networking/v1alpha1/networking_client.go similarity index 98% rename from client-go/ironcore/typed/networking/v1alpha1/networking_client.go rename to client-go/ironcore/versioned/typed/networking/v1alpha1/networking_client.go index 30a3f0bb0..aa9636e07 100644 --- a/client-go/ironcore/typed/networking/v1alpha1/networking_client.go +++ b/client-go/ironcore/versioned/typed/networking/v1alpha1/networking_client.go @@ -9,7 +9,7 @@ import ( "net/http" v1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" - "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" rest "k8s.io/client-go/rest" ) diff --git a/client-go/ironcore/typed/networking/v1alpha1/networkinterface.go b/client-go/ironcore/versioned/typed/networking/v1alpha1/networkinterface.go similarity index 99% rename from client-go/ironcore/typed/networking/v1alpha1/networkinterface.go rename to client-go/ironcore/versioned/typed/networking/v1alpha1/networkinterface.go index d56c178b2..dcb018fc9 100644 --- a/client-go/ironcore/typed/networking/v1alpha1/networkinterface.go +++ b/client-go/ironcore/versioned/typed/networking/v1alpha1/networkinterface.go @@ -13,7 +13,7 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" networkingv1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/networking/v1alpha1" - scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/client-go/ironcore/typed/networking/v1alpha1/networkpolicy.go b/client-go/ironcore/versioned/typed/networking/v1alpha1/networkpolicy.go similarity index 99% rename from client-go/ironcore/typed/networking/v1alpha1/networkpolicy.go rename to client-go/ironcore/versioned/typed/networking/v1alpha1/networkpolicy.go index 1d9715678..4ac7090aa 100644 --- a/client-go/ironcore/typed/networking/v1alpha1/networkpolicy.go +++ b/client-go/ironcore/versioned/typed/networking/v1alpha1/networkpolicy.go @@ -13,7 +13,7 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" networkingv1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/networking/v1alpha1" - scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/client-go/ironcore/typed/networking/v1alpha1/virtualip.go b/client-go/ironcore/versioned/typed/networking/v1alpha1/virtualip.go similarity index 99% rename from client-go/ironcore/typed/networking/v1alpha1/virtualip.go rename to client-go/ironcore/versioned/typed/networking/v1alpha1/virtualip.go index f5a9b609f..5dcb2dbdd 100644 --- a/client-go/ironcore/typed/networking/v1alpha1/virtualip.go +++ b/client-go/ironcore/versioned/typed/networking/v1alpha1/virtualip.go @@ -13,7 +13,7 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" networkingv1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/networking/v1alpha1" - scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/client-go/ironcore/typed/storage/v1alpha1/bucket.go b/client-go/ironcore/versioned/typed/storage/v1alpha1/bucket.go similarity index 99% rename from client-go/ironcore/typed/storage/v1alpha1/bucket.go rename to client-go/ironcore/versioned/typed/storage/v1alpha1/bucket.go index c3de23e2a..6aca9a786 100644 --- a/client-go/ironcore/typed/storage/v1alpha1/bucket.go +++ b/client-go/ironcore/versioned/typed/storage/v1alpha1/bucket.go @@ -13,7 +13,7 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" storagev1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/storage/v1alpha1" - scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/client-go/ironcore/typed/storage/v1alpha1/bucketclass.go b/client-go/ironcore/versioned/typed/storage/v1alpha1/bucketclass.go similarity index 98% rename from client-go/ironcore/typed/storage/v1alpha1/bucketclass.go rename to client-go/ironcore/versioned/typed/storage/v1alpha1/bucketclass.go index a6b1e6c24..605206c5a 100644 --- a/client-go/ironcore/typed/storage/v1alpha1/bucketclass.go +++ b/client-go/ironcore/versioned/typed/storage/v1alpha1/bucketclass.go @@ -13,7 +13,7 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" storagev1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/storage/v1alpha1" - scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/client-go/ironcore/typed/storage/v1alpha1/bucketpool.go b/client-go/ironcore/versioned/typed/storage/v1alpha1/bucketpool.go similarity index 99% rename from client-go/ironcore/typed/storage/v1alpha1/bucketpool.go rename to client-go/ironcore/versioned/typed/storage/v1alpha1/bucketpool.go index 7e0b8a5ab..4fdb32be1 100644 --- a/client-go/ironcore/typed/storage/v1alpha1/bucketpool.go +++ b/client-go/ironcore/versioned/typed/storage/v1alpha1/bucketpool.go @@ -13,7 +13,7 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" storagev1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/storage/v1alpha1" - scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/client-go/ironcore/typed/storage/v1alpha1/doc.go b/client-go/ironcore/versioned/typed/storage/v1alpha1/doc.go similarity index 100% rename from client-go/ironcore/typed/storage/v1alpha1/doc.go rename to client-go/ironcore/versioned/typed/storage/v1alpha1/doc.go diff --git a/client-go/ironcore/typed/storage/v1alpha1/fake/doc.go b/client-go/ironcore/versioned/typed/storage/v1alpha1/fake/doc.go similarity index 100% rename from client-go/ironcore/typed/storage/v1alpha1/fake/doc.go rename to client-go/ironcore/versioned/typed/storage/v1alpha1/fake/doc.go diff --git a/client-go/ironcore/typed/storage/v1alpha1/fake/fake_bucket.go b/client-go/ironcore/versioned/typed/storage/v1alpha1/fake/fake_bucket.go similarity index 100% rename from client-go/ironcore/typed/storage/v1alpha1/fake/fake_bucket.go rename to client-go/ironcore/versioned/typed/storage/v1alpha1/fake/fake_bucket.go diff --git a/client-go/ironcore/typed/storage/v1alpha1/fake/fake_bucketclass.go b/client-go/ironcore/versioned/typed/storage/v1alpha1/fake/fake_bucketclass.go similarity index 100% rename from client-go/ironcore/typed/storage/v1alpha1/fake/fake_bucketclass.go rename to client-go/ironcore/versioned/typed/storage/v1alpha1/fake/fake_bucketclass.go diff --git a/client-go/ironcore/typed/storage/v1alpha1/fake/fake_bucketpool.go b/client-go/ironcore/versioned/typed/storage/v1alpha1/fake/fake_bucketpool.go similarity index 100% rename from client-go/ironcore/typed/storage/v1alpha1/fake/fake_bucketpool.go rename to client-go/ironcore/versioned/typed/storage/v1alpha1/fake/fake_bucketpool.go diff --git a/client-go/ironcore/typed/storage/v1alpha1/fake/fake_storage_client.go b/client-go/ironcore/versioned/typed/storage/v1alpha1/fake/fake_storage_client.go similarity index 92% rename from client-go/ironcore/typed/storage/v1alpha1/fake/fake_storage_client.go rename to client-go/ironcore/versioned/typed/storage/v1alpha1/fake/fake_storage_client.go index 0cd8687db..748339d0c 100644 --- a/client-go/ironcore/typed/storage/v1alpha1/fake/fake_storage_client.go +++ b/client-go/ironcore/versioned/typed/storage/v1alpha1/fake/fake_storage_client.go @@ -6,7 +6,7 @@ package fake import ( - v1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/typed/storage/v1alpha1" + v1alpha1 "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/typed/storage/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) diff --git a/client-go/ironcore/typed/storage/v1alpha1/fake/fake_volume.go b/client-go/ironcore/versioned/typed/storage/v1alpha1/fake/fake_volume.go similarity index 100% rename from client-go/ironcore/typed/storage/v1alpha1/fake/fake_volume.go rename to client-go/ironcore/versioned/typed/storage/v1alpha1/fake/fake_volume.go diff --git a/client-go/ironcore/typed/storage/v1alpha1/fake/fake_volumeclass.go b/client-go/ironcore/versioned/typed/storage/v1alpha1/fake/fake_volumeclass.go similarity index 100% rename from client-go/ironcore/typed/storage/v1alpha1/fake/fake_volumeclass.go rename to client-go/ironcore/versioned/typed/storage/v1alpha1/fake/fake_volumeclass.go diff --git a/client-go/ironcore/typed/storage/v1alpha1/fake/fake_volumepool.go b/client-go/ironcore/versioned/typed/storage/v1alpha1/fake/fake_volumepool.go similarity index 100% rename from client-go/ironcore/typed/storage/v1alpha1/fake/fake_volumepool.go rename to client-go/ironcore/versioned/typed/storage/v1alpha1/fake/fake_volumepool.go diff --git a/client-go/ironcore/typed/storage/v1alpha1/generated_expansion.go b/client-go/ironcore/versioned/typed/storage/v1alpha1/generated_expansion.go similarity index 100% rename from client-go/ironcore/typed/storage/v1alpha1/generated_expansion.go rename to client-go/ironcore/versioned/typed/storage/v1alpha1/generated_expansion.go diff --git a/client-go/ironcore/typed/storage/v1alpha1/storage_client.go b/client-go/ironcore/versioned/typed/storage/v1alpha1/storage_client.go similarity index 97% rename from client-go/ironcore/typed/storage/v1alpha1/storage_client.go rename to client-go/ironcore/versioned/typed/storage/v1alpha1/storage_client.go index b3835ba30..2f3c78759 100644 --- a/client-go/ironcore/typed/storage/v1alpha1/storage_client.go +++ b/client-go/ironcore/versioned/typed/storage/v1alpha1/storage_client.go @@ -9,7 +9,7 @@ import ( "net/http" v1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" - "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" rest "k8s.io/client-go/rest" ) diff --git a/client-go/ironcore/typed/storage/v1alpha1/volume.go b/client-go/ironcore/versioned/typed/storage/v1alpha1/volume.go similarity index 99% rename from client-go/ironcore/typed/storage/v1alpha1/volume.go rename to client-go/ironcore/versioned/typed/storage/v1alpha1/volume.go index 226aac6da..62be87b7c 100644 --- a/client-go/ironcore/typed/storage/v1alpha1/volume.go +++ b/client-go/ironcore/versioned/typed/storage/v1alpha1/volume.go @@ -13,7 +13,7 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" storagev1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/storage/v1alpha1" - scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/client-go/ironcore/typed/storage/v1alpha1/volumeclass.go b/client-go/ironcore/versioned/typed/storage/v1alpha1/volumeclass.go similarity index 98% rename from client-go/ironcore/typed/storage/v1alpha1/volumeclass.go rename to client-go/ironcore/versioned/typed/storage/v1alpha1/volumeclass.go index 0bfdac9c8..fc14c8980 100644 --- a/client-go/ironcore/typed/storage/v1alpha1/volumeclass.go +++ b/client-go/ironcore/versioned/typed/storage/v1alpha1/volumeclass.go @@ -13,7 +13,7 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" storagev1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/storage/v1alpha1" - scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/client-go/ironcore/typed/storage/v1alpha1/volumepool.go b/client-go/ironcore/versioned/typed/storage/v1alpha1/volumepool.go similarity index 99% rename from client-go/ironcore/typed/storage/v1alpha1/volumepool.go rename to client-go/ironcore/versioned/typed/storage/v1alpha1/volumepool.go index 79d646d9a..0273e3127 100644 --- a/client-go/ironcore/typed/storage/v1alpha1/volumepool.go +++ b/client-go/ironcore/versioned/typed/storage/v1alpha1/volumepool.go @@ -13,7 +13,7 @@ import ( v1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" storagev1alpha1 "github.com/ironcore-dev/ironcore/client-go/applyconfigurations/storage/v1alpha1" - scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/scheme" + scheme "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" diff --git a/client-go/openapi/api_violations.report b/client-go/openapi/api_violations.report index e90a1b980..9bfd08cd3 100644 --- a/client-go/openapi/api_violations.report +++ b/client-go/openapi/api_violations.report @@ -46,129 +46,6 @@ API rule violation: list_type_missing,github.com/ironcore-dev/ironcore/api/stora API rule violation: list_type_missing,github.com/ironcore-dev/ironcore/api/storage/v1alpha1,VolumePoolStatus,Conditions API rule violation: list_type_missing,github.com/ironcore-dev/ironcore/api/storage/v1alpha1,VolumeSpec,Tolerations API rule violation: list_type_missing,github.com/ironcore-dev/ironcore/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 -API rule violation: list_type_missing,k8s.io/api/core/v1,CephFSPersistentVolumeSource,Monitors -API rule violation: list_type_missing,k8s.io/api/core/v1,CephFSVolumeSource,Monitors -API rule violation: list_type_missing,k8s.io/api/core/v1,ComponentStatus,Conditions -API rule violation: list_type_missing,k8s.io/api/core/v1,ConfigMapProjection,Items -API rule violation: list_type_missing,k8s.io/api/core/v1,ConfigMapVolumeSource,Items -API rule violation: list_type_missing,k8s.io/api/core/v1,Container,Args -API rule violation: list_type_missing,k8s.io/api/core/v1,Container,Command -API rule violation: list_type_missing,k8s.io/api/core/v1,Container,Env -API rule violation: list_type_missing,k8s.io/api/core/v1,Container,EnvFrom -API rule violation: list_type_missing,k8s.io/api/core/v1,Container,VolumeDevices -API rule violation: list_type_missing,k8s.io/api/core/v1,Container,VolumeMounts -API rule violation: list_type_missing,k8s.io/api/core/v1,ContainerImage,Names -API rule violation: list_type_missing,k8s.io/api/core/v1,DownwardAPIProjection,Items -API rule violation: list_type_missing,k8s.io/api/core/v1,DownwardAPIVolumeSource,Items -API rule violation: list_type_missing,k8s.io/api/core/v1,EndpointSubset,Addresses -API rule violation: list_type_missing,k8s.io/api/core/v1,EndpointSubset,NotReadyAddresses -API rule violation: list_type_missing,k8s.io/api/core/v1,EndpointSubset,Ports -API rule violation: list_type_missing,k8s.io/api/core/v1,Endpoints,Subsets -API rule violation: list_type_missing,k8s.io/api/core/v1,EphemeralContainerCommon,Args -API rule violation: list_type_missing,k8s.io/api/core/v1,EphemeralContainerCommon,Command -API rule violation: list_type_missing,k8s.io/api/core/v1,EphemeralContainerCommon,Env -API rule violation: list_type_missing,k8s.io/api/core/v1,EphemeralContainerCommon,EnvFrom -API rule violation: list_type_missing,k8s.io/api/core/v1,EphemeralContainerCommon,VolumeDevices -API rule violation: list_type_missing,k8s.io/api/core/v1,EphemeralContainerCommon,VolumeMounts -API rule violation: list_type_missing,k8s.io/api/core/v1,ExecAction,Command -API rule violation: list_type_missing,k8s.io/api/core/v1,FCVolumeSource,TargetWWNs -API rule violation: list_type_missing,k8s.io/api/core/v1,FCVolumeSource,WWIDs -API rule violation: list_type_missing,k8s.io/api/core/v1,HTTPGetAction,HTTPHeaders -API rule violation: list_type_missing,k8s.io/api/core/v1,HostAlias,Hostnames -API rule violation: list_type_missing,k8s.io/api/core/v1,ISCSIPersistentVolumeSource,Portals -API rule violation: list_type_missing,k8s.io/api/core/v1,ISCSIVolumeSource,Portals -API rule violation: list_type_missing,k8s.io/api/core/v1,LimitRangeSpec,Limits -API rule violation: list_type_missing,k8s.io/api/core/v1,LoadBalancerStatus,Ingress -API rule violation: list_type_missing,k8s.io/api/core/v1,NamespaceSpec,Finalizers -API rule violation: list_type_missing,k8s.io/api/core/v1,NamespaceStatus,Conditions -API rule violation: list_type_missing,k8s.io/api/core/v1,NodeAffinity,PreferredDuringSchedulingIgnoredDuringExecution -API rule violation: list_type_missing,k8s.io/api/core/v1,NodeSelector,NodeSelectorTerms -API rule violation: list_type_missing,k8s.io/api/core/v1,NodeSelectorRequirement,Values -API rule violation: list_type_missing,k8s.io/api/core/v1,NodeSelectorTerm,MatchExpressions -API rule violation: list_type_missing,k8s.io/api/core/v1,NodeSelectorTerm,MatchFields -API rule violation: list_type_missing,k8s.io/api/core/v1,NodeSpec,PodCIDRs -API rule violation: list_type_missing,k8s.io/api/core/v1,NodeSpec,Taints -API rule violation: list_type_missing,k8s.io/api/core/v1,NodeStatus,Addresses -API rule violation: list_type_missing,k8s.io/api/core/v1,NodeStatus,Conditions -API rule violation: list_type_missing,k8s.io/api/core/v1,NodeStatus,Images -API rule violation: list_type_missing,k8s.io/api/core/v1,NodeStatus,VolumesAttached -API rule violation: list_type_missing,k8s.io/api/core/v1,NodeStatus,VolumesInUse -API rule violation: list_type_missing,k8s.io/api/core/v1,PersistentVolumeClaimSpec,AccessModes -API rule violation: list_type_missing,k8s.io/api/core/v1,PersistentVolumeClaimStatus,AccessModes -API rule violation: list_type_missing,k8s.io/api/core/v1,PersistentVolumeClaimStatus,Conditions -API rule violation: list_type_missing,k8s.io/api/core/v1,PersistentVolumeSpec,AccessModes -API rule violation: list_type_missing,k8s.io/api/core/v1,PersistentVolumeSpec,MountOptions -API rule violation: list_type_missing,k8s.io/api/core/v1,PodAffinity,PreferredDuringSchedulingIgnoredDuringExecution -API rule violation: list_type_missing,k8s.io/api/core/v1,PodAffinity,RequiredDuringSchedulingIgnoredDuringExecution -API rule violation: list_type_missing,k8s.io/api/core/v1,PodAffinityTerm,Namespaces -API rule violation: list_type_missing,k8s.io/api/core/v1,PodAntiAffinity,PreferredDuringSchedulingIgnoredDuringExecution -API rule violation: list_type_missing,k8s.io/api/core/v1,PodAntiAffinity,RequiredDuringSchedulingIgnoredDuringExecution -API rule violation: list_type_missing,k8s.io/api/core/v1,PodDNSConfig,Nameservers -API rule violation: list_type_missing,k8s.io/api/core/v1,PodDNSConfig,Options -API rule violation: list_type_missing,k8s.io/api/core/v1,PodDNSConfig,Searches -API rule violation: list_type_missing,k8s.io/api/core/v1,PodExecOptions,Command -API rule violation: list_type_missing,k8s.io/api/core/v1,PodPortForwardOptions,Ports -API rule violation: list_type_missing,k8s.io/api/core/v1,PodSecurityContext,SupplementalGroups -API rule violation: list_type_missing,k8s.io/api/core/v1,PodSecurityContext,Sysctls -API rule violation: list_type_missing,k8s.io/api/core/v1,PodSpec,Containers -API rule violation: list_type_missing,k8s.io/api/core/v1,PodSpec,EphemeralContainers -API rule violation: list_type_missing,k8s.io/api/core/v1,PodSpec,HostAliases -API rule violation: list_type_missing,k8s.io/api/core/v1,PodSpec,ImagePullSecrets -API rule violation: list_type_missing,k8s.io/api/core/v1,PodSpec,InitContainers -API rule violation: list_type_missing,k8s.io/api/core/v1,PodSpec,ReadinessGates -API rule violation: list_type_missing,k8s.io/api/core/v1,PodSpec,Tolerations -API rule violation: list_type_missing,k8s.io/api/core/v1,PodSpec,Volumes -API rule violation: list_type_missing,k8s.io/api/core/v1,PodStatus,Conditions -API rule violation: list_type_missing,k8s.io/api/core/v1,PodStatus,ContainerStatuses -API rule violation: list_type_missing,k8s.io/api/core/v1,PodStatus,EphemeralContainerStatuses -API rule violation: list_type_missing,k8s.io/api/core/v1,PodStatus,InitContainerStatuses -API rule violation: list_type_missing,k8s.io/api/core/v1,PodStatus,PodIPs -API rule violation: list_type_missing,k8s.io/api/core/v1,ProjectedVolumeSource,Sources -API rule violation: list_type_missing,k8s.io/api/core/v1,RBDPersistentVolumeSource,CephMonitors -API rule violation: list_type_missing,k8s.io/api/core/v1,RBDVolumeSource,CephMonitors -API rule violation: list_type_missing,k8s.io/api/core/v1,RangeAllocation,Data -API rule violation: list_type_missing,k8s.io/api/core/v1,ReplicationControllerStatus,Conditions -API rule violation: list_type_missing,k8s.io/api/core/v1,ResourceQuotaSpec,Scopes -API rule violation: list_type_missing,k8s.io/api/core/v1,ScopeSelector,MatchExpressions -API rule violation: list_type_missing,k8s.io/api/core/v1,ScopedResourceSelectorRequirement,Values -API rule violation: list_type_missing,k8s.io/api/core/v1,SecretProjection,Items -API rule violation: list_type_missing,k8s.io/api/core/v1,SecretVolumeSource,Items -API rule violation: list_type_missing,k8s.io/api/core/v1,ServiceAccount,ImagePullSecrets -API rule violation: list_type_missing,k8s.io/api/core/v1,ServiceAccount,Secrets -API rule violation: list_type_missing,k8s.io/api/core/v1,ServiceSpec,ExternalIPs -API rule violation: list_type_missing,k8s.io/api/core/v1,ServiceSpec,LoadBalancerSourceRanges -API rule violation: list_type_missing,k8s.io/api/core/v1,TopologySelectorLabelRequirement,Values -API rule violation: list_type_missing,k8s.io/api/core/v1,TopologySelectorTerm,MatchLabelExpressions -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,APIGroup,ServerAddressByClientCIDRs -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,APIGroup,Versions -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,APIGroupList,Groups -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,APIResource,Categories -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,APIResource,ShortNames -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,APIResourceList,APIResources -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,APIVersions,ServerAddressByClientCIDRs -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,APIVersions,Versions -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,ApplyOptions,DryRun -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,CreateOptions,DryRun -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,DeleteOptions,DryRun -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,FieldsV1,Raw -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,LabelSelector,MatchExpressions -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,LabelSelectorRequirement,Values -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,ObjectMeta,Finalizers -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,ObjectMeta,ManagedFields -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,ObjectMeta,OwnerReferences -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,PatchOptions,DryRun -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,RootPaths,Paths -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,StatusDetails,Causes -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,Table,ColumnDefinitions -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,Table,Rows -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,TableRow,Cells -API rule violation: list_type_missing,k8s.io/apimachinery/pkg/apis/meta/v1,TableRow,Conditions -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/ironcore-dev/ironcore/api/compute/v1alpha1,MachineSpec,ImagePullSecretRef API rule violation: names_match,github.com/ironcore-dev/ironcore/api/compute/v1alpha1,NetworkInterfaceStatus,IPs API rule violation: names_match,github.com/ironcore-dev/ironcore/api/networking/v1alpha1,LoadBalancerSpec,IPs @@ -188,7 +65,6 @@ API rule violation: names_match,k8s.io/api/core/v1,ISCSIPersistentVolumeSource,D API rule violation: names_match,k8s.io/api/core/v1,ISCSIPersistentVolumeSource,SessionCHAPAuth API rule violation: names_match,k8s.io/api/core/v1,ISCSIVolumeSource,DiscoveryCHAPAuth API rule violation: names_match,k8s.io/api/core/v1,ISCSIVolumeSource,SessionCHAPAuth -API rule violation: names_match,k8s.io/api/core/v1,NodeResources,Capacity API rule violation: names_match,k8s.io/api/core/v1,NodeSpec,DoNotUseExternalID API rule violation: names_match,k8s.io/api/core/v1,PersistentVolumeSource,CephFS API rule violation: names_match,k8s.io/api/core/v1,PersistentVolumeSource,StorageOS diff --git a/client-go/openapi/zz_generated.openapi.go b/client-go/openapi/zz_generated.openapi.go index f2250b2ed..8262acdee 100644 --- a/client-go/openapi/zz_generated.openapi.go +++ b/client-go/openapi/zz_generated.openapi.go @@ -6,8 +6,6 @@ // Code generated by openapi-gen. DO NOT EDIT. -// This file was autogenerated by openapi-gen. Do not edit it manually! - package openapi import ( @@ -148,6 +146,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/ironcore-dev/ironcore/api/storage/v1alpha1.VolumeTemplateSpec": schema_ironcore_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.AppArmorProfile": schema_k8sio_api_core_v1_AppArmorProfile(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), @@ -248,7 +247,8 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.NodeRuntimeHandler": schema_k8sio_api_core_v1_NodeRuntimeHandler(ref), + "k8s.io/api/core/v1.NodeRuntimeHandlerFeatures": schema_k8sio_api_core_v1_NodeRuntimeHandlerFeatures(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), @@ -360,6 +360,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.VolumeMountStatus": schema_k8sio_api_core_v1_VolumeMountStatus(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.VolumeResourceRequirements": schema_k8sio_api_core_v1_VolumeResourceRequirements(ref), @@ -1888,6 +1889,11 @@ func schema_ironcore_api_core_v1alpha1_ObjectSelector(ref common.ReferenceCallba }, }, "matchExpressions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.", Type: []string{"array"}, @@ -2942,6 +2948,7 @@ func schema_ironcore_api_networking_v1alpha1_LoadBalancerSpec(ref common.Referen Default: "", Type: []string{"string"}, Format: "", + Enum: []interface{}{"", "IPv4", "IPv6"}, }, }, }, @@ -3414,6 +3421,7 @@ func schema_ironcore_api_networking_v1alpha1_NetworkInterfaceSpec(ref common.Ref Default: "", Type: []string{"string"}, Format: "", + Enum: []interface{}{"", "IPv4", "IPv6"}, }, }, }, @@ -6030,6 +6038,48 @@ func schema_k8sio_api_core_v1_Affinity(ref common.ReferenceCallback) common.Open } } +func schema_k8sio_api_core_v1_AppArmorProfile(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "AppArmorProfile defines a pod or container's AppArmor settings.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + SchemaProps: spec.SchemaProps{ + Description: "type indicates which kind of AppArmor profile will be applied. Valid options are:\n Localhost - a profile pre-loaded on the node.\n RuntimeDefault - the container runtime's default profile.\n Unconfined - no AppArmor enforcement.\n\nPossible enum values:\n - `\"Localhost\"` indicates that a profile pre-loaded on the node should be used.\n - `\"RuntimeDefault\"` indicates that the container runtime's default AppArmor profile should be used.\n - `\"Unconfined\"` indicates that no AppArmor profile should be enforced.", + Default: "", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Localhost", "RuntimeDefault", "Unconfined"}, + }, + }, + "localhostProfile": { + SchemaProps: spec.SchemaProps{ + Description: "localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \"Localhost\".", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"type"}, + }, + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-unions": []interface{}{ + map[string]interface{}{ + "discriminator": "type", + "fields-to-discriminateBy": map[string]interface{}{ + "localhostProfile": "LocalhostProfile", + }, + }, + }, + }, + }, + }, + } +} + func schema_k8sio_api_core_v1_AttachedVolume(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -6068,6 +6118,11 @@ func schema_k8sio_api_core_v1_AvoidPods(ref common.ReferenceCallback) common.Ope Type: []string{"object"}, Properties: map[string]spec.Schema{ "preferAvoidPods": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Bounded-sized list of signatures of pods that should avoid this node, sorted in timestamp order from oldest to newest. Size of the slice is unspecified.", Type: []string{"array"}, @@ -6434,6 +6489,11 @@ func schema_k8sio_api_core_v1_Capabilities(ref common.ReferenceCallback) common. Type: []string{"object"}, Properties: map[string]spec.Schema{ "add": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Added capabilities", Type: []string{"array"}, @@ -6449,6 +6509,11 @@ func schema_k8sio_api_core_v1_Capabilities(ref common.ReferenceCallback) common. }, }, "drop": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Removed capabilities", Type: []string{"array"}, @@ -6477,6 +6542,11 @@ func schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref common.ReferenceC Type: []string{"object"}, Properties: map[string]spec.Schema{ "monitors": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", Type: []string{"array"}, @@ -6542,6 +6612,11 @@ func schema_k8sio_api_core_v1_CephFSVolumeSource(ref common.ReferenceCallback) c Type: []string{"object"}, Properties: map[string]spec.Schema{ "monitors": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", Type: []string{"array"}, @@ -6860,6 +6935,10 @@ func schema_k8sio_api_core_v1_ComponentStatus(ref common.ReferenceCallback) comm "conditions": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "type", "x-kubernetes-patch-strategy": "merge", }, @@ -7019,7 +7098,8 @@ func schema_k8sio_api_core_v1_ConfigMapEnvSource(ref common.ReferenceCallback) c Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Default: "", Type: []string{"string"}, Format: "", }, @@ -7046,7 +7126,8 @@ func schema_k8sio_api_core_v1_ConfigMapKeySelector(ref common.ReferenceCallback) Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Default: "", Type: []string{"string"}, Format: "", }, @@ -7190,12 +7271,18 @@ func schema_k8sio_api_core_v1_ConfigMapProjection(ref common.ReferenceCallback) Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Default: "", Type: []string{"string"}, Format: "", }, }, "items": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", Type: []string{"array"}, @@ -7233,12 +7320,18 @@ func schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref common.ReferenceCallback Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Default: "", Type: []string{"string"}, Format: "", }, }, "items": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", Type: []string{"array"}, @@ -7297,6 +7390,11 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope }, }, "command": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", Type: []string{"array"}, @@ -7312,6 +7410,11 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope }, }, "args": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", Type: []string{"array"}, @@ -7359,6 +7462,11 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope }, }, "envFrom": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", Type: []string{"array"}, @@ -7375,6 +7483,10 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope "env": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "name", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "name", "x-kubernetes-patch-strategy": "merge", }, @@ -7428,6 +7540,10 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope "volumeMounts": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "mountPath", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "mountPath", "x-kubernetes-patch-strategy": "merge", }, @@ -7448,6 +7564,10 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope "volumeDevices": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "devicePath", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "devicePath", "x-kubernetes-patch-strategy": "merge", }, @@ -7556,6 +7676,11 @@ func schema_k8sio_api_core_v1_ContainerImage(ref common.ReferenceCallback) commo Type: []string{"object"}, Properties: map[string]spec.Schema{ "names": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"]", Type: []string{"array"}, @@ -7905,12 +8030,36 @@ func schema_k8sio_api_core_v1_ContainerStatus(ref common.ReferenceCallback) comm Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), }, }, + "volumeMounts": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "mountPath", + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Status of volume mounts.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.VolumeMountStatus"), + }, + }, + }, + }, + }, }, Required: []string{"name", "ready", "restartCount", "image", "imageID"}, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ContainerState", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + "k8s.io/api/core/v1.ContainerState", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.VolumeMountStatus", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } @@ -7944,6 +8093,11 @@ func schema_k8sio_api_core_v1_DownwardAPIProjection(ref common.ReferenceCallback Type: []string{"object"}, Properties: map[string]spec.Schema{ "items": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Items is a list of DownwardAPIVolume file", Type: []string{"array"}, @@ -7982,7 +8136,7 @@ func schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref common.ReferenceCallback }, "fieldRef": { SchemaProps: spec.SchemaProps{ - Description: "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.", + Description: "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.", Ref: ref("k8s.io/api/core/v1.ObjectFieldSelector"), }, }, @@ -8016,6 +8170,11 @@ func schema_k8sio_api_core_v1_DownwardAPIVolumeSource(ref common.ReferenceCallba Type: []string{"object"}, Properties: map[string]spec.Schema{ "items": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Items is a list of downward API volume file", Type: []string{"array"}, @@ -8178,6 +8337,11 @@ func schema_k8sio_api_core_v1_EndpointSubset(ref common.ReferenceCallback) commo Type: []string{"object"}, Properties: map[string]spec.Schema{ "addresses": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.", Type: []string{"array"}, @@ -8192,6 +8356,11 @@ func schema_k8sio_api_core_v1_EndpointSubset(ref common.ReferenceCallback) commo }, }, "notReadyAddresses": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.", Type: []string{"array"}, @@ -8206,6 +8375,11 @@ func schema_k8sio_api_core_v1_EndpointSubset(ref common.ReferenceCallback) commo }, }, "ports": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Port numbers available on the related IP addresses.", Type: []string{"array"}, @@ -8256,6 +8430,11 @@ func schema_k8sio_api_core_v1_Endpoints(ref common.ReferenceCallback) common.Ope }, }, "subsets": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.", Type: []string{"array"}, @@ -8461,6 +8640,11 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c }, }, "command": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", Type: []string{"array"}, @@ -8476,6 +8660,11 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c }, }, "args": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", Type: []string{"array"}, @@ -8523,6 +8712,11 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c }, }, "envFrom": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", Type: []string{"array"}, @@ -8539,6 +8733,10 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c "env": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "name", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "name", "x-kubernetes-patch-strategy": "merge", }, @@ -8592,6 +8790,10 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c "volumeMounts": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "mountPath", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "mountPath", "x-kubernetes-patch-strategy": "merge", }, @@ -8612,6 +8814,10 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c "volumeDevices": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "devicePath", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "devicePath", "x-kubernetes-patch-strategy": "merge", }, @@ -8742,6 +8948,11 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb }, }, "command": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", Type: []string{"array"}, @@ -8757,6 +8968,11 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb }, }, "args": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", Type: []string{"array"}, @@ -8804,6 +9020,11 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb }, }, "envFrom": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", Type: []string{"array"}, @@ -8820,6 +9041,10 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb "env": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "name", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "name", "x-kubernetes-patch-strategy": "merge", }, @@ -8873,6 +9098,10 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb "volumeMounts": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "mountPath", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "mountPath", "x-kubernetes-patch-strategy": "merge", }, @@ -8893,6 +9122,10 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb "volumeDevices": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "devicePath", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "devicePath", "x-kubernetes-patch-strategy": "merge", }, @@ -9260,6 +9493,11 @@ func schema_k8sio_api_core_v1_ExecAction(ref common.ReferenceCallback) common.Op Type: []string{"object"}, Properties: map[string]spec.Schema{ "command": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", Type: []string{"array"}, @@ -9288,6 +9526,11 @@ func schema_k8sio_api_core_v1_FCVolumeSource(ref common.ReferenceCallback) commo Type: []string{"object"}, Properties: map[string]spec.Schema{ "targetWWNs": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "targetWWNs is Optional: FC target worldwide names (WWNs)", Type: []string{"array"}, @@ -9324,6 +9567,11 @@ func schema_k8sio_api_core_v1_FCVolumeSource(ref common.ReferenceCallback) commo }, }, "wwids": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", Type: []string{"array"}, @@ -9716,6 +9964,11 @@ func schema_k8sio_api_core_v1_HTTPGetAction(ref common.ReferenceCallback) common }, }, "httpHeaders": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Custom headers to set in the request. HTTP allows repeated headers.", Type: []string{"array"}, @@ -9778,11 +10031,17 @@ func schema_k8sio_api_core_v1_HostAlias(ref common.ReferenceCallback) common.Ope "ip": { SchemaProps: spec.SchemaProps{ Description: "IP address of the host file entry.", + Default: "", Type: []string{"string"}, Format: "", }, }, "hostnames": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Hostnames for the above IP address.", Type: []string{"array"}, @@ -9798,6 +10057,7 @@ func schema_k8sio_api_core_v1_HostAlias(ref common.ReferenceCallback) common.Ope }, }, }, + Required: []string{"ip"}, }, }, } @@ -9906,6 +10166,11 @@ func schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref common.ReferenceCa }, }, "portals": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", Type: []string{"array"}, @@ -10009,8 +10274,13 @@ func schema_k8sio_api_core_v1_ISCSIVolumeSource(ref common.ReferenceCallback) co }, }, "portals": { - SchemaProps: spec.SchemaProps{ - Description: "portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -10358,6 +10628,11 @@ func schema_k8sio_api_core_v1_LimitRangeSpec(ref common.ReferenceCallback) commo Type: []string{"object"}, Properties: map[string]spec.Schema{ "limits": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Limits is the list of LimitRangeItem objects that are enforced.", Type: []string{"array"}, @@ -10493,6 +10768,11 @@ func schema_k8sio_api_core_v1_LoadBalancerStatus(ref common.ReferenceCallback) c Type: []string{"object"}, Properties: map[string]spec.Schema{ "ingress": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", Type: []string{"array"}, @@ -10523,7 +10803,8 @@ func schema_k8sio_api_core_v1_LocalObjectReference(ref common.ReferenceCallback) Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Default: "", Type: []string{"string"}, Format: "", }, @@ -10793,6 +11074,11 @@ func schema_k8sio_api_core_v1_NamespaceSpec(ref common.ReferenceCallback) common Type: []string{"object"}, Properties: map[string]spec.Schema{ "finalizers": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", Type: []string{"array"}, @@ -10831,6 +11117,10 @@ func schema_k8sio_api_core_v1_NamespaceStatus(ref common.ReferenceCallback) comm "conditions": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "type", "x-kubernetes-patch-strategy": "merge", }, @@ -10950,6 +11240,11 @@ func schema_k8sio_api_core_v1_NodeAffinity(ref common.ReferenceCallback) common. }, }, "preferredDuringSchedulingIgnoredDuringExecution": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", Type: []string{"array"}, @@ -11197,33 +11492,52 @@ func schema_k8sio_api_core_v1_NodeProxyOptions(ref common.ReferenceCallback) com } } -func schema_k8sio_api_core_v1_NodeResources(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_core_v1_NodeRuntimeHandler(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeResources is an object for conveying resource information about a node. see https://kubernetes.io/docs/concepts/architecture/nodes/#capacity for more details.", + Description: "NodeRuntimeHandler is a set of runtime handler information.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "Capacity": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Capacity represents the available resources of a node", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, + Description: "Runtime handler name. Empty for the default runtime handler.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "features": { + SchemaProps: spec.SchemaProps{ + Description: "Supported features.", + Ref: ref("k8s.io/api/core/v1.NodeRuntimeHandlerFeatures"), }, }, }, - Required: []string{"Capacity"}, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + "k8s.io/api/core/v1.NodeRuntimeHandlerFeatures"}, + } +} + +func schema_k8sio_api_core_v1_NodeRuntimeHandlerFeatures(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeRuntimeHandlerFeatures is a set of runtime features.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "recursiveReadOnlyMounts": { + SchemaProps: spec.SchemaProps{ + Description: "RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts.", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, } } @@ -11235,6 +11549,11 @@ func schema_k8sio_api_core_v1_NodeSelector(ref common.ReferenceCallback) common. Type: []string{"object"}, Properties: map[string]spec.Schema{ "nodeSelectorTerms": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Required. A list of node selector terms. The terms are ORed.", Type: []string{"array"}, @@ -11287,6 +11606,11 @@ func schema_k8sio_api_core_v1_NodeSelectorRequirement(ref common.ReferenceCallba }, }, "values": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", Type: []string{"array"}, @@ -11316,6 +11640,11 @@ func schema_k8sio_api_core_v1_NodeSelectorTerm(ref common.ReferenceCallback) com Type: []string{"object"}, Properties: map[string]spec.Schema{ "matchExpressions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "A list of node selector requirements by node's labels.", Type: []string{"array"}, @@ -11330,6 +11659,11 @@ func schema_k8sio_api_core_v1_NodeSelectorTerm(ref common.ReferenceCallback) com }, }, "matchFields": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "A list of node selector requirements by node's fields.", Type: []string{"array"}, @@ -11373,6 +11707,7 @@ func schema_k8sio_api_core_v1_NodeSpec(ref common.ReferenceCallback) common.Open "podCIDRs": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", "x-kubernetes-patch-strategy": "merge", }, }, @@ -11405,6 +11740,11 @@ func schema_k8sio_api_core_v1_NodeSpec(ref common.ReferenceCallback) common.Open }, }, "taints": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "If specified, the node's taints.", Type: []string{"array"}, @@ -11485,6 +11825,10 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op "conditions": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "type", "x-kubernetes-patch-strategy": "merge", }, @@ -11505,6 +11849,10 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op "addresses": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "type", "x-kubernetes-patch-strategy": "merge", }, @@ -11537,6 +11885,11 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op }, }, "images": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "List of container images on this node", Type: []string{"array"}, @@ -11551,6 +11904,11 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op }, }, "volumesInUse": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "List of attachable volumes in use (mounted) by the node.", Type: []string{"array"}, @@ -11566,6 +11924,11 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op }, }, "volumesAttached": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "List of volumes that are attached to the node.", Type: []string{"array"}, @@ -11585,11 +11948,30 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op Ref: ref("k8s.io/api/core/v1.NodeConfigStatus"), }, }, + "runtimeHandlers": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "The available runtime handlers.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.NodeRuntimeHandler"), + }, + }, + }, + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.AttachedVolume", "k8s.io/api/core/v1.ContainerImage", "k8s.io/api/core/v1.NodeAddress", "k8s.io/api/core/v1.NodeCondition", "k8s.io/api/core/v1.NodeConfigStatus", "k8s.io/api/core/v1.NodeDaemonEndpoints", "k8s.io/api/core/v1.NodeSystemInfo", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + "k8s.io/api/core/v1.AttachedVolume", "k8s.io/api/core/v1.ContainerImage", "k8s.io/api/core/v1.NodeAddress", "k8s.io/api/core/v1.NodeCondition", "k8s.io/api/core/v1.NodeConfigStatus", "k8s.io/api/core/v1.NodeDaemonEndpoints", "k8s.io/api/core/v1.NodeRuntimeHandler", "k8s.io/api/core/v1.NodeSystemInfo", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } @@ -11923,7 +12305,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref common.Referenc }, "reason": { SchemaProps: spec.SchemaProps{ - Description: "reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized.", + Description: "reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"Resizing\" that means the underlying persistent volume is being resized.", Type: []string{"string"}, Format: "", }, @@ -12003,6 +12385,11 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref common.ReferenceCall Type: []string{"object"}, Properties: map[string]spec.Schema{ "accessModes": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", Type: []string{"array"}, @@ -12012,6 +12399,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref common.ReferenceCall Default: "", Type: []string{"string"}, Format: "", + Enum: []interface{}{"ReadOnlyMany", "ReadWriteMany", "ReadWriteOnce", "ReadWriteOncePod"}, }, }, }, @@ -12066,7 +12454,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref common.ReferenceCall }, "volumeAttributesClassName": { SchemaProps: spec.SchemaProps{ - Description: "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#volumeattributesclass (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled.", + Description: "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled.", Type: []string{"string"}, Format: "", }, @@ -12095,6 +12483,11 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref common.ReferenceCa }, }, "accessModes": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", Type: []string{"array"}, @@ -12104,6 +12497,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref common.ReferenceCa Default: "", Type: []string{"string"}, Format: "", + Enum: []interface{}{"ReadOnlyMany", "ReadWriteMany", "ReadWriteOnce", "ReadWriteOncePod"}, }, }, }, @@ -12126,12 +12520,16 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref common.ReferenceCa "conditions": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "type", "x-kubernetes-patch-strategy": "merge", }, }, SchemaProps: spec.SchemaProps{ - Description: "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.", + Description: "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -12173,6 +12571,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref common.ReferenceCa Default: "", Type: []string{"string"}, Format: "", + Enum: []interface{}{"ControllerResizeFailed", "ControllerResizeInProgress", "NodeResizeFailed", "NodeResizeInProgress", "NodeResizePending"}, }, }, }, @@ -12610,6 +13009,11 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, }, "accessModes": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes", Type: []string{"array"}, @@ -12619,6 +13023,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) Default: "", Type: []string{"string"}, Format: "", + Enum: []interface{}{"ReadOnlyMany", "ReadWriteMany", "ReadWriteOnce", "ReadWriteOncePod"}, }, }, }, @@ -12651,6 +13056,11 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, }, "mountOptions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "mountOptions is the list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options", Type: []string{"array"}, @@ -12824,6 +13234,11 @@ func schema_k8sio_api_core_v1_PodAffinity(ref common.ReferenceCallback) common.O Type: []string{"object"}, Properties: map[string]spec.Schema{ "requiredDuringSchedulingIgnoredDuringExecution": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", Type: []string{"array"}, @@ -12838,6 +13253,11 @@ func schema_k8sio_api_core_v1_PodAffinity(ref common.ReferenceCallback) common.O }, }, "preferredDuringSchedulingIgnoredDuringExecution": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", Type: []string{"array"}, @@ -12873,6 +13293,11 @@ func schema_k8sio_api_core_v1_PodAffinityTerm(ref common.ReferenceCallback) comm }, }, "namespaces": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", Type: []string{"array"}, @@ -12908,7 +13333,7 @@ func schema_k8sio_api_core_v1_PodAffinityTerm(ref common.ReferenceCallback) comm }, }, SchemaProps: spec.SchemaProps{ - Description: "MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. Also, MatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.", + Description: "MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -12928,7 +13353,7 @@ func schema_k8sio_api_core_v1_PodAffinityTerm(ref common.ReferenceCallback) comm }, }, SchemaProps: spec.SchemaProps{ - Description: "MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.", + Description: "MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -12958,6 +13383,11 @@ func schema_k8sio_api_core_v1_PodAntiAffinity(ref common.ReferenceCallback) comm Type: []string{"object"}, Properties: map[string]spec.Schema{ "requiredDuringSchedulingIgnoredDuringExecution": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", Type: []string{"array"}, @@ -12972,6 +13402,11 @@ func schema_k8sio_api_core_v1_PodAntiAffinity(ref common.ReferenceCallback) comm }, }, "preferredDuringSchedulingIgnoredDuringExecution": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", Type: []string{"array"}, @@ -13121,6 +13556,11 @@ func schema_k8sio_api_core_v1_PodDNSConfig(ref common.ReferenceCallback) common. Type: []string{"object"}, Properties: map[string]spec.Schema{ "nameservers": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.", Type: []string{"array"}, @@ -13136,6 +13576,11 @@ func schema_k8sio_api_core_v1_PodDNSConfig(ref common.ReferenceCallback) common. }, }, "searches": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.", Type: []string{"array"}, @@ -13151,6 +13596,11 @@ func schema_k8sio_api_core_v1_PodDNSConfig(ref common.ReferenceCallback) common. }, }, "options": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.", Type: []string{"array"}, @@ -13255,6 +13705,11 @@ func schema_k8sio_api_core_v1_PodExecOptions(ref common.ReferenceCallback) commo }, }, "command": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Command is the remote command to execute. argv array. Not executed within a shell.", Type: []string{"array"}, @@ -13482,6 +13937,11 @@ func schema_k8sio_api_core_v1_PodPortForwardOptions(ref common.ReferenceCallback }, }, "ports": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "List of ports to forward Required when using WebSockets", Type: []string{"array"}, @@ -13681,6 +14141,11 @@ func schema_k8sio_api_core_v1_PodSecurityContext(ref common.ReferenceCallback) c }, }, "supplementalGroups": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.", Type: []string{"array"}, @@ -13703,6 +14168,11 @@ func schema_k8sio_api_core_v1_PodSecurityContext(ref common.ReferenceCallback) c }, }, "sysctls": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows.", Type: []string{"array"}, @@ -13730,11 +14200,17 @@ func schema_k8sio_api_core_v1_PodSecurityContext(ref common.ReferenceCallback) c Ref: ref("k8s.io/api/core/v1.SeccompProfile"), }, }, + "appArmorProfile": { + SchemaProps: spec.SchemaProps{ + Description: "appArmorProfile is the AppArmor options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows.", + Ref: ref("k8s.io/api/core/v1.AppArmorProfile"), + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.SELinuxOptions", "k8s.io/api/core/v1.SeccompProfile", "k8s.io/api/core/v1.Sysctl", "k8s.io/api/core/v1.WindowsSecurityContextOptions"}, + "k8s.io/api/core/v1.AppArmorProfile", "k8s.io/api/core/v1.SELinuxOptions", "k8s.io/api/core/v1.SeccompProfile", "k8s.io/api/core/v1.Sysctl", "k8s.io/api/core/v1.WindowsSecurityContextOptions"}, } } @@ -13769,6 +14245,10 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA "volumes": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "name", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "name", "x-kubernetes-patch-strategy": "merge,retainKeys", }, @@ -13789,6 +14269,10 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA "initContainers": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "name", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "name", "x-kubernetes-patch-strategy": "merge", }, @@ -13809,6 +14293,10 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA "containers": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "name", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "name", "x-kubernetes-patch-strategy": "merge", }, @@ -13829,6 +14317,10 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA "ephemeralContainers": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "name", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "name", "x-kubernetes-patch-strategy": "merge", }, @@ -13906,7 +14398,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA }, "serviceAccount": { SchemaProps: spec.SchemaProps{ - Description: "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", + Description: "DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", Type: []string{"string"}, Format: "", }, @@ -13962,6 +14454,10 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA "imagePullSecrets": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "name", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "name", "x-kubernetes-patch-strategy": "merge", }, @@ -14007,6 +14503,11 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA }, }, "tolerations": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "If specified, the pod's tolerations.", Type: []string{"array"}, @@ -14023,12 +14524,16 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA "hostAliases": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "ip", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "ip", "x-kubernetes-patch-strategy": "merge", }, }, SchemaProps: spec.SchemaProps{ - Description: "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.", + Description: "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -14061,6 +14566,11 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA }, }, "readinessGates": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates", Type: []string{"array"}, @@ -14144,7 +14654,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA }, "os": { SchemaProps: spec.SchemaProps{ - Description: "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup", + Description: "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.appArmorProfile - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.appArmorProfile - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup", Ref: ref("k8s.io/api/core/v1.PodOS"), }, }, @@ -14167,7 +14677,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA }, }, SchemaProps: spec.SchemaProps{ - Description: "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\n\nSchedulingGates can only be set at pod creation time, and be removed only afterwards.\n\nThis is a beta feature enabled by the PodSchedulingReadiness feature gate.", + Description: "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\n\nSchedulingGates can only be set at pod creation time, and be removed only afterwards.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -14230,6 +14740,10 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope "conditions": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "type", "x-kubernetes-patch-strategy": "merge", }, @@ -14306,6 +14820,10 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope "podIPs": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "ip", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "ip", "x-kubernetes-patch-strategy": "merge", }, @@ -14330,6 +14848,11 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope }, }, "initContainerStatuses": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", Type: []string{"array"}, @@ -14342,8 +14865,13 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope }, }, }, - }, - "containerStatuses": { + }, + "containerStatuses": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", Type: []string{"array"}, @@ -14366,6 +14894,11 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope }, }, "ephemeralContainerStatuses": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Status for any ephemeral containers that have run in this pod.", Type: []string{"array"}, @@ -14859,6 +15392,11 @@ func schema_k8sio_api_core_v1_ProjectedVolumeSource(ref common.ReferenceCallback Type: []string{"object"}, Properties: map[string]spec.Schema{ "sources": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "sources is the list of volume projections", Type: []string{"array"}, @@ -14953,6 +15491,11 @@ func schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref common.ReferenceCall Type: []string{"object"}, Properties: map[string]spec.Schema{ "monitors": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", Type: []string{"array"}, @@ -15033,6 +15576,11 @@ func schema_k8sio_api_core_v1_RBDVolumeSource(ref common.ReferenceCallback) comm Type: []string{"object"}, Properties: map[string]spec.Schema{ "monitors": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", Type: []string{"array"}, @@ -15412,6 +15960,10 @@ func schema_k8sio_api_core_v1_ReplicationControllerStatus(ref common.ReferenceCa "conditions": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "type", "x-kubernetes-patch-strategy": "merge", }, @@ -15625,6 +16177,11 @@ func schema_k8sio_api_core_v1_ResourceQuotaSpec(ref common.ReferenceCallback) co }, }, "scopes": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.", Type: []string{"array"}, @@ -15634,6 +16191,7 @@ func schema_k8sio_api_core_v1_ResourceQuotaSpec(ref common.ReferenceCallback) co Default: "", Type: []string{"string"}, Format: "", + Enum: []interface{}{"BestEffort", "CrossNamespacePodAffinity", "NotBestEffort", "NotTerminating", "PriorityClass", "Terminating"}, }, }, }, @@ -15984,6 +16542,11 @@ func schema_k8sio_api_core_v1_ScopeSelector(ref common.ReferenceCallback) common Type: []string{"object"}, Properties: map[string]spec.Schema{ "matchExpressions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "A list of scope selector requirements by scope of the resources.", Type: []string{"array"}, @@ -16036,6 +16599,11 @@ func schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref common.Refer }, }, "values": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", Type: []string{"array"}, @@ -16189,7 +16757,8 @@ func schema_k8sio_api_core_v1_SecretEnvSource(ref common.ReferenceCallback) comm Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Default: "", Type: []string{"string"}, Format: "", }, @@ -16216,7 +16785,8 @@ func schema_k8sio_api_core_v1_SecretKeySelector(ref common.ReferenceCallback) co Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Default: "", Type: []string{"string"}, Format: "", }, @@ -16308,12 +16878,18 @@ func schema_k8sio_api_core_v1_SecretProjection(ref common.ReferenceCallback) com Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Default: "", Type: []string{"string"}, Format: "", }, }, "items": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", Type: []string{"array"}, @@ -16389,6 +16965,11 @@ func schema_k8sio_api_core_v1_SecretVolumeSource(ref common.ReferenceCallback) c }, }, "items": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", Type: []string{"array"}, @@ -16505,11 +17086,17 @@ func schema_k8sio_api_core_v1_SecurityContext(ref common.ReferenceCallback) comm Ref: ref("k8s.io/api/core/v1.SeccompProfile"), }, }, + "appArmorProfile": { + SchemaProps: spec.SchemaProps{ + Description: "appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows.", + Ref: ref("k8s.io/api/core/v1.AppArmorProfile"), + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.Capabilities", "k8s.io/api/core/v1.SELinuxOptions", "k8s.io/api/core/v1.SeccompProfile", "k8s.io/api/core/v1.WindowsSecurityContextOptions"}, + "k8s.io/api/core/v1.AppArmorProfile", "k8s.io/api/core/v1.Capabilities", "k8s.io/api/core/v1.SELinuxOptions", "k8s.io/api/core/v1.SeccompProfile", "k8s.io/api/core/v1.WindowsSecurityContextOptions"}, } } @@ -16630,6 +17217,10 @@ func schema_k8sio_api_core_v1_ServiceAccount(ref common.ReferenceCallback) commo "secrets": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "name", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "name", "x-kubernetes-patch-strategy": "merge", }, @@ -16648,6 +17239,11 @@ func schema_k8sio_api_core_v1_ServiceAccount(ref common.ReferenceCallback) commo }, }, "imagePullSecrets": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod", Type: []string{"array"}, @@ -16997,6 +17593,11 @@ func schema_k8sio_api_core_v1_ServiceSpec(ref common.ReferenceCallback) common.O }, }, "externalIPs": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.", Type: []string{"array"}, @@ -17027,6 +17628,11 @@ func schema_k8sio_api_core_v1_ServiceSpec(ref common.ReferenceCallback) common.O }, }, "loadBalancerSourceRanges": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/", Type: []string{"array"}, @@ -17050,10 +17656,10 @@ func schema_k8sio_api_core_v1_ServiceSpec(ref common.ReferenceCallback) common.O }, "externalTrafficPolicy": { SchemaProps: spec.SchemaProps{ - Description: "externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node.\n\nPossible enum values:\n - `\"Cluster\"`\n - `\"Cluster\"` routes traffic to all endpoints.\n - `\"Local\"`\n - `\"Local\"` preserves the source IP of the traffic by routing only to endpoints on the same node as the traffic was received on (dropping the traffic if there are no local endpoints).", + Description: "externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node.\n\nPossible enum values:\n - `\"Cluster\"` routes traffic to all endpoints.\n - `\"Local\"` preserves the source IP of the traffic by routing only to endpoints on the same node as the traffic was received on (dropping the traffic if there are no local endpoints).", Type: []string{"string"}, Format: "", - Enum: []interface{}{"Cluster", "Cluster", "Local", "Local"}, + Enum: []interface{}{"Cluster", "Local"}, }, }, "healthCheckNodePort": { @@ -17091,6 +17697,7 @@ func schema_k8sio_api_core_v1_ServiceSpec(ref common.ReferenceCallback) common.O Default: "", Type: []string{"string"}, Format: "", + Enum: []interface{}{"", "IPv4", "IPv6"}, }, }, }, @@ -17126,6 +17733,13 @@ func schema_k8sio_api_core_v1_ServiceSpec(ref common.ReferenceCallback) common.O Enum: []interface{}{"Cluster", "Local"}, }, }, + "trafficDistribution": { + SchemaProps: spec.SchemaProps{ + Description: "TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \"PreferClose\", implementations should prioritize endpoints that are topologically close (e.g., same zone). This is an alpha field and requires enabling ServiceTrafficDistribution feature.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -17492,6 +18106,11 @@ func schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref common.Refere }, }, "values": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "An array of string values. One value must match the label to be selected. Each entry in Values is ORed.", Type: []string{"array"}, @@ -17521,6 +18140,11 @@ func schema_k8sio_api_core_v1_TopologySelectorTerm(ref common.ReferenceCallback) Type: []string{"object"}, Properties: map[string]spec.Schema{ "matchLabelExpressions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "A list of topology selector requirements by labels.", Type: []string{"array"}, @@ -17587,7 +18211,7 @@ func schema_k8sio_api_core_v1_TopologySpreadConstraint(ref common.ReferenceCallb }, "minDomains": { SchemaProps: spec.SchemaProps{ - Description: "MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.\n\nThis is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default).", + Description: "MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.", Type: []string{"integer"}, Format: "int32", }, @@ -17972,6 +18596,13 @@ func schema_k8sio_api_core_v1_VolumeMount(ref common.ReferenceCallback) common.O Format: "", }, }, + "recursiveReadOnly": { + SchemaProps: spec.SchemaProps{ + Description: "RecursiveReadOnly specifies whether read-only mounts should be handled recursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None).\n\nIf this field is not specified, it is treated as an equivalent of Disabled.", + Type: []string{"string"}, + Format: "", + }, + }, "mountPath": { SchemaProps: spec.SchemaProps{ Description: "Path within the container at which the volume should be mounted. Must not contain ':'.", @@ -17989,7 +18620,7 @@ func schema_k8sio_api_core_v1_VolumeMount(ref common.ReferenceCallback) common.O }, "mountPropagation": { SchemaProps: spec.SchemaProps{ - Description: "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10.\n\nPossible enum values:\n - `\"Bidirectional\"` means that the volume in a container will receive new mounts from the host or other containers, and its own mounts will be propagated from the container to the host or other containers. Note that this mode is recursively applied to all mounts in the volume (\"rshared\" in Linux terminology).\n - `\"HostToContainer\"` means that the volume in a container will receive new mounts from the host or other containers, but filesystems mounted inside the container won't be propagated to the host or other containers. Note that this mode is recursively applied to all mounts in the volume (\"rslave\" in Linux terminology).\n - `\"None\"` means that the volume in a container will not receive new mounts from the host or other containers, and filesystems mounted inside the container won't be propagated to the host or other containers. Note that this mode corresponds to \"private\" in Linux terminology.", + Description: "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None).\n\nPossible enum values:\n - `\"Bidirectional\"` means that the volume in a container will receive new mounts from the host or other containers, and its own mounts will be propagated from the container to the host or other containers. Note that this mode is recursively applied to all mounts in the volume (\"rshared\" in Linux terminology).\n - `\"HostToContainer\"` means that the volume in a container will receive new mounts from the host or other containers, but filesystems mounted inside the container won't be propagated to the host or other containers. Note that this mode is recursively applied to all mounts in the volume (\"rslave\" in Linux terminology).\n - `\"None\"` means that the volume in a container will not receive new mounts from the host or other containers, and filesystems mounted inside the container won't be propagated to the host or other containers. Note that this mode corresponds to \"private\" in Linux terminology.", Type: []string{"string"}, Format: "", Enum: []interface{}{"Bidirectional", "HostToContainer", "None"}, @@ -18009,6 +18640,50 @@ func schema_k8sio_api_core_v1_VolumeMount(ref common.ReferenceCallback) common.O } } +func schema_k8sio_api_core_v1_VolumeMountStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VolumeMountStatus shows status of volume mounts.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name corresponds to the name of the original VolumeMount.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "mountPath": { + SchemaProps: spec.SchemaProps{ + Description: "MountPath corresponds to the original VolumeMount.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "readOnly": { + SchemaProps: spec.SchemaProps{ + Description: "ReadOnly corresponds to the original VolumeMount.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "recursiveReadOnly": { + SchemaProps: spec.SchemaProps{ + Description: "RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts). An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled, depending on the mount result.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name", "mountPath"}, + }, + }, + } +} + func schema_k8sio_api_core_v1_VolumeNodeAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -18500,6 +19175,11 @@ func schema_pkg_apis_meta_v1_APIGroup(ref common.ReferenceCallback) common.OpenA }, }, "versions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "versions are the versions supported in this group.", Type: []string{"array"}, @@ -18521,6 +19201,11 @@ func schema_pkg_apis_meta_v1_APIGroup(ref common.ReferenceCallback) common.OpenA }, }, "serverAddressByClientCIDRs": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", Type: []string{"array"}, @@ -18565,6 +19250,11 @@ func schema_pkg_apis_meta_v1_APIGroupList(ref common.ReferenceCallback) common.O }, }, "groups": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "groups is a list of APIGroup.", Type: []string{"array"}, @@ -18656,6 +19346,11 @@ func schema_pkg_apis_meta_v1_APIResource(ref common.ReferenceCallback) common.Op }, }, "shortNames": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "shortNames is a list of suggested short names of the resource.", Type: []string{"array"}, @@ -18671,6 +19366,11 @@ func schema_pkg_apis_meta_v1_APIResource(ref common.ReferenceCallback) common.Op }, }, "categories": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", Type: []string{"array"}, @@ -18729,6 +19429,11 @@ func schema_pkg_apis_meta_v1_APIResourceList(ref common.ReferenceCallback) commo }, }, "resources": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "resources contains the name of the resources and if they are namespaced.", Type: []string{"array"}, @@ -18773,6 +19478,11 @@ func schema_pkg_apis_meta_v1_APIVersions(ref common.ReferenceCallback) common.Op }, }, "versions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "versions are the api versions that are available.", Type: []string{"array"}, @@ -18788,6 +19498,11 @@ func schema_pkg_apis_meta_v1_APIVersions(ref common.ReferenceCallback) common.Op }, }, "serverAddressByClientCIDRs": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", Type: []string{"array"}, @@ -18832,6 +19547,11 @@ func schema_pkg_apis_meta_v1_ApplyOptions(ref common.ReferenceCallback) common.O }, }, "dryRun": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", Type: []string{"array"}, @@ -18952,6 +19672,11 @@ func schema_pkg_apis_meta_v1_CreateOptions(ref common.ReferenceCallback) common. }, }, "dryRun": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", Type: []string{"array"}, @@ -19035,6 +19760,11 @@ func schema_pkg_apis_meta_v1_DeleteOptions(ref common.ReferenceCallback) common. }, }, "dryRun": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", Type: []string{"array"}, @@ -19351,6 +20081,11 @@ func schema_pkg_apis_meta_v1_LabelSelector(ref common.ReferenceCallback) common. }, }, "matchExpressions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.", Type: []string{"array"}, @@ -19401,6 +20136,11 @@ func schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref common.ReferenceCallba }, }, "values": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", Type: []string{"array"}, @@ -19794,6 +20534,10 @@ func schema_pkg_apis_meta_v1_ObjectMeta(ref common.ReferenceCallback) common.Ope "ownerReferences": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "uid", + }, + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "uid", "x-kubernetes-patch-strategy": "merge", }, @@ -19814,6 +20558,7 @@ func schema_pkg_apis_meta_v1_ObjectMeta(ref common.ReferenceCallback) common.Ope "finalizers": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", "x-kubernetes-patch-strategy": "merge", }, }, @@ -19832,6 +20577,11 @@ func schema_pkg_apis_meta_v1_ObjectMeta(ref common.ReferenceCallback) common.Ope }, }, "managedFields": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.", Type: []string{"array"}, @@ -20038,6 +20788,11 @@ func schema_pkg_apis_meta_v1_PatchOptions(ref common.ReferenceCallback) common.O }, }, "dryRun": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", Type: []string{"array"}, @@ -20114,6 +20869,11 @@ func schema_pkg_apis_meta_v1_RootPaths(ref common.ReferenceCallback) common.Open Type: []string{"object"}, Properties: map[string]spec.Schema{ "paths": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "paths are the paths available at root.", Type: []string{"array"}, @@ -20215,6 +20975,11 @@ func schema_pkg_apis_meta_v1_Status(ref common.ReferenceCallback) common.OpenAPI }, }, "details": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"), @@ -20305,6 +21070,11 @@ func schema_pkg_apis_meta_v1_StatusDetails(ref common.ReferenceCallback) common. }, }, "causes": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", Type: []string{"array"}, @@ -20362,6 +21132,11 @@ func schema_pkg_apis_meta_v1_Table(ref common.ReferenceCallback) common.OpenAPID }, }, "columnDefinitions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "columnDefinitions describes each column in the returned items array. The number of cells per row will always match the number of column definitions.", Type: []string{"array"}, @@ -20376,6 +21151,11 @@ func schema_pkg_apis_meta_v1_Table(ref common.ReferenceCallback) common.OpenAPID }, }, "rows": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "rows is the list of items in the table.", Type: []string{"array"}, @@ -20494,6 +21274,11 @@ func schema_pkg_apis_meta_v1_TableRow(ref common.ReferenceCallback) common.OpenA Type: []string{"object"}, Properties: map[string]spec.Schema{ "cells": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "cells will be as wide as the column definitions array and may contain strings, numbers (float64 or int64), booleans, simple maps, lists, or null. See the type field of the column definition for a more detailed description.", Type: []string{"array"}, @@ -20508,6 +21293,11 @@ func schema_pkg_apis_meta_v1_TableRow(ref common.ReferenceCallback) common.OpenA }, }, "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "conditions describe additional status of a row that are relevant for a human user. These conditions apply to the row, not to the object, and will be specific to table output. The only defined condition type is 'Completed', for a row that indicates a resource that has run to completion and can be given less visual priority.", Type: []string{"array"}, @@ -20671,6 +21461,11 @@ func schema_pkg_apis_meta_v1_UpdateOptions(ref common.ReferenceCallback) common. }, }, "dryRun": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ Description: "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", Type: []string{"array"}, diff --git a/go.mod b/go.mod index c466c7a92..79ae0a043 100644 --- a/go.mod +++ b/go.mod @@ -17,19 +17,20 @@ require ( go4.org/netipx v0.0.0-20220812043211-3cc044ffd68d golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 golang.org/x/sync v0.8.0 - golang.org/x/sys v0.26.0 - google.golang.org/grpc v1.67.1 - k8s.io/api v0.29.7 - k8s.io/apimachinery v0.29.7 - k8s.io/apiserver v0.29.7 - k8s.io/client-go v0.29.7 - k8s.io/component-base v0.29.7 + golang.org/x/sys v0.25.0 + google.golang.org/grpc v1.66.2 + k8s.io/api v0.30.4 + k8s.io/apimachinery v0.30.4 + k8s.io/apiserver v0.30.4 + k8s.io/client-go v0.30.4 + k8s.io/code-generator v0.30.4 + k8s.io/component-base v0.30.4 k8s.io/klog/v2 v2.130.1 - k8s.io/kube-aggregator v0.29.4 - k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 - k8s.io/kubectl v0.29.4 - k8s.io/utils v0.0.0-20240102154912-e7106e64919e - sigs.k8s.io/controller-runtime v0.17.5 + k8s.io/kube-aggregator v0.30.4 + k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 + k8s.io/kubectl v0.30.4 + k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 + sigs.k8s.io/controller-runtime v0.18.5 sigs.k8s.io/structured-merge-diff/v4 v4.4.1 sigs.k8s.io/yaml v1.4.0 ) @@ -47,18 +48,18 @@ require ( github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/emicklei/go-restful/v3 v3.11.0 // indirect github.com/evanphx/json-patch v5.6.0+incompatible // indirect - github.com/evanphx/json-patch/v5 v5.8.0 // indirect + github.com/evanphx/json-patch/v5 v5.9.0 // indirect github.com/felixge/httpsnoop v1.0.3 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-logr/zapr v1.3.0 // indirect - github.com/go-openapi/jsonpointer v0.19.6 // indirect + github.com/go-openapi/jsonpointer v0.21.0 // indirect github.com/go-openapi/jsonreference v0.20.2 // indirect - github.com/go-openapi/swag v0.22.4 // indirect + github.com/go-openapi/swag v0.23.0 // indirect github.com/go-task/slim-sprig/v3 v3.0.0 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.4 // indirect - github.com/google/cel-go v0.17.7 // indirect + github.com/google/cel-go v0.17.8 // indirect github.com/google/gnostic-models v0.6.8 // indirect github.com/google/gofuzz v1.2.0 // indirect github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5 // indirect @@ -101,6 +102,7 @@ require ( go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.26.0 // indirect golang.org/x/crypto v0.26.0 // indirect + golang.org/x/mod v0.20.0 // indirect golang.org/x/net v0.28.0 // indirect golang.org/x/oauth2 v0.22.0 // indirect golang.org/x/term v0.23.0 // indirect @@ -109,16 +111,17 @@ require ( golang.org/x/tools v0.24.0 // indirect gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20240604185151-ef581f913117 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240604185151-ef581f913117 // indirect google.golang.org/protobuf v1.34.2 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - k8s.io/apiextensions-apiserver v0.29.7 // indirect - k8s.io/cli-runtime v0.29.4 // indirect - k8s.io/kms v0.29.7 // indirect - sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.28.0 // indirect + k8s.io/apiextensions-apiserver v0.30.4 // indirect + k8s.io/cli-runtime v0.30.4 // indirect + k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70 // indirect + k8s.io/kms v0.30.4 // indirect + sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.29.0 // indirect sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect ) diff --git a/go.sum b/go.sum index e4b71d3e4..9a263e2b8 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,7 @@ cloud.google.com/go v0.112.0 h1:tpFCD7hpHFlQ8yPwT3x+QeXqc2T6+n6T+hmABHfDUSM= cloud.google.com/go/compute v1.24.0 h1:phWcR2eWzRJaL/kOiJwfFsPs4BaKq1j6vnpZrc1YlVg= -cloud.google.com/go/compute/metadata v0.5.0 h1:Zr0eK8JbFv6+Wi4ilXAR8FJ3wyNdpxHKJNPos6LTZOY= -cloud.google.com/go/compute/metadata v0.5.0/go.mod h1:aHnloV2TPI38yx4s9+wAZhHykWvVCfu7hQbF+9CWoiY= +cloud.google.com/go/compute/metadata v0.3.0 h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2QxYC4trgAKZc= +cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= github.com/NYTimes/gziphandler v1.1.1 h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cqUQ3I= @@ -22,8 +22,8 @@ github.com/cenkalti/backoff/v4 v4.2.1 h1:y4OZtCnogmCPw98Zjyt5a6+QwPLGkiQsYW5oUqy github.com/cenkalti/backoff/v4 v4.2.1/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cncf/xds/go v0.0.0-20240723142845-024c85f92f20 h1:N+3sFI5GUjRKBi+i0TxYVST9h4Ie192jJWpHvthBBgg= -github.com/cncf/xds/go v0.0.0-20240723142845-024c85f92f20/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8= +github.com/cncf/xds/go v0.0.0-20240423153145-555b57ec207b h1:ga8SEFjZ60pxLcmhnThWgvH2wg8376yUJmPhEH4H3kw= +github.com/cncf/xds/go v0.0.0-20240423153145-555b57ec207b/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8= github.com/coreos/go-semver v0.3.1 h1:yi21YpKnrx1gt5R+la8n5WgS0kCrsPp33dmEyHReZr4= github.com/coreos/go-semver v0.3.1/go.mod h1:irMmmIw/7yzSRPWryHsK7EYSg09caPQL03VsM8rvUec= github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs= @@ -40,12 +40,12 @@ github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkp github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= github.com/emicklei/go-restful/v3 v3.11.0 h1:rAQeMHw1c7zTmncogyy8VvRZwtkmkZ4FxERmMY4rD+g= github.com/emicklei/go-restful/v3 v3.11.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= -github.com/envoyproxy/protoc-gen-validate v1.1.0 h1:tntQDh69XqOCOZsDz0lVJQez/2L6Uu2PdjCQwWCJ3bM= -github.com/envoyproxy/protoc-gen-validate v1.1.0/go.mod h1:sXRDRVmzEbkM7CVcM06s9shE/m23dg3wzjl0UWqJ2q4= +github.com/envoyproxy/protoc-gen-validate v1.0.4 h1:gVPz/FMfvh57HdSJQyvBtF00j8JU4zdyUgIUNhlgg0A= +github.com/envoyproxy/protoc-gen-validate v1.0.4/go.mod h1:qys6tmnRsYrQqIhm2bvKZH4Blx/1gTIZ2UKVY1M+Yew= github.com/evanphx/json-patch v5.6.0+incompatible h1:jBYDEEiFBPxA0v50tFdvOzQQTCvpL6mnFh5mB2/l16U= github.com/evanphx/json-patch v5.6.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/evanphx/json-patch/v5 v5.8.0 h1:lRj6N9Nci7MvzrXuX6HFzU8XjmhPiXPlsKEy1u0KQro= -github.com/evanphx/json-patch/v5 v5.8.0/go.mod h1:VNkHZ/282BpEyt/tObQO8s5CMPmYYq14uClGH4abBuQ= +github.com/evanphx/json-patch/v5 v5.9.0 h1:kcBlZQbplgElYIlo/n1hJbls2z/1awpXxpRi0/FOJfg= +github.com/evanphx/json-patch/v5 v5.9.0/go.mod h1:VNkHZ/282BpEyt/tObQO8s5CMPmYYq14uClGH4abBuQ= github.com/felixge/httpsnoop v1.0.3 h1:s/nj+GCswXYzN5v2DpNMuMQYe+0DDwt5WVCU6CWBdXk= github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= @@ -59,13 +59,14 @@ github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-logr/zapr v1.3.0 h1:XGdV8XW8zdwFiwOA2Dryh1gj2KRQyOOoNmBy4EplIcQ= github.com/go-logr/zapr v1.3.0/go.mod h1:YKepepNBd1u/oyhd/yQmtjVXmm9uML4IXUgMOwR8/Gg= -github.com/go-openapi/jsonpointer v0.19.6 h1:eCs3fxoIi3Wh6vtgmLTOjdhSpiqphQ+DaPn38N2ZdrE= github.com/go-openapi/jsonpointer v0.19.6/go.mod h1:osyAmYz/mB/C3I+WsTTSgw1ONzaLJoLCyoi6/zppojs= +github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= +github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2KvnJRumpMGbE= github.com/go-openapi/jsonreference v0.20.2/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k= github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= -github.com/go-openapi/swag v0.22.4 h1:QLMzNJnMGPRNDCbySlcj1x01tzU8/9LTTL9hZZZogBU= -github.com/go-openapi/swag v0.22.4/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= +github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= +github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= @@ -73,16 +74,16 @@ github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= -github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY= -github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.1 h1:OptwRhECazUx5ix5TTWC3EZhsZEHWcYWY4FQHTIubm4= +github.com/golang/glog v1.2.1/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/google/btree v1.0.1 h1:gK4Kx5IaGY9CD5sPJ36FHiBJ6ZXl0kilRiiCj+jdYp4= github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA= -github.com/google/cel-go v0.17.7 h1:6ebJFzu1xO2n7TLtN+UBqShGBhlD85bhvglh5DpcfqQ= -github.com/google/cel-go v0.17.7/go.mod h1:HXZKzB0LXqer5lHHgfWAnlYwJaQBDKMjxjulNQzhwhY= +github.com/google/cel-go v0.17.8 h1:j9m730pMZt1Fc4oKhCLUHfjj6527LuhYcYw0Rl8gqto= +github.com/google/cel-go v0.17.8/go.mod h1:HXZKzB0LXqer5lHHgfWAnlYwJaQBDKMjxjulNQzhwhY= github.com/google/gnostic-models v0.6.8 h1:yo/ABAfM5IMRsS1VnXjTBvUb61tFIHozhlYvRgGre9I= github.com/google/gnostic-models v0.6.8/go.mod h1:5n7qKqH0f5wFt+aWF8CW6pZLLNOfYuF5OpfBSENuI8U= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= @@ -249,6 +250,8 @@ golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 h1:2dVuKD2vS7b0QIHQbpyTISPd0 golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.20.0 h1:utOm6MM3R3dnawAiJgn0y+xvuYRsm1RKM/4giyfDgV0= +golang.org/x/mod v0.20.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -266,8 +269,8 @@ golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= -golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= +golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.23.0 h1:F6D4vR+EHoL9/sWAWgAR1H2DcHr4PareCbAaCo1RpuU= golang.org/x/term v0.23.0/go.mod h1:DgV24QBUrK6jhZXl+20l6UWznPlwAHm1Q1mGHtydmSk= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -290,12 +293,12 @@ gomodules.xyz/jsonpatch/v2 v2.4.0 h1:Ci3iUJyx9UeRx7CeFN8ARgGbkESwJK+KB9lLcWxY/Zw gomodules.xyz/jsonpatch/v2 v2.4.0/go.mod h1:AH3dM2RI6uoBZxn3LVrfvJ3E0/9dG4cSrbuBJT4moAY= google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de h1:F6qOa9AZTYJXOUEr4jDysRDLrm4PHePlge4v4TGAlxY= google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:VUhTRKeHn9wwcdrk73nvdC9gF178Tzhmt/qyaFcPLSo= -google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 h1:wKguEg1hsxI2/L3hUYrpo1RVi48K+uTyzKqprwLXsb8= -google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142/go.mod h1:d6be+8HhtEtucleCbxpPW9PA9XwISACu8nvpPqF0BVo= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 h1:e7S5W7MGGLaSu8j3YjdezkZ+m1/Nm0uRVRMEMGk26Xs= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= -google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= -google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= +google.golang.org/genproto/googleapis/api v0.0.0-20240604185151-ef581f913117 h1:+rdxYoE3E5htTEWIe15GlN6IfvbURM//Jt0mmkmm6ZU= +google.golang.org/genproto/googleapis/api v0.0.0-20240604185151-ef581f913117/go.mod h1:OimBR/bc1wPO9iV4NC2bpyjy3VnAwZh5EBPQdtaE5oo= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240604185151-ef581f913117 h1:1GBuWVLM/KMVUv1t1En5Gs+gFZCNd360GGb4sSxtrhU= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240604185151-ef581f913117/go.mod h1:EfXuqaE1J41VCDicxHzUDm+8rk+7ZdXzHV0IhO/I6s0= +google.golang.org/grpc v1.66.2 h1:3QdXkuq3Bkh7w+ywLdLvM56cmGvQHUMZpiCzt6Rqaoo= +google.golang.org/grpc v1.66.2/go.mod h1:s3/l6xSSCURdVfAnL+TqCNMyTDAGN6+lZeVxnZR128Y= google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -313,36 +316,40 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -k8s.io/api v0.29.7 h1:Q2/thp7YYESgy0MGzxT9RvA/6doLJHBXSFH8GGLxSbc= -k8s.io/api v0.29.7/go.mod h1:mPimdbyuIjwoLtBEVIGVUYb4BKOE+44XHt/n4IqKsLA= -k8s.io/apiextensions-apiserver v0.29.7 h1:X62u7vUGfwW5rYJB5jkZDr0uV2XSyEHJRdxnfD5PaLs= -k8s.io/apiextensions-apiserver v0.29.7/go.mod h1:JzBXxlZKKdtEYGr4yiN+s0eXheCTYgKDay8JXPfSGoQ= -k8s.io/apimachinery v0.29.7 h1:ICXzya58Q7hyEEfnTrbmdfX1n1schSepX2KUfC2/ykc= -k8s.io/apimachinery v0.29.7/go.mod h1:i3FJVwhvSp/6n8Fl4K97PJEP8C+MM+aoDq4+ZJBf70Y= -k8s.io/apiserver v0.29.7 h1:yvdZAZJ6Bmih8Iu8CqUB74otyPP0OM3XKzYzAFiWsY4= -k8s.io/apiserver v0.29.7/go.mod h1:MjEld3ySZrQ4eOzf6OKANT/v8GvM3sb1e5vozXoIirs= -k8s.io/cli-runtime v0.29.4 h1:QvUrddBxVX6XFJ6z64cGpEk7e4bQduKweqbqq+qBd9g= -k8s.io/cli-runtime v0.29.4/go.mod h1:NmklYuZ4DLfOr2XEIT8Nzl883KMZUCv7KMj3wMHayCA= -k8s.io/client-go v0.29.7 h1:vTtiFrGBKlcBhxaeZC4eDrqui1e108nsTyue/KU63IY= -k8s.io/client-go v0.29.7/go.mod h1:69BvVqdRozgR/9TP45u/oO0tfrdbP+I8RqrcCJQshzg= -k8s.io/component-base v0.29.7 h1:zXLJvZjvvDWdYmZCwZYk95E1Fd2oRXUz71mQukkRk5I= -k8s.io/component-base v0.29.7/go.mod h1:ddLTpIrjazaRI1EG83M41GNcYEAdskuQmx4JOOSXCOg= +k8s.io/api v0.30.4 h1:XASIELmW8w8q0i1Y4124LqPoWMycLjyQti/fdYHYjCs= +k8s.io/api v0.30.4/go.mod h1:ZqniWRKu7WIeLijbbzetF4U9qZ03cg5IRwl8YVs8mX0= +k8s.io/apiextensions-apiserver v0.30.4 h1:FwOMIk/rzZvM/Gx0IOz0+biZ+dlnlCeyfXW17uzV1qE= +k8s.io/apiextensions-apiserver v0.30.4/go.mod h1:m8cAkJ9PVU8Olb4cPW4hrUDBZGvoSJ0kY0G0CfdGQac= +k8s.io/apimachinery v0.30.4 h1:5QHQI2tInzr8LsT4kU/2+fSeibH1eIHswNx480cqIoY= +k8s.io/apimachinery v0.30.4/go.mod h1:iexa2somDaxdnj7bha06bhb43Zpa6eWH8N8dbqVjTUc= +k8s.io/apiserver v0.30.4 h1:rHkGJhxd+m4jILrgkenwSmG4X0QXk6ecGuybzS/PQak= +k8s.io/apiserver v0.30.4/go.mod h1:oyGAj9B9/0+I9huJyf4/8SMBF2mNh2bTMlu7703dkH8= +k8s.io/cli-runtime v0.30.4 h1:3iDwgInzWaMh3lrDY8JDj1D6c60agHSv2hy3O/a2a0U= +k8s.io/cli-runtime v0.30.4/go.mod h1:O9Rf0F9x0zeMCcBQEIQxzd4zvxoqfhZZgDAet4hhBPs= +k8s.io/client-go v0.30.4 h1:eculUe+HPQoPbixfwmaSZGsKcOf7D288tH6hDAdd+wY= +k8s.io/client-go v0.30.4/go.mod h1:IBS0R/Mt0LHkNHF4E6n+SUDPG7+m2po6RZU7YHeOpzc= +k8s.io/code-generator v0.30.4 h1:1J2AcpPNBGh/NH9+m4TDh8Yj+mSbM+JyQhH0QdIMwmE= +k8s.io/code-generator v0.30.4/go.mod h1:Dd8gxOr5ieh9yHCLKnIkKDmk1H2glH8nYCAqwFogD2M= +k8s.io/component-base v0.30.4 h1:FlgKqazIkIIxpLA4wFXsiPiDllJn9fhsN3G4TeX7T7U= +k8s.io/component-base v0.30.4/go.mod h1:Qd3h+OJxV/LrnriXG/E15ZK83dzd306qJHW9+87S5ls= +k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70 h1:NGrVE502P0s0/1hudf8zjgwki1X/TByhmAoILTarmzo= +k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70/go.mod h1:VH3AT8AaQOqiGjMF9p0/IM1Dj+82ZwjfxUP1IxaHE+8= k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk= k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= -k8s.io/kms v0.29.7 h1:4ELQdx7T4EPKbN/QMj6SeZizrEKapza5YF8e5XtZPv0= -k8s.io/kms v0.29.7/go.mod h1:vWVImKkJd+1BQY4tBwdfSwjQBiLrnbNtHADcDEDQFtk= -k8s.io/kube-aggregator v0.29.4 h1:yT7vYtwIag4G8HNrktYZ3qz6p6oHKronMAXOw4eQ2WQ= -k8s.io/kube-aggregator v0.29.4/go.mod h1:zBfe4iXXmw5HinNgN0JoAu5rpXdyCUvRfG99+FVOd68= -k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 h1:aVUu9fTY98ivBPKR9Y5w/AuzbMm96cd3YHRTU83I780= -k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00/go.mod h1:AsvuZPBlUDVuCdzJ87iajxtXuR9oktsTctW/R9wwouA= -k8s.io/kubectl v0.29.4 h1:2LFrAznoDZjN8JFMSUcuhER5o+yjTLzWWbOiDzVjmd8= -k8s.io/kubectl v0.29.4/go.mod h1:YTKRF9y1/ccqZ2bnpOWaJD8V7johKqZR/qOMq+0pfxU= -k8s.io/utils v0.0.0-20240102154912-e7106e64919e h1:eQ/4ljkx21sObifjzXwlPKpdGLrCfRziVtos3ofG/sQ= -k8s.io/utils v0.0.0-20240102154912-e7106e64919e/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.28.0 h1:TgtAeesdhpm2SGwkQasmbeqDo8th5wOBA5h/AjTKA4I= -sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.28.0/go.mod h1:VHVDI/KrK4fjnV61bE2g3sA7tiETLn8sooImelsCx3Y= -sigs.k8s.io/controller-runtime v0.17.5 h1:1FI9Lm7NiOOmBsgTV36/s2XrEFXnO2C4sbg/Zme72Rw= -sigs.k8s.io/controller-runtime v0.17.5/go.mod h1:N0jpP5Lo7lMTF9aL56Z/B2oWBJjey6StQM0jRbKQXtY= +k8s.io/kms v0.30.4 h1:Je7wR5/m+w/E7Ef9R9RY1yeMU/C2GXIvhzRFfg8H5kQ= +k8s.io/kms v0.30.4/go.mod h1:GrMurD0qk3G4yNgGcsCEmepqf9KyyIrTXYR2lyUOJC4= +k8s.io/kube-aggregator v0.30.4 h1:YNP4SE+n13hcPbrloCqPLfo068baCSq+Nn/hotmF5To= +k8s.io/kube-aggregator v0.30.4/go.mod h1:w/ZLttTfMdPmEzV9k/9O2ENKI77ENpwIzeljQ5fj+qc= +k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 h1:BZqlfIlq5YbRMFko6/PM7FjZpUb45WallggurYhKGag= +k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340/go.mod h1:yD4MZYeKMBwQKVht279WycxKyM84kkAx2DPrTXaeb98= +k8s.io/kubectl v0.30.4 h1:jU+6WSvcSgzs07H624RA2L79FnqppyV6BKI+dHWDzyo= +k8s.io/kubectl v0.30.4/go.mod h1:4KnGCshO4fFxd/tncWcbKH3Nj9wtoFYwMYPj8CUnduE= +k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 h1:pUdcCO1Lk/tbT5ztQWOBi5HBgbBP1J8+AsQnQCKsi8A= +k8s.io/utils v0.0.0-20240711033017-18e509b52bc8/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= +sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.29.0 h1:/U5vjBbQn3RChhv7P11uhYvCSm5G2GaIi5AIGBS6r4c= +sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.29.0/go.mod h1:z7+wmGM2dfIiLRfrC6jb5kV2Mq/sK1ZP303cxzkV5Y4= +sigs.k8s.io/controller-runtime v0.18.5 h1:nTHio/W+Q4aBlQMgbnC5hZb4IjIidyrizMai9P6n4Rk= +sigs.k8s.io/controller-runtime v0.18.5/go.mod h1:TVoGrfdpbA9VRFaRnKgk9P5/atA0pMwq+f+msb9M8Sg= sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo= sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0= sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4= diff --git a/hack/tools.go b/hack/tools.go index ae3f74de4..f1690ea49 100644 --- a/hack/tools.go +++ b/hack/tools.go @@ -11,4 +11,5 @@ package hack import ( // Use gogoproto for protobuf generation. _ "github.com/gogo/protobuf/gogoproto" + _ "k8s.io/code-generator" ) diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index 5dc094cfa..9f4edfe49 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -4,7 +4,26 @@ set -o errexit set -o nounset set -o pipefail +THIS_PKG="github.com/ironcore-dev/ironcore" SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" +PROJECT_ROOT="$SCRIPT_DIR/.." + +VGOPATH="$VGOPATH" +MODELS_SCHEMA="$MODELS_SCHEMA" +OPENAPI_GEN="$OPENAPI_GEN" + +VIRTUAL_GOPATH="$(mktemp -d)" +trap 'rm -rf "$VIRTUAL_GOPATH"' EXIT + +# Setup virtual GOPATH so the codegen tools work as expected. +(cd "$PROJECT_ROOT"; go mod download && "$VGOPATH" -o "$VIRTUAL_GOPATH") + +export GOROOT="${GOROOT:-"$(go env GOROOT)"}" +export GOPATH="$VIRTUAL_GOPATH" + +CODE_GEN_DIR=$(go list -m -f '{{.Dir}}' k8s.io/code-generator) +source "${CODE_GEN_DIR}/kube_codegen.sh" + export TERM="xterm-256color" bold="$(tput bold)" @@ -22,132 +41,63 @@ function qualify-gvs() { for V in ${Vs//,/ }; do res="$res$join_char$APIS_PKG/$G/$V" - join_char="," + join_char=" " done done echo "$res" } -function qualify-gs() { - APIS_PKG="$1" - unset GROUPS - IFS=' ' read -ra GROUPS <<< "$2" - join_char="" - res="" - - for G in "${GROUPS[@]}"; do - res="$res$join_char$APIS_PKG/$G" - join_char="," - done - - echo "$res" -} - -VGOPATH="$VGOPATH" -MODELS_SCHEMA="$MODELS_SCHEMA" -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" -APPLYCONFIGURATION_GEN="$APPLYCONFIGURATION_GEN" - -VIRTUAL_GOPATH="$(mktemp -d)" -trap 'rm -rf "$VIRTUAL_GOPATH"' EXIT - -# Setup virtual GOPATH so the codegen tools work as expected. -(cd "$SCRIPT_DIR/.."; go mod download && "$VGOPATH" -o "$VIRTUAL_GOPATH") - -export GOROOT="${GOROOT:-"$(go env GOROOT)"}" -export GOPATH="$VIRTUAL_GOPATH" -export GO111MODULE=off - CLIENT_GROUPS="core compute ipam networking storage" CLIENT_VERSION_GROUPS="core:v1alpha1 compute:v1alpha1 ipam:v1alpha1 networking:v1alpha1 storage:v1alpha1" ALL_VERSION_GROUPS="common:v1alpha1 $CLIENT_VERSION_GROUPS" 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/ironcore-dev/ironcore/api" "$ALL_VERSION_GROUPS")" \ - -O zz_generated.deepcopy +echo "Generating ${blue}deepcopy, defaulter, and conversion${normal}" +kube::codegen::gen_helpers \ + --boilerplate "$SCRIPT_DIR/boilerplate.go.txt" \ + "$PROJECT_ROOT/api" echo "Generating ${blue}openapi${normal}" +input_dirs=($(qualify-gvs "${THIS_PKG}/api" "$ALL_VERSION_GROUPS")) "$OPENAPI_GEN" \ - --output-base "$GOPATH/src" \ + --output-dir "$PROJECT_ROOT/client-go/openapi" \ + --output-pkg "${THIS_PKG}/client-go/openapi" \ + --output-file "zz_generated.openapi.go" \ + --report-filename "$PROJECT_ROOT/client-go/openapi/api_violations.report" \ --go-header-file "$SCRIPT_DIR/boilerplate.go.txt" \ - --input-dirs "$(qualify-gvs "github.com/ironcore-dev/ironcore/api" "$ALL_VERSION_GROUPS")" \ - --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/ironcore-dev/ironcore/client-go/openapi" \ - -O zz_generated.openapi \ - --report-filename "$SCRIPT_DIR/../client-go/openapi/api_violations.report" - -echo "Generating ${blue}applyconfiguration${normal}" -applyconfigurationgen_external_apis+=("k8s.io/apimachinery/pkg/apis/meta/v1") -applyconfigurationgen_external_apis+=("$(qualify-gvs "github.com/ironcore-dev/ironcore/api" "$ALL_VERSION_GROUPS")") + "k8s.io/apimachinery/pkg/apis/meta/v1" \ + "k8s.io/apimachinery/pkg/runtime" \ + "k8s.io/apimachinery/pkg/version" \ + "k8s.io/api/core/v1" \ + "k8s.io/apimachinery/pkg/api/resource" \ + "${input_dirs[@]}" + +echo "Generating ${blue}client, lister, informer, and applyconfiguration${normal}" +applyconfigurationgen_external_apis+=("k8s.io/apimachinery/pkg/apis/meta/v1:k8s.io/client-go/applyconfigurations/meta/v1") +for GV in ${ALL_VERSION_GROUPS}; do + IFS=: read -r G V <<<"${GV}" + applyconfigurationgen_external_apis+=("${THIS_PKG}/api/${G}/${V}:${THIS_PKG}/client-go/applyconfigurations/${G}/${V}") +done applyconfigurationgen_external_apis_csv=$(IFS=,; echo "${applyconfigurationgen_external_apis[*]}") -"$APPLYCONFIGURATION_GEN" \ - --output-base "$GOPATH/src" \ - --go-header-file "$SCRIPT_DIR/boilerplate.go.txt" \ - --input-dirs "${applyconfigurationgen_external_apis_csv}" \ - --openapi-schema <("$MODELS_SCHEMA" --openapi-package "github.com/ironcore-dev/ironcore/client-go/openapi" --openapi-title "ironcore") \ - --output-package "github.com/ironcore-dev/ironcore/client-go/applyconfigurations" - -echo "Generating ${blue}client${normal}" -"$CLIENT_GEN" \ - --output-base "$GOPATH/src" \ - --go-header-file "$SCRIPT_DIR/boilerplate.go.txt" \ - --input "$(qualify-gvs "github.com/ironcore-dev/ironcore/api" "$CLIENT_VERSION_GROUPS")" \ - --output-package "github.com/ironcore-dev/ironcore/client-go" \ - --apply-configuration-package "github.com/ironcore-dev/ironcore/client-go/applyconfigurations" \ +kube::codegen::gen_client \ + --with-applyconfig \ + --applyconfig-name "applyconfigurations" \ + --applyconfig-externals "${applyconfigurationgen_external_apis_csv}" \ + --applyconfig-openapi-schema <("$MODELS_SCHEMA" --openapi-package "${THIS_PKG}/client-go/openapi" --openapi-title "ironcore") \ --clientset-name "ironcore" \ - --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/ironcore-dev/ironcore/api" "$CLIENT_VERSION_GROUPS")" \ - --output-package "github.com/ironcore-dev/ironcore/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/ironcore-dev/ironcore/api" "$CLIENT_VERSION_GROUPS")" \ - --versioned-clientset-package "github.com/ironcore-dev/ironcore/client-go/ironcore" \ - --listers-package "github.com/ironcore-dev/ironcore/client-go/listers" \ - --output-package "github.com/ironcore-dev/ironcore/client-go/informers" \ - --single-directory + --listers-name "listers" \ + --informers-name "informers" \ + --with-watch \ + --output-dir "$PROJECT_ROOT/client-go" \ + --output-pkg "${THIS_PKG}/client-go" \ + --boilerplate "$SCRIPT_DIR/boilerplate.go.txt" \ + "$PROJECT_ROOT/api" 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-gs "github.com/ironcore-dev/ironcore/internal/apis" "$CLIENT_GROUPS")" \ - -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/ironcore-dev/ironcore/internal/apis" "$CLIENT_VERSION_GROUPS")" \ - -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-gs "github.com/ironcore-dev/ironcore/internal/apis" "$CLIENT_GROUPS")" \ - --input-dirs "$(qualify-gvs "github.com/ironcore-dev/ironcore/internal/apis" "$CLIENT_VERSION_GROUPS")" \ - -O zz_generated.conversion +echo "Generating ${blue}deepcopy, defaulter, and conversion${normal}" +kube::codegen::gen_helpers \ + --boilerplate "$SCRIPT_DIR/boilerplate.go.txt" \ + "$PROJECT_ROOT/internal/apis" diff --git a/internal/admission/initializer/initializer.go b/internal/admission/initializer/initializer.go index 43c21040a..9790171dd 100644 --- a/internal/admission/initializer/initializer.go +++ b/internal/admission/initializer/initializer.go @@ -4,8 +4,8 @@ package initializer import ( - ironcoreinformers "github.com/ironcore-dev/ironcore/client-go/informers" - "github.com/ironcore-dev/ironcore/client-go/ironcore" + ironcoreinformers "github.com/ironcore-dev/ironcore/client-go/informers/externalversions" + ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" "github.com/ironcore-dev/ironcore/utils/quota" "k8s.io/apiserver/pkg/admission" ) diff --git a/internal/admission/plugin/resourcequota/access.go b/internal/admission/plugin/resourcequota/access.go index 8eac31730..f45c8c7eb 100644 --- a/internal/admission/plugin/resourcequota/access.go +++ b/internal/admission/plugin/resourcequota/access.go @@ -10,7 +10,7 @@ import ( "time" corev1alpha1 "github.com/ironcore-dev/ironcore/api/core/v1alpha1" - "github.com/ironcore-dev/ironcore/client-go/ironcore" + ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" corev1alpha1listers "github.com/ironcore-dev/ironcore/client-go/listers/core/v1alpha1" "golang.org/x/exp/slices" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/internal/admission/plugin/resourcequota/admission.go b/internal/admission/plugin/resourcequota/admission.go index 86a5ba992..e6e91d7bb 100644 --- a/internal/admission/plugin/resourcequota/admission.go +++ b/internal/admission/plugin/resourcequota/admission.go @@ -11,8 +11,8 @@ import ( "sync" "time" - "github.com/ironcore-dev/ironcore/client-go/informers" - "github.com/ironcore-dev/ironcore/client-go/ironcore" + informers "github.com/ironcore-dev/ironcore/client-go/informers/externalversions" + ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" corev1alpha1listers "github.com/ironcore-dev/ironcore/client-go/listers/core/v1alpha1" utilcontext "github.com/ironcore-dev/ironcore/utils/context" "github.com/ironcore-dev/ironcore/utils/quota" diff --git a/internal/admission/plugin/volumeresizepolicy/admission.go b/internal/admission/plugin/volumeresizepolicy/admission.go index 8fde18dc7..7f726a153 100644 --- a/internal/admission/plugin/volumeresizepolicy/admission.go +++ b/internal/admission/plugin/volumeresizepolicy/admission.go @@ -9,7 +9,7 @@ import ( "io" "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" - "github.com/ironcore-dev/ironcore/client-go/ironcore" + ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" "github.com/ironcore-dev/ironcore/internal/apis/core" "github.com/ironcore-dev/ironcore/internal/apis/storage" apierrors "k8s.io/apimachinery/pkg/api/errors" diff --git a/internal/apis/compute/zz_generated.defaults.go b/internal/apis/compute/zz_generated.defaults.go new file mode 100644 index 000000000..e950df980 --- /dev/null +++ b/internal/apis/compute/zz_generated.defaults.go @@ -0,0 +1,20 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by defaulter-gen. DO NOT EDIT. + +package compute + +import ( + runtime "k8s.io/apimachinery/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + return nil +} diff --git a/internal/apis/core/zz_generated.defaults.go b/internal/apis/core/zz_generated.defaults.go new file mode 100644 index 000000000..43e7ff80f --- /dev/null +++ b/internal/apis/core/zz_generated.defaults.go @@ -0,0 +1,20 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by defaulter-gen. DO NOT EDIT. + +package core + +import ( + runtime "k8s.io/apimachinery/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + return nil +} diff --git a/internal/apis/ipam/zz_generated.defaults.go b/internal/apis/ipam/zz_generated.defaults.go new file mode 100644 index 000000000..88984e3cb --- /dev/null +++ b/internal/apis/ipam/zz_generated.defaults.go @@ -0,0 +1,20 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by defaulter-gen. DO NOT EDIT. + +package ipam + +import ( + runtime "k8s.io/apimachinery/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + return nil +} diff --git a/internal/apis/networking/zz_generated.defaults.go b/internal/apis/networking/zz_generated.defaults.go new file mode 100644 index 000000000..4745e6a09 --- /dev/null +++ b/internal/apis/networking/zz_generated.defaults.go @@ -0,0 +1,20 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by defaulter-gen. DO NOT EDIT. + +package networking + +import ( + runtime "k8s.io/apimachinery/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + return nil +} diff --git a/internal/apis/storage/zz_generated.defaults.go b/internal/apis/storage/zz_generated.defaults.go new file mode 100644 index 000000000..0c9c8b719 --- /dev/null +++ b/internal/apis/storage/zz_generated.defaults.go @@ -0,0 +1,20 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by defaulter-gen. DO NOT EDIT. + +package storage + +import ( + runtime "k8s.io/apimachinery/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + return nil +} diff --git a/internal/app/apiserver/apiserver.go b/internal/app/apiserver/apiserver.go index 452b1c8ee..652ded327 100644 --- a/internal/app/apiserver/apiserver.go +++ b/internal/app/apiserver/apiserver.go @@ -14,8 +14,8 @@ import ( ipamv1alpha1 "github.com/ironcore-dev/ironcore/api/ipam/v1alpha1" networkingv1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1" storagev1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" - "github.com/ironcore-dev/ironcore/client-go/informers" - clientset "github.com/ironcore-dev/ironcore/client-go/ironcore" + informers "github.com/ironcore-dev/ironcore/client-go/informers/externalversions" + clientset "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" ironcoreopenapi "github.com/ironcore-dev/ironcore/client-go/openapi" ironcoreinitializer "github.com/ironcore-dev/ironcore/internal/admission/initializer" "github.com/ironcore-dev/ironcore/internal/admission/plugin/machinevolumedevices" diff --git a/internal/controllers/core/certificate/ironcore/onmetal.go b/internal/controllers/core/certificate/ironcore/ironcore.go similarity index 100% rename from internal/controllers/core/certificate/ironcore/onmetal.go rename to internal/controllers/core/certificate/ironcore/ironcore.go diff --git a/internal/controllers/core/quota/ironcore/onmetal.go b/internal/controllers/core/quota/ironcore/ironcore.go similarity index 100% rename from internal/controllers/core/quota/ironcore/onmetal.go rename to internal/controllers/core/quota/ironcore/ironcore.go diff --git a/internal/quota/evaluator/compute/compute.go b/internal/quota/evaluator/compute/compute.go index 6f6f7385d..6f479e38d 100644 --- a/internal/quota/evaluator/compute/compute.go +++ b/internal/quota/evaluator/compute/compute.go @@ -8,8 +8,8 @@ import ( computev1alpha1 "github.com/ironcore-dev/ironcore/api/compute/v1alpha1" corev1alpha1 "github.com/ironcore-dev/ironcore/api/core/v1alpha1" - "github.com/ironcore-dev/ironcore/client-go/informers" - "github.com/ironcore-dev/ironcore/client-go/ironcore" + informers "github.com/ironcore-dev/ironcore/client-go/informers/externalversions" + ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" "github.com/ironcore-dev/ironcore/internal/quota/evaluator/generic" utilsgeneric "github.com/ironcore-dev/ironcore/utils/generic" "github.com/ironcore-dev/ironcore/utils/quota" diff --git a/internal/quota/evaluator/ironcore/onmetal.go b/internal/quota/evaluator/ironcore/ironcore.go similarity index 91% rename from internal/quota/evaluator/ironcore/onmetal.go rename to internal/quota/evaluator/ironcore/ironcore.go index 6fbe51fe9..a76f63424 100644 --- a/internal/quota/evaluator/ironcore/onmetal.go +++ b/internal/quota/evaluator/ironcore/ironcore.go @@ -4,8 +4,8 @@ package ironcore import ( - "github.com/ironcore-dev/ironcore/client-go/informers" - "github.com/ironcore-dev/ironcore/client-go/ironcore" + informers "github.com/ironcore-dev/ironcore/client-go/informers/externalversions" + ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" "github.com/ironcore-dev/ironcore/internal/quota/evaluator/compute" "github.com/ironcore-dev/ironcore/internal/quota/evaluator/generic" "github.com/ironcore-dev/ironcore/internal/quota/evaluator/storage" diff --git a/internal/quota/evaluator/storage/storage.go b/internal/quota/evaluator/storage/storage.go index 73def6045..28e9b6e15 100644 --- a/internal/quota/evaluator/storage/storage.go +++ b/internal/quota/evaluator/storage/storage.go @@ -8,8 +8,8 @@ import ( corev1alpha1 "github.com/ironcore-dev/ironcore/api/core/v1alpha1" storagev1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1" - "github.com/ironcore-dev/ironcore/client-go/informers" - "github.com/ironcore-dev/ironcore/client-go/ironcore" + informers "github.com/ironcore-dev/ironcore/client-go/informers/externalversions" + ironcore "github.com/ironcore-dev/ironcore/client-go/ironcore/versioned" "github.com/ironcore-dev/ironcore/internal/quota/evaluator/generic" utilsgeneric "github.com/ironcore-dev/ironcore/utils/generic" "github.com/ironcore-dev/ironcore/utils/quota" diff --git a/poollet/bucketpoollet/controllers/bucketannotator_controller.go b/poollet/bucketpoollet/controllers/bucketannotator_controller.go index fc06c942d..23aad7d58 100644 --- a/poollet/bucketpoollet/controllers/bucketannotator_controller.go +++ b/poollet/bucketpoollet/controllers/bucketannotator_controller.go @@ -99,7 +99,7 @@ func (r *BucketAnnotatorReconciler) SetupWithManager(mgr ctrl.Manager) error { return err } - if err := c.Watch(src, &handler.EnqueueRequestForObject{}); err != nil { + if err := c.Watch(src); err != nil { return err } @@ -143,5 +143,6 @@ func (r *BucketAnnotatorReconciler) iriBucketEventSource(mgr ctrl.Manager) (sour return nil, err } - return &source.Channel{Source: ch}, nil + return source.Channel(ch, &handler.EnqueueRequestForObject{}), nil + } diff --git a/poollet/machinepoollet/controllers/machineannotator_controller.go b/poollet/machinepoollet/controllers/machineannotator_controller.go index 92f9db57b..3bca521d6 100644 --- a/poollet/machinepoollet/controllers/machineannotator_controller.go +++ b/poollet/machinepoollet/controllers/machineannotator_controller.go @@ -99,7 +99,7 @@ func (r *MachineAnnotatorReconciler) SetupWithManager(mgr ctrl.Manager) error { return err } - if err := c.Watch(src, &handler.EnqueueRequestForObject{}); err != nil { + if err := c.Watch(src); err != nil { return err } @@ -143,5 +143,5 @@ func (r *MachineAnnotatorReconciler) iriMachineEventSource(mgr ctrl.Manager) (so return nil, err } - return &source.Channel{Source: ch}, nil + return source.Channel(ch, &handler.EnqueueRequestForObject{}), nil } diff --git a/poollet/machinepoollet/controllers/machinepoolannotator_controller.go b/poollet/machinepoollet/controllers/machinepoolannotator_controller.go index f61d0b158..9d7a55494 100644 --- a/poollet/machinepoollet/controllers/machinepoolannotator_controller.go +++ b/poollet/machinepoollet/controllers/machinepoolannotator_controller.go @@ -55,9 +55,7 @@ func (r *MachinePoolAnnotatorReconciler) SetupWithManager(mgr ctrl.Manager) erro return err } - if err := c.Watch(src, handler.EnqueueRequestsFromMapFunc(func(ctx context.Context, obj client.Object) []ctrl.Request { - return []ctrl.Request{{NamespacedName: client.ObjectKey{Name: r.MachinePoolName}}} - })); err != nil { + if err := c.Watch(src); err != nil { return err } @@ -116,5 +114,7 @@ func (r *MachinePoolAnnotatorReconciler) iriClassEventSource(mgr ctrl.Manager) ( return nil, err } - return &source.Channel{Source: ch}, nil + return source.Channel(ch, handler.EnqueueRequestsFromMapFunc(func(ctx context.Context, obj client.Object) []ctrl.Request { + return []ctrl.Request{{NamespacedName: client.ObjectKey{Name: r.MachinePoolName}}} + })), nil } diff --git a/poollet/volumepoollet/controllers/volumeannotator_controller.go b/poollet/volumepoollet/controllers/volumeannotator_controller.go index efb2add92..6bfe1edc4 100644 --- a/poollet/volumepoollet/controllers/volumeannotator_controller.go +++ b/poollet/volumepoollet/controllers/volumeannotator_controller.go @@ -99,7 +99,7 @@ func (r *VolumeAnnotatorReconciler) SetupWithManager(mgr ctrl.Manager) error { return err } - if err := c.Watch(src, &handler.EnqueueRequestForObject{}); err != nil { + if err := c.Watch(src); err != nil { return err } @@ -143,5 +143,5 @@ func (r *VolumeAnnotatorReconciler) iriVolumeEventSource(mgr ctrl.Manager) (sour return nil, err } - return &source.Channel{Source: ch}, nil + return source.Channel(ch, &handler.EnqueueRequestForObject{}), nil } diff --git a/poollet/volumepoollet/controllers/volumepoolannotator_controller.go b/poollet/volumepoollet/controllers/volumepoolannotator_controller.go index 0fd790d14..b0258399e 100644 --- a/poollet/volumepoollet/controllers/volumepoolannotator_controller.go +++ b/poollet/volumepoollet/controllers/volumepoolannotator_controller.go @@ -55,9 +55,7 @@ func (r *VolumePoolAnnotatorReconciler) SetupWithManager(mgr ctrl.Manager) error return err } - if err := c.Watch(src, handler.EnqueueRequestsFromMapFunc(func(ctx context.Context, obj client.Object) []ctrl.Request { - return []ctrl.Request{{NamespacedName: client.ObjectKey{Name: r.VolumePoolName}}} - })); err != nil { + if err := c.Watch(src); err != nil { return err } @@ -116,5 +114,7 @@ func (r *VolumePoolAnnotatorReconciler) iriClassEventSource(mgr ctrl.Manager) (s return nil, err } - return &source.Channel{Source: ch}, nil + return source.Channel(ch, handler.EnqueueRequestsFromMapFunc(func(ctx context.Context, obj client.Object) []ctrl.Request { + return []ctrl.Request{{NamespacedName: client.ObjectKey{Name: r.VolumePoolName}}} + })), nil }