diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a73ab871..62321a86 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -31,6 +31,13 @@ updates: commit-message: prefix: ":seedling:" include: scope + ignore: + # Ignore controller-runtime major and minor bumps as its upgraded manually. + - dependency-name: "sigs.k8s.io/controller-runtime" + update-types: ["version-update:semver-major", "version-update:semver-minor"] + # Ignore k8s major and minor bumps and its transitives modules + - dependency-name: "k8s.io/*" + update-types: ["version-update:semver-major", "version-update:semver-minor"] ## main branch config ends here ## release-1.0 branch config starts here # github-actions diff --git a/Makefile b/Makefile index f66c3805..5c113631 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # Image URL to use all building/pushing image targets IMG ?= controller:latest # ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary. -ENVTEST_K8S_VERSION = 1.31.0 +ENVTEST_K8S_VERSION = 1.32.0 # Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) ifeq (,$(shell go env GOBIN)) @@ -228,12 +228,12 @@ MOCKGEN = $(LOCALBIN)/mockgen KUTTL = $(LOCALBIN)/kubectl-kuttl ## Tool Versions -KUSTOMIZE_VERSION ?= v5.4.2 -CONTROLLER_TOOLS_VERSION ?= v0.17.0 +KUSTOMIZE_VERSION ?= v5.6.0 +CONTROLLER_TOOLS_VERSION ?= v0.17.1 ENVTEST_VERSION ?= release-0.19 GOLANGCI_LINT_VERSION ?= v1.63.4 KAL_VERSION ?= v0.0.0-20250120175744-495588b8c987 -MOCKGEN_VERSION ?= v0.4.0 +MOCKGEN_VERSION ?= v0.5.0 KUTTL_VERSION ?= v0.20.0 .PHONY: kustomize diff --git a/cmd/models-schema/zz_generated.openapi.go b/cmd/models-schema/zz_generated.openapi.go index 1c106881..c6994a96 100644 --- a/cmd/models-schema/zz_generated.openapi.go +++ b/cmd/models-schema/zz_generated.openapi.go @@ -6151,7 +6151,7 @@ func schema_k8sio_api_core_v1_Binding(ref common.ReferenceCallback) common.OpenA return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.", + Description: "Binding ties one object to another; for example, a pod is bound to a node by a scheduler.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -6195,7 +6195,7 @@ func schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref common.ReferenceCall return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Represents storage that is managed by an external CSI volume driver (Beta feature)", + Description: "Represents storage that is managed by an external CSI volume driver", Type: []string{"object"}, Properties: map[string]spec.Schema{ "driver": { @@ -9672,7 +9672,8 @@ func schema_k8sio_api_core_v1_GRPCAction(ref common.ReferenceCallback) common.Op return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "GRPCAction specifies an action involving a GRPC service.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "port": { SchemaProps: spec.SchemaProps{ @@ -10320,25 +10321,25 @@ func schema_k8sio_api_core_v1_LifecycleHandler(ref common.ReferenceCallback) com Properties: map[string]spec.Schema{ "exec": { SchemaProps: spec.SchemaProps{ - Description: "Exec specifies the action to take.", + Description: "Exec specifies a command to execute in the container.", Ref: ref("k8s.io/api/core/v1.ExecAction"), }, }, "httpGet": { SchemaProps: spec.SchemaProps{ - Description: "HTTPGet specifies the http request to perform.", + Description: "HTTPGet specifies an HTTP GET request to perform.", Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), }, }, "tcpSocket": { SchemaProps: spec.SchemaProps{ - Description: "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified.", + Description: "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified.", Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), }, }, "sleep": { SchemaProps: spec.SchemaProps{ - Description: "Sleep represents the duration that the container should sleep before being terminated.", + Description: "Sleep represents a duration that the container should sleep.", Ref: ref("k8s.io/api/core/v1.SleepAction"), }, }, @@ -10792,7 +10793,7 @@ func schema_k8sio_api_core_v1_LocalVolumeSource(ref common.ReferenceCallback) co return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Local represents directly-attached storage with node affinity (Beta feature)", + Description: "Local represents directly-attached storage with node affinity", Type: []string{"object"}, Properties: map[string]spec.Schema{ "path": { @@ -10959,19 +10960,22 @@ func schema_k8sio_api_core_v1_NamespaceCondition(ref common.ReferenceCallback) c }, "lastTransitionTime": { SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Description: "Last time the condition transitioned from one status to another.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, "reason": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Unique, one-word, CamelCase reason for the condition's last transition.", + Type: []string{"string"}, + Format: "", }, }, "message": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Human-readable message indicating details about last transition.", + Type: []string{"string"}, + Format: "", }, }, }, @@ -11829,7 +11833,7 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op }, }, SchemaProps: spec.SchemaProps{ - Description: "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition", + Description: "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -11853,7 +11857,7 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op }, }, SchemaProps: spec.SchemaProps{ - Description: "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).", + Description: "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -11874,7 +11878,7 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op }, "nodeInfo": { SchemaProps: spec.SchemaProps{ - Description: "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info", + Description: "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/reference/node/node-status/#info", Default: map[string]interface{}{}, Ref: ref("k8s.io/api/core/v1.NodeSystemInfo"), }, @@ -12280,16 +12284,18 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref common.Referenc Properties: map[string]spec.Schema{ "type": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Type is the type of the condition. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about", + Default: "", + Type: []string{"string"}, + Format: "", }, }, "status": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required", + Default: "", + Type: []string{"string"}, + Format: "", }, }, "lastProbeTime": { @@ -12718,13 +12724,13 @@ func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallbac Properties: map[string]spec.Schema{ "gcePersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), }, }, "awsElasticBlockStore": { SchemaProps: spec.SchemaProps{ - Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), }, }, @@ -12736,7 +12742,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallbac }, "glusterfs": { SchemaProps: spec.SchemaProps{ - Description: "glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md", + Description: "glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md", Ref: ref("k8s.io/api/core/v1.GlusterfsPersistentVolumeSource"), }, }, @@ -12748,7 +12754,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallbac }, "rbd": { SchemaProps: spec.SchemaProps{ - Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md", + Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md", Ref: ref("k8s.io/api/core/v1.RBDPersistentVolumeSource"), }, }, @@ -12760,13 +12766,13 @@ func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallbac }, "cinder": { SchemaProps: spec.SchemaProps{ - Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", Ref: ref("k8s.io/api/core/v1.CinderPersistentVolumeSource"), }, }, "cephfs": { SchemaProps: spec.SchemaProps{ - Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", + Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.", Ref: ref("k8s.io/api/core/v1.CephFSPersistentVolumeSource"), }, }, @@ -12778,55 +12784,55 @@ func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallbac }, "flocker": { SchemaProps: spec.SchemaProps{ - Description: "flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running", + Description: "flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.", Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), }, }, "flexVolume": { SchemaProps: spec.SchemaProps{ - Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.", Ref: ref("k8s.io/api/core/v1.FlexPersistentVolumeSource"), }, }, "azureFile": { SchemaProps: spec.SchemaProps{ - Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", + Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.", Ref: ref("k8s.io/api/core/v1.AzureFilePersistentVolumeSource"), }, }, "vsphereVolume": { SchemaProps: spec.SchemaProps{ - Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", + Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.", Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), }, }, "quobyte": { SchemaProps: spec.SchemaProps{ - Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", + Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.", Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), }, }, "azureDisk": { SchemaProps: spec.SchemaProps{ - Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.", Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), }, }, "photonPersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", + Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.", Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), }, }, "portworxVolume": { SchemaProps: spec.SchemaProps{ - Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", + Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on.", Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), }, }, "scaleIO": { SchemaProps: spec.SchemaProps{ - Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", + Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.", Ref: ref("k8s.io/api/core/v1.ScaleIOPersistentVolumeSource"), }, }, @@ -12838,13 +12844,13 @@ func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallbac }, "storageos": { SchemaProps: spec.SchemaProps{ - Description: "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md", + Description: "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported. More info: https://examples.k8s.io/volumes/storageos/README.md", Ref: ref("k8s.io/api/core/v1.StorageOSPersistentVolumeSource"), }, }, "csi": { SchemaProps: spec.SchemaProps{ - Description: "csi represents storage that is handled by an external CSI driver (Beta feature).", + Description: "csi represents storage that is handled by an external CSI driver.", Ref: ref("k8s.io/api/core/v1.CSIPersistentVolumeSource"), }, }, @@ -12879,13 +12885,13 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "gcePersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), }, }, "awsElasticBlockStore": { SchemaProps: spec.SchemaProps{ - Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), }, }, @@ -12897,7 +12903,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "glusterfs": { SchemaProps: spec.SchemaProps{ - Description: "glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md", + Description: "glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md", Ref: ref("k8s.io/api/core/v1.GlusterfsPersistentVolumeSource"), }, }, @@ -12909,7 +12915,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "rbd": { SchemaProps: spec.SchemaProps{ - Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md", + Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md", Ref: ref("k8s.io/api/core/v1.RBDPersistentVolumeSource"), }, }, @@ -12921,13 +12927,13 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "cinder": { SchemaProps: spec.SchemaProps{ - Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", Ref: ref("k8s.io/api/core/v1.CinderPersistentVolumeSource"), }, }, "cephfs": { SchemaProps: spec.SchemaProps{ - Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", + Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.", Ref: ref("k8s.io/api/core/v1.CephFSPersistentVolumeSource"), }, }, @@ -12939,55 +12945,55 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "flocker": { SchemaProps: spec.SchemaProps{ - Description: "flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running", + Description: "flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.", Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), }, }, "flexVolume": { SchemaProps: spec.SchemaProps{ - Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.", Ref: ref("k8s.io/api/core/v1.FlexPersistentVolumeSource"), }, }, "azureFile": { SchemaProps: spec.SchemaProps{ - Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", + Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.", Ref: ref("k8s.io/api/core/v1.AzureFilePersistentVolumeSource"), }, }, "vsphereVolume": { SchemaProps: spec.SchemaProps{ - Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", + Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.", Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), }, }, "quobyte": { SchemaProps: spec.SchemaProps{ - Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", + Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.", Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), }, }, "azureDisk": { SchemaProps: spec.SchemaProps{ - Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.", Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), }, }, "photonPersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", + Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.", Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), }, }, "portworxVolume": { SchemaProps: spec.SchemaProps{ - Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", + Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on.", Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), }, }, "scaleIO": { SchemaProps: spec.SchemaProps{ - Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", + Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.", Ref: ref("k8s.io/api/core/v1.ScaleIOPersistentVolumeSource"), }, }, @@ -12999,13 +13005,13 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "storageos": { SchemaProps: spec.SchemaProps{ - Description: "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md", + Description: "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported. More info: https://examples.k8s.io/volumes/storageos/README.md", Ref: ref("k8s.io/api/core/v1.StorageOSPersistentVolumeSource"), }, }, "csi": { SchemaProps: spec.SchemaProps{ - Description: "csi represents storage that is handled by an external CSI driver (Beta feature).", + Description: "csi represents storage that is handled by an external CSI driver.", Ref: ref("k8s.io/api/core/v1.CSIPersistentVolumeSource"), }, }, @@ -13632,15 +13638,16 @@ func schema_k8sio_api_core_v1_PodDNSConfigOption(ref common.ReferenceCallback) c Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Required.", + Description: "Name is this DNS resolver option's name. Required.", Type: []string{"string"}, Format: "", }, }, "value": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Value is this DNS resolver option's value.", + Type: []string{"string"}, + Format: "", }, }, }, @@ -13869,7 +13876,7 @@ func schema_k8sio_api_core_v1_PodLogOptions(ref common.ReferenceCallback) common }, "tailLines": { SchemaProps: spec.SchemaProps{ - Description: "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime", + Description: "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".", Type: []string{"integer"}, Format: "int64", }, @@ -13888,6 +13895,13 @@ func schema_k8sio_api_core_v1_PodLogOptions(ref common.ReferenceCallback) common Format: "", }, }, + "stream": { + SchemaProps: spec.SchemaProps{ + Description: "Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -14222,6 +14236,13 @@ func schema_k8sio_api_core_v1_PodSecurityContext(ref common.ReferenceCallback) c Ref: ref("k8s.io/api/core/v1.AppArmorProfile"), }, }, + "seLinuxChangePolicy": { + SchemaProps: spec.SchemaProps{ + Description: "seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\".\n\n\"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.\n\n\"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. \"MountOption\" value is allowed only when SELinuxMount feature gate is enabled.\n\nIf not specified and SELinuxMount feature gate is enabled, \"MountOption\" is used. If not specified and SELinuxMount feature gate is disabled, \"MountOption\" is used for ReadWriteOncePod volumes and \"Recursive\" for all other volumes.\n\nThis field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.\n\nAll Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -14663,7 +14684,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA }, "setHostnameAsFQDN": { SchemaProps: spec.SchemaProps{ - Description: "If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.", + Description: "If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.", Type: []string{"boolean"}, Format: "", }, @@ -14729,12 +14750,18 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA }, }, }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources is the total amount of CPU and Memory resources required by all containers in the pod. It supports specifying Requests and Limits for \"cpu\" and \"memory\" resource names only. ResourceClaims are not supported.\n\nThis field enables fine-grained control over resource allocation for the entire pod, allowing resource sharing among containers in a pod.\n\nThis is an alpha field and requires enabling the PodLevelResources feature gate.", + Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), + }, + }, }, Required: []string{"containers"}, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.Container", "k8s.io/api/core/v1.EphemeralContainer", "k8s.io/api/core/v1.HostAlias", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.PodDNSConfig", "k8s.io/api/core/v1.PodOS", "k8s.io/api/core/v1.PodReadinessGate", "k8s.io/api/core/v1.PodResourceClaim", "k8s.io/api/core/v1.PodSchedulingGate", "k8s.io/api/core/v1.PodSecurityContext", "k8s.io/api/core/v1.Toleration", "k8s.io/api/core/v1.TopologySpreadConstraint", "k8s.io/api/core/v1.Volume", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.Container", "k8s.io/api/core/v1.EphemeralContainer", "k8s.io/api/core/v1.HostAlias", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.PodDNSConfig", "k8s.io/api/core/v1.PodOS", "k8s.io/api/core/v1.PodReadinessGate", "k8s.io/api/core/v1.PodResourceClaim", "k8s.io/api/core/v1.PodSchedulingGate", "k8s.io/api/core/v1.PodSecurityContext", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.Toleration", "k8s.io/api/core/v1.TopologySpreadConstraint", "k8s.io/api/core/v1.Volume", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } @@ -14870,7 +14897,7 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope }, }, 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", + Description: "Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -14889,7 +14916,7 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope }, }, 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", + Description: "Statuses of containers in this pod. Each container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -14916,7 +14943,7 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope }, }, SchemaProps: spec.SchemaProps{ - Description: "Status for any ephemeral containers that have run in this pod.", + Description: "Statuses for any ephemeral containers that have run in this pod. Each ephemeral container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -15137,7 +15164,8 @@ func schema_k8sio_api_core_v1_PortStatus(ref common.ReferenceCallback) common.Op return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "PortStatus represents the error condition of a service port", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "port": { SchemaProps: spec.SchemaProps{ @@ -15289,25 +15317,25 @@ func schema_k8sio_api_core_v1_Probe(ref common.ReferenceCallback) common.OpenAPI Properties: map[string]spec.Schema{ "exec": { SchemaProps: spec.SchemaProps{ - Description: "Exec specifies the action to take.", + Description: "Exec specifies a command to execute in the container.", Ref: ref("k8s.io/api/core/v1.ExecAction"), }, }, "httpGet": { SchemaProps: spec.SchemaProps{ - Description: "HTTPGet specifies the http request to perform.", + Description: "HTTPGet specifies an HTTP GET request to perform.", Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), }, }, "tcpSocket": { SchemaProps: spec.SchemaProps{ - Description: "TCPSocket specifies an action involving a TCP port.", + Description: "TCPSocket specifies a connection to a TCP port.", Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), }, }, "grpc": { SchemaProps: spec.SchemaProps{ - Description: "GRPC specifies an action involving a GRPC port.", + Description: "GRPC specifies a GRPC HealthCheckRequest.", Ref: ref("k8s.io/api/core/v1.GRPCAction"), }, }, @@ -15370,25 +15398,25 @@ func schema_k8sio_api_core_v1_ProbeHandler(ref common.ReferenceCallback) common. Properties: map[string]spec.Schema{ "exec": { SchemaProps: spec.SchemaProps{ - Description: "Exec specifies the action to take.", + Description: "Exec specifies a command to execute in the container.", Ref: ref("k8s.io/api/core/v1.ExecAction"), }, }, "httpGet": { SchemaProps: spec.SchemaProps{ - Description: "HTTPGet specifies the http request to perform.", + Description: "HTTPGet specifies an HTTP GET request to perform.", Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), }, }, "tcpSocket": { SchemaProps: spec.SchemaProps{ - Description: "TCPSocket specifies an action involving a TCP port.", + Description: "TCPSocket specifies a connection to a TCP port.", Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), }, }, "grpc": { SchemaProps: spec.SchemaProps{ - Description: "GRPC specifies an action involving a GRPC port.", + Description: "GRPC specifies a GRPC HealthCheckRequest.", Ref: ref("k8s.io/api/core/v1.GRPCAction"), }, }, @@ -16087,7 +16115,7 @@ func schema_k8sio_api_core_v1_ResourceHealth(ref common.ReferenceCallback) commo return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680 and historical health changes are planned to be added in future iterations of a KEP.", + Description: "ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "resourceID": { @@ -16381,11 +16409,12 @@ func schema_k8sio_api_core_v1_ResourceStatus(ref common.ReferenceCallback) commo return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ResourceStatus represents the status of a single resource allocated to a Pod.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Name of the resource. Must be unique within the pod and match one of the resources from the pod spec.", + Description: "Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:/\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container.", Default: "", Type: []string{"string"}, Format: "", @@ -16401,7 +16430,7 @@ func schema_k8sio_api_core_v1_ResourceStatus(ref common.ReferenceCallback) commo }, }, SchemaProps: spec.SchemaProps{ - Description: "List of unique Resources health. Each element in the list contains an unique resource ID and resource health. At a minimum, ResourceID must uniquely identify the Resource allocated to the Pod on the Node for the lifetime of a Pod. See ResourceID type for it's definition.", + Description: "List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -17333,7 +17362,7 @@ func schema_k8sio_api_core_v1_ServiceAccount(ref common.ReferenceCallback) commo }, }, SchemaProps: spec.SchemaProps{ - Description: "Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\" annotation set to \"true\". This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret", + Description: "Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\" annotation set to \"true\". The \"kubernetes.io/enforce-mountable-secrets\" annotation is deprecated since v1.32. Prefer separate namespaces to isolate access to mounted secrets. This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -17842,7 +17871,7 @@ func schema_k8sio_api_core_v1_ServiceSpec(ref common.ReferenceCallback) common.O }, "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.", + 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 a beta field and requires enabling ServiceTrafficDistribution feature.", Type: []string{"string"}, Format: "", }, @@ -18414,7 +18443,8 @@ func schema_k8sio_api_core_v1_TypedObjectReference(ref common.ReferenceCallback) return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "TypedObjectReference contains enough information to let you locate the typed referenced object", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "apiGroup": { SchemaProps: spec.SchemaProps{ @@ -18482,19 +18512,19 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "gcePersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), }, }, "awsElasticBlockStore": { SchemaProps: spec.SchemaProps{ - Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), }, }, "gitRepo": { SchemaProps: spec.SchemaProps{ - Description: "gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", + Description: "gitRepo represents a git repository at a particular revision. Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", Ref: ref("k8s.io/api/core/v1.GitRepoVolumeSource"), }, }, @@ -18518,7 +18548,7 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "glusterfs": { SchemaProps: spec.SchemaProps{ - Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md", + Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md", Ref: ref("k8s.io/api/core/v1.GlusterfsVolumeSource"), }, }, @@ -18530,31 +18560,31 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "rbd": { SchemaProps: spec.SchemaProps{ - Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md", + Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md", Ref: ref("k8s.io/api/core/v1.RBDVolumeSource"), }, }, "flexVolume": { SchemaProps: spec.SchemaProps{ - Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.", Ref: ref("k8s.io/api/core/v1.FlexVolumeSource"), }, }, "cinder": { SchemaProps: spec.SchemaProps{ - Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", Ref: ref("k8s.io/api/core/v1.CinderVolumeSource"), }, }, "cephfs": { SchemaProps: spec.SchemaProps{ - Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", + Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.", Ref: ref("k8s.io/api/core/v1.CephFSVolumeSource"), }, }, "flocker": { SchemaProps: spec.SchemaProps{ - Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", + Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.", Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), }, }, @@ -18572,7 +18602,7 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "azureFile": { SchemaProps: spec.SchemaProps{ - Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", + Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.", Ref: ref("k8s.io/api/core/v1.AzureFileVolumeSource"), }, }, @@ -18584,25 +18614,25 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "vsphereVolume": { SchemaProps: spec.SchemaProps{ - Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", + Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.", Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), }, }, "quobyte": { SchemaProps: spec.SchemaProps{ - Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", + Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.", Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), }, }, "azureDisk": { SchemaProps: spec.SchemaProps{ - Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.", Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), }, }, "photonPersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", + Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.", Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), }, }, @@ -18614,25 +18644,25 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "portworxVolume": { SchemaProps: spec.SchemaProps{ - Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", + Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on.", Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), }, }, "scaleIO": { SchemaProps: spec.SchemaProps{ - Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", + Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.", Ref: ref("k8s.io/api/core/v1.ScaleIOVolumeSource"), }, }, "storageos": { SchemaProps: spec.SchemaProps{ - Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", + Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.", Ref: ref("k8s.io/api/core/v1.StorageOSVolumeSource"), }, }, "csi": { SchemaProps: spec.SchemaProps{ - Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).", + Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.", Ref: ref("k8s.io/api/core/v1.CSIVolumeSource"), }, }, @@ -18927,19 +18957,19 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "gcePersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), }, }, "awsElasticBlockStore": { SchemaProps: spec.SchemaProps{ - Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), }, }, "gitRepo": { SchemaProps: spec.SchemaProps{ - Description: "gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", + Description: "gitRepo represents a git repository at a particular revision. Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", Ref: ref("k8s.io/api/core/v1.GitRepoVolumeSource"), }, }, @@ -18963,7 +18993,7 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "glusterfs": { SchemaProps: spec.SchemaProps{ - Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md", + Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md", Ref: ref("k8s.io/api/core/v1.GlusterfsVolumeSource"), }, }, @@ -18975,31 +19005,31 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "rbd": { SchemaProps: spec.SchemaProps{ - Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md", + Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md", Ref: ref("k8s.io/api/core/v1.RBDVolumeSource"), }, }, "flexVolume": { SchemaProps: spec.SchemaProps{ - Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.", Ref: ref("k8s.io/api/core/v1.FlexVolumeSource"), }, }, "cinder": { SchemaProps: spec.SchemaProps{ - Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", Ref: ref("k8s.io/api/core/v1.CinderVolumeSource"), }, }, "cephfs": { SchemaProps: spec.SchemaProps{ - Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", + Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.", Ref: ref("k8s.io/api/core/v1.CephFSVolumeSource"), }, }, "flocker": { SchemaProps: spec.SchemaProps{ - Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", + Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.", Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), }, }, @@ -19017,7 +19047,7 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "azureFile": { SchemaProps: spec.SchemaProps{ - Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", + Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.", Ref: ref("k8s.io/api/core/v1.AzureFileVolumeSource"), }, }, @@ -19029,25 +19059,25 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "vsphereVolume": { SchemaProps: spec.SchemaProps{ - Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", + Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.", Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), }, }, "quobyte": { SchemaProps: spec.SchemaProps{ - Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", + Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.", Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), }, }, "azureDisk": { SchemaProps: spec.SchemaProps{ - Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.", Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), }, }, "photonPersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", + Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.", Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), }, }, @@ -19059,25 +19089,25 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "portworxVolume": { SchemaProps: spec.SchemaProps{ - Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", + Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on.", Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), }, }, "scaleIO": { SchemaProps: spec.SchemaProps{ - Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", + Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.", Ref: ref("k8s.io/api/core/v1.ScaleIOVolumeSource"), }, }, "storageos": { SchemaProps: spec.SchemaProps{ - Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", + Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.", Ref: ref("k8s.io/api/core/v1.StorageOSVolumeSource"), }, }, "csi": { SchemaProps: spec.SchemaProps{ - Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).", + Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.", Ref: ref("k8s.io/api/core/v1.CSIVolumeSource"), }, }, @@ -19850,6 +19880,13 @@ func schema_pkg_apis_meta_v1_DeleteOptions(ref common.ReferenceCallback) common. }, }, }, + "ignoreStoreReadErrorWithClusterBreakingPotential": { + SchemaProps: spec.SchemaProps{ + Description: "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, diff --git a/config/crd/bases/openstack.k-orc.cloud_flavors.yaml b/config/crd/bases/openstack.k-orc.cloud_flavors.yaml index 5ccac688..d7c29c08 100644 --- a/config/crd/bases/openstack.k-orc.cloud_flavors.yaml +++ b/config/crd/bases/openstack.k-orc.cloud_flavors.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.17.1 name: flavors.openstack.k-orc.cloud spec: group: openstack.k-orc.cloud diff --git a/config/crd/bases/openstack.k-orc.cloud_images.yaml b/config/crd/bases/openstack.k-orc.cloud_images.yaml index ab844d84..7d37e160 100644 --- a/config/crd/bases/openstack.k-orc.cloud_images.yaml +++ b/config/crd/bases/openstack.k-orc.cloud_images.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.17.1 name: images.openstack.k-orc.cloud spec: group: openstack.k-orc.cloud diff --git a/config/crd/bases/openstack.k-orc.cloud_networks.yaml b/config/crd/bases/openstack.k-orc.cloud_networks.yaml index 8c399e79..763a384f 100644 --- a/config/crd/bases/openstack.k-orc.cloud_networks.yaml +++ b/config/crd/bases/openstack.k-orc.cloud_networks.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.17.1 name: networks.openstack.k-orc.cloud spec: group: openstack.k-orc.cloud diff --git a/config/crd/bases/openstack.k-orc.cloud_ports.yaml b/config/crd/bases/openstack.k-orc.cloud_ports.yaml index 8d48aee5..736e62fa 100644 --- a/config/crd/bases/openstack.k-orc.cloud_ports.yaml +++ b/config/crd/bases/openstack.k-orc.cloud_ports.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.17.1 name: ports.openstack.k-orc.cloud spec: group: openstack.k-orc.cloud diff --git a/config/crd/bases/openstack.k-orc.cloud_routerinterfaces.yaml b/config/crd/bases/openstack.k-orc.cloud_routerinterfaces.yaml index a7c79848..d713b8c2 100644 --- a/config/crd/bases/openstack.k-orc.cloud_routerinterfaces.yaml +++ b/config/crd/bases/openstack.k-orc.cloud_routerinterfaces.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.17.1 name: routerinterfaces.openstack.k-orc.cloud spec: group: openstack.k-orc.cloud diff --git a/config/crd/bases/openstack.k-orc.cloud_routers.yaml b/config/crd/bases/openstack.k-orc.cloud_routers.yaml index 63cdc545..d194e5b8 100644 --- a/config/crd/bases/openstack.k-orc.cloud_routers.yaml +++ b/config/crd/bases/openstack.k-orc.cloud_routers.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.17.1 name: routers.openstack.k-orc.cloud spec: group: openstack.k-orc.cloud diff --git a/config/crd/bases/openstack.k-orc.cloud_securitygroups.yaml b/config/crd/bases/openstack.k-orc.cloud_securitygroups.yaml index 6a75d3f0..6a13d45e 100644 --- a/config/crd/bases/openstack.k-orc.cloud_securitygroups.yaml +++ b/config/crd/bases/openstack.k-orc.cloud_securitygroups.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.17.1 name: securitygroups.openstack.k-orc.cloud spec: group: openstack.k-orc.cloud diff --git a/config/crd/bases/openstack.k-orc.cloud_servers.yaml b/config/crd/bases/openstack.k-orc.cloud_servers.yaml index 4e1a8f98..042edf42 100644 --- a/config/crd/bases/openstack.k-orc.cloud_servers.yaml +++ b/config/crd/bases/openstack.k-orc.cloud_servers.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.17.1 name: servers.openstack.k-orc.cloud spec: group: openstack.k-orc.cloud diff --git a/config/crd/bases/openstack.k-orc.cloud_subnets.yaml b/config/crd/bases/openstack.k-orc.cloud_subnets.yaml index d4cf8b92..f02b4ee2 100644 --- a/config/crd/bases/openstack.k-orc.cloud_subnets.yaml +++ b/config/crd/bases/openstack.k-orc.cloud_subnets.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.17.1 name: subnets.openstack.k-orc.cloud spec: group: openstack.k-orc.cloud diff --git a/go.mod b/go.mod index 14af4c3f..fa693612 100644 --- a/go.mod +++ b/go.mod @@ -8,23 +8,24 @@ require ( github.com/google/go-cmp v0.6.0 github.com/gophercloud/gophercloud/v2 v2.4.0 github.com/gophercloud/utils/v2 v2.0.0-20241220104409-2e0af06694a1 - github.com/onsi/ginkgo/v2 v2.21.0 - github.com/onsi/gomega v1.35.1 + github.com/onsi/ginkgo/v2 v2.22.2 + github.com/onsi/gomega v1.36.2 github.com/ulikunitz/xz v0.5.12 go.uber.org/mock v0.5.0 - k8s.io/api v0.31.2 - k8s.io/apimachinery v0.31.2 - k8s.io/client-go v0.31.2 - k8s.io/code-generator v0.31.2 + k8s.io/api v0.32.1 + k8s.io/apimachinery v0.32.1 + k8s.io/client-go v0.32.1 + k8s.io/code-generator v0.32.1 k8s.io/klog/v2 v2.130.1 - k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 - k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 - sigs.k8s.io/controller-runtime v0.19.1 - sigs.k8s.io/structured-merge-diff/v4 v4.4.1 + k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f + k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 + sigs.k8s.io/controller-runtime v0.20.1 + sigs.k8s.io/structured-merge-diff/v4 v4.4.2 sigs.k8s.io/yaml v1.4.0 ) require ( + cel.dev/expr v0.18.0 // indirect github.com/antlr4-go/antlr/v4 v4.13.0 // indirect github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a // indirect github.com/beorn7/perks v1.0.1 // indirect @@ -39,21 +40,20 @@ require ( github.com/fxamacker/cbor/v2 v2.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/gofrs/uuid/v5 v5.3.0 // indirect github.com/gogo/protobuf v1.3.2 // 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.20.1 // indirect + github.com/google/btree v1.1.3 // indirect + github.com/google/cel-go v0.22.0 // 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-20241029153458-d1b30febd7db // indirect + github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad // indirect github.com/google/uuid v1.6.0 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 // indirect - github.com/imdario/mergo v0.3.15 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect @@ -79,7 +79,7 @@ require ( go.opentelemetry.io/otel/trace v1.28.0 // indirect go.opentelemetry.io/proto/otlp v1.3.1 // indirect go.uber.org/multierr v1.11.0 // indirect - go.uber.org/zap v1.26.0 // indirect + go.uber.org/zap v1.27.0 // indirect golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67 // indirect golang.org/x/mod v0.22.0 // indirect golang.org/x/net v0.33.0 // indirect @@ -91,18 +91,17 @@ require ( golang.org/x/time v0.8.0 // indirect golang.org/x/tools v0.28.0 // indirect gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20240826202546-f6391c0de4c7 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240826202546-f6391c0de4c7 // indirect google.golang.org/grpc v1.65.0 // indirect - google.golang.org/protobuf v1.35.1 // indirect + google.golang.org/protobuf v1.36.1 // indirect gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect - gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - k8s.io/apiextensions-apiserver v0.31.2 // indirect - k8s.io/apiserver v0.31.2 // indirect - k8s.io/component-base v0.31.2 // indirect - k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70 // indirect - sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.30.3 // indirect - sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect + k8s.io/apiextensions-apiserver v0.32.0 // indirect + k8s.io/apiserver v0.32.0 // indirect + k8s.io/component-base v0.32.0 // indirect + k8s.io/gengo/v2 v2.0.0-20240911193312-2b36238f13e9 // indirect + sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0 // indirect + sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect ) diff --git a/go.sum b/go.sum index bfd79f3b..03ae24f4 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,5 @@ +cel.dev/expr v0.18.0 h1:CJ6drgk+Hf96lkLikr4rFf19WrU0BOWEihyZnI2TAzo= +cel.dev/expr v0.18.0/go.mod h1:MrpN08Q+lEBs+bGYdLxxHkZoUSsCp0nSKTs0nTymJgw= github.com/antlr4-go/antlr/v4 v4.13.0 h1:lxCg3LAv+EUK6t1i0y1V6/SLeUi0eKEKdhQAlS8TVTI= github.com/antlr4-go/antlr/v4 v4.13.0/go.mod h1:pfChB/xh/Unjila75QW7+VU4TSnWnnk9UTnmpPaOR2g= github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a h1:idn718Q4B6AGu/h5Sxe66HYVdqdGu2l9Iebqhi/AEoA= @@ -35,25 +37,26 @@ 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/gofrs/uuid/v5 v5.3.0 h1:m0mUMr+oVYUdxpMLgSYCZiXe7PuVPnI94+OMeVBNedk= github.com/gofrs/uuid/v5 v5.3.0/go.mod h1:CDOjlDMVAtN56jqyRUZh58JT31Tiw7/oQyEXZV+9bD8= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -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/cel-go v0.20.1 h1:nDx9r8S3L4pE61eDdt8igGj8rf5kjYR3ILxWIpWNi84= -github.com/google/cel-go v0.20.1/go.mod h1:kWcIzTsPX0zmQ+H3TirHstLLf9ep5QTsZBN9u4dOYLg= +github.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg= +github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= +github.com/google/cel-go v0.22.0 h1:b3FJZxpiv1vTMo2/5RDUqAHPxkT8mmMfJIrq1llbf7g= +github.com/google/cel-go v0.22.0/go.mod h1:BuznPXXfQDpXKWQ9sPW3TzlAJN5zzFe+i9tIs0yC4s8= 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= @@ -62,8 +65,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db h1:097atOisP2aRj7vFgYQBbFN4U4JNXUNYpxael3UzMyo= -github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144= +github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad h1:a6HEuzUHeKH6hwfN/ZoQgRgVIWFJljSWa/zetS2WTvg= +github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gophercloud/gophercloud/v2 v2.4.0 h1:XhP5tVEH3ni66NSNK1+0iSO6kaGPH/6srtx6Cr+8eCg= @@ -72,8 +75,6 @@ github.com/gophercloud/utils/v2 v2.0.0-20241220104409-2e0af06694a1 h1:LS70kbNdqo github.com/gophercloud/utils/v2 v2.0.0-20241220104409-2e0af06694a1/go.mod h1:qDhuzCRKi90/Yyl/yEqkg8+qABEvK44LhP0D3GWKGtY= github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 h1:bkypFPDjIYGfCYD5mRBvpqxfYX1YCS1PXdKYWi8FsN0= github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0/go.mod h1:P+Lt/0by1T8bfcF3z737NnSbmxQAppXMRziHUxPOC8k= -github.com/imdario/mergo v0.3.15 h1:M8XP7IuFNsqUx6VPK2P9OSmsYsI/YFaGil0uD21V3dM= -github.com/imdario/mergo v0.3.15/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= @@ -98,10 +99,10 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/onsi/ginkgo/v2 v2.21.0 h1:7rg/4f3rB88pb5obDgNZrNHrQ4e6WpjonchcpuBRnZM= -github.com/onsi/ginkgo/v2 v2.21.0/go.mod h1:7Du3c42kxCUegi0IImZ1wUQzMBVecgIHjR1C+NkhLQo= -github.com/onsi/gomega v1.35.1 h1:Cwbd75ZBPxFSuZ6T+rN/WCb/gOc6YgFBXLlZLhC7Ds4= -github.com/onsi/gomega v1.35.1/go.mod h1:PvZbdDc8J6XJEpDK4HCuRBm8a6Fzp9/DmhC9C7yFlog= +github.com/onsi/ginkgo/v2 v2.22.2 h1:/3X8Panh8/WwhU/3Ssa6rCKqPLuAkVY2I0RoyDLySlU= +github.com/onsi/ginkgo/v2 v2.22.2/go.mod h1:oeMosUL+8LtarXBHu/c0bx2D/K9zyQ6uX3cTyztHwsk= +github.com/onsi/gomega v1.36.2 h1:koNYke6TVk6ZmnyHrCXba/T/MoLBXFjeC1PtvYgw0A8= +github.com/onsi/gomega v1.36.2/go.mod h1:DdwyADRjrc825LhMEkD76cHR5+pUnjhUN8GlHlRPHzY= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -161,8 +162,8 @@ go.uber.org/mock v0.5.0 h1:KAMbZvZPyBPWgD14IrIQ38QCyjwpvVVV6K/bHl1IwQU= go.uber.org/mock v0.5.0/go.mod h1:ge71pBPLYDk7QIi1LupWxdAykm7KIEFchiOqd6z7qMM= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= -go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo= -go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so= +go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= +go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= @@ -210,14 +211,14 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 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/googleapis/api v0.0.0-20240528184218-531527333157 h1:7whR9kGa5LUwFtpLm2ArCEejtnxlGeLbAyjFY8sGNFw= -google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157/go.mod h1:99sLkeliLXfdj2J75X3Ho+rrVCaJze0uwN7zDDkjPVU= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 h1:BwIjyKYGsK9dMCBOorzRri8MQwmi7mT9rGHsCEinZkA= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094/go.mod h1:Ue6ibwXGpU+dqIcODieyLOcgj7z8+IcskoNIgZxtrFY= +google.golang.org/genproto/googleapis/api v0.0.0-20240826202546-f6391c0de4c7 h1:YcyjlL1PRr2Q17/I0dPk2JmYS5CDXfcdb2Z3YRioEbw= +google.golang.org/genproto/googleapis/api v0.0.0-20240826202546-f6391c0de4c7/go.mod h1:OCdP9MfskevB/rbYvHTsXTtKC+3bHWajPdoKgjcYkfo= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240826202546-f6391c0de4c7 h1:2035KHhUv+EpyB+hWgJnaWKJOdX1E95w2S8Rr4uWKTs= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240826202546-f6391c0de4c7/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc= google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ= -google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= -google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= +google.golang.org/protobuf v1.36.1 h1:yBPeRvTftaleIgM3PZ/WBIZ7XM/eEYAaEyCwvyjq/gk= +google.golang.org/protobuf v1.36.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= @@ -225,41 +226,38 @@ gopkg.in/evanphx/json-patch.v4 v4.12.0 h1:n6jtcsulIzXPJaxegRbvFNNrZDjbij7ny3gmSP gopkg.in/evanphx/json-patch.v4 v4.12.0/go.mod h1:p8EYWUEYMpynmqDbY58zCKCFZw8pRWMG4EsWvDvM72M= gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= -gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/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.31.2 h1:3wLBbL5Uom/8Zy98GRPXpJ254nEFpl+hwndmk9RwmL0= -k8s.io/api v0.31.2/go.mod h1:bWmGvrGPssSK1ljmLzd3pwCQ9MgoTsRCuK35u6SygUk= -k8s.io/apiextensions-apiserver v0.31.2 h1:W8EwUb8+WXBLu56ser5IudT2cOho0gAKeTOnywBLxd0= -k8s.io/apiextensions-apiserver v0.31.2/go.mod h1:i+Geh+nGCJEGiCGR3MlBDkS7koHIIKWVfWeRFiOsUcM= -k8s.io/apimachinery v0.31.2 h1:i4vUt2hPK56W6mlT7Ry+AO8eEsyxMD1U44NR22CLTYw= -k8s.io/apimachinery v0.31.2/go.mod h1:rsPdaZJfTfLsNJSQzNHQvYoTmxhoOEofxtOsF3rtsMo= -k8s.io/apiserver v0.31.2 h1:VUzOEUGRCDi6kX1OyQ801m4A7AUPglpsmGvdsekmcI4= -k8s.io/apiserver v0.31.2/go.mod h1:o3nKZR7lPlJqkU5I3Ove+Zx3JuoFjQobGX1Gctw6XuE= -k8s.io/client-go v0.31.2 h1:Y2F4dxU5d3AQj+ybwSMqQnpZH9F30//1ObxOKlTI9yc= -k8s.io/client-go v0.31.2/go.mod h1:NPa74jSVR/+eez2dFsEIHNa+3o09vtNaWwWwb1qSxSs= -k8s.io/code-generator v0.31.2 h1:xLWxG0HEpMSHfcM//3u3Ro2Hmc6AyyLINQS//Z2GEOI= -k8s.io/code-generator v0.31.2/go.mod h1:eEQHXgBU/m7LDaToDoiz3t97dUUVyOblQdwOr8rivqc= -k8s.io/component-base v0.31.2 h1:Z1J1LIaC0AV+nzcPRFqfK09af6bZ4D1nAOpWsy9owlA= -k8s.io/component-base v0.31.2/go.mod h1:9PeyyFN/drHjtJZMCTkSpQJS3U9OXORnHQqMLDz0sUQ= -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/api v0.32.1 h1:f562zw9cy+GvXzXf0CKlVQ7yHJVYzLfL6JAS4kOAaOc= +k8s.io/api v0.32.1/go.mod h1:/Yi/BqkuueW1BgpoePYBRdDYfjPF5sgTr5+YqDZra5k= +k8s.io/apiextensions-apiserver v0.32.0 h1:S0Xlqt51qzzqjKPxfgX1xh4HBZE+p8KKBq+k2SWNOE0= +k8s.io/apiextensions-apiserver v0.32.0/go.mod h1:86hblMvN5yxMvZrZFX2OhIHAuFIMJIZ19bTvzkP+Fmw= +k8s.io/apimachinery v0.32.1 h1:683ENpaCBjma4CYqsmZyhEzrGz6cjn1MY/X2jB2hkZs= +k8s.io/apimachinery v0.32.1/go.mod h1:GpHVgxoKlTxClKcteaeuF1Ul/lDVb74KpZcxcmLDElE= +k8s.io/apiserver v0.32.0 h1:VJ89ZvQZ8p1sLeiWdRJpRD6oLozNZD2+qVSLi+ft5Qs= +k8s.io/apiserver v0.32.0/go.mod h1:HFh+dM1/BE/Hm4bS4nTXHVfN6Z6tFIZPi649n83b4Ag= +k8s.io/client-go v0.32.1 h1:otM0AxdhdBIaQh7l1Q0jQpmo7WOFIk5FFa4bg6YMdUU= +k8s.io/client-go v0.32.1/go.mod h1:aTTKZY7MdxUaJ/KiUs8D+GssR9zJZi77ZqtzcGXIiDg= +k8s.io/code-generator v0.32.1 h1:4lw1kFNDuFYXquTkB7Sl5EwPMUP2yyW9hh6BnFfRZFY= +k8s.io/code-generator v0.32.1/go.mod h1:zaILfm00CVyP/6/pJMJ3zxRepXkxyDfUV5SNG4CjZI4= +k8s.io/component-base v0.32.0 h1:d6cWHZkCiiep41ObYQS6IcgzOUQUNpywm39KVYaUqzU= +k8s.io/component-base v0.32.0/go.mod h1:JLG2W5TUxUu5uDyKiH2R/7NnxJo1HlPoRIIbVLkK5eM= +k8s.io/gengo/v2 v2.0.0-20240911193312-2b36238f13e9 h1:si3PfKm8dDYxgfbeA6orqrtLkvvIeH8UqffFJDl0bz4= +k8s.io/gengo/v2 v2.0.0-20240911193312-2b36238f13e9/go.mod h1:EJykeLsmFC60UQbYJezXkEsG2FLrt0GPNkU5iK5GWxU= k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk= k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= -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/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.30.3 h1:2770sDpzrjjsAtVhSeUFseziht227YAWYHLGNM8QPwY= -sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.30.3/go.mod h1:Ve9uj1L+deCXFrPOk1LpFXqTg7LCFzFso6PA48q/XZw= -sigs.k8s.io/controller-runtime v0.19.1 h1:Son+Q40+Be3QWb+niBXAg2vFiYWolDjjRfO8hn/cxOk= -sigs.k8s.io/controller-runtime v0.19.1/go.mod h1:iRmWllt8IlaLjvTTDLhRBXIEtkCK6hwVBJJsYS9Ajf4= -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= -sigs.k8s.io/structured-merge-diff/v4 v4.4.1/go.mod h1:N8hJocpFajUSSeSJ9bOZ77VzejKZaXsTtZo4/u7Io08= +k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f h1:GA7//TjRY9yWGy1poLzYYJJ4JRdzg3+O6e8I+e+8T5Y= +k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f/go.mod h1:R/HEjbvWI0qdfb8viZUeVZm0X6IZnxAydC7YU42CMw4= +k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6JSWYFzOFnYeS6Ro= +k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= +sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0 h1:CPT0ExVicCzcpeN4baWEV2ko2Z/AsiZgEdwgcfwLgMo= +sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0/go.mod h1:Ve9uj1L+deCXFrPOk1LpFXqTg7LCFzFso6PA48q/XZw= +sigs.k8s.io/controller-runtime v0.20.1 h1:JbGMAG/X94NeM3xvjenVUaBjy6Ui4Ogd/J5ZtjZnHaE= +sigs.k8s.io/controller-runtime v0.20.1/go.mod h1:BrP3w158MwvB3ZbNpaAcIKkHQ7YGpYnzpoSTZ8E14WU= +sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 h1:/Rv+M11QRah1itp8VhT6HoVx1Ray9eB4DBr+K+/sCJ8= +sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3/go.mod h1:18nIHnGi6636UCz6m8i4DhaJ65T6EruyzmoQqI2BVDo= +sigs.k8s.io/structured-merge-diff/v4 v4.4.2 h1:MdmvkGuXi/8io6ixD5wud3vOLwc1rj0aNqRlpuvjmwA= +sigs.k8s.io/structured-merge-diff/v4 v4.4.2/go.mod h1:N8f93tFZh9U6vpxwRArLiikrE5/2tiu1w1AGfACIGE4= sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= diff --git a/internal/osclients/mock/compute.go b/internal/osclients/mock/compute.go index 3cdd467c..64435973 100644 --- a/internal/osclients/mock/compute.go +++ b/internal/osclients/mock/compute.go @@ -41,6 +41,7 @@ import ( type MockComputeClient struct { ctrl *gomock.Controller recorder *MockComputeClientMockRecorder + isgomock struct{} } // MockComputeClientMockRecorder is the mock recorder for MockComputeClient. diff --git a/internal/osclients/mock/image.go b/internal/osclients/mock/image.go index c8a8699c..c1c1ccb4 100644 --- a/internal/osclients/mock/image.go +++ b/internal/osclients/mock/image.go @@ -39,6 +39,7 @@ import ( type MockImageClient struct { ctrl *gomock.Controller recorder *MockImageClientMockRecorder + isgomock struct{} } // MockImageClientMockRecorder is the mock recorder for MockImageClient. diff --git a/internal/osclients/mock/loadbalancer.go b/internal/osclients/mock/loadbalancer.go index e23cf442..3df4c99f 100644 --- a/internal/osclients/mock/loadbalancer.go +++ b/internal/osclients/mock/loadbalancer.go @@ -41,6 +41,7 @@ import ( type MockLbClient struct { ctrl *gomock.Controller recorder *MockLbClientMockRecorder + isgomock struct{} } // MockLbClientMockRecorder is the mock recorder for MockLbClient. diff --git a/internal/osclients/mock/networking.go b/internal/osclients/mock/networking.go index 2ec524ad..3f47cbc8 100644 --- a/internal/osclients/mock/networking.go +++ b/internal/osclients/mock/networking.go @@ -47,6 +47,7 @@ import ( type MockNetworkClient struct { ctrl *gomock.Controller recorder *MockNetworkClientMockRecorder + isgomock struct{} } // MockNetworkClientMockRecorder is the mock recorder for MockNetworkClient. diff --git a/internal/osclients/mock/volume.go b/internal/osclients/mock/volume.go index 7939dd69..e5ba8d5d 100644 --- a/internal/osclients/mock/volume.go +++ b/internal/osclients/mock/volume.go @@ -35,6 +35,7 @@ import ( type MockVolumeClient struct { ctrl *gomock.Controller recorder *MockVolumeClientMockRecorder + isgomock struct{} } // MockVolumeClientMockRecorder is the mock recorder for MockVolumeClient. diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/address.go b/pkg/clients/applyconfiguration/api/v1alpha1/address.go index 310dc294..3dc291da 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/address.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/address.go @@ -19,14 +19,14 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // AddressApplyConfiguration represents a declarative configuration of the Address type for use // with apply. type AddressApplyConfiguration struct { - IP *v1alpha1.IPvAny `json:"ip,omitempty"` - SubnetRef *v1alpha1.KubernetesNameRef `json:"subnetRef,omitempty"` + IP *apiv1alpha1.IPvAny `json:"ip,omitempty"` + SubnetRef *apiv1alpha1.KubernetesNameRef `json:"subnetRef,omitempty"` } // AddressApplyConfiguration constructs a declarative configuration of the Address type for use with @@ -38,7 +38,7 @@ func Address() *AddressApplyConfiguration { // WithIP sets the IP 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 IP field is set to the value of the last call. -func (b *AddressApplyConfiguration) WithIP(value v1alpha1.IPvAny) *AddressApplyConfiguration { +func (b *AddressApplyConfiguration) WithIP(value apiv1alpha1.IPvAny) *AddressApplyConfiguration { b.IP = &value return b } @@ -46,7 +46,7 @@ func (b *AddressApplyConfiguration) WithIP(value v1alpha1.IPvAny) *AddressApplyC // WithSubnetRef sets the SubnetRef 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 SubnetRef field is set to the value of the last call. -func (b *AddressApplyConfiguration) WithSubnetRef(value v1alpha1.KubernetesNameRef) *AddressApplyConfiguration { +func (b *AddressApplyConfiguration) WithSubnetRef(value apiv1alpha1.KubernetesNameRef) *AddressApplyConfiguration { b.SubnetRef = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/allocationpool.go b/pkg/clients/applyconfiguration/api/v1alpha1/allocationpool.go index b82041f4..4238c9a7 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/allocationpool.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/allocationpool.go @@ -19,14 +19,14 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // AllocationPoolApplyConfiguration represents a declarative configuration of the AllocationPool type for use // with apply. type AllocationPoolApplyConfiguration struct { - Start *v1alpha1.IPvAny `json:"start,omitempty"` - End *v1alpha1.IPvAny `json:"end,omitempty"` + Start *apiv1alpha1.IPvAny `json:"start,omitempty"` + End *apiv1alpha1.IPvAny `json:"end,omitempty"` } // AllocationPoolApplyConfiguration constructs a declarative configuration of the AllocationPool type for use with @@ -38,7 +38,7 @@ func AllocationPool() *AllocationPoolApplyConfiguration { // WithStart sets the Start 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 Start field is set to the value of the last call. -func (b *AllocationPoolApplyConfiguration) WithStart(value v1alpha1.IPvAny) *AllocationPoolApplyConfiguration { +func (b *AllocationPoolApplyConfiguration) WithStart(value apiv1alpha1.IPvAny) *AllocationPoolApplyConfiguration { b.Start = &value return b } @@ -46,7 +46,7 @@ func (b *AllocationPoolApplyConfiguration) WithStart(value v1alpha1.IPvAny) *All // WithEnd sets the End 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 End field is set to the value of the last call. -func (b *AllocationPoolApplyConfiguration) WithEnd(value v1alpha1.IPvAny) *AllocationPoolApplyConfiguration { +func (b *AllocationPoolApplyConfiguration) WithEnd(value apiv1alpha1.IPvAny) *AllocationPoolApplyConfiguration { b.End = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/allowedaddresspair.go b/pkg/clients/applyconfiguration/api/v1alpha1/allowedaddresspair.go index c2b62a9a..a0c329ca 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/allowedaddresspair.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/allowedaddresspair.go @@ -19,14 +19,14 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // AllowedAddressPairApplyConfiguration represents a declarative configuration of the AllowedAddressPair type for use // with apply. type AllowedAddressPairApplyConfiguration struct { - IP *v1alpha1.IPvAny `json:"ip,omitempty"` - MAC *v1alpha1.MAC `json:"mac,omitempty"` + IP *apiv1alpha1.IPvAny `json:"ip,omitempty"` + MAC *apiv1alpha1.MAC `json:"mac,omitempty"` } // AllowedAddressPairApplyConfiguration constructs a declarative configuration of the AllowedAddressPair type for use with @@ -38,7 +38,7 @@ func AllowedAddressPair() *AllowedAddressPairApplyConfiguration { // WithIP sets the IP 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 IP field is set to the value of the last call. -func (b *AllowedAddressPairApplyConfiguration) WithIP(value v1alpha1.IPvAny) *AllowedAddressPairApplyConfiguration { +func (b *AllowedAddressPairApplyConfiguration) WithIP(value apiv1alpha1.IPvAny) *AllowedAddressPairApplyConfiguration { b.IP = &value return b } @@ -46,7 +46,7 @@ func (b *AllowedAddressPairApplyConfiguration) WithIP(value v1alpha1.IPvAny) *Al // WithMAC sets the MAC 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 MAC field is set to the value of the last call. -func (b *AllowedAddressPairApplyConfiguration) WithMAC(value v1alpha1.MAC) *AllowedAddressPairApplyConfiguration { +func (b *AllowedAddressPairApplyConfiguration) WithMAC(value apiv1alpha1.MAC) *AllowedAddressPairApplyConfiguration { b.MAC = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/externalgateway.go b/pkg/clients/applyconfiguration/api/v1alpha1/externalgateway.go index 2d5a4d82..76b38770 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/externalgateway.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/externalgateway.go @@ -19,13 +19,13 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // ExternalGatewayApplyConfiguration represents a declarative configuration of the ExternalGateway type for use // with apply. type ExternalGatewayApplyConfiguration struct { - NetworkRef *v1alpha1.KubernetesNameRef `json:"networkRef,omitempty"` + NetworkRef *apiv1alpha1.KubernetesNameRef `json:"networkRef,omitempty"` } // ExternalGatewayApplyConfiguration constructs a declarative configuration of the ExternalGateway type for use with @@ -37,7 +37,7 @@ func ExternalGateway() *ExternalGatewayApplyConfiguration { // 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 *ExternalGatewayApplyConfiguration) WithNetworkRef(value v1alpha1.KubernetesNameRef) *ExternalGatewayApplyConfiguration { +func (b *ExternalGatewayApplyConfiguration) WithNetworkRef(value apiv1alpha1.KubernetesNameRef) *ExternalGatewayApplyConfiguration { b.NetworkRef = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/filterbyneutrontags.go b/pkg/clients/applyconfiguration/api/v1alpha1/filterbyneutrontags.go index 1c00b32d..93872df4 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/filterbyneutrontags.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/filterbyneutrontags.go @@ -19,16 +19,16 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // FilterByNeutronTagsApplyConfiguration represents a declarative configuration of the FilterByNeutronTags type for use // with apply. type FilterByNeutronTagsApplyConfiguration struct { - Tags []v1alpha1.NeutronTag `json:"tags,omitempty"` - TagsAny []v1alpha1.NeutronTag `json:"tagsAny,omitempty"` - NotTags []v1alpha1.NeutronTag `json:"notTags,omitempty"` - NotTagsAny []v1alpha1.NeutronTag `json:"notTagsAny,omitempty"` + Tags []apiv1alpha1.NeutronTag `json:"tags,omitempty"` + TagsAny []apiv1alpha1.NeutronTag `json:"tagsAny,omitempty"` + NotTags []apiv1alpha1.NeutronTag `json:"notTags,omitempty"` + NotTagsAny []apiv1alpha1.NeutronTag `json:"notTagsAny,omitempty"` } // FilterByNeutronTagsApplyConfiguration constructs a declarative configuration of the FilterByNeutronTags type for use with @@ -40,7 +40,7 @@ func FilterByNeutronTags() *FilterByNeutronTagsApplyConfiguration { // WithTags adds the given value to the Tags 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 Tags field. -func (b *FilterByNeutronTagsApplyConfiguration) WithTags(values ...v1alpha1.NeutronTag) *FilterByNeutronTagsApplyConfiguration { +func (b *FilterByNeutronTagsApplyConfiguration) WithTags(values ...apiv1alpha1.NeutronTag) *FilterByNeutronTagsApplyConfiguration { for i := range values { b.Tags = append(b.Tags, values[i]) } @@ -50,7 +50,7 @@ func (b *FilterByNeutronTagsApplyConfiguration) WithTags(values ...v1alpha1.Neut // WithTagsAny adds the given value to the TagsAny 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 TagsAny field. -func (b *FilterByNeutronTagsApplyConfiguration) WithTagsAny(values ...v1alpha1.NeutronTag) *FilterByNeutronTagsApplyConfiguration { +func (b *FilterByNeutronTagsApplyConfiguration) WithTagsAny(values ...apiv1alpha1.NeutronTag) *FilterByNeutronTagsApplyConfiguration { for i := range values { b.TagsAny = append(b.TagsAny, values[i]) } @@ -60,7 +60,7 @@ func (b *FilterByNeutronTagsApplyConfiguration) WithTagsAny(values ...v1alpha1.N // WithNotTags adds the given value to the NotTags 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 NotTags field. -func (b *FilterByNeutronTagsApplyConfiguration) WithNotTags(values ...v1alpha1.NeutronTag) *FilterByNeutronTagsApplyConfiguration { +func (b *FilterByNeutronTagsApplyConfiguration) WithNotTags(values ...apiv1alpha1.NeutronTag) *FilterByNeutronTagsApplyConfiguration { for i := range values { b.NotTags = append(b.NotTags, values[i]) } @@ -70,7 +70,7 @@ func (b *FilterByNeutronTagsApplyConfiguration) WithNotTags(values ...v1alpha1.N // WithNotTagsAny adds the given value to the NotTagsAny 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 NotTagsAny field. -func (b *FilterByNeutronTagsApplyConfiguration) WithNotTagsAny(values ...v1alpha1.NeutronTag) *FilterByNeutronTagsApplyConfiguration { +func (b *FilterByNeutronTagsApplyConfiguration) WithNotTagsAny(values ...apiv1alpha1.NeutronTag) *FilterByNeutronTagsApplyConfiguration { for i := range values { b.NotTagsAny = append(b.NotTagsAny, values[i]) } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/flavor.go b/pkg/clients/applyconfiguration/api/v1alpha1/flavor.go index ac3f4ca3..aedb2b69 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/flavor.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/flavor.go @@ -87,7 +87,7 @@ func extractFlavor(flavor *apiv1alpha1.Flavor, fieldManager string, subresource // 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 *FlavorApplyConfiguration) WithKind(value string) *FlavorApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -95,7 +95,7 @@ func (b *FlavorApplyConfiguration) WithKind(value string) *FlavorApplyConfigurat // 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 *FlavorApplyConfiguration) WithAPIVersion(value string) *FlavorApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -104,7 +104,7 @@ func (b *FlavorApplyConfiguration) WithAPIVersion(value string) *FlavorApplyConf // If called multiple times, the Name field is set to the value of the last call. func (b *FlavorApplyConfiguration) WithName(value string) *FlavorApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -113,7 +113,7 @@ func (b *FlavorApplyConfiguration) WithName(value string) *FlavorApplyConfigurat // If called multiple times, the GenerateName field is set to the value of the last call. func (b *FlavorApplyConfiguration) WithGenerateName(value string) *FlavorApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -122,7 +122,7 @@ func (b *FlavorApplyConfiguration) WithGenerateName(value string) *FlavorApplyCo // If called multiple times, the Namespace field is set to the value of the last call. func (b *FlavorApplyConfiguration) WithNamespace(value string) *FlavorApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -131,7 +131,7 @@ func (b *FlavorApplyConfiguration) WithNamespace(value string) *FlavorApplyConfi // If called multiple times, the UID field is set to the value of the last call. func (b *FlavorApplyConfiguration) WithUID(value types.UID) *FlavorApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -140,7 +140,7 @@ func (b *FlavorApplyConfiguration) WithUID(value types.UID) *FlavorApplyConfigur // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *FlavorApplyConfiguration) WithResourceVersion(value string) *FlavorApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -149,7 +149,7 @@ func (b *FlavorApplyConfiguration) WithResourceVersion(value string) *FlavorAppl // If called multiple times, the Generation field is set to the value of the last call. func (b *FlavorApplyConfiguration) WithGeneration(value int64) *FlavorApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } @@ -158,7 +158,7 @@ func (b *FlavorApplyConfiguration) WithGeneration(value int64) *FlavorApplyConfi // If called multiple times, the CreationTimestamp field is set to the value of the last call. func (b *FlavorApplyConfiguration) WithCreationTimestamp(value metav1.Time) *FlavorApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } @@ -167,7 +167,7 @@ func (b *FlavorApplyConfiguration) WithCreationTimestamp(value metav1.Time) *Fla // If called multiple times, the DeletionTimestamp field is set to the value of the last call. func (b *FlavorApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *FlavorApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -176,7 +176,7 @@ func (b *FlavorApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Fla // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *FlavorApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *FlavorApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -186,11 +186,11 @@ func (b *FlavorApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) * // overwriting an existing map entries in Labels field with the same key. func (b *FlavorApplyConfiguration) WithLabels(entries map[string]string) *FlavorApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Labels == nil && len(entries) > 0 { - b.Labels = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) } for k, v := range entries { - b.Labels[k] = v + b.ObjectMetaApplyConfiguration.Labels[k] = v } return b } @@ -201,11 +201,11 @@ func (b *FlavorApplyConfiguration) WithLabels(entries map[string]string) *Flavor // overwriting an existing map entries in Annotations field with the same key. func (b *FlavorApplyConfiguration) WithAnnotations(entries map[string]string) *FlavorApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Annotations == nil && len(entries) > 0 { - b.Annotations = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) } for k, v := range entries { - b.Annotations[k] = v + b.ObjectMetaApplyConfiguration.Annotations[k] = v } return b } @@ -219,7 +219,7 @@ func (b *FlavorApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefere if values[i] == nil { panic("nil value passed to WithOwnerReferences") } - b.OwnerReferences = append(b.OwnerReferences, *values[i]) + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) } return b } @@ -230,7 +230,7 @@ func (b *FlavorApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefere func (b *FlavorApplyConfiguration) WithFinalizers(values ...string) *FlavorApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } @@ -260,5 +260,5 @@ func (b *FlavorApplyConfiguration) WithStatus(value *FlavorStatusApplyConfigurat // GetName retrieves the value of the Name field in the declarative configuration. func (b *FlavorApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/flavorfilter.go b/pkg/clients/applyconfiguration/api/v1alpha1/flavorfilter.go index 2554c9f2..4b3ccbc2 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/flavorfilter.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/flavorfilter.go @@ -19,16 +19,16 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // FlavorFilterApplyConfiguration represents a declarative configuration of the FlavorFilter type for use // with apply. type FlavorFilterApplyConfiguration struct { - Name *v1alpha1.OpenStackName `json:"name,omitempty"` - RAM *int32 `json:"ram,omitempty"` - Vcpus *int32 `json:"vcpus,omitempty"` - Disk *int32 `json:"disk,omitempty"` + Name *apiv1alpha1.OpenStackName `json:"name,omitempty"` + RAM *int32 `json:"ram,omitempty"` + Vcpus *int32 `json:"vcpus,omitempty"` + Disk *int32 `json:"disk,omitempty"` } // FlavorFilterApplyConfiguration constructs a declarative configuration of the FlavorFilter type for use with @@ -40,7 +40,7 @@ func FlavorFilter() *FlavorFilterApplyConfiguration { // 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 *FlavorFilterApplyConfiguration) WithName(value v1alpha1.OpenStackName) *FlavorFilterApplyConfiguration { +func (b *FlavorFilterApplyConfiguration) WithName(value apiv1alpha1.OpenStackName) *FlavorFilterApplyConfiguration { b.Name = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/flavorresourcespec.go b/pkg/clients/applyconfiguration/api/v1alpha1/flavorresourcespec.go index 88e1c313..9e4681ca 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/flavorresourcespec.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/flavorresourcespec.go @@ -19,20 +19,20 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // FlavorResourceSpecApplyConfiguration represents a declarative configuration of the FlavorResourceSpec type for use // with apply. type FlavorResourceSpecApplyConfiguration struct { - Name *v1alpha1.OpenStackName `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - RAM *int32 `json:"ram,omitempty"` - Vcpus *int32 `json:"vcpus,omitempty"` - Disk *int32 `json:"disk,omitempty"` - Swap *int32 `json:"swap,omitempty"` - IsPublic *bool `json:"isPublic,omitempty"` - Ephemeral *int32 `json:"ephemeral,omitempty"` + Name *apiv1alpha1.OpenStackName `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + RAM *int32 `json:"ram,omitempty"` + Vcpus *int32 `json:"vcpus,omitempty"` + Disk *int32 `json:"disk,omitempty"` + Swap *int32 `json:"swap,omitempty"` + IsPublic *bool `json:"isPublic,omitempty"` + Ephemeral *int32 `json:"ephemeral,omitempty"` } // FlavorResourceSpecApplyConfiguration constructs a declarative configuration of the FlavorResourceSpec type for use with @@ -44,7 +44,7 @@ func FlavorResourceSpec() *FlavorResourceSpecApplyConfiguration { // 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 *FlavorResourceSpecApplyConfiguration) WithName(value v1alpha1.OpenStackName) *FlavorResourceSpecApplyConfiguration { +func (b *FlavorResourceSpecApplyConfiguration) WithName(value apiv1alpha1.OpenStackName) *FlavorResourceSpecApplyConfiguration { b.Name = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/hostroute.go b/pkg/clients/applyconfiguration/api/v1alpha1/hostroute.go index a9f0f4a9..682ce604 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/hostroute.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/hostroute.go @@ -19,14 +19,14 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // HostRouteApplyConfiguration represents a declarative configuration of the HostRoute type for use // with apply. type HostRouteApplyConfiguration struct { - Destination *v1alpha1.CIDR `json:"destination,omitempty"` - NextHop *v1alpha1.IPvAny `json:"nextHop,omitempty"` + Destination *apiv1alpha1.CIDR `json:"destination,omitempty"` + NextHop *apiv1alpha1.IPvAny `json:"nextHop,omitempty"` } // HostRouteApplyConfiguration constructs a declarative configuration of the HostRoute type for use with @@ -38,7 +38,7 @@ func HostRoute() *HostRouteApplyConfiguration { // WithDestination sets the Destination 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 Destination field is set to the value of the last call. -func (b *HostRouteApplyConfiguration) WithDestination(value v1alpha1.CIDR) *HostRouteApplyConfiguration { +func (b *HostRouteApplyConfiguration) WithDestination(value apiv1alpha1.CIDR) *HostRouteApplyConfiguration { b.Destination = &value return b } @@ -46,7 +46,7 @@ func (b *HostRouteApplyConfiguration) WithDestination(value v1alpha1.CIDR) *Host // WithNextHop sets the NextHop 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 NextHop field is set to the value of the last call. -func (b *HostRouteApplyConfiguration) WithNextHop(value v1alpha1.IPvAny) *HostRouteApplyConfiguration { +func (b *HostRouteApplyConfiguration) WithNextHop(value apiv1alpha1.IPvAny) *HostRouteApplyConfiguration { b.NextHop = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/image.go b/pkg/clients/applyconfiguration/api/v1alpha1/image.go index 9db7bb69..732318df 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/image.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/image.go @@ -87,7 +87,7 @@ func extractImage(image *apiv1alpha1.Image, fieldManager string, subresource str // 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 *ImageApplyConfiguration) WithKind(value string) *ImageApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -95,7 +95,7 @@ func (b *ImageApplyConfiguration) WithKind(value string) *ImageApplyConfiguratio // 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 *ImageApplyConfiguration) WithAPIVersion(value string) *ImageApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -104,7 +104,7 @@ func (b *ImageApplyConfiguration) WithAPIVersion(value string) *ImageApplyConfig // If called multiple times, the Name field is set to the value of the last call. func (b *ImageApplyConfiguration) WithName(value string) *ImageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -113,7 +113,7 @@ func (b *ImageApplyConfiguration) WithName(value string) *ImageApplyConfiguratio // If called multiple times, the GenerateName field is set to the value of the last call. func (b *ImageApplyConfiguration) WithGenerateName(value string) *ImageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -122,7 +122,7 @@ func (b *ImageApplyConfiguration) WithGenerateName(value string) *ImageApplyConf // If called multiple times, the Namespace field is set to the value of the last call. func (b *ImageApplyConfiguration) WithNamespace(value string) *ImageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -131,7 +131,7 @@ func (b *ImageApplyConfiguration) WithNamespace(value string) *ImageApplyConfigu // If called multiple times, the UID field is set to the value of the last call. func (b *ImageApplyConfiguration) WithUID(value types.UID) *ImageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -140,7 +140,7 @@ func (b *ImageApplyConfiguration) WithUID(value types.UID) *ImageApplyConfigurat // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *ImageApplyConfiguration) WithResourceVersion(value string) *ImageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -149,7 +149,7 @@ func (b *ImageApplyConfiguration) WithResourceVersion(value string) *ImageApplyC // If called multiple times, the Generation field is set to the value of the last call. func (b *ImageApplyConfiguration) WithGeneration(value int64) *ImageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } @@ -158,7 +158,7 @@ func (b *ImageApplyConfiguration) WithGeneration(value int64) *ImageApplyConfigu // If called multiple times, the CreationTimestamp field is set to the value of the last call. func (b *ImageApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ImageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } @@ -167,7 +167,7 @@ func (b *ImageApplyConfiguration) WithCreationTimestamp(value metav1.Time) *Imag // If called multiple times, the DeletionTimestamp field is set to the value of the last call. func (b *ImageApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ImageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -176,7 +176,7 @@ func (b *ImageApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Imag // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *ImageApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ImageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -186,11 +186,11 @@ func (b *ImageApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *I // overwriting an existing map entries in Labels field with the same key. func (b *ImageApplyConfiguration) WithLabels(entries map[string]string) *ImageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Labels == nil && len(entries) > 0 { - b.Labels = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) } for k, v := range entries { - b.Labels[k] = v + b.ObjectMetaApplyConfiguration.Labels[k] = v } return b } @@ -201,11 +201,11 @@ func (b *ImageApplyConfiguration) WithLabels(entries map[string]string) *ImageAp // overwriting an existing map entries in Annotations field with the same key. func (b *ImageApplyConfiguration) WithAnnotations(entries map[string]string) *ImageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Annotations == nil && len(entries) > 0 { - b.Annotations = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) } for k, v := range entries { - b.Annotations[k] = v + b.ObjectMetaApplyConfiguration.Annotations[k] = v } return b } @@ -219,7 +219,7 @@ func (b *ImageApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferen if values[i] == nil { panic("nil value passed to WithOwnerReferences") } - b.OwnerReferences = append(b.OwnerReferences, *values[i]) + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) } return b } @@ -230,7 +230,7 @@ func (b *ImageApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferen func (b *ImageApplyConfiguration) WithFinalizers(values ...string) *ImageApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } @@ -260,5 +260,5 @@ func (b *ImageApplyConfiguration) WithStatus(value *ImageStatusApplyConfiguratio // GetName retrieves the value of the Name field in the declarative configuration. func (b *ImageApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/imagecontent.go b/pkg/clients/applyconfiguration/api/v1alpha1/imagecontent.go index 66bd871b..2c80e573 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/imagecontent.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/imagecontent.go @@ -19,14 +19,14 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // ImageContentApplyConfiguration represents a declarative configuration of the ImageContent type for use // with apply. type ImageContentApplyConfiguration struct { - ContainerFormat *v1alpha1.ImageContainerFormat `json:"containerFormat,omitempty"` - DiskFormat *v1alpha1.ImageDiskFormat `json:"diskFormat,omitempty"` + ContainerFormat *apiv1alpha1.ImageContainerFormat `json:"containerFormat,omitempty"` + DiskFormat *apiv1alpha1.ImageDiskFormat `json:"diskFormat,omitempty"` Download *ImageContentSourceDownloadApplyConfiguration `json:"download,omitempty"` } @@ -39,7 +39,7 @@ func ImageContent() *ImageContentApplyConfiguration { // WithContainerFormat sets the ContainerFormat 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 ContainerFormat field is set to the value of the last call. -func (b *ImageContentApplyConfiguration) WithContainerFormat(value v1alpha1.ImageContainerFormat) *ImageContentApplyConfiguration { +func (b *ImageContentApplyConfiguration) WithContainerFormat(value apiv1alpha1.ImageContainerFormat) *ImageContentApplyConfiguration { b.ContainerFormat = &value return b } @@ -47,7 +47,7 @@ func (b *ImageContentApplyConfiguration) WithContainerFormat(value v1alpha1.Imag // WithDiskFormat sets the DiskFormat 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 DiskFormat field is set to the value of the last call. -func (b *ImageContentApplyConfiguration) WithDiskFormat(value v1alpha1.ImageDiskFormat) *ImageContentApplyConfiguration { +func (b *ImageContentApplyConfiguration) WithDiskFormat(value apiv1alpha1.ImageDiskFormat) *ImageContentApplyConfiguration { b.DiskFormat = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/imagecontentsourcedownload.go b/pkg/clients/applyconfiguration/api/v1alpha1/imagecontentsourcedownload.go index 21c976c3..3cdfaa5a 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/imagecontentsourcedownload.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/imagecontentsourcedownload.go @@ -19,15 +19,15 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // ImageContentSourceDownloadApplyConfiguration represents a declarative configuration of the ImageContentSourceDownload type for use // with apply. type ImageContentSourceDownloadApplyConfiguration struct { - URL *string `json:"url,omitempty"` - Decompress *v1alpha1.ImageCompression `json:"decompress,omitempty"` - Hash *ImageHashApplyConfiguration `json:"hash,omitempty"` + URL *string `json:"url,omitempty"` + Decompress *apiv1alpha1.ImageCompression `json:"decompress,omitempty"` + Hash *ImageHashApplyConfiguration `json:"hash,omitempty"` } // ImageContentSourceDownloadApplyConfiguration constructs a declarative configuration of the ImageContentSourceDownload type for use with @@ -47,7 +47,7 @@ func (b *ImageContentSourceDownloadApplyConfiguration) WithURL(value string) *Im // WithDecompress sets the Decompress 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 Decompress field is set to the value of the last call. -func (b *ImageContentSourceDownloadApplyConfiguration) WithDecompress(value v1alpha1.ImageCompression) *ImageContentSourceDownloadApplyConfiguration { +func (b *ImageContentSourceDownloadApplyConfiguration) WithDecompress(value apiv1alpha1.ImageCompression) *ImageContentSourceDownloadApplyConfiguration { b.Decompress = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/imagefilter.go b/pkg/clients/applyconfiguration/api/v1alpha1/imagefilter.go index 8f657834..84635129 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/imagefilter.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/imagefilter.go @@ -19,13 +19,13 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // ImageFilterApplyConfiguration represents a declarative configuration of the ImageFilter type for use // with apply. type ImageFilterApplyConfiguration struct { - Name *v1alpha1.OpenStackName `json:"name,omitempty"` + Name *apiv1alpha1.OpenStackName `json:"name,omitempty"` } // ImageFilterApplyConfiguration constructs a declarative configuration of the ImageFilter type for use with @@ -37,7 +37,7 @@ func ImageFilter() *ImageFilterApplyConfiguration { // 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 *ImageFilterApplyConfiguration) WithName(value v1alpha1.OpenStackName) *ImageFilterApplyConfiguration { +func (b *ImageFilterApplyConfiguration) WithName(value apiv1alpha1.OpenStackName) *ImageFilterApplyConfiguration { b.Name = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/imagehash.go b/pkg/clients/applyconfiguration/api/v1alpha1/imagehash.go index 6daf97e2..51a14987 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/imagehash.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/imagehash.go @@ -19,14 +19,14 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // ImageHashApplyConfiguration represents a declarative configuration of the ImageHash type for use // with apply. type ImageHashApplyConfiguration struct { - Algorithm *v1alpha1.ImageHashAlgorithm `json:"algorithm,omitempty"` - Value *string `json:"value,omitempty"` + Algorithm *apiv1alpha1.ImageHashAlgorithm `json:"algorithm,omitempty"` + Value *string `json:"value,omitempty"` } // ImageHashApplyConfiguration constructs a declarative configuration of the ImageHash type for use with @@ -38,7 +38,7 @@ func ImageHash() *ImageHashApplyConfiguration { // WithAlgorithm sets the Algorithm 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 Algorithm field is set to the value of the last call. -func (b *ImageHashApplyConfiguration) WithAlgorithm(value v1alpha1.ImageHashAlgorithm) *ImageHashApplyConfiguration { +func (b *ImageHashApplyConfiguration) WithAlgorithm(value apiv1alpha1.ImageHashAlgorithm) *ImageHashApplyConfiguration { b.Algorithm = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/imagepropertieshardware.go b/pkg/clients/applyconfiguration/api/v1alpha1/imagepropertieshardware.go index 23069626..a209a734 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/imagepropertieshardware.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/imagepropertieshardware.go @@ -19,21 +19,21 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // ImagePropertiesHardwareApplyConfiguration represents a declarative configuration of the ImagePropertiesHardware type for use // with apply. type ImagePropertiesHardwareApplyConfiguration struct { - CPUSockets *int32 `json:"cpuSockets,omitempty"` - CPUCores *int32 `json:"cpuCores,omitempty"` - CPUThreads *int32 `json:"cpuThreads,omitempty"` - CPUPolicy *string `json:"cpuPolicy,omitempty"` - CPUThreadPolicy *string `json:"cpuThreadPolicy,omitempty"` - CDROMBus *v1alpha1.ImageHWBus `json:"cdromBus,omitempty"` - DiskBus *v1alpha1.ImageHWBus `json:"diskBus,omitempty"` - SCSIModel *string `json:"scsiModel,omitempty"` - VIFModel *string `json:"vifModel,omitempty"` + CPUSockets *int32 `json:"cpuSockets,omitempty"` + CPUCores *int32 `json:"cpuCores,omitempty"` + CPUThreads *int32 `json:"cpuThreads,omitempty"` + CPUPolicy *string `json:"cpuPolicy,omitempty"` + CPUThreadPolicy *string `json:"cpuThreadPolicy,omitempty"` + CDROMBus *apiv1alpha1.ImageHWBus `json:"cdromBus,omitempty"` + DiskBus *apiv1alpha1.ImageHWBus `json:"diskBus,omitempty"` + SCSIModel *string `json:"scsiModel,omitempty"` + VIFModel *string `json:"vifModel,omitempty"` } // ImagePropertiesHardwareApplyConfiguration constructs a declarative configuration of the ImagePropertiesHardware type for use with @@ -85,7 +85,7 @@ func (b *ImagePropertiesHardwareApplyConfiguration) WithCPUThreadPolicy(value st // WithCDROMBus sets the CDROMBus 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 CDROMBus field is set to the value of the last call. -func (b *ImagePropertiesHardwareApplyConfiguration) WithCDROMBus(value v1alpha1.ImageHWBus) *ImagePropertiesHardwareApplyConfiguration { +func (b *ImagePropertiesHardwareApplyConfiguration) WithCDROMBus(value apiv1alpha1.ImageHWBus) *ImagePropertiesHardwareApplyConfiguration { b.CDROMBus = &value return b } @@ -93,7 +93,7 @@ func (b *ImagePropertiesHardwareApplyConfiguration) WithCDROMBus(value v1alpha1. // WithDiskBus sets the DiskBus 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 DiskBus field is set to the value of the last call. -func (b *ImagePropertiesHardwareApplyConfiguration) WithDiskBus(value v1alpha1.ImageHWBus) *ImagePropertiesHardwareApplyConfiguration { +func (b *ImagePropertiesHardwareApplyConfiguration) WithDiskBus(value apiv1alpha1.ImageHWBus) *ImagePropertiesHardwareApplyConfiguration { b.DiskBus = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/imageresourcespec.go b/pkg/clients/applyconfiguration/api/v1alpha1/imageresourcespec.go index 7e521bcc..a23eeae0 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/imageresourcespec.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/imageresourcespec.go @@ -19,16 +19,16 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // ImageResourceSpecApplyConfiguration represents a declarative configuration of the ImageResourceSpec type for use // with apply. type ImageResourceSpecApplyConfiguration struct { - Name *v1alpha1.OpenStackName `json:"name,omitempty"` + Name *apiv1alpha1.OpenStackName `json:"name,omitempty"` Protected *bool `json:"protected,omitempty"` - Tags []v1alpha1.ImageTag `json:"tags,omitempty"` - Visibility *v1alpha1.ImageVisibility `json:"visibility,omitempty"` + Tags []apiv1alpha1.ImageTag `json:"tags,omitempty"` + Visibility *apiv1alpha1.ImageVisibility `json:"visibility,omitempty"` Properties *ImagePropertiesApplyConfiguration `json:"properties,omitempty"` Content *ImageContentApplyConfiguration `json:"content,omitempty"` } @@ -42,7 +42,7 @@ func ImageResourceSpec() *ImageResourceSpecApplyConfiguration { // 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 *ImageResourceSpecApplyConfiguration) WithName(value v1alpha1.OpenStackName) *ImageResourceSpecApplyConfiguration { +func (b *ImageResourceSpecApplyConfiguration) WithName(value apiv1alpha1.OpenStackName) *ImageResourceSpecApplyConfiguration { b.Name = &value return b } @@ -58,7 +58,7 @@ func (b *ImageResourceSpecApplyConfiguration) WithProtected(value bool) *ImageRe // WithTags adds the given value to the Tags 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 Tags field. -func (b *ImageResourceSpecApplyConfiguration) WithTags(values ...v1alpha1.ImageTag) *ImageResourceSpecApplyConfiguration { +func (b *ImageResourceSpecApplyConfiguration) WithTags(values ...apiv1alpha1.ImageTag) *ImageResourceSpecApplyConfiguration { for i := range values { b.Tags = append(b.Tags, values[i]) } @@ -68,7 +68,7 @@ func (b *ImageResourceSpecApplyConfiguration) WithTags(values ...v1alpha1.ImageT // WithVisibility sets the Visibility 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 Visibility field is set to the value of the last call. -func (b *ImageResourceSpecApplyConfiguration) WithVisibility(value v1alpha1.ImageVisibility) *ImageResourceSpecApplyConfiguration { +func (b *ImageResourceSpecApplyConfiguration) WithVisibility(value apiv1alpha1.ImageVisibility) *ImageResourceSpecApplyConfiguration { b.Visibility = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/imagestatus.go b/pkg/clients/applyconfiguration/api/v1alpha1/imagestatus.go index 24b7d01b..43b56b68 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/imagestatus.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/imagestatus.go @@ -70,6 +70,6 @@ func (b *ImageStatusApplyConfiguration) WithResource(value *ImageResourceStatusA // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DownloadAttempts field is set to the value of the last call. func (b *ImageStatusApplyConfiguration) WithDownloadAttempts(value int32) *ImageStatusApplyConfiguration { - b.DownloadAttempts = &value + b.ImageStatusExtraApplyConfiguration.DownloadAttempts = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/ipv6options.go b/pkg/clients/applyconfiguration/api/v1alpha1/ipv6options.go index ccf2e0ba..f4a03823 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/ipv6options.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/ipv6options.go @@ -19,14 +19,14 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // IPv6OptionsApplyConfiguration represents a declarative configuration of the IPv6Options type for use // with apply. type IPv6OptionsApplyConfiguration struct { - AddressMode *v1alpha1.IPv6AddressMode `json:"addressMode,omitempty"` - RAMode *v1alpha1.IPv6RAMode `json:"raMode,omitempty"` + AddressMode *apiv1alpha1.IPv6AddressMode `json:"addressMode,omitempty"` + RAMode *apiv1alpha1.IPv6RAMode `json:"raMode,omitempty"` } // IPv6OptionsApplyConfiguration constructs a declarative configuration of the IPv6Options type for use with @@ -38,7 +38,7 @@ func IPv6Options() *IPv6OptionsApplyConfiguration { // WithAddressMode sets the AddressMode 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 AddressMode field is set to the value of the last call. -func (b *IPv6OptionsApplyConfiguration) WithAddressMode(value v1alpha1.IPv6AddressMode) *IPv6OptionsApplyConfiguration { +func (b *IPv6OptionsApplyConfiguration) WithAddressMode(value apiv1alpha1.IPv6AddressMode) *IPv6OptionsApplyConfiguration { b.AddressMode = &value return b } @@ -46,7 +46,7 @@ func (b *IPv6OptionsApplyConfiguration) WithAddressMode(value v1alpha1.IPv6Addre // WithRAMode sets the RAMode 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 RAMode field is set to the value of the last call. -func (b *IPv6OptionsApplyConfiguration) WithRAMode(value v1alpha1.IPv6RAMode) *IPv6OptionsApplyConfiguration { +func (b *IPv6OptionsApplyConfiguration) WithRAMode(value apiv1alpha1.IPv6RAMode) *IPv6OptionsApplyConfiguration { b.RAMode = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/managedoptions.go b/pkg/clients/applyconfiguration/api/v1alpha1/managedoptions.go index 1c526b23..96cd90e1 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/managedoptions.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/managedoptions.go @@ -19,13 +19,13 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // ManagedOptionsApplyConfiguration represents a declarative configuration of the ManagedOptions type for use // with apply. type ManagedOptionsApplyConfiguration struct { - OnDelete *v1alpha1.OnDelete `json:"onDelete,omitempty"` + OnDelete *apiv1alpha1.OnDelete `json:"onDelete,omitempty"` } // ManagedOptionsApplyConfiguration constructs a declarative configuration of the ManagedOptions type for use with @@ -37,7 +37,7 @@ func ManagedOptions() *ManagedOptionsApplyConfiguration { // WithOnDelete sets the OnDelete 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 OnDelete field is set to the value of the last call. -func (b *ManagedOptionsApplyConfiguration) WithOnDelete(value v1alpha1.OnDelete) *ManagedOptionsApplyConfiguration { +func (b *ManagedOptionsApplyConfiguration) WithOnDelete(value apiv1alpha1.OnDelete) *ManagedOptionsApplyConfiguration { b.OnDelete = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/network.go b/pkg/clients/applyconfiguration/api/v1alpha1/network.go index 4fe66f8b..f7375e66 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/network.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/network.go @@ -87,7 +87,7 @@ func extractNetwork(network *apiv1alpha1.Network, fieldManager string, subresour // 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 *NetworkApplyConfiguration) WithKind(value string) *NetworkApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -95,7 +95,7 @@ func (b *NetworkApplyConfiguration) WithKind(value string) *NetworkApplyConfigur // 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 *NetworkApplyConfiguration) WithAPIVersion(value string) *NetworkApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -104,7 +104,7 @@ func (b *NetworkApplyConfiguration) WithAPIVersion(value string) *NetworkApplyCo // If called multiple times, the Name field is set to the value of the last call. func (b *NetworkApplyConfiguration) WithName(value string) *NetworkApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -113,7 +113,7 @@ func (b *NetworkApplyConfiguration) WithName(value string) *NetworkApplyConfigur // If called multiple times, the GenerateName field is set to the value of the last call. func (b *NetworkApplyConfiguration) WithGenerateName(value string) *NetworkApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -122,7 +122,7 @@ func (b *NetworkApplyConfiguration) WithGenerateName(value string) *NetworkApply // If called multiple times, the Namespace field is set to the value of the last call. func (b *NetworkApplyConfiguration) WithNamespace(value string) *NetworkApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -131,7 +131,7 @@ func (b *NetworkApplyConfiguration) WithNamespace(value string) *NetworkApplyCon // If called multiple times, the UID field is set to the value of the last call. func (b *NetworkApplyConfiguration) WithUID(value types.UID) *NetworkApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -140,7 +140,7 @@ func (b *NetworkApplyConfiguration) WithUID(value types.UID) *NetworkApplyConfig // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *NetworkApplyConfiguration) WithResourceVersion(value string) *NetworkApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -149,7 +149,7 @@ func (b *NetworkApplyConfiguration) WithResourceVersion(value string) *NetworkAp // If called multiple times, the Generation field is set to the value of the last call. func (b *NetworkApplyConfiguration) WithGeneration(value int64) *NetworkApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } @@ -158,7 +158,7 @@ func (b *NetworkApplyConfiguration) WithGeneration(value int64) *NetworkApplyCon // If called multiple times, the CreationTimestamp field is set to the value of the last call. func (b *NetworkApplyConfiguration) WithCreationTimestamp(value metav1.Time) *NetworkApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } @@ -167,7 +167,7 @@ func (b *NetworkApplyConfiguration) WithCreationTimestamp(value metav1.Time) *Ne // If called multiple times, the DeletionTimestamp field is set to the value of the last call. func (b *NetworkApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *NetworkApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -176,7 +176,7 @@ func (b *NetworkApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Ne // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *NetworkApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *NetworkApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -186,11 +186,11 @@ func (b *NetworkApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) // overwriting an existing map entries in Labels field with the same key. func (b *NetworkApplyConfiguration) WithLabels(entries map[string]string) *NetworkApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Labels == nil && len(entries) > 0 { - b.Labels = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) } for k, v := range entries { - b.Labels[k] = v + b.ObjectMetaApplyConfiguration.Labels[k] = v } return b } @@ -201,11 +201,11 @@ func (b *NetworkApplyConfiguration) WithLabels(entries map[string]string) *Netwo // overwriting an existing map entries in Annotations field with the same key. func (b *NetworkApplyConfiguration) WithAnnotations(entries map[string]string) *NetworkApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Annotations == nil && len(entries) > 0 { - b.Annotations = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) } for k, v := range entries { - b.Annotations[k] = v + b.ObjectMetaApplyConfiguration.Annotations[k] = v } return b } @@ -219,7 +219,7 @@ func (b *NetworkApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefer if values[i] == nil { panic("nil value passed to WithOwnerReferences") } - b.OwnerReferences = append(b.OwnerReferences, *values[i]) + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) } return b } @@ -230,7 +230,7 @@ func (b *NetworkApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefer func (b *NetworkApplyConfiguration) WithFinalizers(values ...string) *NetworkApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } @@ -260,5 +260,5 @@ func (b *NetworkApplyConfiguration) WithStatus(value *NetworkStatusApplyConfigur // GetName retrieves the value of the Name field in the declarative configuration. func (b *NetworkApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/networkfilter.go b/pkg/clients/applyconfiguration/api/v1alpha1/networkfilter.go index 99457526..fccc3c3f 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/networkfilter.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/networkfilter.go @@ -19,15 +19,15 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // NetworkFilterApplyConfiguration represents a declarative configuration of the NetworkFilter type for use // with apply. type NetworkFilterApplyConfiguration struct { - Name *v1alpha1.OpenStackName `json:"name,omitempty"` - Description *v1alpha1.NeutronDescription `json:"description,omitempty"` - External *bool `json:"external,omitempty"` + Name *apiv1alpha1.OpenStackName `json:"name,omitempty"` + Description *apiv1alpha1.NeutronDescription `json:"description,omitempty"` + External *bool `json:"external,omitempty"` FilterByNeutronTagsApplyConfiguration `json:",inline"` } @@ -40,7 +40,7 @@ func NetworkFilter() *NetworkFilterApplyConfiguration { // 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 *NetworkFilterApplyConfiguration) WithName(value v1alpha1.OpenStackName) *NetworkFilterApplyConfiguration { +func (b *NetworkFilterApplyConfiguration) WithName(value apiv1alpha1.OpenStackName) *NetworkFilterApplyConfiguration { b.Name = &value return b } @@ -48,7 +48,7 @@ func (b *NetworkFilterApplyConfiguration) WithName(value v1alpha1.OpenStackName) // WithDescription sets the Description 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 Description field is set to the value of the last call. -func (b *NetworkFilterApplyConfiguration) WithDescription(value v1alpha1.NeutronDescription) *NetworkFilterApplyConfiguration { +func (b *NetworkFilterApplyConfiguration) WithDescription(value apiv1alpha1.NeutronDescription) *NetworkFilterApplyConfiguration { b.Description = &value return b } @@ -64,9 +64,9 @@ func (b *NetworkFilterApplyConfiguration) WithExternal(value bool) *NetworkFilte // WithTags adds the given value to the Tags 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 Tags field. -func (b *NetworkFilterApplyConfiguration) WithTags(values ...v1alpha1.NeutronTag) *NetworkFilterApplyConfiguration { +func (b *NetworkFilterApplyConfiguration) WithTags(values ...apiv1alpha1.NeutronTag) *NetworkFilterApplyConfiguration { for i := range values { - b.Tags = append(b.Tags, values[i]) + b.FilterByNeutronTagsApplyConfiguration.Tags = append(b.FilterByNeutronTagsApplyConfiguration.Tags, values[i]) } return b } @@ -74,9 +74,9 @@ func (b *NetworkFilterApplyConfiguration) WithTags(values ...v1alpha1.NeutronTag // WithTagsAny adds the given value to the TagsAny 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 TagsAny field. -func (b *NetworkFilterApplyConfiguration) WithTagsAny(values ...v1alpha1.NeutronTag) *NetworkFilterApplyConfiguration { +func (b *NetworkFilterApplyConfiguration) WithTagsAny(values ...apiv1alpha1.NeutronTag) *NetworkFilterApplyConfiguration { for i := range values { - b.TagsAny = append(b.TagsAny, values[i]) + b.FilterByNeutronTagsApplyConfiguration.TagsAny = append(b.FilterByNeutronTagsApplyConfiguration.TagsAny, values[i]) } return b } @@ -84,9 +84,9 @@ func (b *NetworkFilterApplyConfiguration) WithTagsAny(values ...v1alpha1.Neutron // WithNotTags adds the given value to the NotTags 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 NotTags field. -func (b *NetworkFilterApplyConfiguration) WithNotTags(values ...v1alpha1.NeutronTag) *NetworkFilterApplyConfiguration { +func (b *NetworkFilterApplyConfiguration) WithNotTags(values ...apiv1alpha1.NeutronTag) *NetworkFilterApplyConfiguration { for i := range values { - b.NotTags = append(b.NotTags, values[i]) + b.FilterByNeutronTagsApplyConfiguration.NotTags = append(b.FilterByNeutronTagsApplyConfiguration.NotTags, values[i]) } return b } @@ -94,9 +94,9 @@ func (b *NetworkFilterApplyConfiguration) WithNotTags(values ...v1alpha1.Neutron // WithNotTagsAny adds the given value to the NotTagsAny 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 NotTagsAny field. -func (b *NetworkFilterApplyConfiguration) WithNotTagsAny(values ...v1alpha1.NeutronTag) *NetworkFilterApplyConfiguration { +func (b *NetworkFilterApplyConfiguration) WithNotTagsAny(values ...apiv1alpha1.NeutronTag) *NetworkFilterApplyConfiguration { for i := range values { - b.NotTagsAny = append(b.NotTagsAny, values[i]) + b.FilterByNeutronTagsApplyConfiguration.NotTagsAny = append(b.FilterByNeutronTagsApplyConfiguration.NotTagsAny, values[i]) } return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/networkresourcespec.go b/pkg/clients/applyconfiguration/api/v1alpha1/networkresourcespec.go index 3c865e0d..d686cd49 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/networkresourcespec.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/networkresourcespec.go @@ -19,22 +19,22 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // NetworkResourceSpecApplyConfiguration represents a declarative configuration of the NetworkResourceSpec type for use // with apply. type NetworkResourceSpecApplyConfiguration struct { - Name *v1alpha1.OpenStackName `json:"name,omitempty"` - Description *v1alpha1.NeutronDescription `json:"description,omitempty"` - Tags []v1alpha1.NeutronTag `json:"tags,omitempty"` - AdminStateUp *bool `json:"adminStateUp,omitempty"` - DNSDomain *v1alpha1.DNSDomain `json:"dnsDomain,omitempty"` - MTU *v1alpha1.MTU `json:"mtu,omitempty"` - PortSecurityEnabled *bool `json:"portSecurityEnabled,omitempty"` - External *bool `json:"external,omitempty"` - Shared *bool `json:"shared,omitempty"` - AvailabilityZoneHints []v1alpha1.AvailabilityZoneHint `json:"availabilityZoneHints,omitempty"` + Name *apiv1alpha1.OpenStackName `json:"name,omitempty"` + Description *apiv1alpha1.NeutronDescription `json:"description,omitempty"` + Tags []apiv1alpha1.NeutronTag `json:"tags,omitempty"` + AdminStateUp *bool `json:"adminStateUp,omitempty"` + DNSDomain *apiv1alpha1.DNSDomain `json:"dnsDomain,omitempty"` + MTU *apiv1alpha1.MTU `json:"mtu,omitempty"` + PortSecurityEnabled *bool `json:"portSecurityEnabled,omitempty"` + External *bool `json:"external,omitempty"` + Shared *bool `json:"shared,omitempty"` + AvailabilityZoneHints []apiv1alpha1.AvailabilityZoneHint `json:"availabilityZoneHints,omitempty"` } // NetworkResourceSpecApplyConfiguration constructs a declarative configuration of the NetworkResourceSpec type for use with @@ -46,7 +46,7 @@ func NetworkResourceSpec() *NetworkResourceSpecApplyConfiguration { // 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 *NetworkResourceSpecApplyConfiguration) WithName(value v1alpha1.OpenStackName) *NetworkResourceSpecApplyConfiguration { +func (b *NetworkResourceSpecApplyConfiguration) WithName(value apiv1alpha1.OpenStackName) *NetworkResourceSpecApplyConfiguration { b.Name = &value return b } @@ -54,7 +54,7 @@ func (b *NetworkResourceSpecApplyConfiguration) WithName(value v1alpha1.OpenStac // WithDescription sets the Description 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 Description field is set to the value of the last call. -func (b *NetworkResourceSpecApplyConfiguration) WithDescription(value v1alpha1.NeutronDescription) *NetworkResourceSpecApplyConfiguration { +func (b *NetworkResourceSpecApplyConfiguration) WithDescription(value apiv1alpha1.NeutronDescription) *NetworkResourceSpecApplyConfiguration { b.Description = &value return b } @@ -62,7 +62,7 @@ func (b *NetworkResourceSpecApplyConfiguration) WithDescription(value v1alpha1.N // WithTags adds the given value to the Tags 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 Tags field. -func (b *NetworkResourceSpecApplyConfiguration) WithTags(values ...v1alpha1.NeutronTag) *NetworkResourceSpecApplyConfiguration { +func (b *NetworkResourceSpecApplyConfiguration) WithTags(values ...apiv1alpha1.NeutronTag) *NetworkResourceSpecApplyConfiguration { for i := range values { b.Tags = append(b.Tags, values[i]) } @@ -80,7 +80,7 @@ func (b *NetworkResourceSpecApplyConfiguration) WithAdminStateUp(value bool) *Ne // WithDNSDomain sets the DNSDomain 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 DNSDomain field is set to the value of the last call. -func (b *NetworkResourceSpecApplyConfiguration) WithDNSDomain(value v1alpha1.DNSDomain) *NetworkResourceSpecApplyConfiguration { +func (b *NetworkResourceSpecApplyConfiguration) WithDNSDomain(value apiv1alpha1.DNSDomain) *NetworkResourceSpecApplyConfiguration { b.DNSDomain = &value return b } @@ -88,7 +88,7 @@ func (b *NetworkResourceSpecApplyConfiguration) WithDNSDomain(value v1alpha1.DNS // WithMTU sets the MTU 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 MTU field is set to the value of the last call. -func (b *NetworkResourceSpecApplyConfiguration) WithMTU(value v1alpha1.MTU) *NetworkResourceSpecApplyConfiguration { +func (b *NetworkResourceSpecApplyConfiguration) WithMTU(value apiv1alpha1.MTU) *NetworkResourceSpecApplyConfiguration { b.MTU = &value return b } @@ -120,7 +120,7 @@ func (b *NetworkResourceSpecApplyConfiguration) WithShared(value bool) *NetworkR // WithAvailabilityZoneHints adds the given value to the AvailabilityZoneHints 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 AvailabilityZoneHints field. -func (b *NetworkResourceSpecApplyConfiguration) WithAvailabilityZoneHints(values ...v1alpha1.AvailabilityZoneHint) *NetworkResourceSpecApplyConfiguration { +func (b *NetworkResourceSpecApplyConfiguration) WithAvailabilityZoneHints(values ...apiv1alpha1.AvailabilityZoneHint) *NetworkResourceSpecApplyConfiguration { for i := range values { b.AvailabilityZoneHints = append(b.AvailabilityZoneHints, values[i]) } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/networkresourcestatus.go b/pkg/clients/applyconfiguration/api/v1alpha1/networkresourcestatus.go index e588413b..9c50fcf3 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/networkresourcestatus.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/networkresourcestatus.go @@ -94,7 +94,7 @@ func (b *NetworkResourceStatusApplyConfiguration) WithTags(values ...string) *Ne // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreatedAt field is set to the value of the last call. func (b *NetworkResourceStatusApplyConfiguration) WithCreatedAt(value v1.Time) *NetworkResourceStatusApplyConfiguration { - b.CreatedAt = &value + b.NeutronStatusMetadataApplyConfiguration.CreatedAt = &value return b } @@ -102,7 +102,7 @@ func (b *NetworkResourceStatusApplyConfiguration) WithCreatedAt(value v1.Time) * // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the UpdatedAt field is set to the value of the last call. func (b *NetworkResourceStatusApplyConfiguration) WithUpdatedAt(value v1.Time) *NetworkResourceStatusApplyConfiguration { - b.UpdatedAt = &value + b.NeutronStatusMetadataApplyConfiguration.UpdatedAt = &value return b } @@ -110,7 +110,7 @@ func (b *NetworkResourceStatusApplyConfiguration) WithUpdatedAt(value v1.Time) * // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the RevisionNumber field is set to the value of the last call. func (b *NetworkResourceStatusApplyConfiguration) WithRevisionNumber(value int64) *NetworkResourceStatusApplyConfiguration { - b.RevisionNumber = &value + b.NeutronStatusMetadataApplyConfiguration.RevisionNumber = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/port.go b/pkg/clients/applyconfiguration/api/v1alpha1/port.go index e5c770b8..10bf39d5 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/port.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/port.go @@ -87,7 +87,7 @@ func extractPort(port *apiv1alpha1.Port, fieldManager string, subresource string // 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 *PortApplyConfiguration) WithKind(value string) *PortApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -95,7 +95,7 @@ func (b *PortApplyConfiguration) WithKind(value string) *PortApplyConfiguration // 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 *PortApplyConfiguration) WithAPIVersion(value string) *PortApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -104,7 +104,7 @@ func (b *PortApplyConfiguration) WithAPIVersion(value string) *PortApplyConfigur // If called multiple times, the Name field is set to the value of the last call. func (b *PortApplyConfiguration) WithName(value string) *PortApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -113,7 +113,7 @@ func (b *PortApplyConfiguration) WithName(value string) *PortApplyConfiguration // If called multiple times, the GenerateName field is set to the value of the last call. func (b *PortApplyConfiguration) WithGenerateName(value string) *PortApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -122,7 +122,7 @@ func (b *PortApplyConfiguration) WithGenerateName(value string) *PortApplyConfig // If called multiple times, the Namespace field is set to the value of the last call. func (b *PortApplyConfiguration) WithNamespace(value string) *PortApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -131,7 +131,7 @@ func (b *PortApplyConfiguration) WithNamespace(value string) *PortApplyConfigura // If called multiple times, the UID field is set to the value of the last call. func (b *PortApplyConfiguration) WithUID(value types.UID) *PortApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -140,7 +140,7 @@ func (b *PortApplyConfiguration) WithUID(value types.UID) *PortApplyConfiguratio // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *PortApplyConfiguration) WithResourceVersion(value string) *PortApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -149,7 +149,7 @@ func (b *PortApplyConfiguration) WithResourceVersion(value string) *PortApplyCon // If called multiple times, the Generation field is set to the value of the last call. func (b *PortApplyConfiguration) WithGeneration(value int64) *PortApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } @@ -158,7 +158,7 @@ func (b *PortApplyConfiguration) WithGeneration(value int64) *PortApplyConfigura // If called multiple times, the CreationTimestamp field is set to the value of the last call. func (b *PortApplyConfiguration) WithCreationTimestamp(value metav1.Time) *PortApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } @@ -167,7 +167,7 @@ func (b *PortApplyConfiguration) WithCreationTimestamp(value metav1.Time) *PortA // If called multiple times, the DeletionTimestamp field is set to the value of the last call. func (b *PortApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *PortApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -176,7 +176,7 @@ func (b *PortApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *PortA // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *PortApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *PortApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -186,11 +186,11 @@ func (b *PortApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *Po // overwriting an existing map entries in Labels field with the same key. func (b *PortApplyConfiguration) WithLabels(entries map[string]string) *PortApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Labels == nil && len(entries) > 0 { - b.Labels = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) } for k, v := range entries { - b.Labels[k] = v + b.ObjectMetaApplyConfiguration.Labels[k] = v } return b } @@ -201,11 +201,11 @@ func (b *PortApplyConfiguration) WithLabels(entries map[string]string) *PortAppl // overwriting an existing map entries in Annotations field with the same key. func (b *PortApplyConfiguration) WithAnnotations(entries map[string]string) *PortApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Annotations == nil && len(entries) > 0 { - b.Annotations = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) } for k, v := range entries { - b.Annotations[k] = v + b.ObjectMetaApplyConfiguration.Annotations[k] = v } return b } @@ -219,7 +219,7 @@ func (b *PortApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenc if values[i] == nil { panic("nil value passed to WithOwnerReferences") } - b.OwnerReferences = append(b.OwnerReferences, *values[i]) + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) } return b } @@ -230,7 +230,7 @@ func (b *PortApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenc func (b *PortApplyConfiguration) WithFinalizers(values ...string) *PortApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } @@ -260,5 +260,5 @@ func (b *PortApplyConfiguration) WithStatus(value *PortStatusApplyConfiguration) // GetName retrieves the value of the Name field in the declarative configuration. func (b *PortApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/portfilter.go b/pkg/clients/applyconfiguration/api/v1alpha1/portfilter.go index 5db5b2fc..f6297f89 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/portfilter.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/portfilter.go @@ -19,14 +19,14 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // PortFilterApplyConfiguration represents a declarative configuration of the PortFilter type for use // with apply. type PortFilterApplyConfiguration struct { - Name *v1alpha1.OpenStackName `json:"name,omitempty"` - Description *v1alpha1.NeutronDescription `json:"description,omitempty"` + Name *apiv1alpha1.OpenStackName `json:"name,omitempty"` + Description *apiv1alpha1.NeutronDescription `json:"description,omitempty"` FilterByNeutronTagsApplyConfiguration `json:",inline"` } @@ -39,7 +39,7 @@ func PortFilter() *PortFilterApplyConfiguration { // 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 *PortFilterApplyConfiguration) WithName(value v1alpha1.OpenStackName) *PortFilterApplyConfiguration { +func (b *PortFilterApplyConfiguration) WithName(value apiv1alpha1.OpenStackName) *PortFilterApplyConfiguration { b.Name = &value return b } @@ -47,7 +47,7 @@ func (b *PortFilterApplyConfiguration) WithName(value v1alpha1.OpenStackName) *P // WithDescription sets the Description 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 Description field is set to the value of the last call. -func (b *PortFilterApplyConfiguration) WithDescription(value v1alpha1.NeutronDescription) *PortFilterApplyConfiguration { +func (b *PortFilterApplyConfiguration) WithDescription(value apiv1alpha1.NeutronDescription) *PortFilterApplyConfiguration { b.Description = &value return b } @@ -55,9 +55,9 @@ func (b *PortFilterApplyConfiguration) WithDescription(value v1alpha1.NeutronDes // WithTags adds the given value to the Tags 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 Tags field. -func (b *PortFilterApplyConfiguration) WithTags(values ...v1alpha1.NeutronTag) *PortFilterApplyConfiguration { +func (b *PortFilterApplyConfiguration) WithTags(values ...apiv1alpha1.NeutronTag) *PortFilterApplyConfiguration { for i := range values { - b.Tags = append(b.Tags, values[i]) + b.FilterByNeutronTagsApplyConfiguration.Tags = append(b.FilterByNeutronTagsApplyConfiguration.Tags, values[i]) } return b } @@ -65,9 +65,9 @@ func (b *PortFilterApplyConfiguration) WithTags(values ...v1alpha1.NeutronTag) * // WithTagsAny adds the given value to the TagsAny 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 TagsAny field. -func (b *PortFilterApplyConfiguration) WithTagsAny(values ...v1alpha1.NeutronTag) *PortFilterApplyConfiguration { +func (b *PortFilterApplyConfiguration) WithTagsAny(values ...apiv1alpha1.NeutronTag) *PortFilterApplyConfiguration { for i := range values { - b.TagsAny = append(b.TagsAny, values[i]) + b.FilterByNeutronTagsApplyConfiguration.TagsAny = append(b.FilterByNeutronTagsApplyConfiguration.TagsAny, values[i]) } return b } @@ -75,9 +75,9 @@ func (b *PortFilterApplyConfiguration) WithTagsAny(values ...v1alpha1.NeutronTag // WithNotTags adds the given value to the NotTags 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 NotTags field. -func (b *PortFilterApplyConfiguration) WithNotTags(values ...v1alpha1.NeutronTag) *PortFilterApplyConfiguration { +func (b *PortFilterApplyConfiguration) WithNotTags(values ...apiv1alpha1.NeutronTag) *PortFilterApplyConfiguration { for i := range values { - b.NotTags = append(b.NotTags, values[i]) + b.FilterByNeutronTagsApplyConfiguration.NotTags = append(b.FilterByNeutronTagsApplyConfiguration.NotTags, values[i]) } return b } @@ -85,9 +85,9 @@ func (b *PortFilterApplyConfiguration) WithNotTags(values ...v1alpha1.NeutronTag // WithNotTagsAny adds the given value to the NotTagsAny 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 NotTagsAny field. -func (b *PortFilterApplyConfiguration) WithNotTagsAny(values ...v1alpha1.NeutronTag) *PortFilterApplyConfiguration { +func (b *PortFilterApplyConfiguration) WithNotTagsAny(values ...apiv1alpha1.NeutronTag) *PortFilterApplyConfiguration { for i := range values { - b.NotTagsAny = append(b.NotTagsAny, values[i]) + b.FilterByNeutronTagsApplyConfiguration.NotTagsAny = append(b.FilterByNeutronTagsApplyConfiguration.NotTagsAny, values[i]) } return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/portrangespec.go b/pkg/clients/applyconfiguration/api/v1alpha1/portrangespec.go index 0bb1c83c..ec2b8011 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/portrangespec.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/portrangespec.go @@ -19,14 +19,14 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // PortRangeSpecApplyConfiguration represents a declarative configuration of the PortRangeSpec type for use // with apply. type PortRangeSpecApplyConfiguration struct { - Min *v1alpha1.PortNumber `json:"min,omitempty"` - Max *v1alpha1.PortNumber `json:"max,omitempty"` + Min *apiv1alpha1.PortNumber `json:"min,omitempty"` + Max *apiv1alpha1.PortNumber `json:"max,omitempty"` } // PortRangeSpecApplyConfiguration constructs a declarative configuration of the PortRangeSpec type for use with @@ -38,7 +38,7 @@ func PortRangeSpec() *PortRangeSpecApplyConfiguration { // WithMin sets the Min 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 Min field is set to the value of the last call. -func (b *PortRangeSpecApplyConfiguration) WithMin(value v1alpha1.PortNumber) *PortRangeSpecApplyConfiguration { +func (b *PortRangeSpecApplyConfiguration) WithMin(value apiv1alpha1.PortNumber) *PortRangeSpecApplyConfiguration { b.Min = &value return b } @@ -46,7 +46,7 @@ func (b *PortRangeSpecApplyConfiguration) WithMin(value v1alpha1.PortNumber) *Po // WithMax sets the Max 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 Max field is set to the value of the last call. -func (b *PortRangeSpecApplyConfiguration) WithMax(value v1alpha1.PortNumber) *PortRangeSpecApplyConfiguration { +func (b *PortRangeSpecApplyConfiguration) WithMax(value apiv1alpha1.PortNumber) *PortRangeSpecApplyConfiguration { b.Max = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/portrefs.go b/pkg/clients/applyconfiguration/api/v1alpha1/portrefs.go index f8ed3085..a5778f37 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/portrefs.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/portrefs.go @@ -19,13 +19,13 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // PortRefsApplyConfiguration represents a declarative configuration of the PortRefs type for use // with apply. type PortRefsApplyConfiguration struct { - NetworkRef *v1alpha1.KubernetesNameRef `json:"networkRef,omitempty"` + NetworkRef *apiv1alpha1.KubernetesNameRef `json:"networkRef,omitempty"` } // PortRefsApplyConfiguration constructs a declarative configuration of the PortRefs type for use with @@ -37,7 +37,7 @@ func PortRefs() *PortRefsApplyConfiguration { // 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 *PortRefsApplyConfiguration) WithNetworkRef(value v1alpha1.KubernetesNameRef) *PortRefsApplyConfiguration { +func (b *PortRefsApplyConfiguration) WithNetworkRef(value apiv1alpha1.KubernetesNameRef) *PortRefsApplyConfiguration { b.NetworkRef = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/portresourcespec.go b/pkg/clients/applyconfiguration/api/v1alpha1/portresourcespec.go index c323f269..266318e2 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/portresourcespec.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/portresourcespec.go @@ -19,18 +19,18 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // PortResourceSpecApplyConfiguration represents a declarative configuration of the PortResourceSpec type for use // with apply. type PortResourceSpecApplyConfiguration struct { - Name *v1alpha1.OpenStackName `json:"name,omitempty"` - Description *v1alpha1.NeutronDescription `json:"description,omitempty"` - Tags []v1alpha1.NeutronTag `json:"tags,omitempty"` + Name *apiv1alpha1.OpenStackName `json:"name,omitempty"` + Description *apiv1alpha1.NeutronDescription `json:"description,omitempty"` + Tags []apiv1alpha1.NeutronTag `json:"tags,omitempty"` AllowedAddressPairs []AllowedAddressPairApplyConfiguration `json:"allowedAddressPairs,omitempty"` Addresses []AddressApplyConfiguration `json:"addresses,omitempty"` - SecurityGroupRefs []v1alpha1.OpenStackName `json:"securityGroupRefs,omitempty"` + SecurityGroupRefs []apiv1alpha1.OpenStackName `json:"securityGroupRefs,omitempty"` } // PortResourceSpecApplyConfiguration constructs a declarative configuration of the PortResourceSpec type for use with @@ -42,7 +42,7 @@ func PortResourceSpec() *PortResourceSpecApplyConfiguration { // 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 *PortResourceSpecApplyConfiguration) WithName(value v1alpha1.OpenStackName) *PortResourceSpecApplyConfiguration { +func (b *PortResourceSpecApplyConfiguration) WithName(value apiv1alpha1.OpenStackName) *PortResourceSpecApplyConfiguration { b.Name = &value return b } @@ -50,7 +50,7 @@ func (b *PortResourceSpecApplyConfiguration) WithName(value v1alpha1.OpenStackNa // WithDescription sets the Description 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 Description field is set to the value of the last call. -func (b *PortResourceSpecApplyConfiguration) WithDescription(value v1alpha1.NeutronDescription) *PortResourceSpecApplyConfiguration { +func (b *PortResourceSpecApplyConfiguration) WithDescription(value apiv1alpha1.NeutronDescription) *PortResourceSpecApplyConfiguration { b.Description = &value return b } @@ -58,7 +58,7 @@ func (b *PortResourceSpecApplyConfiguration) WithDescription(value v1alpha1.Neut // WithTags adds the given value to the Tags 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 Tags field. -func (b *PortResourceSpecApplyConfiguration) WithTags(values ...v1alpha1.NeutronTag) *PortResourceSpecApplyConfiguration { +func (b *PortResourceSpecApplyConfiguration) WithTags(values ...apiv1alpha1.NeutronTag) *PortResourceSpecApplyConfiguration { for i := range values { b.Tags = append(b.Tags, values[i]) } @@ -94,7 +94,7 @@ func (b *PortResourceSpecApplyConfiguration) WithAddresses(values ...*AddressApp // WithSecurityGroupRefs adds the given value to the SecurityGroupRefs 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 SecurityGroupRefs field. -func (b *PortResourceSpecApplyConfiguration) WithSecurityGroupRefs(values ...v1alpha1.OpenStackName) *PortResourceSpecApplyConfiguration { +func (b *PortResourceSpecApplyConfiguration) WithSecurityGroupRefs(values ...apiv1alpha1.OpenStackName) *PortResourceSpecApplyConfiguration { for i := range values { b.SecurityGroupRefs = append(b.SecurityGroupRefs, values[i]) } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/portresourcestatus.go b/pkg/clients/applyconfiguration/api/v1alpha1/portresourcestatus.go index 0b6a3900..3c30905a 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/portresourcestatus.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/portresourcestatus.go @@ -169,7 +169,7 @@ func (b *PortResourceStatusApplyConfiguration) WithPropagateUplinkStatus(value b // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreatedAt field is set to the value of the last call. func (b *PortResourceStatusApplyConfiguration) WithCreatedAt(value v1.Time) *PortResourceStatusApplyConfiguration { - b.CreatedAt = &value + b.NeutronStatusMetadataApplyConfiguration.CreatedAt = &value return b } @@ -177,7 +177,7 @@ func (b *PortResourceStatusApplyConfiguration) WithCreatedAt(value v1.Time) *Por // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the UpdatedAt field is set to the value of the last call. func (b *PortResourceStatusApplyConfiguration) WithUpdatedAt(value v1.Time) *PortResourceStatusApplyConfiguration { - b.UpdatedAt = &value + b.NeutronStatusMetadataApplyConfiguration.UpdatedAt = &value return b } @@ -185,6 +185,6 @@ func (b *PortResourceStatusApplyConfiguration) WithUpdatedAt(value v1.Time) *Por // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the RevisionNumber field is set to the value of the last call. func (b *PortResourceStatusApplyConfiguration) WithRevisionNumber(value int64) *PortResourceStatusApplyConfiguration { - b.RevisionNumber = &value + b.NeutronStatusMetadataApplyConfiguration.RevisionNumber = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/portspec.go b/pkg/clients/applyconfiguration/api/v1alpha1/portspec.go index b5fecf90..e59af6f0 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/portspec.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/portspec.go @@ -43,7 +43,7 @@ func PortSpec() *PortSpecApplyConfiguration { // 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 *PortSpecApplyConfiguration) WithNetworkRef(value apiv1alpha1.KubernetesNameRef) *PortSpecApplyConfiguration { - b.NetworkRef = &value + b.PortRefsApplyConfiguration.NetworkRef = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/router.go b/pkg/clients/applyconfiguration/api/v1alpha1/router.go index 26de3427..288bb922 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/router.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/router.go @@ -87,7 +87,7 @@ func extractRouter(router *apiv1alpha1.Router, fieldManager string, subresource // 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 *RouterApplyConfiguration) WithKind(value string) *RouterApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -95,7 +95,7 @@ func (b *RouterApplyConfiguration) WithKind(value string) *RouterApplyConfigurat // 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 *RouterApplyConfiguration) WithAPIVersion(value string) *RouterApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -104,7 +104,7 @@ func (b *RouterApplyConfiguration) WithAPIVersion(value string) *RouterApplyConf // If called multiple times, the Name field is set to the value of the last call. func (b *RouterApplyConfiguration) WithName(value string) *RouterApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -113,7 +113,7 @@ func (b *RouterApplyConfiguration) WithName(value string) *RouterApplyConfigurat // If called multiple times, the GenerateName field is set to the value of the last call. func (b *RouterApplyConfiguration) WithGenerateName(value string) *RouterApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -122,7 +122,7 @@ func (b *RouterApplyConfiguration) WithGenerateName(value string) *RouterApplyCo // If called multiple times, the Namespace field is set to the value of the last call. func (b *RouterApplyConfiguration) WithNamespace(value string) *RouterApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -131,7 +131,7 @@ func (b *RouterApplyConfiguration) WithNamespace(value string) *RouterApplyConfi // If called multiple times, the UID field is set to the value of the last call. func (b *RouterApplyConfiguration) WithUID(value types.UID) *RouterApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -140,7 +140,7 @@ func (b *RouterApplyConfiguration) WithUID(value types.UID) *RouterApplyConfigur // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *RouterApplyConfiguration) WithResourceVersion(value string) *RouterApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -149,7 +149,7 @@ func (b *RouterApplyConfiguration) WithResourceVersion(value string) *RouterAppl // If called multiple times, the Generation field is set to the value of the last call. func (b *RouterApplyConfiguration) WithGeneration(value int64) *RouterApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } @@ -158,7 +158,7 @@ func (b *RouterApplyConfiguration) WithGeneration(value int64) *RouterApplyConfi // If called multiple times, the CreationTimestamp field is set to the value of the last call. func (b *RouterApplyConfiguration) WithCreationTimestamp(value metav1.Time) *RouterApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } @@ -167,7 +167,7 @@ func (b *RouterApplyConfiguration) WithCreationTimestamp(value metav1.Time) *Rou // If called multiple times, the DeletionTimestamp field is set to the value of the last call. func (b *RouterApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *RouterApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -176,7 +176,7 @@ func (b *RouterApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Rou // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *RouterApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *RouterApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -186,11 +186,11 @@ func (b *RouterApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) * // overwriting an existing map entries in Labels field with the same key. func (b *RouterApplyConfiguration) WithLabels(entries map[string]string) *RouterApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Labels == nil && len(entries) > 0 { - b.Labels = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) } for k, v := range entries { - b.Labels[k] = v + b.ObjectMetaApplyConfiguration.Labels[k] = v } return b } @@ -201,11 +201,11 @@ func (b *RouterApplyConfiguration) WithLabels(entries map[string]string) *Router // overwriting an existing map entries in Annotations field with the same key. func (b *RouterApplyConfiguration) WithAnnotations(entries map[string]string) *RouterApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Annotations == nil && len(entries) > 0 { - b.Annotations = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) } for k, v := range entries { - b.Annotations[k] = v + b.ObjectMetaApplyConfiguration.Annotations[k] = v } return b } @@ -219,7 +219,7 @@ func (b *RouterApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefere if values[i] == nil { panic("nil value passed to WithOwnerReferences") } - b.OwnerReferences = append(b.OwnerReferences, *values[i]) + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) } return b } @@ -230,7 +230,7 @@ func (b *RouterApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefere func (b *RouterApplyConfiguration) WithFinalizers(values ...string) *RouterApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } @@ -260,5 +260,5 @@ func (b *RouterApplyConfiguration) WithStatus(value *RouterStatusApplyConfigurat // GetName retrieves the value of the Name field in the declarative configuration. func (b *RouterApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/routerfilter.go b/pkg/clients/applyconfiguration/api/v1alpha1/routerfilter.go index 503419cc..4e69a9a7 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/routerfilter.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/routerfilter.go @@ -19,14 +19,14 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // RouterFilterApplyConfiguration represents a declarative configuration of the RouterFilter type for use // with apply. type RouterFilterApplyConfiguration struct { - Name *v1alpha1.OpenStackName `json:"name,omitempty"` - Description *v1alpha1.NeutronDescription `json:"description,omitempty"` + Name *apiv1alpha1.OpenStackName `json:"name,omitempty"` + Description *apiv1alpha1.NeutronDescription `json:"description,omitempty"` FilterByNeutronTagsApplyConfiguration `json:",inline"` } @@ -39,7 +39,7 @@ func RouterFilter() *RouterFilterApplyConfiguration { // 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 *RouterFilterApplyConfiguration) WithName(value v1alpha1.OpenStackName) *RouterFilterApplyConfiguration { +func (b *RouterFilterApplyConfiguration) WithName(value apiv1alpha1.OpenStackName) *RouterFilterApplyConfiguration { b.Name = &value return b } @@ -47,7 +47,7 @@ func (b *RouterFilterApplyConfiguration) WithName(value v1alpha1.OpenStackName) // WithDescription sets the Description 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 Description field is set to the value of the last call. -func (b *RouterFilterApplyConfiguration) WithDescription(value v1alpha1.NeutronDescription) *RouterFilterApplyConfiguration { +func (b *RouterFilterApplyConfiguration) WithDescription(value apiv1alpha1.NeutronDescription) *RouterFilterApplyConfiguration { b.Description = &value return b } @@ -55,9 +55,9 @@ func (b *RouterFilterApplyConfiguration) WithDescription(value v1alpha1.NeutronD // WithTags adds the given value to the Tags 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 Tags field. -func (b *RouterFilterApplyConfiguration) WithTags(values ...v1alpha1.NeutronTag) *RouterFilterApplyConfiguration { +func (b *RouterFilterApplyConfiguration) WithTags(values ...apiv1alpha1.NeutronTag) *RouterFilterApplyConfiguration { for i := range values { - b.Tags = append(b.Tags, values[i]) + b.FilterByNeutronTagsApplyConfiguration.Tags = append(b.FilterByNeutronTagsApplyConfiguration.Tags, values[i]) } return b } @@ -65,9 +65,9 @@ func (b *RouterFilterApplyConfiguration) WithTags(values ...v1alpha1.NeutronTag) // WithTagsAny adds the given value to the TagsAny 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 TagsAny field. -func (b *RouterFilterApplyConfiguration) WithTagsAny(values ...v1alpha1.NeutronTag) *RouterFilterApplyConfiguration { +func (b *RouterFilterApplyConfiguration) WithTagsAny(values ...apiv1alpha1.NeutronTag) *RouterFilterApplyConfiguration { for i := range values { - b.TagsAny = append(b.TagsAny, values[i]) + b.FilterByNeutronTagsApplyConfiguration.TagsAny = append(b.FilterByNeutronTagsApplyConfiguration.TagsAny, values[i]) } return b } @@ -75,9 +75,9 @@ func (b *RouterFilterApplyConfiguration) WithTagsAny(values ...v1alpha1.NeutronT // WithNotTags adds the given value to the NotTags 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 NotTags field. -func (b *RouterFilterApplyConfiguration) WithNotTags(values ...v1alpha1.NeutronTag) *RouterFilterApplyConfiguration { +func (b *RouterFilterApplyConfiguration) WithNotTags(values ...apiv1alpha1.NeutronTag) *RouterFilterApplyConfiguration { for i := range values { - b.NotTags = append(b.NotTags, values[i]) + b.FilterByNeutronTagsApplyConfiguration.NotTags = append(b.FilterByNeutronTagsApplyConfiguration.NotTags, values[i]) } return b } @@ -85,9 +85,9 @@ func (b *RouterFilterApplyConfiguration) WithNotTags(values ...v1alpha1.NeutronT // WithNotTagsAny adds the given value to the NotTagsAny 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 NotTagsAny field. -func (b *RouterFilterApplyConfiguration) WithNotTagsAny(values ...v1alpha1.NeutronTag) *RouterFilterApplyConfiguration { +func (b *RouterFilterApplyConfiguration) WithNotTagsAny(values ...apiv1alpha1.NeutronTag) *RouterFilterApplyConfiguration { for i := range values { - b.NotTagsAny = append(b.NotTagsAny, values[i]) + b.FilterByNeutronTagsApplyConfiguration.NotTagsAny = append(b.FilterByNeutronTagsApplyConfiguration.NotTagsAny, values[i]) } return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/routerinterface.go b/pkg/clients/applyconfiguration/api/v1alpha1/routerinterface.go index 3bb52bf6..f28d2ee3 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/routerinterface.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/routerinterface.go @@ -87,7 +87,7 @@ func extractRouterInterface(routerInterface *apiv1alpha1.RouterInterface, fieldM // 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 *RouterInterfaceApplyConfiguration) WithKind(value string) *RouterInterfaceApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -95,7 +95,7 @@ func (b *RouterInterfaceApplyConfiguration) WithKind(value string) *RouterInterf // 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 *RouterInterfaceApplyConfiguration) WithAPIVersion(value string) *RouterInterfaceApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -104,7 +104,7 @@ func (b *RouterInterfaceApplyConfiguration) WithAPIVersion(value string) *Router // If called multiple times, the Name field is set to the value of the last call. func (b *RouterInterfaceApplyConfiguration) WithName(value string) *RouterInterfaceApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -113,7 +113,7 @@ func (b *RouterInterfaceApplyConfiguration) WithName(value string) *RouterInterf // If called multiple times, the GenerateName field is set to the value of the last call. func (b *RouterInterfaceApplyConfiguration) WithGenerateName(value string) *RouterInterfaceApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -122,7 +122,7 @@ func (b *RouterInterfaceApplyConfiguration) WithGenerateName(value string) *Rout // If called multiple times, the Namespace field is set to the value of the last call. func (b *RouterInterfaceApplyConfiguration) WithNamespace(value string) *RouterInterfaceApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -131,7 +131,7 @@ func (b *RouterInterfaceApplyConfiguration) WithNamespace(value string) *RouterI // If called multiple times, the UID field is set to the value of the last call. func (b *RouterInterfaceApplyConfiguration) WithUID(value types.UID) *RouterInterfaceApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -140,7 +140,7 @@ func (b *RouterInterfaceApplyConfiguration) WithUID(value types.UID) *RouterInte // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *RouterInterfaceApplyConfiguration) WithResourceVersion(value string) *RouterInterfaceApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -149,7 +149,7 @@ func (b *RouterInterfaceApplyConfiguration) WithResourceVersion(value string) *R // If called multiple times, the Generation field is set to the value of the last call. func (b *RouterInterfaceApplyConfiguration) WithGeneration(value int64) *RouterInterfaceApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } @@ -158,7 +158,7 @@ func (b *RouterInterfaceApplyConfiguration) WithGeneration(value int64) *RouterI // If called multiple times, the CreationTimestamp field is set to the value of the last call. func (b *RouterInterfaceApplyConfiguration) WithCreationTimestamp(value metav1.Time) *RouterInterfaceApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } @@ -167,7 +167,7 @@ func (b *RouterInterfaceApplyConfiguration) WithCreationTimestamp(value metav1.T // If called multiple times, the DeletionTimestamp field is set to the value of the last call. func (b *RouterInterfaceApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *RouterInterfaceApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -176,7 +176,7 @@ func (b *RouterInterfaceApplyConfiguration) WithDeletionTimestamp(value metav1.T // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *RouterInterfaceApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *RouterInterfaceApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -186,11 +186,11 @@ func (b *RouterInterfaceApplyConfiguration) WithDeletionGracePeriodSeconds(value // overwriting an existing map entries in Labels field with the same key. func (b *RouterInterfaceApplyConfiguration) WithLabels(entries map[string]string) *RouterInterfaceApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Labels == nil && len(entries) > 0 { - b.Labels = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) } for k, v := range entries { - b.Labels[k] = v + b.ObjectMetaApplyConfiguration.Labels[k] = v } return b } @@ -201,11 +201,11 @@ func (b *RouterInterfaceApplyConfiguration) WithLabels(entries map[string]string // overwriting an existing map entries in Annotations field with the same key. func (b *RouterInterfaceApplyConfiguration) WithAnnotations(entries map[string]string) *RouterInterfaceApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Annotations == nil && len(entries) > 0 { - b.Annotations = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) } for k, v := range entries { - b.Annotations[k] = v + b.ObjectMetaApplyConfiguration.Annotations[k] = v } return b } @@ -219,7 +219,7 @@ func (b *RouterInterfaceApplyConfiguration) WithOwnerReferences(values ...*v1.Ow if values[i] == nil { panic("nil value passed to WithOwnerReferences") } - b.OwnerReferences = append(b.OwnerReferences, *values[i]) + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) } return b } @@ -230,7 +230,7 @@ func (b *RouterInterfaceApplyConfiguration) WithOwnerReferences(values ...*v1.Ow func (b *RouterInterfaceApplyConfiguration) WithFinalizers(values ...string) *RouterInterfaceApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } @@ -260,5 +260,5 @@ func (b *RouterInterfaceApplyConfiguration) WithStatus(value *RouterInterfaceSta // GetName retrieves the value of the Name field in the declarative configuration. func (b *RouterInterfaceApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/routerinterfacespec.go b/pkg/clients/applyconfiguration/api/v1alpha1/routerinterfacespec.go index c092cc22..ed6f3ef3 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/routerinterfacespec.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/routerinterfacespec.go @@ -19,15 +19,15 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // RouterInterfaceSpecApplyConfiguration represents a declarative configuration of the RouterInterfaceSpec type for use // with apply. type RouterInterfaceSpecApplyConfiguration struct { - Type *v1alpha1.RouterInterfaceType `json:"type,omitempty"` - RouterRef *v1alpha1.KubernetesNameRef `json:"routerRef,omitempty"` - SubnetRef *v1alpha1.KubernetesNameRef `json:"subnetRef,omitempty"` + Type *apiv1alpha1.RouterInterfaceType `json:"type,omitempty"` + RouterRef *apiv1alpha1.KubernetesNameRef `json:"routerRef,omitempty"` + SubnetRef *apiv1alpha1.KubernetesNameRef `json:"subnetRef,omitempty"` } // RouterInterfaceSpecApplyConfiguration constructs a declarative configuration of the RouterInterfaceSpec type for use with @@ -39,7 +39,7 @@ func RouterInterfaceSpec() *RouterInterfaceSpecApplyConfiguration { // WithType sets the Type 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 Type field is set to the value of the last call. -func (b *RouterInterfaceSpecApplyConfiguration) WithType(value v1alpha1.RouterInterfaceType) *RouterInterfaceSpecApplyConfiguration { +func (b *RouterInterfaceSpecApplyConfiguration) WithType(value apiv1alpha1.RouterInterfaceType) *RouterInterfaceSpecApplyConfiguration { b.Type = &value return b } @@ -47,7 +47,7 @@ func (b *RouterInterfaceSpecApplyConfiguration) WithType(value v1alpha1.RouterIn // WithRouterRef sets the RouterRef 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 RouterRef field is set to the value of the last call. -func (b *RouterInterfaceSpecApplyConfiguration) WithRouterRef(value v1alpha1.KubernetesNameRef) *RouterInterfaceSpecApplyConfiguration { +func (b *RouterInterfaceSpecApplyConfiguration) WithRouterRef(value apiv1alpha1.KubernetesNameRef) *RouterInterfaceSpecApplyConfiguration { b.RouterRef = &value return b } @@ -55,7 +55,7 @@ func (b *RouterInterfaceSpecApplyConfiguration) WithRouterRef(value v1alpha1.Kub // WithSubnetRef sets the SubnetRef 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 SubnetRef field is set to the value of the last call. -func (b *RouterInterfaceSpecApplyConfiguration) WithSubnetRef(value v1alpha1.KubernetesNameRef) *RouterInterfaceSpecApplyConfiguration { +func (b *RouterInterfaceSpecApplyConfiguration) WithSubnetRef(value apiv1alpha1.KubernetesNameRef) *RouterInterfaceSpecApplyConfiguration { b.SubnetRef = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/routerresourcespec.go b/pkg/clients/applyconfiguration/api/v1alpha1/routerresourcespec.go index 38f9e534..716c90a5 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/routerresourcespec.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/routerresourcespec.go @@ -19,20 +19,20 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // RouterResourceSpecApplyConfiguration represents a declarative configuration of the RouterResourceSpec type for use // with apply. type RouterResourceSpecApplyConfiguration struct { - Name *v1alpha1.OpenStackName `json:"name,omitempty"` - Description *v1alpha1.NeutronDescription `json:"description,omitempty"` - Tags []v1alpha1.NeutronTag `json:"tags,omitempty"` + Name *apiv1alpha1.OpenStackName `json:"name,omitempty"` + Description *apiv1alpha1.NeutronDescription `json:"description,omitempty"` + Tags []apiv1alpha1.NeutronTag `json:"tags,omitempty"` AdminStateUp *bool `json:"adminStateUp,omitempty"` ExternalGateways []ExternalGatewayApplyConfiguration `json:"externalGateways,omitempty"` Distributed *bool `json:"distributed,omitempty"` - AvailabilityZoneHints []v1alpha1.AvailabilityZoneHint `json:"availabilityZoneHints,omitempty"` + AvailabilityZoneHints []apiv1alpha1.AvailabilityZoneHint `json:"availabilityZoneHints,omitempty"` NeutronStatusMetadataApplyConfiguration `json:",inline"` } @@ -45,7 +45,7 @@ func RouterResourceSpec() *RouterResourceSpecApplyConfiguration { // 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 *RouterResourceSpecApplyConfiguration) WithName(value v1alpha1.OpenStackName) *RouterResourceSpecApplyConfiguration { +func (b *RouterResourceSpecApplyConfiguration) WithName(value apiv1alpha1.OpenStackName) *RouterResourceSpecApplyConfiguration { b.Name = &value return b } @@ -53,7 +53,7 @@ func (b *RouterResourceSpecApplyConfiguration) WithName(value v1alpha1.OpenStack // WithDescription sets the Description 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 Description field is set to the value of the last call. -func (b *RouterResourceSpecApplyConfiguration) WithDescription(value v1alpha1.NeutronDescription) *RouterResourceSpecApplyConfiguration { +func (b *RouterResourceSpecApplyConfiguration) WithDescription(value apiv1alpha1.NeutronDescription) *RouterResourceSpecApplyConfiguration { b.Description = &value return b } @@ -61,7 +61,7 @@ func (b *RouterResourceSpecApplyConfiguration) WithDescription(value v1alpha1.Ne // WithTags adds the given value to the Tags 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 Tags field. -func (b *RouterResourceSpecApplyConfiguration) WithTags(values ...v1alpha1.NeutronTag) *RouterResourceSpecApplyConfiguration { +func (b *RouterResourceSpecApplyConfiguration) WithTags(values ...apiv1alpha1.NeutronTag) *RouterResourceSpecApplyConfiguration { for i := range values { b.Tags = append(b.Tags, values[i]) } @@ -100,7 +100,7 @@ func (b *RouterResourceSpecApplyConfiguration) WithDistributed(value bool) *Rout // WithAvailabilityZoneHints adds the given value to the AvailabilityZoneHints 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 AvailabilityZoneHints field. -func (b *RouterResourceSpecApplyConfiguration) WithAvailabilityZoneHints(values ...v1alpha1.AvailabilityZoneHint) *RouterResourceSpecApplyConfiguration { +func (b *RouterResourceSpecApplyConfiguration) WithAvailabilityZoneHints(values ...apiv1alpha1.AvailabilityZoneHint) *RouterResourceSpecApplyConfiguration { for i := range values { b.AvailabilityZoneHints = append(b.AvailabilityZoneHints, values[i]) } @@ -111,7 +111,7 @@ func (b *RouterResourceSpecApplyConfiguration) WithAvailabilityZoneHints(values // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreatedAt field is set to the value of the last call. func (b *RouterResourceSpecApplyConfiguration) WithCreatedAt(value v1.Time) *RouterResourceSpecApplyConfiguration { - b.CreatedAt = &value + b.NeutronStatusMetadataApplyConfiguration.CreatedAt = &value return b } @@ -119,7 +119,7 @@ func (b *RouterResourceSpecApplyConfiguration) WithCreatedAt(value v1.Time) *Rou // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the UpdatedAt field is set to the value of the last call. func (b *RouterResourceSpecApplyConfiguration) WithUpdatedAt(value v1.Time) *RouterResourceSpecApplyConfiguration { - b.UpdatedAt = &value + b.NeutronStatusMetadataApplyConfiguration.UpdatedAt = &value return b } @@ -127,6 +127,6 @@ func (b *RouterResourceSpecApplyConfiguration) WithUpdatedAt(value v1.Time) *Rou // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the RevisionNumber field is set to the value of the last call. func (b *RouterResourceSpecApplyConfiguration) WithRevisionNumber(value int64) *RouterResourceSpecApplyConfiguration { - b.RevisionNumber = &value + b.NeutronStatusMetadataApplyConfiguration.RevisionNumber = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/securitygroup.go b/pkg/clients/applyconfiguration/api/v1alpha1/securitygroup.go index 9e25d307..32e53a74 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/securitygroup.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/securitygroup.go @@ -87,7 +87,7 @@ func extractSecurityGroup(securityGroup *apiv1alpha1.SecurityGroup, fieldManager // 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 *SecurityGroupApplyConfiguration) WithKind(value string) *SecurityGroupApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -95,7 +95,7 @@ func (b *SecurityGroupApplyConfiguration) WithKind(value string) *SecurityGroupA // 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 *SecurityGroupApplyConfiguration) WithAPIVersion(value string) *SecurityGroupApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -104,7 +104,7 @@ func (b *SecurityGroupApplyConfiguration) WithAPIVersion(value string) *Security // If called multiple times, the Name field is set to the value of the last call. func (b *SecurityGroupApplyConfiguration) WithName(value string) *SecurityGroupApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -113,7 +113,7 @@ func (b *SecurityGroupApplyConfiguration) WithName(value string) *SecurityGroupA // If called multiple times, the GenerateName field is set to the value of the last call. func (b *SecurityGroupApplyConfiguration) WithGenerateName(value string) *SecurityGroupApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -122,7 +122,7 @@ func (b *SecurityGroupApplyConfiguration) WithGenerateName(value string) *Securi // If called multiple times, the Namespace field is set to the value of the last call. func (b *SecurityGroupApplyConfiguration) WithNamespace(value string) *SecurityGroupApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -131,7 +131,7 @@ func (b *SecurityGroupApplyConfiguration) WithNamespace(value string) *SecurityG // If called multiple times, the UID field is set to the value of the last call. func (b *SecurityGroupApplyConfiguration) WithUID(value types.UID) *SecurityGroupApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -140,7 +140,7 @@ func (b *SecurityGroupApplyConfiguration) WithUID(value types.UID) *SecurityGrou // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *SecurityGroupApplyConfiguration) WithResourceVersion(value string) *SecurityGroupApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -149,7 +149,7 @@ func (b *SecurityGroupApplyConfiguration) WithResourceVersion(value string) *Sec // If called multiple times, the Generation field is set to the value of the last call. func (b *SecurityGroupApplyConfiguration) WithGeneration(value int64) *SecurityGroupApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } @@ -158,7 +158,7 @@ func (b *SecurityGroupApplyConfiguration) WithGeneration(value int64) *SecurityG // If called multiple times, the CreationTimestamp field is set to the value of the last call. func (b *SecurityGroupApplyConfiguration) WithCreationTimestamp(value metav1.Time) *SecurityGroupApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } @@ -167,7 +167,7 @@ func (b *SecurityGroupApplyConfiguration) WithCreationTimestamp(value metav1.Tim // If called multiple times, the DeletionTimestamp field is set to the value of the last call. func (b *SecurityGroupApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *SecurityGroupApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -176,7 +176,7 @@ func (b *SecurityGroupApplyConfiguration) WithDeletionTimestamp(value metav1.Tim // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *SecurityGroupApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *SecurityGroupApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -186,11 +186,11 @@ func (b *SecurityGroupApplyConfiguration) WithDeletionGracePeriodSeconds(value i // overwriting an existing map entries in Labels field with the same key. func (b *SecurityGroupApplyConfiguration) WithLabels(entries map[string]string) *SecurityGroupApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Labels == nil && len(entries) > 0 { - b.Labels = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) } for k, v := range entries { - b.Labels[k] = v + b.ObjectMetaApplyConfiguration.Labels[k] = v } return b } @@ -201,11 +201,11 @@ func (b *SecurityGroupApplyConfiguration) WithLabels(entries map[string]string) // overwriting an existing map entries in Annotations field with the same key. func (b *SecurityGroupApplyConfiguration) WithAnnotations(entries map[string]string) *SecurityGroupApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Annotations == nil && len(entries) > 0 { - b.Annotations = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) } for k, v := range entries { - b.Annotations[k] = v + b.ObjectMetaApplyConfiguration.Annotations[k] = v } return b } @@ -219,7 +219,7 @@ func (b *SecurityGroupApplyConfiguration) WithOwnerReferences(values ...*v1.Owne if values[i] == nil { panic("nil value passed to WithOwnerReferences") } - b.OwnerReferences = append(b.OwnerReferences, *values[i]) + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) } return b } @@ -230,7 +230,7 @@ func (b *SecurityGroupApplyConfiguration) WithOwnerReferences(values ...*v1.Owne func (b *SecurityGroupApplyConfiguration) WithFinalizers(values ...string) *SecurityGroupApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } @@ -260,5 +260,5 @@ func (b *SecurityGroupApplyConfiguration) WithStatus(value *SecurityGroupStatusA // GetName retrieves the value of the Name field in the declarative configuration. func (b *SecurityGroupApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/securitygroupfilter.go b/pkg/clients/applyconfiguration/api/v1alpha1/securitygroupfilter.go index 0ec56d4c..ad2a1f78 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/securitygroupfilter.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/securitygroupfilter.go @@ -19,14 +19,14 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // SecurityGroupFilterApplyConfiguration represents a declarative configuration of the SecurityGroupFilter type for use // with apply. type SecurityGroupFilterApplyConfiguration struct { - Name *v1alpha1.OpenStackName `json:"name,omitempty"` - Description *v1alpha1.NeutronDescription `json:"description,omitempty"` + Name *apiv1alpha1.OpenStackName `json:"name,omitempty"` + Description *apiv1alpha1.NeutronDescription `json:"description,omitempty"` FilterByNeutronTagsApplyConfiguration `json:",inline"` } @@ -39,7 +39,7 @@ func SecurityGroupFilter() *SecurityGroupFilterApplyConfiguration { // 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 *SecurityGroupFilterApplyConfiguration) WithName(value v1alpha1.OpenStackName) *SecurityGroupFilterApplyConfiguration { +func (b *SecurityGroupFilterApplyConfiguration) WithName(value apiv1alpha1.OpenStackName) *SecurityGroupFilterApplyConfiguration { b.Name = &value return b } @@ -47,7 +47,7 @@ func (b *SecurityGroupFilterApplyConfiguration) WithName(value v1alpha1.OpenStac // WithDescription sets the Description 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 Description field is set to the value of the last call. -func (b *SecurityGroupFilterApplyConfiguration) WithDescription(value v1alpha1.NeutronDescription) *SecurityGroupFilterApplyConfiguration { +func (b *SecurityGroupFilterApplyConfiguration) WithDescription(value apiv1alpha1.NeutronDescription) *SecurityGroupFilterApplyConfiguration { b.Description = &value return b } @@ -55,9 +55,9 @@ func (b *SecurityGroupFilterApplyConfiguration) WithDescription(value v1alpha1.N // WithTags adds the given value to the Tags 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 Tags field. -func (b *SecurityGroupFilterApplyConfiguration) WithTags(values ...v1alpha1.NeutronTag) *SecurityGroupFilterApplyConfiguration { +func (b *SecurityGroupFilterApplyConfiguration) WithTags(values ...apiv1alpha1.NeutronTag) *SecurityGroupFilterApplyConfiguration { for i := range values { - b.Tags = append(b.Tags, values[i]) + b.FilterByNeutronTagsApplyConfiguration.Tags = append(b.FilterByNeutronTagsApplyConfiguration.Tags, values[i]) } return b } @@ -65,9 +65,9 @@ func (b *SecurityGroupFilterApplyConfiguration) WithTags(values ...v1alpha1.Neut // WithTagsAny adds the given value to the TagsAny 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 TagsAny field. -func (b *SecurityGroupFilterApplyConfiguration) WithTagsAny(values ...v1alpha1.NeutronTag) *SecurityGroupFilterApplyConfiguration { +func (b *SecurityGroupFilterApplyConfiguration) WithTagsAny(values ...apiv1alpha1.NeutronTag) *SecurityGroupFilterApplyConfiguration { for i := range values { - b.TagsAny = append(b.TagsAny, values[i]) + b.FilterByNeutronTagsApplyConfiguration.TagsAny = append(b.FilterByNeutronTagsApplyConfiguration.TagsAny, values[i]) } return b } @@ -75,9 +75,9 @@ func (b *SecurityGroupFilterApplyConfiguration) WithTagsAny(values ...v1alpha1.N // WithNotTags adds the given value to the NotTags 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 NotTags field. -func (b *SecurityGroupFilterApplyConfiguration) WithNotTags(values ...v1alpha1.NeutronTag) *SecurityGroupFilterApplyConfiguration { +func (b *SecurityGroupFilterApplyConfiguration) WithNotTags(values ...apiv1alpha1.NeutronTag) *SecurityGroupFilterApplyConfiguration { for i := range values { - b.NotTags = append(b.NotTags, values[i]) + b.FilterByNeutronTagsApplyConfiguration.NotTags = append(b.FilterByNeutronTagsApplyConfiguration.NotTags, values[i]) } return b } @@ -85,9 +85,9 @@ func (b *SecurityGroupFilterApplyConfiguration) WithNotTags(values ...v1alpha1.N // WithNotTagsAny adds the given value to the NotTagsAny 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 NotTagsAny field. -func (b *SecurityGroupFilterApplyConfiguration) WithNotTagsAny(values ...v1alpha1.NeutronTag) *SecurityGroupFilterApplyConfiguration { +func (b *SecurityGroupFilterApplyConfiguration) WithNotTagsAny(values ...apiv1alpha1.NeutronTag) *SecurityGroupFilterApplyConfiguration { for i := range values { - b.NotTagsAny = append(b.NotTagsAny, values[i]) + b.FilterByNeutronTagsApplyConfiguration.NotTagsAny = append(b.FilterByNeutronTagsApplyConfiguration.NotTagsAny, values[i]) } return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/securitygroupresourcespec.go b/pkg/clients/applyconfiguration/api/v1alpha1/securitygroupresourcespec.go index 7d01aefa..0b13b5bc 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/securitygroupresourcespec.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/securitygroupresourcespec.go @@ -19,15 +19,15 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // SecurityGroupResourceSpecApplyConfiguration represents a declarative configuration of the SecurityGroupResourceSpec type for use // with apply. type SecurityGroupResourceSpecApplyConfiguration struct { - Name *v1alpha1.OpenStackName `json:"name,omitempty"` - Description *v1alpha1.NeutronDescription `json:"description,omitempty"` - Tags []v1alpha1.NeutronTag `json:"tags,omitempty"` + Name *apiv1alpha1.OpenStackName `json:"name,omitempty"` + Description *apiv1alpha1.NeutronDescription `json:"description,omitempty"` + Tags []apiv1alpha1.NeutronTag `json:"tags,omitempty"` Stateful *bool `json:"stateful,omitempty"` Rules []SecurityGroupRuleApplyConfiguration `json:"rules,omitempty"` } @@ -41,7 +41,7 @@ func SecurityGroupResourceSpec() *SecurityGroupResourceSpecApplyConfiguration { // 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 *SecurityGroupResourceSpecApplyConfiguration) WithName(value v1alpha1.OpenStackName) *SecurityGroupResourceSpecApplyConfiguration { +func (b *SecurityGroupResourceSpecApplyConfiguration) WithName(value apiv1alpha1.OpenStackName) *SecurityGroupResourceSpecApplyConfiguration { b.Name = &value return b } @@ -49,7 +49,7 @@ func (b *SecurityGroupResourceSpecApplyConfiguration) WithName(value v1alpha1.Op // WithDescription sets the Description 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 Description field is set to the value of the last call. -func (b *SecurityGroupResourceSpecApplyConfiguration) WithDescription(value v1alpha1.NeutronDescription) *SecurityGroupResourceSpecApplyConfiguration { +func (b *SecurityGroupResourceSpecApplyConfiguration) WithDescription(value apiv1alpha1.NeutronDescription) *SecurityGroupResourceSpecApplyConfiguration { b.Description = &value return b } @@ -57,7 +57,7 @@ func (b *SecurityGroupResourceSpecApplyConfiguration) WithDescription(value v1al // WithTags adds the given value to the Tags 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 Tags field. -func (b *SecurityGroupResourceSpecApplyConfiguration) WithTags(values ...v1alpha1.NeutronTag) *SecurityGroupResourceSpecApplyConfiguration { +func (b *SecurityGroupResourceSpecApplyConfiguration) WithTags(values ...apiv1alpha1.NeutronTag) *SecurityGroupResourceSpecApplyConfiguration { for i := range values { b.Tags = append(b.Tags, values[i]) } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/securitygroupresourcestatus.go b/pkg/clients/applyconfiguration/api/v1alpha1/securitygroupresourcestatus.go index 960d07be..abafceaa 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/securitygroupresourcestatus.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/securitygroupresourcestatus.go @@ -99,7 +99,7 @@ func (b *SecurityGroupResourceStatusApplyConfiguration) WithRules(values ...*Sec // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreatedAt field is set to the value of the last call. func (b *SecurityGroupResourceStatusApplyConfiguration) WithCreatedAt(value v1.Time) *SecurityGroupResourceStatusApplyConfiguration { - b.CreatedAt = &value + b.NeutronStatusMetadataApplyConfiguration.CreatedAt = &value return b } @@ -107,7 +107,7 @@ func (b *SecurityGroupResourceStatusApplyConfiguration) WithCreatedAt(value v1.T // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the UpdatedAt field is set to the value of the last call. func (b *SecurityGroupResourceStatusApplyConfiguration) WithUpdatedAt(value v1.Time) *SecurityGroupResourceStatusApplyConfiguration { - b.UpdatedAt = &value + b.NeutronStatusMetadataApplyConfiguration.UpdatedAt = &value return b } @@ -115,6 +115,6 @@ func (b *SecurityGroupResourceStatusApplyConfiguration) WithUpdatedAt(value v1.T // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the RevisionNumber field is set to the value of the last call. func (b *SecurityGroupResourceStatusApplyConfiguration) WithRevisionNumber(value int64) *SecurityGroupResourceStatusApplyConfiguration { - b.RevisionNumber = &value + b.NeutronStatusMetadataApplyConfiguration.RevisionNumber = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/securitygrouprule.go b/pkg/clients/applyconfiguration/api/v1alpha1/securitygrouprule.go index 9c6dc37c..cfea5d1d 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/securitygrouprule.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/securitygrouprule.go @@ -19,17 +19,17 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // SecurityGroupRuleApplyConfiguration represents a declarative configuration of the SecurityGroupRule type for use // with apply. type SecurityGroupRuleApplyConfiguration struct { - Description *v1alpha1.NeutronDescription `json:"description,omitempty"` - Direction *v1alpha1.RuleDirection `json:"direction,omitempty"` - RemoteIPPrefix *v1alpha1.CIDR `json:"remoteIPPrefix,omitempty"` - Protocol *v1alpha1.Protocol `json:"protocol,omitempty"` - Ethertype *v1alpha1.Ethertype `json:"ethertype,omitempty"` + Description *apiv1alpha1.NeutronDescription `json:"description,omitempty"` + Direction *apiv1alpha1.RuleDirection `json:"direction,omitempty"` + RemoteIPPrefix *apiv1alpha1.CIDR `json:"remoteIPPrefix,omitempty"` + Protocol *apiv1alpha1.Protocol `json:"protocol,omitempty"` + Ethertype *apiv1alpha1.Ethertype `json:"ethertype,omitempty"` PortRange *PortRangeSpecApplyConfiguration `json:"portRange,omitempty"` } @@ -42,7 +42,7 @@ func SecurityGroupRule() *SecurityGroupRuleApplyConfiguration { // WithDescription sets the Description 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 Description field is set to the value of the last call. -func (b *SecurityGroupRuleApplyConfiguration) WithDescription(value v1alpha1.NeutronDescription) *SecurityGroupRuleApplyConfiguration { +func (b *SecurityGroupRuleApplyConfiguration) WithDescription(value apiv1alpha1.NeutronDescription) *SecurityGroupRuleApplyConfiguration { b.Description = &value return b } @@ -50,7 +50,7 @@ func (b *SecurityGroupRuleApplyConfiguration) WithDescription(value v1alpha1.Neu // WithDirection sets the Direction 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 Direction field is set to the value of the last call. -func (b *SecurityGroupRuleApplyConfiguration) WithDirection(value v1alpha1.RuleDirection) *SecurityGroupRuleApplyConfiguration { +func (b *SecurityGroupRuleApplyConfiguration) WithDirection(value apiv1alpha1.RuleDirection) *SecurityGroupRuleApplyConfiguration { b.Direction = &value return b } @@ -58,7 +58,7 @@ func (b *SecurityGroupRuleApplyConfiguration) WithDirection(value v1alpha1.RuleD // WithRemoteIPPrefix sets the RemoteIPPrefix 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 RemoteIPPrefix field is set to the value of the last call. -func (b *SecurityGroupRuleApplyConfiguration) WithRemoteIPPrefix(value v1alpha1.CIDR) *SecurityGroupRuleApplyConfiguration { +func (b *SecurityGroupRuleApplyConfiguration) WithRemoteIPPrefix(value apiv1alpha1.CIDR) *SecurityGroupRuleApplyConfiguration { b.RemoteIPPrefix = &value return b } @@ -66,7 +66,7 @@ func (b *SecurityGroupRuleApplyConfiguration) WithRemoteIPPrefix(value v1alpha1. // WithProtocol sets the Protocol 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 Protocol field is set to the value of the last call. -func (b *SecurityGroupRuleApplyConfiguration) WithProtocol(value v1alpha1.Protocol) *SecurityGroupRuleApplyConfiguration { +func (b *SecurityGroupRuleApplyConfiguration) WithProtocol(value apiv1alpha1.Protocol) *SecurityGroupRuleApplyConfiguration { b.Protocol = &value return b } @@ -74,7 +74,7 @@ func (b *SecurityGroupRuleApplyConfiguration) WithProtocol(value v1alpha1.Protoc // WithEthertype sets the Ethertype 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 Ethertype field is set to the value of the last call. -func (b *SecurityGroupRuleApplyConfiguration) WithEthertype(value v1alpha1.Ethertype) *SecurityGroupRuleApplyConfiguration { +func (b *SecurityGroupRuleApplyConfiguration) WithEthertype(value apiv1alpha1.Ethertype) *SecurityGroupRuleApplyConfiguration { b.Ethertype = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/server.go b/pkg/clients/applyconfiguration/api/v1alpha1/server.go index b34cc53c..5ea7dd6c 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/server.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/server.go @@ -87,7 +87,7 @@ func extractServer(server *apiv1alpha1.Server, fieldManager string, subresource // 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 *ServerApplyConfiguration) WithKind(value string) *ServerApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -95,7 +95,7 @@ func (b *ServerApplyConfiguration) WithKind(value string) *ServerApplyConfigurat // 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 *ServerApplyConfiguration) WithAPIVersion(value string) *ServerApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -104,7 +104,7 @@ func (b *ServerApplyConfiguration) WithAPIVersion(value string) *ServerApplyConf // If called multiple times, the Name field is set to the value of the last call. func (b *ServerApplyConfiguration) WithName(value string) *ServerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -113,7 +113,7 @@ func (b *ServerApplyConfiguration) WithName(value string) *ServerApplyConfigurat // If called multiple times, the GenerateName field is set to the value of the last call. func (b *ServerApplyConfiguration) WithGenerateName(value string) *ServerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -122,7 +122,7 @@ func (b *ServerApplyConfiguration) WithGenerateName(value string) *ServerApplyCo // If called multiple times, the Namespace field is set to the value of the last call. func (b *ServerApplyConfiguration) WithNamespace(value string) *ServerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -131,7 +131,7 @@ func (b *ServerApplyConfiguration) WithNamespace(value string) *ServerApplyConfi // If called multiple times, the UID field is set to the value of the last call. func (b *ServerApplyConfiguration) WithUID(value types.UID) *ServerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -140,7 +140,7 @@ func (b *ServerApplyConfiguration) WithUID(value types.UID) *ServerApplyConfigur // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *ServerApplyConfiguration) WithResourceVersion(value string) *ServerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -149,7 +149,7 @@ func (b *ServerApplyConfiguration) WithResourceVersion(value string) *ServerAppl // If called multiple times, the Generation field is set to the value of the last call. func (b *ServerApplyConfiguration) WithGeneration(value int64) *ServerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } @@ -158,7 +158,7 @@ func (b *ServerApplyConfiguration) WithGeneration(value int64) *ServerApplyConfi // If called multiple times, the CreationTimestamp field is set to the value of the last call. func (b *ServerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ServerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } @@ -167,7 +167,7 @@ func (b *ServerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *Ser // If called multiple times, the DeletionTimestamp field is set to the value of the last call. func (b *ServerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ServerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -176,7 +176,7 @@ func (b *ServerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Ser // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *ServerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ServerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -186,11 +186,11 @@ func (b *ServerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) * // overwriting an existing map entries in Labels field with the same key. func (b *ServerApplyConfiguration) WithLabels(entries map[string]string) *ServerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Labels == nil && len(entries) > 0 { - b.Labels = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) } for k, v := range entries { - b.Labels[k] = v + b.ObjectMetaApplyConfiguration.Labels[k] = v } return b } @@ -201,11 +201,11 @@ func (b *ServerApplyConfiguration) WithLabels(entries map[string]string) *Server // overwriting an existing map entries in Annotations field with the same key. func (b *ServerApplyConfiguration) WithAnnotations(entries map[string]string) *ServerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Annotations == nil && len(entries) > 0 { - b.Annotations = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) } for k, v := range entries { - b.Annotations[k] = v + b.ObjectMetaApplyConfiguration.Annotations[k] = v } return b } @@ -219,7 +219,7 @@ func (b *ServerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefere if values[i] == nil { panic("nil value passed to WithOwnerReferences") } - b.OwnerReferences = append(b.OwnerReferences, *values[i]) + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) } return b } @@ -230,7 +230,7 @@ func (b *ServerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefere func (b *ServerApplyConfiguration) WithFinalizers(values ...string) *ServerApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } @@ -260,5 +260,5 @@ func (b *ServerApplyConfiguration) WithStatus(value *ServerStatusApplyConfigurat // GetName retrieves the value of the Name field in the declarative configuration. func (b *ServerApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/serverfilter.go b/pkg/clients/applyconfiguration/api/v1alpha1/serverfilter.go index 56396112..51029550 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/serverfilter.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/serverfilter.go @@ -19,13 +19,13 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // ServerFilterApplyConfiguration represents a declarative configuration of the ServerFilter type for use // with apply. type ServerFilterApplyConfiguration struct { - Name *v1alpha1.OpenStackName `json:"name,omitempty"` + Name *apiv1alpha1.OpenStackName `json:"name,omitempty"` } // ServerFilterApplyConfiguration constructs a declarative configuration of the ServerFilter type for use with @@ -37,7 +37,7 @@ func ServerFilter() *ServerFilterApplyConfiguration { // 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 *ServerFilterApplyConfiguration) WithName(value v1alpha1.OpenStackName) *ServerFilterApplyConfiguration { +func (b *ServerFilterApplyConfiguration) WithName(value apiv1alpha1.OpenStackName) *ServerFilterApplyConfiguration { b.Name = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/serverportspec.go b/pkg/clients/applyconfiguration/api/v1alpha1/serverportspec.go index 010f23e0..0cd15a19 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/serverportspec.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/serverportspec.go @@ -19,13 +19,13 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // ServerPortSpecApplyConfiguration represents a declarative configuration of the ServerPortSpec type for use // with apply. type ServerPortSpecApplyConfiguration struct { - PortRef *v1alpha1.KubernetesNameRef `json:"portRef,omitempty"` + PortRef *apiv1alpha1.KubernetesNameRef `json:"portRef,omitempty"` } // ServerPortSpecApplyConfiguration constructs a declarative configuration of the ServerPortSpec type for use with @@ -37,7 +37,7 @@ func ServerPortSpec() *ServerPortSpecApplyConfiguration { // WithPortRef sets the PortRef 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 PortRef field is set to the value of the last call. -func (b *ServerPortSpecApplyConfiguration) WithPortRef(value v1alpha1.KubernetesNameRef) *ServerPortSpecApplyConfiguration { +func (b *ServerPortSpecApplyConfiguration) WithPortRef(value apiv1alpha1.KubernetesNameRef) *ServerPortSpecApplyConfiguration { b.PortRef = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/serverresourcespec.go b/pkg/clients/applyconfiguration/api/v1alpha1/serverresourcespec.go index 5c3c4b0f..846ee74d 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/serverresourcespec.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/serverresourcespec.go @@ -19,15 +19,15 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // ServerResourceSpecApplyConfiguration represents a declarative configuration of the ServerResourceSpec type for use // with apply. type ServerResourceSpecApplyConfiguration struct { - Name *v1alpha1.OpenStackName `json:"name,omitempty"` - ImageRef *v1alpha1.KubernetesNameRef `json:"imageRef,omitempty"` - FlavorRef *v1alpha1.KubernetesNameRef `json:"flavorRef,omitempty"` + Name *apiv1alpha1.OpenStackName `json:"name,omitempty"` + ImageRef *apiv1alpha1.KubernetesNameRef `json:"imageRef,omitempty"` + FlavorRef *apiv1alpha1.KubernetesNameRef `json:"flavorRef,omitempty"` UserData *UserDataSpecApplyConfiguration `json:"userData,omitempty"` Ports []ServerPortSpecApplyConfiguration `json:"ports,omitempty"` } @@ -41,7 +41,7 @@ func ServerResourceSpec() *ServerResourceSpecApplyConfiguration { // 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 *ServerResourceSpecApplyConfiguration) WithName(value v1alpha1.OpenStackName) *ServerResourceSpecApplyConfiguration { +func (b *ServerResourceSpecApplyConfiguration) WithName(value apiv1alpha1.OpenStackName) *ServerResourceSpecApplyConfiguration { b.Name = &value return b } @@ -49,7 +49,7 @@ func (b *ServerResourceSpecApplyConfiguration) WithName(value v1alpha1.OpenStack // WithImageRef sets the ImageRef 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 ImageRef field is set to the value of the last call. -func (b *ServerResourceSpecApplyConfiguration) WithImageRef(value v1alpha1.KubernetesNameRef) *ServerResourceSpecApplyConfiguration { +func (b *ServerResourceSpecApplyConfiguration) WithImageRef(value apiv1alpha1.KubernetesNameRef) *ServerResourceSpecApplyConfiguration { b.ImageRef = &value return b } @@ -57,7 +57,7 @@ func (b *ServerResourceSpecApplyConfiguration) WithImageRef(value v1alpha1.Kuber // WithFlavorRef sets the FlavorRef 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 FlavorRef field is set to the value of the last call. -func (b *ServerResourceSpecApplyConfiguration) WithFlavorRef(value v1alpha1.KubernetesNameRef) *ServerResourceSpecApplyConfiguration { +func (b *ServerResourceSpecApplyConfiguration) WithFlavorRef(value apiv1alpha1.KubernetesNameRef) *ServerResourceSpecApplyConfiguration { b.FlavorRef = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/subnet.go b/pkg/clients/applyconfiguration/api/v1alpha1/subnet.go index fec9b808..0d240526 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/subnet.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/subnet.go @@ -87,7 +87,7 @@ func extractSubnet(subnet *apiv1alpha1.Subnet, fieldManager string, subresource // 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 *SubnetApplyConfiguration) WithKind(value string) *SubnetApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -95,7 +95,7 @@ func (b *SubnetApplyConfiguration) WithKind(value string) *SubnetApplyConfigurat // 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 *SubnetApplyConfiguration) WithAPIVersion(value string) *SubnetApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -104,7 +104,7 @@ func (b *SubnetApplyConfiguration) WithAPIVersion(value string) *SubnetApplyConf // If called multiple times, the Name field is set to the value of the last call. func (b *SubnetApplyConfiguration) WithName(value string) *SubnetApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -113,7 +113,7 @@ func (b *SubnetApplyConfiguration) WithName(value string) *SubnetApplyConfigurat // If called multiple times, the GenerateName field is set to the value of the last call. func (b *SubnetApplyConfiguration) WithGenerateName(value string) *SubnetApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -122,7 +122,7 @@ func (b *SubnetApplyConfiguration) WithGenerateName(value string) *SubnetApplyCo // If called multiple times, the Namespace field is set to the value of the last call. func (b *SubnetApplyConfiguration) WithNamespace(value string) *SubnetApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -131,7 +131,7 @@ func (b *SubnetApplyConfiguration) WithNamespace(value string) *SubnetApplyConfi // If called multiple times, the UID field is set to the value of the last call. func (b *SubnetApplyConfiguration) WithUID(value types.UID) *SubnetApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -140,7 +140,7 @@ func (b *SubnetApplyConfiguration) WithUID(value types.UID) *SubnetApplyConfigur // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *SubnetApplyConfiguration) WithResourceVersion(value string) *SubnetApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -149,7 +149,7 @@ func (b *SubnetApplyConfiguration) WithResourceVersion(value string) *SubnetAppl // If called multiple times, the Generation field is set to the value of the last call. func (b *SubnetApplyConfiguration) WithGeneration(value int64) *SubnetApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } @@ -158,7 +158,7 @@ func (b *SubnetApplyConfiguration) WithGeneration(value int64) *SubnetApplyConfi // If called multiple times, the CreationTimestamp field is set to the value of the last call. func (b *SubnetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *SubnetApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } @@ -167,7 +167,7 @@ func (b *SubnetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *Sub // If called multiple times, the DeletionTimestamp field is set to the value of the last call. func (b *SubnetApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *SubnetApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -176,7 +176,7 @@ func (b *SubnetApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Sub // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *SubnetApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *SubnetApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -186,11 +186,11 @@ func (b *SubnetApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) * // overwriting an existing map entries in Labels field with the same key. func (b *SubnetApplyConfiguration) WithLabels(entries map[string]string) *SubnetApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Labels == nil && len(entries) > 0 { - b.Labels = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries)) } for k, v := range entries { - b.Labels[k] = v + b.ObjectMetaApplyConfiguration.Labels[k] = v } return b } @@ -201,11 +201,11 @@ func (b *SubnetApplyConfiguration) WithLabels(entries map[string]string) *Subnet // overwriting an existing map entries in Annotations field with the same key. func (b *SubnetApplyConfiguration) WithAnnotations(entries map[string]string) *SubnetApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - if b.Annotations == nil && len(entries) > 0 { - b.Annotations = make(map[string]string, len(entries)) + if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 { + b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries)) } for k, v := range entries { - b.Annotations[k] = v + b.ObjectMetaApplyConfiguration.Annotations[k] = v } return b } @@ -219,7 +219,7 @@ func (b *SubnetApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefere if values[i] == nil { panic("nil value passed to WithOwnerReferences") } - b.OwnerReferences = append(b.OwnerReferences, *values[i]) + b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i]) } return b } @@ -230,7 +230,7 @@ func (b *SubnetApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefere func (b *SubnetApplyConfiguration) WithFinalizers(values ...string) *SubnetApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } @@ -260,5 +260,5 @@ func (b *SubnetApplyConfiguration) WithStatus(value *SubnetStatusApplyConfigurat // GetName retrieves the value of the Name field in the declarative configuration. func (b *SubnetApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/subnetfilter.go b/pkg/clients/applyconfiguration/api/v1alpha1/subnetfilter.go index 9850cc95..6eb57d61 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/subnetfilter.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/subnetfilter.go @@ -19,18 +19,18 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // SubnetFilterApplyConfiguration represents a declarative configuration of the SubnetFilter type for use // with apply. type SubnetFilterApplyConfiguration struct { - Name *v1alpha1.OpenStackName `json:"name,omitempty"` - Description *v1alpha1.NeutronDescription `json:"description,omitempty"` - IPVersion *v1alpha1.IPVersion `json:"ipVersion,omitempty"` - GatewayIP *v1alpha1.IPvAny `json:"gatewayIP,omitempty"` - CIDR *v1alpha1.CIDR `json:"cidr,omitempty"` - IPv6 *IPv6OptionsApplyConfiguration `json:"ipv6,omitempty"` + Name *apiv1alpha1.OpenStackName `json:"name,omitempty"` + Description *apiv1alpha1.NeutronDescription `json:"description,omitempty"` + IPVersion *apiv1alpha1.IPVersion `json:"ipVersion,omitempty"` + GatewayIP *apiv1alpha1.IPvAny `json:"gatewayIP,omitempty"` + CIDR *apiv1alpha1.CIDR `json:"cidr,omitempty"` + IPv6 *IPv6OptionsApplyConfiguration `json:"ipv6,omitempty"` FilterByNeutronTagsApplyConfiguration `json:",inline"` } @@ -43,7 +43,7 @@ func SubnetFilter() *SubnetFilterApplyConfiguration { // 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 *SubnetFilterApplyConfiguration) WithName(value v1alpha1.OpenStackName) *SubnetFilterApplyConfiguration { +func (b *SubnetFilterApplyConfiguration) WithName(value apiv1alpha1.OpenStackName) *SubnetFilterApplyConfiguration { b.Name = &value return b } @@ -51,7 +51,7 @@ func (b *SubnetFilterApplyConfiguration) WithName(value v1alpha1.OpenStackName) // WithDescription sets the Description 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 Description field is set to the value of the last call. -func (b *SubnetFilterApplyConfiguration) WithDescription(value v1alpha1.NeutronDescription) *SubnetFilterApplyConfiguration { +func (b *SubnetFilterApplyConfiguration) WithDescription(value apiv1alpha1.NeutronDescription) *SubnetFilterApplyConfiguration { b.Description = &value return b } @@ -59,7 +59,7 @@ func (b *SubnetFilterApplyConfiguration) WithDescription(value v1alpha1.NeutronD // WithIPVersion sets the IPVersion 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 IPVersion field is set to the value of the last call. -func (b *SubnetFilterApplyConfiguration) WithIPVersion(value v1alpha1.IPVersion) *SubnetFilterApplyConfiguration { +func (b *SubnetFilterApplyConfiguration) WithIPVersion(value apiv1alpha1.IPVersion) *SubnetFilterApplyConfiguration { b.IPVersion = &value return b } @@ -67,7 +67,7 @@ func (b *SubnetFilterApplyConfiguration) WithIPVersion(value v1alpha1.IPVersion) // WithGatewayIP sets the GatewayIP 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 GatewayIP field is set to the value of the last call. -func (b *SubnetFilterApplyConfiguration) WithGatewayIP(value v1alpha1.IPvAny) *SubnetFilterApplyConfiguration { +func (b *SubnetFilterApplyConfiguration) WithGatewayIP(value apiv1alpha1.IPvAny) *SubnetFilterApplyConfiguration { b.GatewayIP = &value return b } @@ -75,7 +75,7 @@ func (b *SubnetFilterApplyConfiguration) WithGatewayIP(value v1alpha1.IPvAny) *S // WithCIDR sets the CIDR 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 CIDR field is set to the value of the last call. -func (b *SubnetFilterApplyConfiguration) WithCIDR(value v1alpha1.CIDR) *SubnetFilterApplyConfiguration { +func (b *SubnetFilterApplyConfiguration) WithCIDR(value apiv1alpha1.CIDR) *SubnetFilterApplyConfiguration { b.CIDR = &value return b } @@ -91,9 +91,9 @@ func (b *SubnetFilterApplyConfiguration) WithIPv6(value *IPv6OptionsApplyConfigu // WithTags adds the given value to the Tags 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 Tags field. -func (b *SubnetFilterApplyConfiguration) WithTags(values ...v1alpha1.NeutronTag) *SubnetFilterApplyConfiguration { +func (b *SubnetFilterApplyConfiguration) WithTags(values ...apiv1alpha1.NeutronTag) *SubnetFilterApplyConfiguration { for i := range values { - b.Tags = append(b.Tags, values[i]) + b.FilterByNeutronTagsApplyConfiguration.Tags = append(b.FilterByNeutronTagsApplyConfiguration.Tags, values[i]) } return b } @@ -101,9 +101,9 @@ func (b *SubnetFilterApplyConfiguration) WithTags(values ...v1alpha1.NeutronTag) // WithTagsAny adds the given value to the TagsAny 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 TagsAny field. -func (b *SubnetFilterApplyConfiguration) WithTagsAny(values ...v1alpha1.NeutronTag) *SubnetFilterApplyConfiguration { +func (b *SubnetFilterApplyConfiguration) WithTagsAny(values ...apiv1alpha1.NeutronTag) *SubnetFilterApplyConfiguration { for i := range values { - b.TagsAny = append(b.TagsAny, values[i]) + b.FilterByNeutronTagsApplyConfiguration.TagsAny = append(b.FilterByNeutronTagsApplyConfiguration.TagsAny, values[i]) } return b } @@ -111,9 +111,9 @@ func (b *SubnetFilterApplyConfiguration) WithTagsAny(values ...v1alpha1.NeutronT // WithNotTags adds the given value to the NotTags 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 NotTags field. -func (b *SubnetFilterApplyConfiguration) WithNotTags(values ...v1alpha1.NeutronTag) *SubnetFilterApplyConfiguration { +func (b *SubnetFilterApplyConfiguration) WithNotTags(values ...apiv1alpha1.NeutronTag) *SubnetFilterApplyConfiguration { for i := range values { - b.NotTags = append(b.NotTags, values[i]) + b.FilterByNeutronTagsApplyConfiguration.NotTags = append(b.FilterByNeutronTagsApplyConfiguration.NotTags, values[i]) } return b } @@ -121,9 +121,9 @@ func (b *SubnetFilterApplyConfiguration) WithNotTags(values ...v1alpha1.NeutronT // WithNotTagsAny adds the given value to the NotTagsAny 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 NotTagsAny field. -func (b *SubnetFilterApplyConfiguration) WithNotTagsAny(values ...v1alpha1.NeutronTag) *SubnetFilterApplyConfiguration { +func (b *SubnetFilterApplyConfiguration) WithNotTagsAny(values ...apiv1alpha1.NeutronTag) *SubnetFilterApplyConfiguration { for i := range values { - b.NotTagsAny = append(b.NotTagsAny, values[i]) + b.FilterByNeutronTagsApplyConfiguration.NotTagsAny = append(b.FilterByNeutronTagsApplyConfiguration.NotTagsAny, values[i]) } return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/subnetgateway.go b/pkg/clients/applyconfiguration/api/v1alpha1/subnetgateway.go index 7644920c..3e48ed36 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/subnetgateway.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/subnetgateway.go @@ -19,14 +19,14 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // SubnetGatewayApplyConfiguration represents a declarative configuration of the SubnetGateway type for use // with apply. type SubnetGatewayApplyConfiguration struct { - Type *v1alpha1.SubnetGatewayType `json:"type,omitempty"` - IP *v1alpha1.IPvAny `json:"ip,omitempty"` + Type *apiv1alpha1.SubnetGatewayType `json:"type,omitempty"` + IP *apiv1alpha1.IPvAny `json:"ip,omitempty"` } // SubnetGatewayApplyConfiguration constructs a declarative configuration of the SubnetGateway type for use with @@ -38,7 +38,7 @@ func SubnetGateway() *SubnetGatewayApplyConfiguration { // WithType sets the Type 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 Type field is set to the value of the last call. -func (b *SubnetGatewayApplyConfiguration) WithType(value v1alpha1.SubnetGatewayType) *SubnetGatewayApplyConfiguration { +func (b *SubnetGatewayApplyConfiguration) WithType(value apiv1alpha1.SubnetGatewayType) *SubnetGatewayApplyConfiguration { b.Type = &value return b } @@ -46,7 +46,7 @@ func (b *SubnetGatewayApplyConfiguration) WithType(value v1alpha1.SubnetGatewayT // WithIP sets the IP 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 IP field is set to the value of the last call. -func (b *SubnetGatewayApplyConfiguration) WithIP(value v1alpha1.IPvAny) *SubnetGatewayApplyConfiguration { +func (b *SubnetGatewayApplyConfiguration) WithIP(value apiv1alpha1.IPvAny) *SubnetGatewayApplyConfiguration { b.IP = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/subnetrefs.go b/pkg/clients/applyconfiguration/api/v1alpha1/subnetrefs.go index 1163dabf..f7036924 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/subnetrefs.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/subnetrefs.go @@ -19,13 +19,13 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // SubnetRefsApplyConfiguration represents a declarative configuration of the SubnetRefs type for use // with apply. type SubnetRefsApplyConfiguration struct { - NetworkRef *v1alpha1.KubernetesNameRef `json:"networkRef,omitempty"` + NetworkRef *apiv1alpha1.KubernetesNameRef `json:"networkRef,omitempty"` } // SubnetRefsApplyConfiguration constructs a declarative configuration of the SubnetRefs type for use with @@ -37,7 +37,7 @@ func SubnetRefs() *SubnetRefsApplyConfiguration { // 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 *SubnetRefsApplyConfiguration) WithNetworkRef(value v1alpha1.KubernetesNameRef) *SubnetRefsApplyConfiguration { +func (b *SubnetRefsApplyConfiguration) WithNetworkRef(value apiv1alpha1.KubernetesNameRef) *SubnetRefsApplyConfiguration { b.NetworkRef = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/subnetresourcespec.go b/pkg/clients/applyconfiguration/api/v1alpha1/subnetresourcespec.go index bc7faf27..ad373851 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/subnetresourcespec.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/subnetresourcespec.go @@ -19,25 +19,25 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // SubnetResourceSpecApplyConfiguration represents a declarative configuration of the SubnetResourceSpec type for use // with apply. type SubnetResourceSpecApplyConfiguration struct { - Name *v1alpha1.OpenStackName `json:"name,omitempty"` - Description *v1alpha1.NeutronDescription `json:"description,omitempty"` - Tags []v1alpha1.NeutronTag `json:"tags,omitempty"` - IPVersion *v1alpha1.IPVersion `json:"ipVersion,omitempty"` - CIDR *v1alpha1.CIDR `json:"cidr,omitempty"` + Name *apiv1alpha1.OpenStackName `json:"name,omitempty"` + Description *apiv1alpha1.NeutronDescription `json:"description,omitempty"` + Tags []apiv1alpha1.NeutronTag `json:"tags,omitempty"` + IPVersion *apiv1alpha1.IPVersion `json:"ipVersion,omitempty"` + CIDR *apiv1alpha1.CIDR `json:"cidr,omitempty"` AllocationPools []AllocationPoolApplyConfiguration `json:"allocationPools,omitempty"` Gateway *SubnetGatewayApplyConfiguration `json:"gateway,omitempty"` EnableDHCP *bool `json:"enableDHCP,omitempty"` - DNSNameservers []v1alpha1.IPvAny `json:"dnsNameservers,omitempty"` + DNSNameservers []apiv1alpha1.IPvAny `json:"dnsNameservers,omitempty"` DNSPublishFixedIP *bool `json:"dnsPublishFixedIP,omitempty"` HostRoutes []HostRouteApplyConfiguration `json:"hostRoutes,omitempty"` IPv6 *IPv6OptionsApplyConfiguration `json:"ipv6,omitempty"` - RouterRef *v1alpha1.KubernetesNameRef `json:"routerRef,omitempty"` + RouterRef *apiv1alpha1.KubernetesNameRef `json:"routerRef,omitempty"` } // SubnetResourceSpecApplyConfiguration constructs a declarative configuration of the SubnetResourceSpec type for use with @@ -49,7 +49,7 @@ func SubnetResourceSpec() *SubnetResourceSpecApplyConfiguration { // 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 *SubnetResourceSpecApplyConfiguration) WithName(value v1alpha1.OpenStackName) *SubnetResourceSpecApplyConfiguration { +func (b *SubnetResourceSpecApplyConfiguration) WithName(value apiv1alpha1.OpenStackName) *SubnetResourceSpecApplyConfiguration { b.Name = &value return b } @@ -57,7 +57,7 @@ func (b *SubnetResourceSpecApplyConfiguration) WithName(value v1alpha1.OpenStack // WithDescription sets the Description 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 Description field is set to the value of the last call. -func (b *SubnetResourceSpecApplyConfiguration) WithDescription(value v1alpha1.NeutronDescription) *SubnetResourceSpecApplyConfiguration { +func (b *SubnetResourceSpecApplyConfiguration) WithDescription(value apiv1alpha1.NeutronDescription) *SubnetResourceSpecApplyConfiguration { b.Description = &value return b } @@ -65,7 +65,7 @@ func (b *SubnetResourceSpecApplyConfiguration) WithDescription(value v1alpha1.Ne // WithTags adds the given value to the Tags 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 Tags field. -func (b *SubnetResourceSpecApplyConfiguration) WithTags(values ...v1alpha1.NeutronTag) *SubnetResourceSpecApplyConfiguration { +func (b *SubnetResourceSpecApplyConfiguration) WithTags(values ...apiv1alpha1.NeutronTag) *SubnetResourceSpecApplyConfiguration { for i := range values { b.Tags = append(b.Tags, values[i]) } @@ -75,7 +75,7 @@ func (b *SubnetResourceSpecApplyConfiguration) WithTags(values ...v1alpha1.Neutr // WithIPVersion sets the IPVersion 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 IPVersion field is set to the value of the last call. -func (b *SubnetResourceSpecApplyConfiguration) WithIPVersion(value v1alpha1.IPVersion) *SubnetResourceSpecApplyConfiguration { +func (b *SubnetResourceSpecApplyConfiguration) WithIPVersion(value apiv1alpha1.IPVersion) *SubnetResourceSpecApplyConfiguration { b.IPVersion = &value return b } @@ -83,7 +83,7 @@ func (b *SubnetResourceSpecApplyConfiguration) WithIPVersion(value v1alpha1.IPVe // WithCIDR sets the CIDR 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 CIDR field is set to the value of the last call. -func (b *SubnetResourceSpecApplyConfiguration) WithCIDR(value v1alpha1.CIDR) *SubnetResourceSpecApplyConfiguration { +func (b *SubnetResourceSpecApplyConfiguration) WithCIDR(value apiv1alpha1.CIDR) *SubnetResourceSpecApplyConfiguration { b.CIDR = &value return b } @@ -120,7 +120,7 @@ func (b *SubnetResourceSpecApplyConfiguration) WithEnableDHCP(value bool) *Subne // WithDNSNameservers adds the given value to the DNSNameservers 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 DNSNameservers field. -func (b *SubnetResourceSpecApplyConfiguration) WithDNSNameservers(values ...v1alpha1.IPvAny) *SubnetResourceSpecApplyConfiguration { +func (b *SubnetResourceSpecApplyConfiguration) WithDNSNameservers(values ...apiv1alpha1.IPvAny) *SubnetResourceSpecApplyConfiguration { for i := range values { b.DNSNameservers = append(b.DNSNameservers, values[i]) } @@ -159,7 +159,7 @@ func (b *SubnetResourceSpecApplyConfiguration) WithIPv6(value *IPv6OptionsApplyC // WithRouterRef sets the RouterRef 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 RouterRef field is set to the value of the last call. -func (b *SubnetResourceSpecApplyConfiguration) WithRouterRef(value v1alpha1.KubernetesNameRef) *SubnetResourceSpecApplyConfiguration { +func (b *SubnetResourceSpecApplyConfiguration) WithRouterRef(value apiv1alpha1.KubernetesNameRef) *SubnetResourceSpecApplyConfiguration { b.RouterRef = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/subnetresourcestatus.go b/pkg/clients/applyconfiguration/api/v1alpha1/subnetresourcestatus.go index 7928896f..b5148fa0 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/subnetresourcestatus.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/subnetresourcestatus.go @@ -187,7 +187,7 @@ func (b *SubnetResourceStatusApplyConfiguration) WithTags(values ...string) *Sub // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreatedAt field is set to the value of the last call. func (b *SubnetResourceStatusApplyConfiguration) WithCreatedAt(value v1.Time) *SubnetResourceStatusApplyConfiguration { - b.CreatedAt = &value + b.NeutronStatusMetadataApplyConfiguration.CreatedAt = &value return b } @@ -195,7 +195,7 @@ func (b *SubnetResourceStatusApplyConfiguration) WithCreatedAt(value v1.Time) *S // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the UpdatedAt field is set to the value of the last call. func (b *SubnetResourceStatusApplyConfiguration) WithUpdatedAt(value v1.Time) *SubnetResourceStatusApplyConfiguration { - b.UpdatedAt = &value + b.NeutronStatusMetadataApplyConfiguration.UpdatedAt = &value return b } @@ -203,6 +203,6 @@ func (b *SubnetResourceStatusApplyConfiguration) WithUpdatedAt(value v1.Time) *S // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the RevisionNumber field is set to the value of the last call. func (b *SubnetResourceStatusApplyConfiguration) WithRevisionNumber(value int64) *SubnetResourceStatusApplyConfiguration { - b.RevisionNumber = &value + b.NeutronStatusMetadataApplyConfiguration.RevisionNumber = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/subnetspec.go b/pkg/clients/applyconfiguration/api/v1alpha1/subnetspec.go index bc096928..411c79ea 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/subnetspec.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/subnetspec.go @@ -43,7 +43,7 @@ func SubnetSpec() *SubnetSpecApplyConfiguration { // 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 *SubnetSpecApplyConfiguration) WithNetworkRef(value apiv1alpha1.KubernetesNameRef) *SubnetSpecApplyConfiguration { - b.NetworkRef = &value + b.SubnetRefsApplyConfiguration.NetworkRef = &value return b } diff --git a/pkg/clients/applyconfiguration/api/v1alpha1/userdataspec.go b/pkg/clients/applyconfiguration/api/v1alpha1/userdataspec.go index 98bf8ef7..bbc8d09f 100644 --- a/pkg/clients/applyconfiguration/api/v1alpha1/userdataspec.go +++ b/pkg/clients/applyconfiguration/api/v1alpha1/userdataspec.go @@ -19,13 +19,13 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" ) // UserDataSpecApplyConfiguration represents a declarative configuration of the UserDataSpec type for use // with apply. type UserDataSpecApplyConfiguration struct { - SecretRef *v1alpha1.KubernetesNameRef `json:"secretRef,omitempty"` + SecretRef *apiv1alpha1.KubernetesNameRef `json:"secretRef,omitempty"` } // UserDataSpecApplyConfiguration constructs a declarative configuration of the UserDataSpec type for use with @@ -37,7 +37,7 @@ func UserDataSpec() *UserDataSpecApplyConfiguration { // WithSecretRef sets the SecretRef 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 SecretRef field is set to the value of the last call. -func (b *UserDataSpecApplyConfiguration) WithSecretRef(value v1alpha1.KubernetesNameRef) *UserDataSpecApplyConfiguration { +func (b *UserDataSpecApplyConfiguration) WithSecretRef(value apiv1alpha1.KubernetesNameRef) *UserDataSpecApplyConfiguration { b.SecretRef = &value return b } diff --git a/pkg/clients/applyconfiguration/internal/internal.go b/pkg/clients/applyconfiguration/internal/internal.go index 358509ee..015644b1 100644 --- a/pkg/clients/applyconfiguration/internal/internal.go +++ b/pkg/clients/applyconfiguration/internal/internal.go @@ -19,8 +19,8 @@ limitations under the License. package internal import ( - "fmt" - "sync" + fmt "fmt" + sync "sync" typed "sigs.k8s.io/structured-merge-diff/v4/typed" ) diff --git a/pkg/clients/clientset/clientset/clientset.go b/pkg/clients/clientset/clientset/clientset.go index 49479e05..8bdea8d2 100644 --- a/pkg/clients/clientset/clientset/clientset.go +++ b/pkg/clients/clientset/clientset/clientset.go @@ -19,8 +19,8 @@ limitations under the License. package clientset import ( - "fmt" - "net/http" + fmt "fmt" + http "net/http" openstackv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/typed/api/v1alpha1" discovery "k8s.io/client-go/discovery" diff --git a/pkg/clients/clientset/clientset/typed/api/v1alpha1/api_client.go b/pkg/clients/clientset/clientset/typed/api/v1alpha1/api_client.go index c0bac2fe..bfb9e940 100644 --- a/pkg/clients/clientset/clientset/typed/api/v1alpha1/api_client.go +++ b/pkg/clients/clientset/clientset/typed/api/v1alpha1/api_client.go @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - "net/http" + http "net/http" - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" - "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/scheme" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + scheme "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/scheme" rest "k8s.io/client-go/rest" ) @@ -125,10 +125,10 @@ func New(c rest.Interface) *OpenstackV1alpha1Client { } func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion + gv := apiv1alpha1.SchemeGroupVersion config.GroupVersion = &gv config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() + config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion() if config.UserAgent == "" { config.UserAgent = rest.DefaultKubernetesUserAgent() diff --git a/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_api_client.go b/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_api_client.go index 6cf8893c..70d8de32 100644 --- a/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_api_client.go +++ b/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_api_client.go @@ -29,39 +29,39 @@ type FakeOpenstackV1alpha1 struct { } func (c *FakeOpenstackV1alpha1) Flavors(namespace string) v1alpha1.FlavorInterface { - return &FakeFlavors{c, namespace} + return newFakeFlavors(c, namespace) } func (c *FakeOpenstackV1alpha1) Images(namespace string) v1alpha1.ImageInterface { - return &FakeImages{c, namespace} + return newFakeImages(c, namespace) } func (c *FakeOpenstackV1alpha1) Networks(namespace string) v1alpha1.NetworkInterface { - return &FakeNetworks{c, namespace} + return newFakeNetworks(c, namespace) } func (c *FakeOpenstackV1alpha1) Ports(namespace string) v1alpha1.PortInterface { - return &FakePorts{c, namespace} + return newFakePorts(c, namespace) } func (c *FakeOpenstackV1alpha1) Routers(namespace string) v1alpha1.RouterInterface { - return &FakeRouters{c, namespace} + return newFakeRouters(c, namespace) } func (c *FakeOpenstackV1alpha1) RouterInterfaces(namespace string) v1alpha1.RouterInterfaceInterface { - return &FakeRouterInterfaces{c, namespace} + return newFakeRouterInterfaces(c, namespace) } func (c *FakeOpenstackV1alpha1) SecurityGroups(namespace string) v1alpha1.SecurityGroupInterface { - return &FakeSecurityGroups{c, namespace} + return newFakeSecurityGroups(c, namespace) } func (c *FakeOpenstackV1alpha1) Servers(namespace string) v1alpha1.ServerInterface { - return &FakeServers{c, namespace} + return newFakeServers(c, namespace) } func (c *FakeOpenstackV1alpha1) Subnets(namespace string) v1alpha1.SubnetInterface { - return &FakeSubnets{c, namespace} + return newFakeSubnets(c, namespace) } // RESTClient returns a RESTClient that is used to communicate diff --git a/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_flavor.go b/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_flavor.go index 4e08a73d..3f4aea58 100644 --- a/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_flavor.go +++ b/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_flavor.go @@ -19,179 +19,33 @@ limitations under the License. package fake import ( - "context" - json "encoding/json" - "fmt" - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + typedapiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/typed/api/v1alpha1" + gentype "k8s.io/client-go/gentype" ) -// FakeFlavors implements FlavorInterface -type FakeFlavors struct { +// fakeFlavors implements FlavorInterface +type fakeFlavors struct { + *gentype.FakeClientWithListAndApply[*v1alpha1.Flavor, *v1alpha1.FlavorList, *apiv1alpha1.FlavorApplyConfiguration] Fake *FakeOpenstackV1alpha1 - ns string -} - -var flavorsResource = v1alpha1.SchemeGroupVersion.WithResource("flavors") - -var flavorsKind = v1alpha1.SchemeGroupVersion.WithKind("Flavor") - -// Get takes name of the flavor, and returns the corresponding flavor object, and an error if there is any. -func (c *FakeFlavors) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Flavor, err error) { - emptyResult := &v1alpha1.Flavor{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(flavorsResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Flavor), err -} - -// List takes label and field selectors, and returns the list of Flavors that match those selectors. -func (c *FakeFlavors) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.FlavorList, err error) { - emptyResult := &v1alpha1.FlavorList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(flavorsResource, flavorsKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.FlavorList{ListMeta: obj.(*v1alpha1.FlavorList).ListMeta} - for _, item := range obj.(*v1alpha1.FlavorList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested flavors. -func (c *FakeFlavors) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(flavorsResource, c.ns, opts)) - -} - -// Create takes the representation of a flavor and creates it. Returns the server's representation of the flavor, and an error, if there is any. -func (c *FakeFlavors) Create(ctx context.Context, flavor *v1alpha1.Flavor, opts v1.CreateOptions) (result *v1alpha1.Flavor, err error) { - emptyResult := &v1alpha1.Flavor{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(flavorsResource, c.ns, flavor, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Flavor), err -} - -// Update takes the representation of a flavor and updates it. Returns the server's representation of the flavor, and an error, if there is any. -func (c *FakeFlavors) Update(ctx context.Context, flavor *v1alpha1.Flavor, opts v1.UpdateOptions) (result *v1alpha1.Flavor, err error) { - emptyResult := &v1alpha1.Flavor{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(flavorsResource, c.ns, flavor, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Flavor), err } -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeFlavors) UpdateStatus(ctx context.Context, flavor *v1alpha1.Flavor, opts v1.UpdateOptions) (result *v1alpha1.Flavor, err error) { - emptyResult := &v1alpha1.Flavor{} - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(flavorsResource, "status", c.ns, flavor, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Flavor), err -} - -// Delete takes name of the flavor and deletes it. Returns an error if one occurs. -func (c *FakeFlavors) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(flavorsResource, c.ns, name, opts), &v1alpha1.Flavor{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeFlavors) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(flavorsResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.FlavorList{}) - return err -} - -// Patch applies the patch and returns the patched flavor. -func (c *FakeFlavors) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Flavor, err error) { - emptyResult := &v1alpha1.Flavor{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(flavorsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Flavor), err -} - -// Apply takes the given apply declarative configuration, applies it and returns the applied flavor. -func (c *FakeFlavors) Apply(ctx context.Context, flavor *apiv1alpha1.FlavorApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Flavor, err error) { - if flavor == nil { - return nil, fmt.Errorf("flavor provided to Apply must not be nil") - } - data, err := json.Marshal(flavor) - if err != nil { - return nil, err - } - name := flavor.Name - if name == nil { - return nil, fmt.Errorf("flavor.Name must be provided to Apply") - } - emptyResult := &v1alpha1.Flavor{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(flavorsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Flavor), err -} - -// ApplyStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). -func (c *FakeFlavors) ApplyStatus(ctx context.Context, flavor *apiv1alpha1.FlavorApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Flavor, err error) { - if flavor == nil { - return nil, fmt.Errorf("flavor provided to Apply must not be nil") - } - data, err := json.Marshal(flavor) - if err != nil { - return nil, err - } - name := flavor.Name - if name == nil { - return nil, fmt.Errorf("flavor.Name must be provided to Apply") - } - emptyResult := &v1alpha1.Flavor{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(flavorsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeFlavors(fake *FakeOpenstackV1alpha1, namespace string) typedapiv1alpha1.FlavorInterface { + return &fakeFlavors{ + gentype.NewFakeClientWithListAndApply[*v1alpha1.Flavor, *v1alpha1.FlavorList, *apiv1alpha1.FlavorApplyConfiguration]( + fake.Fake, + namespace, + v1alpha1.SchemeGroupVersion.WithResource("flavors"), + v1alpha1.SchemeGroupVersion.WithKind("Flavor"), + func() *v1alpha1.Flavor { return &v1alpha1.Flavor{} }, + func() *v1alpha1.FlavorList { return &v1alpha1.FlavorList{} }, + func(dst, src *v1alpha1.FlavorList) { dst.ListMeta = src.ListMeta }, + func(list *v1alpha1.FlavorList) []*v1alpha1.Flavor { return gentype.ToPointerSlice(list.Items) }, + func(list *v1alpha1.FlavorList, items []*v1alpha1.Flavor) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1alpha1.Flavor), err } diff --git a/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_image.go b/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_image.go index 9b9a7795..b2eec9d2 100644 --- a/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_image.go +++ b/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_image.go @@ -19,179 +19,31 @@ limitations under the License. package fake import ( - "context" - json "encoding/json" - "fmt" - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + typedapiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/typed/api/v1alpha1" + gentype "k8s.io/client-go/gentype" ) -// FakeImages implements ImageInterface -type FakeImages struct { +// fakeImages implements ImageInterface +type fakeImages struct { + *gentype.FakeClientWithListAndApply[*v1alpha1.Image, *v1alpha1.ImageList, *apiv1alpha1.ImageApplyConfiguration] Fake *FakeOpenstackV1alpha1 - ns string -} - -var imagesResource = v1alpha1.SchemeGroupVersion.WithResource("images") - -var imagesKind = v1alpha1.SchemeGroupVersion.WithKind("Image") - -// Get takes name of the image, and returns the corresponding image object, and an error if there is any. -func (c *FakeImages) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Image, err error) { - emptyResult := &v1alpha1.Image{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(imagesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Image), err -} - -// List takes label and field selectors, and returns the list of Images that match those selectors. -func (c *FakeImages) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ImageList, err error) { - emptyResult := &v1alpha1.ImageList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(imagesResource, imagesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.ImageList{ListMeta: obj.(*v1alpha1.ImageList).ListMeta} - for _, item := range obj.(*v1alpha1.ImageList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested images. -func (c *FakeImages) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(imagesResource, c.ns, opts)) - -} - -// Create takes the representation of a image and creates it. Returns the server's representation of the image, and an error, if there is any. -func (c *FakeImages) Create(ctx context.Context, image *v1alpha1.Image, opts v1.CreateOptions) (result *v1alpha1.Image, err error) { - emptyResult := &v1alpha1.Image{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(imagesResource, c.ns, image, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Image), err -} - -// Update takes the representation of a image and updates it. Returns the server's representation of the image, and an error, if there is any. -func (c *FakeImages) Update(ctx context.Context, image *v1alpha1.Image, opts v1.UpdateOptions) (result *v1alpha1.Image, err error) { - emptyResult := &v1alpha1.Image{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(imagesResource, c.ns, image, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Image), err } -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeImages) UpdateStatus(ctx context.Context, image *v1alpha1.Image, opts v1.UpdateOptions) (result *v1alpha1.Image, err error) { - emptyResult := &v1alpha1.Image{} - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(imagesResource, "status", c.ns, image, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Image), err -} - -// Delete takes name of the image and deletes it. Returns an error if one occurs. -func (c *FakeImages) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(imagesResource, c.ns, name, opts), &v1alpha1.Image{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeImages) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(imagesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.ImageList{}) - return err -} - -// Patch applies the patch and returns the patched image. -func (c *FakeImages) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Image, err error) { - emptyResult := &v1alpha1.Image{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(imagesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Image), err -} - -// Apply takes the given apply declarative configuration, applies it and returns the applied image. -func (c *FakeImages) Apply(ctx context.Context, image *apiv1alpha1.ImageApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Image, err error) { - if image == nil { - return nil, fmt.Errorf("image provided to Apply must not be nil") - } - data, err := json.Marshal(image) - if err != nil { - return nil, err - } - name := image.Name - if name == nil { - return nil, fmt.Errorf("image.Name must be provided to Apply") - } - emptyResult := &v1alpha1.Image{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(imagesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Image), err -} - -// ApplyStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). -func (c *FakeImages) ApplyStatus(ctx context.Context, image *apiv1alpha1.ImageApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Image, err error) { - if image == nil { - return nil, fmt.Errorf("image provided to Apply must not be nil") - } - data, err := json.Marshal(image) - if err != nil { - return nil, err - } - name := image.Name - if name == nil { - return nil, fmt.Errorf("image.Name must be provided to Apply") - } - emptyResult := &v1alpha1.Image{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(imagesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeImages(fake *FakeOpenstackV1alpha1, namespace string) typedapiv1alpha1.ImageInterface { + return &fakeImages{ + gentype.NewFakeClientWithListAndApply[*v1alpha1.Image, *v1alpha1.ImageList, *apiv1alpha1.ImageApplyConfiguration]( + fake.Fake, + namespace, + v1alpha1.SchemeGroupVersion.WithResource("images"), + v1alpha1.SchemeGroupVersion.WithKind("Image"), + func() *v1alpha1.Image { return &v1alpha1.Image{} }, + func() *v1alpha1.ImageList { return &v1alpha1.ImageList{} }, + func(dst, src *v1alpha1.ImageList) { dst.ListMeta = src.ListMeta }, + func(list *v1alpha1.ImageList) []*v1alpha1.Image { return gentype.ToPointerSlice(list.Items) }, + func(list *v1alpha1.ImageList, items []*v1alpha1.Image) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1alpha1.Image), err } diff --git a/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_network.go b/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_network.go index 026c17fd..438d4b16 100644 --- a/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_network.go +++ b/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_network.go @@ -19,179 +19,33 @@ limitations under the License. package fake import ( - "context" - json "encoding/json" - "fmt" - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + typedapiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/typed/api/v1alpha1" + gentype "k8s.io/client-go/gentype" ) -// FakeNetworks implements NetworkInterface -type FakeNetworks struct { +// fakeNetworks implements NetworkInterface +type fakeNetworks struct { + *gentype.FakeClientWithListAndApply[*v1alpha1.Network, *v1alpha1.NetworkList, *apiv1alpha1.NetworkApplyConfiguration] Fake *FakeOpenstackV1alpha1 - ns string -} - -var networksResource = v1alpha1.SchemeGroupVersion.WithResource("networks") - -var networksKind = v1alpha1.SchemeGroupVersion.WithKind("Network") - -// Get takes name of the network, and returns the corresponding network object, and an error if there is any. -func (c *FakeNetworks) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Network, err error) { - emptyResult := &v1alpha1.Network{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(networksResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Network), err -} - -// List takes label and field selectors, and returns the list of Networks that match those selectors. -func (c *FakeNetworks) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.NetworkList, err error) { - emptyResult := &v1alpha1.NetworkList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(networksResource, networksKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.NetworkList{ListMeta: obj.(*v1alpha1.NetworkList).ListMeta} - for _, item := range obj.(*v1alpha1.NetworkList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested networks. -func (c *FakeNetworks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(networksResource, c.ns, opts)) - -} - -// Create takes the representation of a network and creates it. Returns the server's representation of the network, and an error, if there is any. -func (c *FakeNetworks) Create(ctx context.Context, network *v1alpha1.Network, opts v1.CreateOptions) (result *v1alpha1.Network, err error) { - emptyResult := &v1alpha1.Network{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(networksResource, c.ns, network, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Network), err -} - -// Update takes the representation of a network and updates it. Returns the server's representation of the network, and an error, if there is any. -func (c *FakeNetworks) Update(ctx context.Context, network *v1alpha1.Network, opts v1.UpdateOptions) (result *v1alpha1.Network, err error) { - emptyResult := &v1alpha1.Network{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(networksResource, c.ns, network, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Network), err } -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeNetworks) UpdateStatus(ctx context.Context, network *v1alpha1.Network, opts v1.UpdateOptions) (result *v1alpha1.Network, err error) { - emptyResult := &v1alpha1.Network{} - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(networksResource, "status", c.ns, network, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Network), err -} - -// Delete takes name of the network and deletes it. Returns an error if one occurs. -func (c *FakeNetworks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(networksResource, c.ns, name, opts), &v1alpha1.Network{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeNetworks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(networksResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.NetworkList{}) - return err -} - -// Patch applies the patch and returns the patched network. -func (c *FakeNetworks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Network, err error) { - emptyResult := &v1alpha1.Network{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(networksResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Network), err -} - -// Apply takes the given apply declarative configuration, applies it and returns the applied network. -func (c *FakeNetworks) Apply(ctx context.Context, network *apiv1alpha1.NetworkApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Network, err error) { - if network == nil { - return nil, fmt.Errorf("network provided to Apply must not be nil") - } - data, err := json.Marshal(network) - if err != nil { - return nil, err - } - name := network.Name - if name == nil { - return nil, fmt.Errorf("network.Name must be provided to Apply") - } - emptyResult := &v1alpha1.Network{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(networksResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Network), err -} - -// ApplyStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). -func (c *FakeNetworks) ApplyStatus(ctx context.Context, network *apiv1alpha1.NetworkApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Network, err error) { - if network == nil { - return nil, fmt.Errorf("network provided to Apply must not be nil") - } - data, err := json.Marshal(network) - if err != nil { - return nil, err - } - name := network.Name - if name == nil { - return nil, fmt.Errorf("network.Name must be provided to Apply") - } - emptyResult := &v1alpha1.Network{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(networksResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeNetworks(fake *FakeOpenstackV1alpha1, namespace string) typedapiv1alpha1.NetworkInterface { + return &fakeNetworks{ + gentype.NewFakeClientWithListAndApply[*v1alpha1.Network, *v1alpha1.NetworkList, *apiv1alpha1.NetworkApplyConfiguration]( + fake.Fake, + namespace, + v1alpha1.SchemeGroupVersion.WithResource("networks"), + v1alpha1.SchemeGroupVersion.WithKind("Network"), + func() *v1alpha1.Network { return &v1alpha1.Network{} }, + func() *v1alpha1.NetworkList { return &v1alpha1.NetworkList{} }, + func(dst, src *v1alpha1.NetworkList) { dst.ListMeta = src.ListMeta }, + func(list *v1alpha1.NetworkList) []*v1alpha1.Network { return gentype.ToPointerSlice(list.Items) }, + func(list *v1alpha1.NetworkList, items []*v1alpha1.Network) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1alpha1.Network), err } diff --git a/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_port.go b/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_port.go index 8bf106d0..8dd6b69d 100644 --- a/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_port.go +++ b/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_port.go @@ -19,179 +19,31 @@ limitations under the License. package fake import ( - "context" - json "encoding/json" - "fmt" - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + typedapiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/typed/api/v1alpha1" + gentype "k8s.io/client-go/gentype" ) -// FakePorts implements PortInterface -type FakePorts struct { +// fakePorts implements PortInterface +type fakePorts struct { + *gentype.FakeClientWithListAndApply[*v1alpha1.Port, *v1alpha1.PortList, *apiv1alpha1.PortApplyConfiguration] Fake *FakeOpenstackV1alpha1 - ns string -} - -var portsResource = v1alpha1.SchemeGroupVersion.WithResource("ports") - -var portsKind = v1alpha1.SchemeGroupVersion.WithKind("Port") - -// Get takes name of the port, and returns the corresponding port object, and an error if there is any. -func (c *FakePorts) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Port, err error) { - emptyResult := &v1alpha1.Port{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(portsResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Port), err -} - -// List takes label and field selectors, and returns the list of Ports that match those selectors. -func (c *FakePorts) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PortList, err error) { - emptyResult := &v1alpha1.PortList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(portsResource, portsKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.PortList{ListMeta: obj.(*v1alpha1.PortList).ListMeta} - for _, item := range obj.(*v1alpha1.PortList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested ports. -func (c *FakePorts) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(portsResource, c.ns, opts)) - -} - -// Create takes the representation of a port and creates it. Returns the server's representation of the port, and an error, if there is any. -func (c *FakePorts) Create(ctx context.Context, port *v1alpha1.Port, opts v1.CreateOptions) (result *v1alpha1.Port, err error) { - emptyResult := &v1alpha1.Port{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(portsResource, c.ns, port, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Port), err -} - -// Update takes the representation of a port and updates it. Returns the server's representation of the port, and an error, if there is any. -func (c *FakePorts) Update(ctx context.Context, port *v1alpha1.Port, opts v1.UpdateOptions) (result *v1alpha1.Port, err error) { - emptyResult := &v1alpha1.Port{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(portsResource, c.ns, port, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Port), err } -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakePorts) UpdateStatus(ctx context.Context, port *v1alpha1.Port, opts v1.UpdateOptions) (result *v1alpha1.Port, err error) { - emptyResult := &v1alpha1.Port{} - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(portsResource, "status", c.ns, port, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Port), err -} - -// Delete takes name of the port and deletes it. Returns an error if one occurs. -func (c *FakePorts) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(portsResource, c.ns, name, opts), &v1alpha1.Port{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakePorts) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(portsResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.PortList{}) - return err -} - -// Patch applies the patch and returns the patched port. -func (c *FakePorts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Port, err error) { - emptyResult := &v1alpha1.Port{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(portsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Port), err -} - -// Apply takes the given apply declarative configuration, applies it and returns the applied port. -func (c *FakePorts) Apply(ctx context.Context, port *apiv1alpha1.PortApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Port, err error) { - if port == nil { - return nil, fmt.Errorf("port provided to Apply must not be nil") - } - data, err := json.Marshal(port) - if err != nil { - return nil, err - } - name := port.Name - if name == nil { - return nil, fmt.Errorf("port.Name must be provided to Apply") - } - emptyResult := &v1alpha1.Port{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(portsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Port), err -} - -// ApplyStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). -func (c *FakePorts) ApplyStatus(ctx context.Context, port *apiv1alpha1.PortApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Port, err error) { - if port == nil { - return nil, fmt.Errorf("port provided to Apply must not be nil") - } - data, err := json.Marshal(port) - if err != nil { - return nil, err - } - name := port.Name - if name == nil { - return nil, fmt.Errorf("port.Name must be provided to Apply") - } - emptyResult := &v1alpha1.Port{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(portsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakePorts(fake *FakeOpenstackV1alpha1, namespace string) typedapiv1alpha1.PortInterface { + return &fakePorts{ + gentype.NewFakeClientWithListAndApply[*v1alpha1.Port, *v1alpha1.PortList, *apiv1alpha1.PortApplyConfiguration]( + fake.Fake, + namespace, + v1alpha1.SchemeGroupVersion.WithResource("ports"), + v1alpha1.SchemeGroupVersion.WithKind("Port"), + func() *v1alpha1.Port { return &v1alpha1.Port{} }, + func() *v1alpha1.PortList { return &v1alpha1.PortList{} }, + func(dst, src *v1alpha1.PortList) { dst.ListMeta = src.ListMeta }, + func(list *v1alpha1.PortList) []*v1alpha1.Port { return gentype.ToPointerSlice(list.Items) }, + func(list *v1alpha1.PortList, items []*v1alpha1.Port) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1alpha1.Port), err } diff --git a/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_router.go b/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_router.go index c01d3b1b..d05bf0db 100644 --- a/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_router.go +++ b/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_router.go @@ -19,179 +19,33 @@ limitations under the License. package fake import ( - "context" - json "encoding/json" - "fmt" - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + typedapiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/typed/api/v1alpha1" + gentype "k8s.io/client-go/gentype" ) -// FakeRouters implements RouterInterface -type FakeRouters struct { +// fakeRouters implements RouterInterface +type fakeRouters struct { + *gentype.FakeClientWithListAndApply[*v1alpha1.Router, *v1alpha1.RouterList, *apiv1alpha1.RouterApplyConfiguration] Fake *FakeOpenstackV1alpha1 - ns string -} - -var routersResource = v1alpha1.SchemeGroupVersion.WithResource("routers") - -var routersKind = v1alpha1.SchemeGroupVersion.WithKind("Router") - -// Get takes name of the router, and returns the corresponding router object, and an error if there is any. -func (c *FakeRouters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Router, err error) { - emptyResult := &v1alpha1.Router{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(routersResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Router), err -} - -// List takes label and field selectors, and returns the list of Routers that match those selectors. -func (c *FakeRouters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RouterList, err error) { - emptyResult := &v1alpha1.RouterList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(routersResource, routersKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.RouterList{ListMeta: obj.(*v1alpha1.RouterList).ListMeta} - for _, item := range obj.(*v1alpha1.RouterList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested routers. -func (c *FakeRouters) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(routersResource, c.ns, opts)) - -} - -// Create takes the representation of a router and creates it. Returns the server's representation of the router, and an error, if there is any. -func (c *FakeRouters) Create(ctx context.Context, router *v1alpha1.Router, opts v1.CreateOptions) (result *v1alpha1.Router, err error) { - emptyResult := &v1alpha1.Router{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(routersResource, c.ns, router, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Router), err -} - -// Update takes the representation of a router and updates it. Returns the server's representation of the router, and an error, if there is any. -func (c *FakeRouters) Update(ctx context.Context, router *v1alpha1.Router, opts v1.UpdateOptions) (result *v1alpha1.Router, err error) { - emptyResult := &v1alpha1.Router{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(routersResource, c.ns, router, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Router), err } -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeRouters) UpdateStatus(ctx context.Context, router *v1alpha1.Router, opts v1.UpdateOptions) (result *v1alpha1.Router, err error) { - emptyResult := &v1alpha1.Router{} - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(routersResource, "status", c.ns, router, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Router), err -} - -// Delete takes name of the router and deletes it. Returns an error if one occurs. -func (c *FakeRouters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(routersResource, c.ns, name, opts), &v1alpha1.Router{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeRouters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(routersResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.RouterList{}) - return err -} - -// Patch applies the patch and returns the patched router. -func (c *FakeRouters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Router, err error) { - emptyResult := &v1alpha1.Router{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(routersResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Router), err -} - -// Apply takes the given apply declarative configuration, applies it and returns the applied router. -func (c *FakeRouters) Apply(ctx context.Context, router *apiv1alpha1.RouterApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Router, err error) { - if router == nil { - return nil, fmt.Errorf("router provided to Apply must not be nil") - } - data, err := json.Marshal(router) - if err != nil { - return nil, err - } - name := router.Name - if name == nil { - return nil, fmt.Errorf("router.Name must be provided to Apply") - } - emptyResult := &v1alpha1.Router{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(routersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Router), err -} - -// ApplyStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). -func (c *FakeRouters) ApplyStatus(ctx context.Context, router *apiv1alpha1.RouterApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Router, err error) { - if router == nil { - return nil, fmt.Errorf("router provided to Apply must not be nil") - } - data, err := json.Marshal(router) - if err != nil { - return nil, err - } - name := router.Name - if name == nil { - return nil, fmt.Errorf("router.Name must be provided to Apply") - } - emptyResult := &v1alpha1.Router{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(routersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeRouters(fake *FakeOpenstackV1alpha1, namespace string) typedapiv1alpha1.RouterInterface { + return &fakeRouters{ + gentype.NewFakeClientWithListAndApply[*v1alpha1.Router, *v1alpha1.RouterList, *apiv1alpha1.RouterApplyConfiguration]( + fake.Fake, + namespace, + v1alpha1.SchemeGroupVersion.WithResource("routers"), + v1alpha1.SchemeGroupVersion.WithKind("Router"), + func() *v1alpha1.Router { return &v1alpha1.Router{} }, + func() *v1alpha1.RouterList { return &v1alpha1.RouterList{} }, + func(dst, src *v1alpha1.RouterList) { dst.ListMeta = src.ListMeta }, + func(list *v1alpha1.RouterList) []*v1alpha1.Router { return gentype.ToPointerSlice(list.Items) }, + func(list *v1alpha1.RouterList, items []*v1alpha1.Router) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1alpha1.Router), err } diff --git a/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_routerinterface.go b/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_routerinterface.go index a0ee9c8c..dd11bad6 100644 --- a/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_routerinterface.go +++ b/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_routerinterface.go @@ -19,179 +19,35 @@ limitations under the License. package fake import ( - "context" - json "encoding/json" - "fmt" - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + typedapiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/typed/api/v1alpha1" + gentype "k8s.io/client-go/gentype" ) -// FakeRouterInterfaces implements RouterInterfaceInterface -type FakeRouterInterfaces struct { +// fakeRouterInterfaces implements RouterInterfaceInterface +type fakeRouterInterfaces struct { + *gentype.FakeClientWithListAndApply[*v1alpha1.RouterInterface, *v1alpha1.RouterInterfaceList, *apiv1alpha1.RouterInterfaceApplyConfiguration] Fake *FakeOpenstackV1alpha1 - ns string -} - -var routerinterfacesResource = v1alpha1.SchemeGroupVersion.WithResource("routerinterfaces") - -var routerinterfacesKind = v1alpha1.SchemeGroupVersion.WithKind("RouterInterface") - -// Get takes name of the routerInterface, and returns the corresponding routerInterface object, and an error if there is any. -func (c *FakeRouterInterfaces) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RouterInterface, err error) { - emptyResult := &v1alpha1.RouterInterface{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(routerinterfacesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.RouterInterface), err -} - -// List takes label and field selectors, and returns the list of RouterInterfaces that match those selectors. -func (c *FakeRouterInterfaces) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RouterInterfaceList, err error) { - emptyResult := &v1alpha1.RouterInterfaceList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(routerinterfacesResource, routerinterfacesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.RouterInterfaceList{ListMeta: obj.(*v1alpha1.RouterInterfaceList).ListMeta} - for _, item := range obj.(*v1alpha1.RouterInterfaceList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested routerInterfaces. -func (c *FakeRouterInterfaces) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(routerinterfacesResource, c.ns, opts)) - -} - -// Create takes the representation of a routerInterface and creates it. Returns the server's representation of the routerInterface, and an error, if there is any. -func (c *FakeRouterInterfaces) Create(ctx context.Context, routerInterface *v1alpha1.RouterInterface, opts v1.CreateOptions) (result *v1alpha1.RouterInterface, err error) { - emptyResult := &v1alpha1.RouterInterface{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(routerinterfacesResource, c.ns, routerInterface, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.RouterInterface), err -} - -// Update takes the representation of a routerInterface and updates it. Returns the server's representation of the routerInterface, and an error, if there is any. -func (c *FakeRouterInterfaces) Update(ctx context.Context, routerInterface *v1alpha1.RouterInterface, opts v1.UpdateOptions) (result *v1alpha1.RouterInterface, err error) { - emptyResult := &v1alpha1.RouterInterface{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(routerinterfacesResource, c.ns, routerInterface, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.RouterInterface), err } -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeRouterInterfaces) UpdateStatus(ctx context.Context, routerInterface *v1alpha1.RouterInterface, opts v1.UpdateOptions) (result *v1alpha1.RouterInterface, err error) { - emptyResult := &v1alpha1.RouterInterface{} - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(routerinterfacesResource, "status", c.ns, routerInterface, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.RouterInterface), err -} - -// Delete takes name of the routerInterface and deletes it. Returns an error if one occurs. -func (c *FakeRouterInterfaces) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(routerinterfacesResource, c.ns, name, opts), &v1alpha1.RouterInterface{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeRouterInterfaces) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(routerinterfacesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.RouterInterfaceList{}) - return err -} - -// Patch applies the patch and returns the patched routerInterface. -func (c *FakeRouterInterfaces) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RouterInterface, err error) { - emptyResult := &v1alpha1.RouterInterface{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(routerinterfacesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.RouterInterface), err -} - -// Apply takes the given apply declarative configuration, applies it and returns the applied routerInterface. -func (c *FakeRouterInterfaces) Apply(ctx context.Context, routerInterface *apiv1alpha1.RouterInterfaceApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.RouterInterface, err error) { - if routerInterface == nil { - return nil, fmt.Errorf("routerInterface provided to Apply must not be nil") - } - data, err := json.Marshal(routerInterface) - if err != nil { - return nil, err - } - name := routerInterface.Name - if name == nil { - return nil, fmt.Errorf("routerInterface.Name must be provided to Apply") - } - emptyResult := &v1alpha1.RouterInterface{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(routerinterfacesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.RouterInterface), err -} - -// ApplyStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). -func (c *FakeRouterInterfaces) ApplyStatus(ctx context.Context, routerInterface *apiv1alpha1.RouterInterfaceApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.RouterInterface, err error) { - if routerInterface == nil { - return nil, fmt.Errorf("routerInterface provided to Apply must not be nil") - } - data, err := json.Marshal(routerInterface) - if err != nil { - return nil, err - } - name := routerInterface.Name - if name == nil { - return nil, fmt.Errorf("routerInterface.Name must be provided to Apply") - } - emptyResult := &v1alpha1.RouterInterface{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(routerinterfacesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeRouterInterfaces(fake *FakeOpenstackV1alpha1, namespace string) typedapiv1alpha1.RouterInterfaceInterface { + return &fakeRouterInterfaces{ + gentype.NewFakeClientWithListAndApply[*v1alpha1.RouterInterface, *v1alpha1.RouterInterfaceList, *apiv1alpha1.RouterInterfaceApplyConfiguration]( + fake.Fake, + namespace, + v1alpha1.SchemeGroupVersion.WithResource("routerinterfaces"), + v1alpha1.SchemeGroupVersion.WithKind("RouterInterface"), + func() *v1alpha1.RouterInterface { return &v1alpha1.RouterInterface{} }, + func() *v1alpha1.RouterInterfaceList { return &v1alpha1.RouterInterfaceList{} }, + func(dst, src *v1alpha1.RouterInterfaceList) { dst.ListMeta = src.ListMeta }, + func(list *v1alpha1.RouterInterfaceList) []*v1alpha1.RouterInterface { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1alpha1.RouterInterfaceList, items []*v1alpha1.RouterInterface) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1alpha1.RouterInterface), err } diff --git a/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_securitygroup.go b/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_securitygroup.go index 955bede6..05fef1ed 100644 --- a/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_securitygroup.go +++ b/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_securitygroup.go @@ -19,179 +19,35 @@ limitations under the License. package fake import ( - "context" - json "encoding/json" - "fmt" - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + typedapiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/typed/api/v1alpha1" + gentype "k8s.io/client-go/gentype" ) -// FakeSecurityGroups implements SecurityGroupInterface -type FakeSecurityGroups struct { +// fakeSecurityGroups implements SecurityGroupInterface +type fakeSecurityGroups struct { + *gentype.FakeClientWithListAndApply[*v1alpha1.SecurityGroup, *v1alpha1.SecurityGroupList, *apiv1alpha1.SecurityGroupApplyConfiguration] Fake *FakeOpenstackV1alpha1 - ns string -} - -var securitygroupsResource = v1alpha1.SchemeGroupVersion.WithResource("securitygroups") - -var securitygroupsKind = v1alpha1.SchemeGroupVersion.WithKind("SecurityGroup") - -// Get takes name of the securityGroup, and returns the corresponding securityGroup object, and an error if there is any. -func (c *FakeSecurityGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.SecurityGroup, err error) { - emptyResult := &v1alpha1.SecurityGroup{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(securitygroupsResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.SecurityGroup), err -} - -// List takes label and field selectors, and returns the list of SecurityGroups that match those selectors. -func (c *FakeSecurityGroups) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SecurityGroupList, err error) { - emptyResult := &v1alpha1.SecurityGroupList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(securitygroupsResource, securitygroupsKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.SecurityGroupList{ListMeta: obj.(*v1alpha1.SecurityGroupList).ListMeta} - for _, item := range obj.(*v1alpha1.SecurityGroupList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested securityGroups. -func (c *FakeSecurityGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(securitygroupsResource, c.ns, opts)) - -} - -// Create takes the representation of a securityGroup and creates it. Returns the server's representation of the securityGroup, and an error, if there is any. -func (c *FakeSecurityGroups) Create(ctx context.Context, securityGroup *v1alpha1.SecurityGroup, opts v1.CreateOptions) (result *v1alpha1.SecurityGroup, err error) { - emptyResult := &v1alpha1.SecurityGroup{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(securitygroupsResource, c.ns, securityGroup, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.SecurityGroup), err -} - -// Update takes the representation of a securityGroup and updates it. Returns the server's representation of the securityGroup, and an error, if there is any. -func (c *FakeSecurityGroups) Update(ctx context.Context, securityGroup *v1alpha1.SecurityGroup, opts v1.UpdateOptions) (result *v1alpha1.SecurityGroup, err error) { - emptyResult := &v1alpha1.SecurityGroup{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(securitygroupsResource, c.ns, securityGroup, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.SecurityGroup), err } -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSecurityGroups) UpdateStatus(ctx context.Context, securityGroup *v1alpha1.SecurityGroup, opts v1.UpdateOptions) (result *v1alpha1.SecurityGroup, err error) { - emptyResult := &v1alpha1.SecurityGroup{} - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(securitygroupsResource, "status", c.ns, securityGroup, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.SecurityGroup), err -} - -// Delete takes name of the securityGroup and deletes it. Returns an error if one occurs. -func (c *FakeSecurityGroups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(securitygroupsResource, c.ns, name, opts), &v1alpha1.SecurityGroup{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeSecurityGroups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(securitygroupsResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.SecurityGroupList{}) - return err -} - -// Patch applies the patch and returns the patched securityGroup. -func (c *FakeSecurityGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.SecurityGroup, err error) { - emptyResult := &v1alpha1.SecurityGroup{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(securitygroupsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.SecurityGroup), err -} - -// Apply takes the given apply declarative configuration, applies it and returns the applied securityGroup. -func (c *FakeSecurityGroups) Apply(ctx context.Context, securityGroup *apiv1alpha1.SecurityGroupApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.SecurityGroup, err error) { - if securityGroup == nil { - return nil, fmt.Errorf("securityGroup provided to Apply must not be nil") - } - data, err := json.Marshal(securityGroup) - if err != nil { - return nil, err - } - name := securityGroup.Name - if name == nil { - return nil, fmt.Errorf("securityGroup.Name must be provided to Apply") - } - emptyResult := &v1alpha1.SecurityGroup{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(securitygroupsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.SecurityGroup), err -} - -// ApplyStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). -func (c *FakeSecurityGroups) ApplyStatus(ctx context.Context, securityGroup *apiv1alpha1.SecurityGroupApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.SecurityGroup, err error) { - if securityGroup == nil { - return nil, fmt.Errorf("securityGroup provided to Apply must not be nil") - } - data, err := json.Marshal(securityGroup) - if err != nil { - return nil, err - } - name := securityGroup.Name - if name == nil { - return nil, fmt.Errorf("securityGroup.Name must be provided to Apply") - } - emptyResult := &v1alpha1.SecurityGroup{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(securitygroupsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeSecurityGroups(fake *FakeOpenstackV1alpha1, namespace string) typedapiv1alpha1.SecurityGroupInterface { + return &fakeSecurityGroups{ + gentype.NewFakeClientWithListAndApply[*v1alpha1.SecurityGroup, *v1alpha1.SecurityGroupList, *apiv1alpha1.SecurityGroupApplyConfiguration]( + fake.Fake, + namespace, + v1alpha1.SchemeGroupVersion.WithResource("securitygroups"), + v1alpha1.SchemeGroupVersion.WithKind("SecurityGroup"), + func() *v1alpha1.SecurityGroup { return &v1alpha1.SecurityGroup{} }, + func() *v1alpha1.SecurityGroupList { return &v1alpha1.SecurityGroupList{} }, + func(dst, src *v1alpha1.SecurityGroupList) { dst.ListMeta = src.ListMeta }, + func(list *v1alpha1.SecurityGroupList) []*v1alpha1.SecurityGroup { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1alpha1.SecurityGroupList, items []*v1alpha1.SecurityGroup) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1alpha1.SecurityGroup), err } diff --git a/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_server.go b/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_server.go index 16fbd97b..9de40c47 100644 --- a/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_server.go +++ b/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_server.go @@ -19,179 +19,33 @@ limitations under the License. package fake import ( - "context" - json "encoding/json" - "fmt" - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + typedapiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/typed/api/v1alpha1" + gentype "k8s.io/client-go/gentype" ) -// FakeServers implements ServerInterface -type FakeServers struct { +// fakeServers implements ServerInterface +type fakeServers struct { + *gentype.FakeClientWithListAndApply[*v1alpha1.Server, *v1alpha1.ServerList, *apiv1alpha1.ServerApplyConfiguration] Fake *FakeOpenstackV1alpha1 - ns string -} - -var serversResource = v1alpha1.SchemeGroupVersion.WithResource("servers") - -var serversKind = v1alpha1.SchemeGroupVersion.WithKind("Server") - -// Get takes name of the server, and returns the corresponding server object, and an error if there is any. -func (c *FakeServers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Server, err error) { - emptyResult := &v1alpha1.Server{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(serversResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Server), err -} - -// List takes label and field selectors, and returns the list of Servers that match those selectors. -func (c *FakeServers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ServerList, err error) { - emptyResult := &v1alpha1.ServerList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(serversResource, serversKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.ServerList{ListMeta: obj.(*v1alpha1.ServerList).ListMeta} - for _, item := range obj.(*v1alpha1.ServerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested servers. -func (c *FakeServers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(serversResource, c.ns, opts)) - -} - -// Create takes the representation of a server and creates it. Returns the server's representation of the server, and an error, if there is any. -func (c *FakeServers) Create(ctx context.Context, server *v1alpha1.Server, opts v1.CreateOptions) (result *v1alpha1.Server, err error) { - emptyResult := &v1alpha1.Server{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(serversResource, c.ns, server, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Server), err -} - -// Update takes the representation of a server and updates it. Returns the server's representation of the server, and an error, if there is any. -func (c *FakeServers) Update(ctx context.Context, server *v1alpha1.Server, opts v1.UpdateOptions) (result *v1alpha1.Server, err error) { - emptyResult := &v1alpha1.Server{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(serversResource, c.ns, server, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Server), err } -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeServers) UpdateStatus(ctx context.Context, server *v1alpha1.Server, opts v1.UpdateOptions) (result *v1alpha1.Server, err error) { - emptyResult := &v1alpha1.Server{} - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(serversResource, "status", c.ns, server, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Server), err -} - -// Delete takes name of the server and deletes it. Returns an error if one occurs. -func (c *FakeServers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(serversResource, c.ns, name, opts), &v1alpha1.Server{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeServers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(serversResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.ServerList{}) - return err -} - -// Patch applies the patch and returns the patched server. -func (c *FakeServers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Server, err error) { - emptyResult := &v1alpha1.Server{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(serversResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Server), err -} - -// Apply takes the given apply declarative configuration, applies it and returns the applied server. -func (c *FakeServers) Apply(ctx context.Context, server *apiv1alpha1.ServerApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Server, err error) { - if server == nil { - return nil, fmt.Errorf("server provided to Apply must not be nil") - } - data, err := json.Marshal(server) - if err != nil { - return nil, err - } - name := server.Name - if name == nil { - return nil, fmt.Errorf("server.Name must be provided to Apply") - } - emptyResult := &v1alpha1.Server{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(serversResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Server), err -} - -// ApplyStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). -func (c *FakeServers) ApplyStatus(ctx context.Context, server *apiv1alpha1.ServerApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Server, err error) { - if server == nil { - return nil, fmt.Errorf("server provided to Apply must not be nil") - } - data, err := json.Marshal(server) - if err != nil { - return nil, err - } - name := server.Name - if name == nil { - return nil, fmt.Errorf("server.Name must be provided to Apply") - } - emptyResult := &v1alpha1.Server{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(serversResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeServers(fake *FakeOpenstackV1alpha1, namespace string) typedapiv1alpha1.ServerInterface { + return &fakeServers{ + gentype.NewFakeClientWithListAndApply[*v1alpha1.Server, *v1alpha1.ServerList, *apiv1alpha1.ServerApplyConfiguration]( + fake.Fake, + namespace, + v1alpha1.SchemeGroupVersion.WithResource("servers"), + v1alpha1.SchemeGroupVersion.WithKind("Server"), + func() *v1alpha1.Server { return &v1alpha1.Server{} }, + func() *v1alpha1.ServerList { return &v1alpha1.ServerList{} }, + func(dst, src *v1alpha1.ServerList) { dst.ListMeta = src.ListMeta }, + func(list *v1alpha1.ServerList) []*v1alpha1.Server { return gentype.ToPointerSlice(list.Items) }, + func(list *v1alpha1.ServerList, items []*v1alpha1.Server) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1alpha1.Server), err } diff --git a/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_subnet.go b/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_subnet.go index 58d71db2..231d245e 100644 --- a/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_subnet.go +++ b/pkg/clients/clientset/clientset/typed/api/v1alpha1/fake/fake_subnet.go @@ -19,179 +19,33 @@ limitations under the License. package fake import ( - "context" - json "encoding/json" - "fmt" - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + typedapiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/typed/api/v1alpha1" + gentype "k8s.io/client-go/gentype" ) -// FakeSubnets implements SubnetInterface -type FakeSubnets struct { +// fakeSubnets implements SubnetInterface +type fakeSubnets struct { + *gentype.FakeClientWithListAndApply[*v1alpha1.Subnet, *v1alpha1.SubnetList, *apiv1alpha1.SubnetApplyConfiguration] Fake *FakeOpenstackV1alpha1 - ns string -} - -var subnetsResource = v1alpha1.SchemeGroupVersion.WithResource("subnets") - -var subnetsKind = v1alpha1.SchemeGroupVersion.WithKind("Subnet") - -// Get takes name of the subnet, and returns the corresponding subnet object, and an error if there is any. -func (c *FakeSubnets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Subnet, err error) { - emptyResult := &v1alpha1.Subnet{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(subnetsResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Subnet), err -} - -// List takes label and field selectors, and returns the list of Subnets that match those selectors. -func (c *FakeSubnets) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SubnetList, err error) { - emptyResult := &v1alpha1.SubnetList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(subnetsResource, subnetsKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.SubnetList{ListMeta: obj.(*v1alpha1.SubnetList).ListMeta} - for _, item := range obj.(*v1alpha1.SubnetList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested subnets. -func (c *FakeSubnets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(subnetsResource, c.ns, opts)) - -} - -// Create takes the representation of a subnet and creates it. Returns the server's representation of the subnet, and an error, if there is any. -func (c *FakeSubnets) Create(ctx context.Context, subnet *v1alpha1.Subnet, opts v1.CreateOptions) (result *v1alpha1.Subnet, err error) { - emptyResult := &v1alpha1.Subnet{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(subnetsResource, c.ns, subnet, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Subnet), err -} - -// Update takes the representation of a subnet and updates it. Returns the server's representation of the subnet, and an error, if there is any. -func (c *FakeSubnets) Update(ctx context.Context, subnet *v1alpha1.Subnet, opts v1.UpdateOptions) (result *v1alpha1.Subnet, err error) { - emptyResult := &v1alpha1.Subnet{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(subnetsResource, c.ns, subnet, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Subnet), err } -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSubnets) UpdateStatus(ctx context.Context, subnet *v1alpha1.Subnet, opts v1.UpdateOptions) (result *v1alpha1.Subnet, err error) { - emptyResult := &v1alpha1.Subnet{} - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(subnetsResource, "status", c.ns, subnet, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Subnet), err -} - -// Delete takes name of the subnet and deletes it. Returns an error if one occurs. -func (c *FakeSubnets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(subnetsResource, c.ns, name, opts), &v1alpha1.Subnet{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeSubnets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(subnetsResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.SubnetList{}) - return err -} - -// Patch applies the patch and returns the patched subnet. -func (c *FakeSubnets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Subnet, err error) { - emptyResult := &v1alpha1.Subnet{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(subnetsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Subnet), err -} - -// Apply takes the given apply declarative configuration, applies it and returns the applied subnet. -func (c *FakeSubnets) Apply(ctx context.Context, subnet *apiv1alpha1.SubnetApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Subnet, err error) { - if subnet == nil { - return nil, fmt.Errorf("subnet provided to Apply must not be nil") - } - data, err := json.Marshal(subnet) - if err != nil { - return nil, err - } - name := subnet.Name - if name == nil { - return nil, fmt.Errorf("subnet.Name must be provided to Apply") - } - emptyResult := &v1alpha1.Subnet{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(subnetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.Subnet), err -} - -// ApplyStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). -func (c *FakeSubnets) ApplyStatus(ctx context.Context, subnet *apiv1alpha1.SubnetApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Subnet, err error) { - if subnet == nil { - return nil, fmt.Errorf("subnet provided to Apply must not be nil") - } - data, err := json.Marshal(subnet) - if err != nil { - return nil, err - } - name := subnet.Name - if name == nil { - return nil, fmt.Errorf("subnet.Name must be provided to Apply") - } - emptyResult := &v1alpha1.Subnet{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(subnetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeSubnets(fake *FakeOpenstackV1alpha1, namespace string) typedapiv1alpha1.SubnetInterface { + return &fakeSubnets{ + gentype.NewFakeClientWithListAndApply[*v1alpha1.Subnet, *v1alpha1.SubnetList, *apiv1alpha1.SubnetApplyConfiguration]( + fake.Fake, + namespace, + v1alpha1.SchemeGroupVersion.WithResource("subnets"), + v1alpha1.SchemeGroupVersion.WithKind("Subnet"), + func() *v1alpha1.Subnet { return &v1alpha1.Subnet{} }, + func() *v1alpha1.SubnetList { return &v1alpha1.SubnetList{} }, + func(dst, src *v1alpha1.SubnetList) { dst.ListMeta = src.ListMeta }, + func(list *v1alpha1.SubnetList) []*v1alpha1.Subnet { return gentype.ToPointerSlice(list.Items) }, + func(list *v1alpha1.SubnetList, items []*v1alpha1.Subnet) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1alpha1.Subnet), err } diff --git a/pkg/clients/clientset/clientset/typed/api/v1alpha1/flavor.go b/pkg/clients/clientset/clientset/typed/api/v1alpha1/flavor.go index 025ddfab..a8006a3d 100644 --- a/pkg/clients/clientset/clientset/typed/api/v1alpha1/flavor.go +++ b/pkg/clients/clientset/clientset/typed/api/v1alpha1/flavor.go @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - "context" + context "context" - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" - apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + applyconfigurationapiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" scheme "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -38,36 +38,37 @@ type FlavorsGetter interface { // FlavorInterface has methods to work with Flavor resources. type FlavorInterface interface { - Create(ctx context.Context, flavor *v1alpha1.Flavor, opts v1.CreateOptions) (*v1alpha1.Flavor, error) - Update(ctx context.Context, flavor *v1alpha1.Flavor, opts v1.UpdateOptions) (*v1alpha1.Flavor, error) + Create(ctx context.Context, flavor *apiv1alpha1.Flavor, opts v1.CreateOptions) (*apiv1alpha1.Flavor, error) + Update(ctx context.Context, flavor *apiv1alpha1.Flavor, opts v1.UpdateOptions) (*apiv1alpha1.Flavor, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, flavor *v1alpha1.Flavor, opts v1.UpdateOptions) (*v1alpha1.Flavor, error) + UpdateStatus(ctx context.Context, flavor *apiv1alpha1.Flavor, opts v1.UpdateOptions) (*apiv1alpha1.Flavor, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.Flavor, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.FlavorList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*apiv1alpha1.Flavor, error) + List(ctx context.Context, opts v1.ListOptions) (*apiv1alpha1.FlavorList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Flavor, err error) - Apply(ctx context.Context, flavor *apiv1alpha1.FlavorApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Flavor, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *apiv1alpha1.Flavor, err error) + Apply(ctx context.Context, flavor *applyconfigurationapiv1alpha1.FlavorApplyConfiguration, opts v1.ApplyOptions) (result *apiv1alpha1.Flavor, err error) // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). - ApplyStatus(ctx context.Context, flavor *apiv1alpha1.FlavorApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Flavor, err error) + ApplyStatus(ctx context.Context, flavor *applyconfigurationapiv1alpha1.FlavorApplyConfiguration, opts v1.ApplyOptions) (result *apiv1alpha1.Flavor, err error) FlavorExpansion } // flavors implements FlavorInterface type flavors struct { - *gentype.ClientWithListAndApply[*v1alpha1.Flavor, *v1alpha1.FlavorList, *apiv1alpha1.FlavorApplyConfiguration] + *gentype.ClientWithListAndApply[*apiv1alpha1.Flavor, *apiv1alpha1.FlavorList, *applyconfigurationapiv1alpha1.FlavorApplyConfiguration] } // newFlavors returns a Flavors func newFlavors(c *OpenstackV1alpha1Client, namespace string) *flavors { return &flavors{ - gentype.NewClientWithListAndApply[*v1alpha1.Flavor, *v1alpha1.FlavorList, *apiv1alpha1.FlavorApplyConfiguration]( + gentype.NewClientWithListAndApply[*apiv1alpha1.Flavor, *apiv1alpha1.FlavorList, *applyconfigurationapiv1alpha1.FlavorApplyConfiguration]( "flavors", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1alpha1.Flavor { return &v1alpha1.Flavor{} }, - func() *v1alpha1.FlavorList { return &v1alpha1.FlavorList{} }), + func() *apiv1alpha1.Flavor { return &apiv1alpha1.Flavor{} }, + func() *apiv1alpha1.FlavorList { return &apiv1alpha1.FlavorList{} }, + ), } } diff --git a/pkg/clients/clientset/clientset/typed/api/v1alpha1/image.go b/pkg/clients/clientset/clientset/typed/api/v1alpha1/image.go index ff999de5..0674d9f3 100644 --- a/pkg/clients/clientset/clientset/typed/api/v1alpha1/image.go +++ b/pkg/clients/clientset/clientset/typed/api/v1alpha1/image.go @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - "context" + context "context" - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" - apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + applyconfigurationapiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" scheme "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -38,36 +38,37 @@ type ImagesGetter interface { // ImageInterface has methods to work with Image resources. type ImageInterface interface { - Create(ctx context.Context, image *v1alpha1.Image, opts v1.CreateOptions) (*v1alpha1.Image, error) - Update(ctx context.Context, image *v1alpha1.Image, opts v1.UpdateOptions) (*v1alpha1.Image, error) + Create(ctx context.Context, image *apiv1alpha1.Image, opts v1.CreateOptions) (*apiv1alpha1.Image, error) + Update(ctx context.Context, image *apiv1alpha1.Image, opts v1.UpdateOptions) (*apiv1alpha1.Image, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, image *v1alpha1.Image, opts v1.UpdateOptions) (*v1alpha1.Image, error) + UpdateStatus(ctx context.Context, image *apiv1alpha1.Image, opts v1.UpdateOptions) (*apiv1alpha1.Image, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.Image, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ImageList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*apiv1alpha1.Image, error) + List(ctx context.Context, opts v1.ListOptions) (*apiv1alpha1.ImageList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Image, err error) - Apply(ctx context.Context, image *apiv1alpha1.ImageApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Image, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *apiv1alpha1.Image, err error) + Apply(ctx context.Context, image *applyconfigurationapiv1alpha1.ImageApplyConfiguration, opts v1.ApplyOptions) (result *apiv1alpha1.Image, err error) // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). - ApplyStatus(ctx context.Context, image *apiv1alpha1.ImageApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Image, err error) + ApplyStatus(ctx context.Context, image *applyconfigurationapiv1alpha1.ImageApplyConfiguration, opts v1.ApplyOptions) (result *apiv1alpha1.Image, err error) ImageExpansion } // images implements ImageInterface type images struct { - *gentype.ClientWithListAndApply[*v1alpha1.Image, *v1alpha1.ImageList, *apiv1alpha1.ImageApplyConfiguration] + *gentype.ClientWithListAndApply[*apiv1alpha1.Image, *apiv1alpha1.ImageList, *applyconfigurationapiv1alpha1.ImageApplyConfiguration] } // newImages returns a Images func newImages(c *OpenstackV1alpha1Client, namespace string) *images { return &images{ - gentype.NewClientWithListAndApply[*v1alpha1.Image, *v1alpha1.ImageList, *apiv1alpha1.ImageApplyConfiguration]( + gentype.NewClientWithListAndApply[*apiv1alpha1.Image, *apiv1alpha1.ImageList, *applyconfigurationapiv1alpha1.ImageApplyConfiguration]( "images", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1alpha1.Image { return &v1alpha1.Image{} }, - func() *v1alpha1.ImageList { return &v1alpha1.ImageList{} }), + func() *apiv1alpha1.Image { return &apiv1alpha1.Image{} }, + func() *apiv1alpha1.ImageList { return &apiv1alpha1.ImageList{} }, + ), } } diff --git a/pkg/clients/clientset/clientset/typed/api/v1alpha1/network.go b/pkg/clients/clientset/clientset/typed/api/v1alpha1/network.go index e3ff44e1..c4a1d244 100644 --- a/pkg/clients/clientset/clientset/typed/api/v1alpha1/network.go +++ b/pkg/clients/clientset/clientset/typed/api/v1alpha1/network.go @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - "context" + context "context" - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" - apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + applyconfigurationapiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" scheme "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -38,36 +38,37 @@ type NetworksGetter interface { // NetworkInterface has methods to work with Network resources. type NetworkInterface interface { - Create(ctx context.Context, network *v1alpha1.Network, opts v1.CreateOptions) (*v1alpha1.Network, error) - Update(ctx context.Context, network *v1alpha1.Network, opts v1.UpdateOptions) (*v1alpha1.Network, error) + Create(ctx context.Context, network *apiv1alpha1.Network, opts v1.CreateOptions) (*apiv1alpha1.Network, error) + Update(ctx context.Context, network *apiv1alpha1.Network, opts v1.UpdateOptions) (*apiv1alpha1.Network, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, network *v1alpha1.Network, opts v1.UpdateOptions) (*v1alpha1.Network, error) + UpdateStatus(ctx context.Context, network *apiv1alpha1.Network, opts v1.UpdateOptions) (*apiv1alpha1.Network, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.Network, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.NetworkList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*apiv1alpha1.Network, error) + List(ctx context.Context, opts v1.ListOptions) (*apiv1alpha1.NetworkList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Network, err error) - Apply(ctx context.Context, network *apiv1alpha1.NetworkApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Network, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *apiv1alpha1.Network, err error) + Apply(ctx context.Context, network *applyconfigurationapiv1alpha1.NetworkApplyConfiguration, opts v1.ApplyOptions) (result *apiv1alpha1.Network, err error) // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). - ApplyStatus(ctx context.Context, network *apiv1alpha1.NetworkApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Network, err error) + ApplyStatus(ctx context.Context, network *applyconfigurationapiv1alpha1.NetworkApplyConfiguration, opts v1.ApplyOptions) (result *apiv1alpha1.Network, err error) NetworkExpansion } // networks implements NetworkInterface type networks struct { - *gentype.ClientWithListAndApply[*v1alpha1.Network, *v1alpha1.NetworkList, *apiv1alpha1.NetworkApplyConfiguration] + *gentype.ClientWithListAndApply[*apiv1alpha1.Network, *apiv1alpha1.NetworkList, *applyconfigurationapiv1alpha1.NetworkApplyConfiguration] } // newNetworks returns a Networks func newNetworks(c *OpenstackV1alpha1Client, namespace string) *networks { return &networks{ - gentype.NewClientWithListAndApply[*v1alpha1.Network, *v1alpha1.NetworkList, *apiv1alpha1.NetworkApplyConfiguration]( + gentype.NewClientWithListAndApply[*apiv1alpha1.Network, *apiv1alpha1.NetworkList, *applyconfigurationapiv1alpha1.NetworkApplyConfiguration]( "networks", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1alpha1.Network { return &v1alpha1.Network{} }, - func() *v1alpha1.NetworkList { return &v1alpha1.NetworkList{} }), + func() *apiv1alpha1.Network { return &apiv1alpha1.Network{} }, + func() *apiv1alpha1.NetworkList { return &apiv1alpha1.NetworkList{} }, + ), } } diff --git a/pkg/clients/clientset/clientset/typed/api/v1alpha1/port.go b/pkg/clients/clientset/clientset/typed/api/v1alpha1/port.go index 3a170943..3cd643d8 100644 --- a/pkg/clients/clientset/clientset/typed/api/v1alpha1/port.go +++ b/pkg/clients/clientset/clientset/typed/api/v1alpha1/port.go @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - "context" + context "context" - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" - apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + applyconfigurationapiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" scheme "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -38,36 +38,37 @@ type PortsGetter interface { // PortInterface has methods to work with Port resources. type PortInterface interface { - Create(ctx context.Context, port *v1alpha1.Port, opts v1.CreateOptions) (*v1alpha1.Port, error) - Update(ctx context.Context, port *v1alpha1.Port, opts v1.UpdateOptions) (*v1alpha1.Port, error) + Create(ctx context.Context, port *apiv1alpha1.Port, opts v1.CreateOptions) (*apiv1alpha1.Port, error) + Update(ctx context.Context, port *apiv1alpha1.Port, opts v1.UpdateOptions) (*apiv1alpha1.Port, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, port *v1alpha1.Port, opts v1.UpdateOptions) (*v1alpha1.Port, error) + UpdateStatus(ctx context.Context, port *apiv1alpha1.Port, opts v1.UpdateOptions) (*apiv1alpha1.Port, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.Port, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.PortList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*apiv1alpha1.Port, error) + List(ctx context.Context, opts v1.ListOptions) (*apiv1alpha1.PortList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Port, err error) - Apply(ctx context.Context, port *apiv1alpha1.PortApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Port, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *apiv1alpha1.Port, err error) + Apply(ctx context.Context, port *applyconfigurationapiv1alpha1.PortApplyConfiguration, opts v1.ApplyOptions) (result *apiv1alpha1.Port, err error) // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). - ApplyStatus(ctx context.Context, port *apiv1alpha1.PortApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Port, err error) + ApplyStatus(ctx context.Context, port *applyconfigurationapiv1alpha1.PortApplyConfiguration, opts v1.ApplyOptions) (result *apiv1alpha1.Port, err error) PortExpansion } // ports implements PortInterface type ports struct { - *gentype.ClientWithListAndApply[*v1alpha1.Port, *v1alpha1.PortList, *apiv1alpha1.PortApplyConfiguration] + *gentype.ClientWithListAndApply[*apiv1alpha1.Port, *apiv1alpha1.PortList, *applyconfigurationapiv1alpha1.PortApplyConfiguration] } // newPorts returns a Ports func newPorts(c *OpenstackV1alpha1Client, namespace string) *ports { return &ports{ - gentype.NewClientWithListAndApply[*v1alpha1.Port, *v1alpha1.PortList, *apiv1alpha1.PortApplyConfiguration]( + gentype.NewClientWithListAndApply[*apiv1alpha1.Port, *apiv1alpha1.PortList, *applyconfigurationapiv1alpha1.PortApplyConfiguration]( "ports", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1alpha1.Port { return &v1alpha1.Port{} }, - func() *v1alpha1.PortList { return &v1alpha1.PortList{} }), + func() *apiv1alpha1.Port { return &apiv1alpha1.Port{} }, + func() *apiv1alpha1.PortList { return &apiv1alpha1.PortList{} }, + ), } } diff --git a/pkg/clients/clientset/clientset/typed/api/v1alpha1/router.go b/pkg/clients/clientset/clientset/typed/api/v1alpha1/router.go index 6b31b5b6..3abffcb7 100644 --- a/pkg/clients/clientset/clientset/typed/api/v1alpha1/router.go +++ b/pkg/clients/clientset/clientset/typed/api/v1alpha1/router.go @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - "context" + context "context" - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" - apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + applyconfigurationapiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" scheme "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -38,36 +38,37 @@ type RoutersGetter interface { // RouterInterface has methods to work with Router resources. type RouterInterface interface { - Create(ctx context.Context, router *v1alpha1.Router, opts v1.CreateOptions) (*v1alpha1.Router, error) - Update(ctx context.Context, router *v1alpha1.Router, opts v1.UpdateOptions) (*v1alpha1.Router, error) + Create(ctx context.Context, router *apiv1alpha1.Router, opts v1.CreateOptions) (*apiv1alpha1.Router, error) + Update(ctx context.Context, router *apiv1alpha1.Router, opts v1.UpdateOptions) (*apiv1alpha1.Router, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, router *v1alpha1.Router, opts v1.UpdateOptions) (*v1alpha1.Router, error) + UpdateStatus(ctx context.Context, router *apiv1alpha1.Router, opts v1.UpdateOptions) (*apiv1alpha1.Router, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.Router, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.RouterList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*apiv1alpha1.Router, error) + List(ctx context.Context, opts v1.ListOptions) (*apiv1alpha1.RouterList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Router, err error) - Apply(ctx context.Context, router *apiv1alpha1.RouterApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Router, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *apiv1alpha1.Router, err error) + Apply(ctx context.Context, router *applyconfigurationapiv1alpha1.RouterApplyConfiguration, opts v1.ApplyOptions) (result *apiv1alpha1.Router, err error) // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). - ApplyStatus(ctx context.Context, router *apiv1alpha1.RouterApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Router, err error) + ApplyStatus(ctx context.Context, router *applyconfigurationapiv1alpha1.RouterApplyConfiguration, opts v1.ApplyOptions) (result *apiv1alpha1.Router, err error) RouterExpansion } // routers implements RouterInterface type routers struct { - *gentype.ClientWithListAndApply[*v1alpha1.Router, *v1alpha1.RouterList, *apiv1alpha1.RouterApplyConfiguration] + *gentype.ClientWithListAndApply[*apiv1alpha1.Router, *apiv1alpha1.RouterList, *applyconfigurationapiv1alpha1.RouterApplyConfiguration] } // newRouters returns a Routers func newRouters(c *OpenstackV1alpha1Client, namespace string) *routers { return &routers{ - gentype.NewClientWithListAndApply[*v1alpha1.Router, *v1alpha1.RouterList, *apiv1alpha1.RouterApplyConfiguration]( + gentype.NewClientWithListAndApply[*apiv1alpha1.Router, *apiv1alpha1.RouterList, *applyconfigurationapiv1alpha1.RouterApplyConfiguration]( "routers", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1alpha1.Router { return &v1alpha1.Router{} }, - func() *v1alpha1.RouterList { return &v1alpha1.RouterList{} }), + func() *apiv1alpha1.Router { return &apiv1alpha1.Router{} }, + func() *apiv1alpha1.RouterList { return &apiv1alpha1.RouterList{} }, + ), } } diff --git a/pkg/clients/clientset/clientset/typed/api/v1alpha1/routerinterface.go b/pkg/clients/clientset/clientset/typed/api/v1alpha1/routerinterface.go index 92dc071e..2d060a77 100644 --- a/pkg/clients/clientset/clientset/typed/api/v1alpha1/routerinterface.go +++ b/pkg/clients/clientset/clientset/typed/api/v1alpha1/routerinterface.go @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - "context" + context "context" - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" - apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + applyconfigurationapiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" scheme "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -38,36 +38,37 @@ type RouterInterfacesGetter interface { // RouterInterfaceInterface has methods to work with RouterInterface resources. type RouterInterfaceInterface interface { - Create(ctx context.Context, routerInterface *v1alpha1.RouterInterface, opts v1.CreateOptions) (*v1alpha1.RouterInterface, error) - Update(ctx context.Context, routerInterface *v1alpha1.RouterInterface, opts v1.UpdateOptions) (*v1alpha1.RouterInterface, error) + Create(ctx context.Context, routerInterface *apiv1alpha1.RouterInterface, opts v1.CreateOptions) (*apiv1alpha1.RouterInterface, error) + Update(ctx context.Context, routerInterface *apiv1alpha1.RouterInterface, opts v1.UpdateOptions) (*apiv1alpha1.RouterInterface, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, routerInterface *v1alpha1.RouterInterface, opts v1.UpdateOptions) (*v1alpha1.RouterInterface, error) + UpdateStatus(ctx context.Context, routerInterface *apiv1alpha1.RouterInterface, opts v1.UpdateOptions) (*apiv1alpha1.RouterInterface, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.RouterInterface, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.RouterInterfaceList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*apiv1alpha1.RouterInterface, error) + List(ctx context.Context, opts v1.ListOptions) (*apiv1alpha1.RouterInterfaceList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RouterInterface, err error) - Apply(ctx context.Context, routerInterface *apiv1alpha1.RouterInterfaceApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.RouterInterface, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *apiv1alpha1.RouterInterface, err error) + Apply(ctx context.Context, routerInterface *applyconfigurationapiv1alpha1.RouterInterfaceApplyConfiguration, opts v1.ApplyOptions) (result *apiv1alpha1.RouterInterface, err error) // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). - ApplyStatus(ctx context.Context, routerInterface *apiv1alpha1.RouterInterfaceApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.RouterInterface, err error) + ApplyStatus(ctx context.Context, routerInterface *applyconfigurationapiv1alpha1.RouterInterfaceApplyConfiguration, opts v1.ApplyOptions) (result *apiv1alpha1.RouterInterface, err error) RouterInterfaceExpansion } // routerInterfaces implements RouterInterfaceInterface type routerInterfaces struct { - *gentype.ClientWithListAndApply[*v1alpha1.RouterInterface, *v1alpha1.RouterInterfaceList, *apiv1alpha1.RouterInterfaceApplyConfiguration] + *gentype.ClientWithListAndApply[*apiv1alpha1.RouterInterface, *apiv1alpha1.RouterInterfaceList, *applyconfigurationapiv1alpha1.RouterInterfaceApplyConfiguration] } // newRouterInterfaces returns a RouterInterfaces func newRouterInterfaces(c *OpenstackV1alpha1Client, namespace string) *routerInterfaces { return &routerInterfaces{ - gentype.NewClientWithListAndApply[*v1alpha1.RouterInterface, *v1alpha1.RouterInterfaceList, *apiv1alpha1.RouterInterfaceApplyConfiguration]( + gentype.NewClientWithListAndApply[*apiv1alpha1.RouterInterface, *apiv1alpha1.RouterInterfaceList, *applyconfigurationapiv1alpha1.RouterInterfaceApplyConfiguration]( "routerinterfaces", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1alpha1.RouterInterface { return &v1alpha1.RouterInterface{} }, - func() *v1alpha1.RouterInterfaceList { return &v1alpha1.RouterInterfaceList{} }), + func() *apiv1alpha1.RouterInterface { return &apiv1alpha1.RouterInterface{} }, + func() *apiv1alpha1.RouterInterfaceList { return &apiv1alpha1.RouterInterfaceList{} }, + ), } } diff --git a/pkg/clients/clientset/clientset/typed/api/v1alpha1/securitygroup.go b/pkg/clients/clientset/clientset/typed/api/v1alpha1/securitygroup.go index 1d4d53cd..3c8f66fa 100644 --- a/pkg/clients/clientset/clientset/typed/api/v1alpha1/securitygroup.go +++ b/pkg/clients/clientset/clientset/typed/api/v1alpha1/securitygroup.go @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - "context" + context "context" - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" - apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + applyconfigurationapiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" scheme "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -38,36 +38,37 @@ type SecurityGroupsGetter interface { // SecurityGroupInterface has methods to work with SecurityGroup resources. type SecurityGroupInterface interface { - Create(ctx context.Context, securityGroup *v1alpha1.SecurityGroup, opts v1.CreateOptions) (*v1alpha1.SecurityGroup, error) - Update(ctx context.Context, securityGroup *v1alpha1.SecurityGroup, opts v1.UpdateOptions) (*v1alpha1.SecurityGroup, error) + Create(ctx context.Context, securityGroup *apiv1alpha1.SecurityGroup, opts v1.CreateOptions) (*apiv1alpha1.SecurityGroup, error) + Update(ctx context.Context, securityGroup *apiv1alpha1.SecurityGroup, opts v1.UpdateOptions) (*apiv1alpha1.SecurityGroup, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, securityGroup *v1alpha1.SecurityGroup, opts v1.UpdateOptions) (*v1alpha1.SecurityGroup, error) + UpdateStatus(ctx context.Context, securityGroup *apiv1alpha1.SecurityGroup, opts v1.UpdateOptions) (*apiv1alpha1.SecurityGroup, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.SecurityGroup, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.SecurityGroupList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*apiv1alpha1.SecurityGroup, error) + List(ctx context.Context, opts v1.ListOptions) (*apiv1alpha1.SecurityGroupList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.SecurityGroup, err error) - Apply(ctx context.Context, securityGroup *apiv1alpha1.SecurityGroupApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.SecurityGroup, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *apiv1alpha1.SecurityGroup, err error) + Apply(ctx context.Context, securityGroup *applyconfigurationapiv1alpha1.SecurityGroupApplyConfiguration, opts v1.ApplyOptions) (result *apiv1alpha1.SecurityGroup, err error) // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). - ApplyStatus(ctx context.Context, securityGroup *apiv1alpha1.SecurityGroupApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.SecurityGroup, err error) + ApplyStatus(ctx context.Context, securityGroup *applyconfigurationapiv1alpha1.SecurityGroupApplyConfiguration, opts v1.ApplyOptions) (result *apiv1alpha1.SecurityGroup, err error) SecurityGroupExpansion } // securityGroups implements SecurityGroupInterface type securityGroups struct { - *gentype.ClientWithListAndApply[*v1alpha1.SecurityGroup, *v1alpha1.SecurityGroupList, *apiv1alpha1.SecurityGroupApplyConfiguration] + *gentype.ClientWithListAndApply[*apiv1alpha1.SecurityGroup, *apiv1alpha1.SecurityGroupList, *applyconfigurationapiv1alpha1.SecurityGroupApplyConfiguration] } // newSecurityGroups returns a SecurityGroups func newSecurityGroups(c *OpenstackV1alpha1Client, namespace string) *securityGroups { return &securityGroups{ - gentype.NewClientWithListAndApply[*v1alpha1.SecurityGroup, *v1alpha1.SecurityGroupList, *apiv1alpha1.SecurityGroupApplyConfiguration]( + gentype.NewClientWithListAndApply[*apiv1alpha1.SecurityGroup, *apiv1alpha1.SecurityGroupList, *applyconfigurationapiv1alpha1.SecurityGroupApplyConfiguration]( "securitygroups", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1alpha1.SecurityGroup { return &v1alpha1.SecurityGroup{} }, - func() *v1alpha1.SecurityGroupList { return &v1alpha1.SecurityGroupList{} }), + func() *apiv1alpha1.SecurityGroup { return &apiv1alpha1.SecurityGroup{} }, + func() *apiv1alpha1.SecurityGroupList { return &apiv1alpha1.SecurityGroupList{} }, + ), } } diff --git a/pkg/clients/clientset/clientset/typed/api/v1alpha1/server.go b/pkg/clients/clientset/clientset/typed/api/v1alpha1/server.go index a475c5cb..12f16f7a 100644 --- a/pkg/clients/clientset/clientset/typed/api/v1alpha1/server.go +++ b/pkg/clients/clientset/clientset/typed/api/v1alpha1/server.go @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - "context" + context "context" - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" - apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + applyconfigurationapiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" scheme "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -38,36 +38,37 @@ type ServersGetter interface { // ServerInterface has methods to work with Server resources. type ServerInterface interface { - Create(ctx context.Context, server *v1alpha1.Server, opts v1.CreateOptions) (*v1alpha1.Server, error) - Update(ctx context.Context, server *v1alpha1.Server, opts v1.UpdateOptions) (*v1alpha1.Server, error) + Create(ctx context.Context, server *apiv1alpha1.Server, opts v1.CreateOptions) (*apiv1alpha1.Server, error) + Update(ctx context.Context, server *apiv1alpha1.Server, opts v1.UpdateOptions) (*apiv1alpha1.Server, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, server *v1alpha1.Server, opts v1.UpdateOptions) (*v1alpha1.Server, error) + UpdateStatus(ctx context.Context, server *apiv1alpha1.Server, opts v1.UpdateOptions) (*apiv1alpha1.Server, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.Server, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ServerList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*apiv1alpha1.Server, error) + List(ctx context.Context, opts v1.ListOptions) (*apiv1alpha1.ServerList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Server, err error) - Apply(ctx context.Context, server *apiv1alpha1.ServerApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Server, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *apiv1alpha1.Server, err error) + Apply(ctx context.Context, server *applyconfigurationapiv1alpha1.ServerApplyConfiguration, opts v1.ApplyOptions) (result *apiv1alpha1.Server, err error) // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). - ApplyStatus(ctx context.Context, server *apiv1alpha1.ServerApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Server, err error) + ApplyStatus(ctx context.Context, server *applyconfigurationapiv1alpha1.ServerApplyConfiguration, opts v1.ApplyOptions) (result *apiv1alpha1.Server, err error) ServerExpansion } // servers implements ServerInterface type servers struct { - *gentype.ClientWithListAndApply[*v1alpha1.Server, *v1alpha1.ServerList, *apiv1alpha1.ServerApplyConfiguration] + *gentype.ClientWithListAndApply[*apiv1alpha1.Server, *apiv1alpha1.ServerList, *applyconfigurationapiv1alpha1.ServerApplyConfiguration] } // newServers returns a Servers func newServers(c *OpenstackV1alpha1Client, namespace string) *servers { return &servers{ - gentype.NewClientWithListAndApply[*v1alpha1.Server, *v1alpha1.ServerList, *apiv1alpha1.ServerApplyConfiguration]( + gentype.NewClientWithListAndApply[*apiv1alpha1.Server, *apiv1alpha1.ServerList, *applyconfigurationapiv1alpha1.ServerApplyConfiguration]( "servers", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1alpha1.Server { return &v1alpha1.Server{} }, - func() *v1alpha1.ServerList { return &v1alpha1.ServerList{} }), + func() *apiv1alpha1.Server { return &apiv1alpha1.Server{} }, + func() *apiv1alpha1.ServerList { return &apiv1alpha1.ServerList{} }, + ), } } diff --git a/pkg/clients/clientset/clientset/typed/api/v1alpha1/subnet.go b/pkg/clients/clientset/clientset/typed/api/v1alpha1/subnet.go index d23686b0..fd641fd4 100644 --- a/pkg/clients/clientset/clientset/typed/api/v1alpha1/subnet.go +++ b/pkg/clients/clientset/clientset/typed/api/v1alpha1/subnet.go @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - "context" + context "context" - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" - apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + applyconfigurationapiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/applyconfiguration/api/v1alpha1" scheme "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -38,36 +38,37 @@ type SubnetsGetter interface { // SubnetInterface has methods to work with Subnet resources. type SubnetInterface interface { - Create(ctx context.Context, subnet *v1alpha1.Subnet, opts v1.CreateOptions) (*v1alpha1.Subnet, error) - Update(ctx context.Context, subnet *v1alpha1.Subnet, opts v1.UpdateOptions) (*v1alpha1.Subnet, error) + Create(ctx context.Context, subnet *apiv1alpha1.Subnet, opts v1.CreateOptions) (*apiv1alpha1.Subnet, error) + Update(ctx context.Context, subnet *apiv1alpha1.Subnet, opts v1.UpdateOptions) (*apiv1alpha1.Subnet, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, subnet *v1alpha1.Subnet, opts v1.UpdateOptions) (*v1alpha1.Subnet, error) + UpdateStatus(ctx context.Context, subnet *apiv1alpha1.Subnet, opts v1.UpdateOptions) (*apiv1alpha1.Subnet, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.Subnet, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.SubnetList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*apiv1alpha1.Subnet, error) + List(ctx context.Context, opts v1.ListOptions) (*apiv1alpha1.SubnetList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Subnet, err error) - Apply(ctx context.Context, subnet *apiv1alpha1.SubnetApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Subnet, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *apiv1alpha1.Subnet, err error) + Apply(ctx context.Context, subnet *applyconfigurationapiv1alpha1.SubnetApplyConfiguration, opts v1.ApplyOptions) (result *apiv1alpha1.Subnet, err error) // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). - ApplyStatus(ctx context.Context, subnet *apiv1alpha1.SubnetApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Subnet, err error) + ApplyStatus(ctx context.Context, subnet *applyconfigurationapiv1alpha1.SubnetApplyConfiguration, opts v1.ApplyOptions) (result *apiv1alpha1.Subnet, err error) SubnetExpansion } // subnets implements SubnetInterface type subnets struct { - *gentype.ClientWithListAndApply[*v1alpha1.Subnet, *v1alpha1.SubnetList, *apiv1alpha1.SubnetApplyConfiguration] + *gentype.ClientWithListAndApply[*apiv1alpha1.Subnet, *apiv1alpha1.SubnetList, *applyconfigurationapiv1alpha1.SubnetApplyConfiguration] } // newSubnets returns a Subnets func newSubnets(c *OpenstackV1alpha1Client, namespace string) *subnets { return &subnets{ - gentype.NewClientWithListAndApply[*v1alpha1.Subnet, *v1alpha1.SubnetList, *apiv1alpha1.SubnetApplyConfiguration]( + gentype.NewClientWithListAndApply[*apiv1alpha1.Subnet, *apiv1alpha1.SubnetList, *applyconfigurationapiv1alpha1.SubnetApplyConfiguration]( "subnets", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1alpha1.Subnet { return &v1alpha1.Subnet{} }, - func() *v1alpha1.SubnetList { return &v1alpha1.SubnetList{} }), + func() *apiv1alpha1.Subnet { return &apiv1alpha1.Subnet{} }, + func() *apiv1alpha1.SubnetList { return &apiv1alpha1.SubnetList{} }, + ), } } diff --git a/pkg/clients/informers/externalversions/api/v1alpha1/flavor.go b/pkg/clients/informers/externalversions/api/v1alpha1/flavor.go index 69aabd26..a6dd9e2c 100644 --- a/pkg/clients/informers/externalversions/api/v1alpha1/flavor.go +++ b/pkg/clients/informers/externalversions/api/v1alpha1/flavor.go @@ -19,13 +19,13 @@ limitations under the License. package v1alpha1 import ( - "context" + context "context" time "time" - apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + openstackresourcecontrollerapiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" clientset "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset" internalinterfaces "github.com/k-orc/openstack-resource-controller/pkg/clients/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/listers/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/listers/api/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // Flavors. type FlavorInformer interface { Informer() cache.SharedIndexInformer - Lister() v1alpha1.FlavorLister + Lister() apiv1alpha1.FlavorLister } type flavorInformer struct { @@ -71,7 +71,7 @@ func NewFilteredFlavorInformer(client clientset.Interface, namespace string, res return client.OpenstackV1alpha1().Flavors(namespace).Watch(context.TODO(), options) }, }, - &apiv1alpha1.Flavor{}, + &openstackresourcecontrollerapiv1alpha1.Flavor{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *flavorInformer) defaultInformer(client clientset.Interface, resyncPerio } func (f *flavorInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apiv1alpha1.Flavor{}, f.defaultInformer) + return f.factory.InformerFor(&openstackresourcecontrollerapiv1alpha1.Flavor{}, f.defaultInformer) } -func (f *flavorInformer) Lister() v1alpha1.FlavorLister { - return v1alpha1.NewFlavorLister(f.Informer().GetIndexer()) +func (f *flavorInformer) Lister() apiv1alpha1.FlavorLister { + return apiv1alpha1.NewFlavorLister(f.Informer().GetIndexer()) } diff --git a/pkg/clients/informers/externalversions/api/v1alpha1/image.go b/pkg/clients/informers/externalversions/api/v1alpha1/image.go index 4fe99a8b..f2b2872a 100644 --- a/pkg/clients/informers/externalversions/api/v1alpha1/image.go +++ b/pkg/clients/informers/externalversions/api/v1alpha1/image.go @@ -19,13 +19,13 @@ limitations under the License. package v1alpha1 import ( - "context" + context "context" time "time" - apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + openstackresourcecontrollerapiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" clientset "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset" internalinterfaces "github.com/k-orc/openstack-resource-controller/pkg/clients/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/listers/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/listers/api/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // Images. type ImageInformer interface { Informer() cache.SharedIndexInformer - Lister() v1alpha1.ImageLister + Lister() apiv1alpha1.ImageLister } type imageInformer struct { @@ -71,7 +71,7 @@ func NewFilteredImageInformer(client clientset.Interface, namespace string, resy return client.OpenstackV1alpha1().Images(namespace).Watch(context.TODO(), options) }, }, - &apiv1alpha1.Image{}, + &openstackresourcecontrollerapiv1alpha1.Image{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *imageInformer) defaultInformer(client clientset.Interface, resyncPeriod } func (f *imageInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apiv1alpha1.Image{}, f.defaultInformer) + return f.factory.InformerFor(&openstackresourcecontrollerapiv1alpha1.Image{}, f.defaultInformer) } -func (f *imageInformer) Lister() v1alpha1.ImageLister { - return v1alpha1.NewImageLister(f.Informer().GetIndexer()) +func (f *imageInformer) Lister() apiv1alpha1.ImageLister { + return apiv1alpha1.NewImageLister(f.Informer().GetIndexer()) } diff --git a/pkg/clients/informers/externalversions/api/v1alpha1/network.go b/pkg/clients/informers/externalversions/api/v1alpha1/network.go index 0f151ebf..8c27025d 100644 --- a/pkg/clients/informers/externalversions/api/v1alpha1/network.go +++ b/pkg/clients/informers/externalversions/api/v1alpha1/network.go @@ -19,13 +19,13 @@ limitations under the License. package v1alpha1 import ( - "context" + context "context" time "time" - apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + openstackresourcecontrollerapiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" clientset "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset" internalinterfaces "github.com/k-orc/openstack-resource-controller/pkg/clients/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/listers/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/listers/api/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // Networks. type NetworkInformer interface { Informer() cache.SharedIndexInformer - Lister() v1alpha1.NetworkLister + Lister() apiv1alpha1.NetworkLister } type networkInformer struct { @@ -71,7 +71,7 @@ func NewFilteredNetworkInformer(client clientset.Interface, namespace string, re return client.OpenstackV1alpha1().Networks(namespace).Watch(context.TODO(), options) }, }, - &apiv1alpha1.Network{}, + &openstackresourcecontrollerapiv1alpha1.Network{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *networkInformer) defaultInformer(client clientset.Interface, resyncPeri } func (f *networkInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apiv1alpha1.Network{}, f.defaultInformer) + return f.factory.InformerFor(&openstackresourcecontrollerapiv1alpha1.Network{}, f.defaultInformer) } -func (f *networkInformer) Lister() v1alpha1.NetworkLister { - return v1alpha1.NewNetworkLister(f.Informer().GetIndexer()) +func (f *networkInformer) Lister() apiv1alpha1.NetworkLister { + return apiv1alpha1.NewNetworkLister(f.Informer().GetIndexer()) } diff --git a/pkg/clients/informers/externalversions/api/v1alpha1/port.go b/pkg/clients/informers/externalversions/api/v1alpha1/port.go index 682c8bd0..372dab36 100644 --- a/pkg/clients/informers/externalversions/api/v1alpha1/port.go +++ b/pkg/clients/informers/externalversions/api/v1alpha1/port.go @@ -19,13 +19,13 @@ limitations under the License. package v1alpha1 import ( - "context" + context "context" time "time" - apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + openstackresourcecontrollerapiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" clientset "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset" internalinterfaces "github.com/k-orc/openstack-resource-controller/pkg/clients/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/listers/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/listers/api/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // Ports. type PortInformer interface { Informer() cache.SharedIndexInformer - Lister() v1alpha1.PortLister + Lister() apiv1alpha1.PortLister } type portInformer struct { @@ -71,7 +71,7 @@ func NewFilteredPortInformer(client clientset.Interface, namespace string, resyn return client.OpenstackV1alpha1().Ports(namespace).Watch(context.TODO(), options) }, }, - &apiv1alpha1.Port{}, + &openstackresourcecontrollerapiv1alpha1.Port{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *portInformer) defaultInformer(client clientset.Interface, resyncPeriod } func (f *portInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apiv1alpha1.Port{}, f.defaultInformer) + return f.factory.InformerFor(&openstackresourcecontrollerapiv1alpha1.Port{}, f.defaultInformer) } -func (f *portInformer) Lister() v1alpha1.PortLister { - return v1alpha1.NewPortLister(f.Informer().GetIndexer()) +func (f *portInformer) Lister() apiv1alpha1.PortLister { + return apiv1alpha1.NewPortLister(f.Informer().GetIndexer()) } diff --git a/pkg/clients/informers/externalversions/api/v1alpha1/router.go b/pkg/clients/informers/externalversions/api/v1alpha1/router.go index 8afc953a..beef5d05 100644 --- a/pkg/clients/informers/externalversions/api/v1alpha1/router.go +++ b/pkg/clients/informers/externalversions/api/v1alpha1/router.go @@ -19,13 +19,13 @@ limitations under the License. package v1alpha1 import ( - "context" + context "context" time "time" - apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + openstackresourcecontrollerapiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" clientset "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset" internalinterfaces "github.com/k-orc/openstack-resource-controller/pkg/clients/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/listers/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/listers/api/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // Routers. type RouterInformer interface { Informer() cache.SharedIndexInformer - Lister() v1alpha1.RouterLister + Lister() apiv1alpha1.RouterLister } type routerInformer struct { @@ -71,7 +71,7 @@ func NewFilteredRouterInformer(client clientset.Interface, namespace string, res return client.OpenstackV1alpha1().Routers(namespace).Watch(context.TODO(), options) }, }, - &apiv1alpha1.Router{}, + &openstackresourcecontrollerapiv1alpha1.Router{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *routerInformer) defaultInformer(client clientset.Interface, resyncPerio } func (f *routerInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apiv1alpha1.Router{}, f.defaultInformer) + return f.factory.InformerFor(&openstackresourcecontrollerapiv1alpha1.Router{}, f.defaultInformer) } -func (f *routerInformer) Lister() v1alpha1.RouterLister { - return v1alpha1.NewRouterLister(f.Informer().GetIndexer()) +func (f *routerInformer) Lister() apiv1alpha1.RouterLister { + return apiv1alpha1.NewRouterLister(f.Informer().GetIndexer()) } diff --git a/pkg/clients/informers/externalversions/api/v1alpha1/routerinterface.go b/pkg/clients/informers/externalversions/api/v1alpha1/routerinterface.go index 5df14c3a..266b353f 100644 --- a/pkg/clients/informers/externalversions/api/v1alpha1/routerinterface.go +++ b/pkg/clients/informers/externalversions/api/v1alpha1/routerinterface.go @@ -19,13 +19,13 @@ limitations under the License. package v1alpha1 import ( - "context" + context "context" time "time" - apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + openstackresourcecontrollerapiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" clientset "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset" internalinterfaces "github.com/k-orc/openstack-resource-controller/pkg/clients/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/listers/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/listers/api/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // RouterInterfaces. type RouterInterfaceInformer interface { Informer() cache.SharedIndexInformer - Lister() v1alpha1.RouterInterfaceLister + Lister() apiv1alpha1.RouterInterfaceLister } type routerInterfaceInformer struct { @@ -71,7 +71,7 @@ func NewFilteredRouterInterfaceInformer(client clientset.Interface, namespace st return client.OpenstackV1alpha1().RouterInterfaces(namespace).Watch(context.TODO(), options) }, }, - &apiv1alpha1.RouterInterface{}, + &openstackresourcecontrollerapiv1alpha1.RouterInterface{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *routerInterfaceInformer) defaultInformer(client clientset.Interface, re } func (f *routerInterfaceInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apiv1alpha1.RouterInterface{}, f.defaultInformer) + return f.factory.InformerFor(&openstackresourcecontrollerapiv1alpha1.RouterInterface{}, f.defaultInformer) } -func (f *routerInterfaceInformer) Lister() v1alpha1.RouterInterfaceLister { - return v1alpha1.NewRouterInterfaceLister(f.Informer().GetIndexer()) +func (f *routerInterfaceInformer) Lister() apiv1alpha1.RouterInterfaceLister { + return apiv1alpha1.NewRouterInterfaceLister(f.Informer().GetIndexer()) } diff --git a/pkg/clients/informers/externalversions/api/v1alpha1/securitygroup.go b/pkg/clients/informers/externalversions/api/v1alpha1/securitygroup.go index 9a1ad94b..47d85745 100644 --- a/pkg/clients/informers/externalversions/api/v1alpha1/securitygroup.go +++ b/pkg/clients/informers/externalversions/api/v1alpha1/securitygroup.go @@ -19,13 +19,13 @@ limitations under the License. package v1alpha1 import ( - "context" + context "context" time "time" - apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + openstackresourcecontrollerapiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" clientset "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset" internalinterfaces "github.com/k-orc/openstack-resource-controller/pkg/clients/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/listers/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/listers/api/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // SecurityGroups. type SecurityGroupInformer interface { Informer() cache.SharedIndexInformer - Lister() v1alpha1.SecurityGroupLister + Lister() apiv1alpha1.SecurityGroupLister } type securityGroupInformer struct { @@ -71,7 +71,7 @@ func NewFilteredSecurityGroupInformer(client clientset.Interface, namespace stri return client.OpenstackV1alpha1().SecurityGroups(namespace).Watch(context.TODO(), options) }, }, - &apiv1alpha1.SecurityGroup{}, + &openstackresourcecontrollerapiv1alpha1.SecurityGroup{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *securityGroupInformer) defaultInformer(client clientset.Interface, resy } func (f *securityGroupInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apiv1alpha1.SecurityGroup{}, f.defaultInformer) + return f.factory.InformerFor(&openstackresourcecontrollerapiv1alpha1.SecurityGroup{}, f.defaultInformer) } -func (f *securityGroupInformer) Lister() v1alpha1.SecurityGroupLister { - return v1alpha1.NewSecurityGroupLister(f.Informer().GetIndexer()) +func (f *securityGroupInformer) Lister() apiv1alpha1.SecurityGroupLister { + return apiv1alpha1.NewSecurityGroupLister(f.Informer().GetIndexer()) } diff --git a/pkg/clients/informers/externalversions/api/v1alpha1/server.go b/pkg/clients/informers/externalversions/api/v1alpha1/server.go index eeb8da62..4dabc618 100644 --- a/pkg/clients/informers/externalversions/api/v1alpha1/server.go +++ b/pkg/clients/informers/externalversions/api/v1alpha1/server.go @@ -19,13 +19,13 @@ limitations under the License. package v1alpha1 import ( - "context" + context "context" time "time" - apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + openstackresourcecontrollerapiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" clientset "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset" internalinterfaces "github.com/k-orc/openstack-resource-controller/pkg/clients/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/listers/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/listers/api/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // Servers. type ServerInformer interface { Informer() cache.SharedIndexInformer - Lister() v1alpha1.ServerLister + Lister() apiv1alpha1.ServerLister } type serverInformer struct { @@ -71,7 +71,7 @@ func NewFilteredServerInformer(client clientset.Interface, namespace string, res return client.OpenstackV1alpha1().Servers(namespace).Watch(context.TODO(), options) }, }, - &apiv1alpha1.Server{}, + &openstackresourcecontrollerapiv1alpha1.Server{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *serverInformer) defaultInformer(client clientset.Interface, resyncPerio } func (f *serverInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apiv1alpha1.Server{}, f.defaultInformer) + return f.factory.InformerFor(&openstackresourcecontrollerapiv1alpha1.Server{}, f.defaultInformer) } -func (f *serverInformer) Lister() v1alpha1.ServerLister { - return v1alpha1.NewServerLister(f.Informer().GetIndexer()) +func (f *serverInformer) Lister() apiv1alpha1.ServerLister { + return apiv1alpha1.NewServerLister(f.Informer().GetIndexer()) } diff --git a/pkg/clients/informers/externalversions/api/v1alpha1/subnet.go b/pkg/clients/informers/externalversions/api/v1alpha1/subnet.go index a7e7da4e..fcaa4591 100644 --- a/pkg/clients/informers/externalversions/api/v1alpha1/subnet.go +++ b/pkg/clients/informers/externalversions/api/v1alpha1/subnet.go @@ -19,13 +19,13 @@ limitations under the License. package v1alpha1 import ( - "context" + context "context" time "time" - apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + openstackresourcecontrollerapiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" clientset "github.com/k-orc/openstack-resource-controller/pkg/clients/clientset/clientset" internalinterfaces "github.com/k-orc/openstack-resource-controller/pkg/clients/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/listers/api/v1alpha1" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/pkg/clients/listers/api/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -36,7 +36,7 @@ import ( // Subnets. type SubnetInformer interface { Informer() cache.SharedIndexInformer - Lister() v1alpha1.SubnetLister + Lister() apiv1alpha1.SubnetLister } type subnetInformer struct { @@ -71,7 +71,7 @@ func NewFilteredSubnetInformer(client clientset.Interface, namespace string, res return client.OpenstackV1alpha1().Subnets(namespace).Watch(context.TODO(), options) }, }, - &apiv1alpha1.Subnet{}, + &openstackresourcecontrollerapiv1alpha1.Subnet{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *subnetInformer) defaultInformer(client clientset.Interface, resyncPerio } func (f *subnetInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apiv1alpha1.Subnet{}, f.defaultInformer) + return f.factory.InformerFor(&openstackresourcecontrollerapiv1alpha1.Subnet{}, f.defaultInformer) } -func (f *subnetInformer) Lister() v1alpha1.SubnetLister { - return v1alpha1.NewSubnetLister(f.Informer().GetIndexer()) +func (f *subnetInformer) Lister() apiv1alpha1.SubnetLister { + return apiv1alpha1.NewSubnetLister(f.Informer().GetIndexer()) } diff --git a/pkg/clients/informers/externalversions/generic.go b/pkg/clients/informers/externalversions/generic.go index 354fcc03..f335b5f6 100644 --- a/pkg/clients/informers/externalversions/generic.go +++ b/pkg/clients/informers/externalversions/generic.go @@ -19,7 +19,7 @@ limitations under the License. package externalversions import ( - "fmt" + fmt "fmt" v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" schema "k8s.io/apimachinery/pkg/runtime/schema" diff --git a/pkg/clients/listers/api/v1alpha1/flavor.go b/pkg/clients/listers/api/v1alpha1/flavor.go index 4956842d..0664f5d0 100644 --- a/pkg/clients/listers/api/v1alpha1/flavor.go +++ b/pkg/clients/listers/api/v1alpha1/flavor.go @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // FlavorLister helps list Flavors. @@ -30,7 +30,7 @@ import ( type FlavorLister interface { // List lists all Flavors in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.Flavor, err error) + List(selector labels.Selector) (ret []*apiv1alpha1.Flavor, err error) // Flavors returns an object that can list and get Flavors. Flavors(namespace string) FlavorNamespaceLister FlavorListerExpansion @@ -38,17 +38,17 @@ type FlavorLister interface { // flavorLister implements the FlavorLister interface. type flavorLister struct { - listers.ResourceIndexer[*v1alpha1.Flavor] + listers.ResourceIndexer[*apiv1alpha1.Flavor] } // NewFlavorLister returns a new FlavorLister. func NewFlavorLister(indexer cache.Indexer) FlavorLister { - return &flavorLister{listers.New[*v1alpha1.Flavor](indexer, v1alpha1.Resource("flavor"))} + return &flavorLister{listers.New[*apiv1alpha1.Flavor](indexer, apiv1alpha1.Resource("flavor"))} } // Flavors returns an object that can list and get Flavors. func (s *flavorLister) Flavors(namespace string) FlavorNamespaceLister { - return flavorNamespaceLister{listers.NewNamespaced[*v1alpha1.Flavor](s.ResourceIndexer, namespace)} + return flavorNamespaceLister{listers.NewNamespaced[*apiv1alpha1.Flavor](s.ResourceIndexer, namespace)} } // FlavorNamespaceLister helps list and get Flavors. @@ -56,15 +56,15 @@ func (s *flavorLister) Flavors(namespace string) FlavorNamespaceLister { type FlavorNamespaceLister interface { // List lists all Flavors in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.Flavor, err error) + List(selector labels.Selector) (ret []*apiv1alpha1.Flavor, err error) // Get retrieves the Flavor from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha1.Flavor, error) + Get(name string) (*apiv1alpha1.Flavor, error) FlavorNamespaceListerExpansion } // flavorNamespaceLister implements the FlavorNamespaceLister // interface. type flavorNamespaceLister struct { - listers.ResourceIndexer[*v1alpha1.Flavor] + listers.ResourceIndexer[*apiv1alpha1.Flavor] } diff --git a/pkg/clients/listers/api/v1alpha1/image.go b/pkg/clients/listers/api/v1alpha1/image.go index 6a581e24..d32e1075 100644 --- a/pkg/clients/listers/api/v1alpha1/image.go +++ b/pkg/clients/listers/api/v1alpha1/image.go @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ImageLister helps list Images. @@ -30,7 +30,7 @@ import ( type ImageLister interface { // List lists all Images in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.Image, err error) + List(selector labels.Selector) (ret []*apiv1alpha1.Image, err error) // Images returns an object that can list and get Images. Images(namespace string) ImageNamespaceLister ImageListerExpansion @@ -38,17 +38,17 @@ type ImageLister interface { // imageLister implements the ImageLister interface. type imageLister struct { - listers.ResourceIndexer[*v1alpha1.Image] + listers.ResourceIndexer[*apiv1alpha1.Image] } // NewImageLister returns a new ImageLister. func NewImageLister(indexer cache.Indexer) ImageLister { - return &imageLister{listers.New[*v1alpha1.Image](indexer, v1alpha1.Resource("image"))} + return &imageLister{listers.New[*apiv1alpha1.Image](indexer, apiv1alpha1.Resource("image"))} } // Images returns an object that can list and get Images. func (s *imageLister) Images(namespace string) ImageNamespaceLister { - return imageNamespaceLister{listers.NewNamespaced[*v1alpha1.Image](s.ResourceIndexer, namespace)} + return imageNamespaceLister{listers.NewNamespaced[*apiv1alpha1.Image](s.ResourceIndexer, namespace)} } // ImageNamespaceLister helps list and get Images. @@ -56,15 +56,15 @@ func (s *imageLister) Images(namespace string) ImageNamespaceLister { type ImageNamespaceLister interface { // List lists all Images in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.Image, err error) + List(selector labels.Selector) (ret []*apiv1alpha1.Image, err error) // Get retrieves the Image from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha1.Image, error) + Get(name string) (*apiv1alpha1.Image, error) ImageNamespaceListerExpansion } // imageNamespaceLister implements the ImageNamespaceLister // interface. type imageNamespaceLister struct { - listers.ResourceIndexer[*v1alpha1.Image] + listers.ResourceIndexer[*apiv1alpha1.Image] } diff --git a/pkg/clients/listers/api/v1alpha1/network.go b/pkg/clients/listers/api/v1alpha1/network.go index 94d2d12d..cd6a32f9 100644 --- a/pkg/clients/listers/api/v1alpha1/network.go +++ b/pkg/clients/listers/api/v1alpha1/network.go @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // NetworkLister helps list Networks. @@ -30,7 +30,7 @@ import ( type NetworkLister interface { // List lists all Networks in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.Network, err error) + List(selector labels.Selector) (ret []*apiv1alpha1.Network, err error) // Networks returns an object that can list and get Networks. Networks(namespace string) NetworkNamespaceLister NetworkListerExpansion @@ -38,17 +38,17 @@ type NetworkLister interface { // networkLister implements the NetworkLister interface. type networkLister struct { - listers.ResourceIndexer[*v1alpha1.Network] + listers.ResourceIndexer[*apiv1alpha1.Network] } // NewNetworkLister returns a new NetworkLister. func NewNetworkLister(indexer cache.Indexer) NetworkLister { - return &networkLister{listers.New[*v1alpha1.Network](indexer, v1alpha1.Resource("network"))} + return &networkLister{listers.New[*apiv1alpha1.Network](indexer, apiv1alpha1.Resource("network"))} } // Networks returns an object that can list and get Networks. func (s *networkLister) Networks(namespace string) NetworkNamespaceLister { - return networkNamespaceLister{listers.NewNamespaced[*v1alpha1.Network](s.ResourceIndexer, namespace)} + return networkNamespaceLister{listers.NewNamespaced[*apiv1alpha1.Network](s.ResourceIndexer, namespace)} } // NetworkNamespaceLister helps list and get Networks. @@ -56,15 +56,15 @@ func (s *networkLister) Networks(namespace string) NetworkNamespaceLister { type NetworkNamespaceLister interface { // List lists all Networks in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.Network, err error) + List(selector labels.Selector) (ret []*apiv1alpha1.Network, err error) // Get retrieves the Network from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha1.Network, error) + Get(name string) (*apiv1alpha1.Network, error) NetworkNamespaceListerExpansion } // networkNamespaceLister implements the NetworkNamespaceLister // interface. type networkNamespaceLister struct { - listers.ResourceIndexer[*v1alpha1.Network] + listers.ResourceIndexer[*apiv1alpha1.Network] } diff --git a/pkg/clients/listers/api/v1alpha1/port.go b/pkg/clients/listers/api/v1alpha1/port.go index d96423cc..e3c91637 100644 --- a/pkg/clients/listers/api/v1alpha1/port.go +++ b/pkg/clients/listers/api/v1alpha1/port.go @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // PortLister helps list Ports. @@ -30,7 +30,7 @@ import ( type PortLister interface { // List lists all Ports in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.Port, err error) + List(selector labels.Selector) (ret []*apiv1alpha1.Port, err error) // Ports returns an object that can list and get Ports. Ports(namespace string) PortNamespaceLister PortListerExpansion @@ -38,17 +38,17 @@ type PortLister interface { // portLister implements the PortLister interface. type portLister struct { - listers.ResourceIndexer[*v1alpha1.Port] + listers.ResourceIndexer[*apiv1alpha1.Port] } // NewPortLister returns a new PortLister. func NewPortLister(indexer cache.Indexer) PortLister { - return &portLister{listers.New[*v1alpha1.Port](indexer, v1alpha1.Resource("port"))} + return &portLister{listers.New[*apiv1alpha1.Port](indexer, apiv1alpha1.Resource("port"))} } // Ports returns an object that can list and get Ports. func (s *portLister) Ports(namespace string) PortNamespaceLister { - return portNamespaceLister{listers.NewNamespaced[*v1alpha1.Port](s.ResourceIndexer, namespace)} + return portNamespaceLister{listers.NewNamespaced[*apiv1alpha1.Port](s.ResourceIndexer, namespace)} } // PortNamespaceLister helps list and get Ports. @@ -56,15 +56,15 @@ func (s *portLister) Ports(namespace string) PortNamespaceLister { type PortNamespaceLister interface { // List lists all Ports in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.Port, err error) + List(selector labels.Selector) (ret []*apiv1alpha1.Port, err error) // Get retrieves the Port from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha1.Port, error) + Get(name string) (*apiv1alpha1.Port, error) PortNamespaceListerExpansion } // portNamespaceLister implements the PortNamespaceLister // interface. type portNamespaceLister struct { - listers.ResourceIndexer[*v1alpha1.Port] + listers.ResourceIndexer[*apiv1alpha1.Port] } diff --git a/pkg/clients/listers/api/v1alpha1/router.go b/pkg/clients/listers/api/v1alpha1/router.go index b2188276..182f1c37 100644 --- a/pkg/clients/listers/api/v1alpha1/router.go +++ b/pkg/clients/listers/api/v1alpha1/router.go @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // RouterLister helps list Routers. @@ -30,7 +30,7 @@ import ( type RouterLister interface { // List lists all Routers in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.Router, err error) + List(selector labels.Selector) (ret []*apiv1alpha1.Router, err error) // Routers returns an object that can list and get Routers. Routers(namespace string) RouterNamespaceLister RouterListerExpansion @@ -38,17 +38,17 @@ type RouterLister interface { // routerLister implements the RouterLister interface. type routerLister struct { - listers.ResourceIndexer[*v1alpha1.Router] + listers.ResourceIndexer[*apiv1alpha1.Router] } // NewRouterLister returns a new RouterLister. func NewRouterLister(indexer cache.Indexer) RouterLister { - return &routerLister{listers.New[*v1alpha1.Router](indexer, v1alpha1.Resource("router"))} + return &routerLister{listers.New[*apiv1alpha1.Router](indexer, apiv1alpha1.Resource("router"))} } // Routers returns an object that can list and get Routers. func (s *routerLister) Routers(namespace string) RouterNamespaceLister { - return routerNamespaceLister{listers.NewNamespaced[*v1alpha1.Router](s.ResourceIndexer, namespace)} + return routerNamespaceLister{listers.NewNamespaced[*apiv1alpha1.Router](s.ResourceIndexer, namespace)} } // RouterNamespaceLister helps list and get Routers. @@ -56,15 +56,15 @@ func (s *routerLister) Routers(namespace string) RouterNamespaceLister { type RouterNamespaceLister interface { // List lists all Routers in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.Router, err error) + List(selector labels.Selector) (ret []*apiv1alpha1.Router, err error) // Get retrieves the Router from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha1.Router, error) + Get(name string) (*apiv1alpha1.Router, error) RouterNamespaceListerExpansion } // routerNamespaceLister implements the RouterNamespaceLister // interface. type routerNamespaceLister struct { - listers.ResourceIndexer[*v1alpha1.Router] + listers.ResourceIndexer[*apiv1alpha1.Router] } diff --git a/pkg/clients/listers/api/v1alpha1/routerinterface.go b/pkg/clients/listers/api/v1alpha1/routerinterface.go index c37c4cf9..20f2f3b0 100644 --- a/pkg/clients/listers/api/v1alpha1/routerinterface.go +++ b/pkg/clients/listers/api/v1alpha1/routerinterface.go @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // RouterInterfaceLister helps list RouterInterfaces. @@ -30,7 +30,7 @@ import ( type RouterInterfaceLister interface { // List lists all RouterInterfaces in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.RouterInterface, err error) + List(selector labels.Selector) (ret []*apiv1alpha1.RouterInterface, err error) // RouterInterfaces returns an object that can list and get RouterInterfaces. RouterInterfaces(namespace string) RouterInterfaceNamespaceLister RouterInterfaceListerExpansion @@ -38,17 +38,17 @@ type RouterInterfaceLister interface { // routerInterfaceLister implements the RouterInterfaceLister interface. type routerInterfaceLister struct { - listers.ResourceIndexer[*v1alpha1.RouterInterface] + listers.ResourceIndexer[*apiv1alpha1.RouterInterface] } // NewRouterInterfaceLister returns a new RouterInterfaceLister. func NewRouterInterfaceLister(indexer cache.Indexer) RouterInterfaceLister { - return &routerInterfaceLister{listers.New[*v1alpha1.RouterInterface](indexer, v1alpha1.Resource("routerinterface"))} + return &routerInterfaceLister{listers.New[*apiv1alpha1.RouterInterface](indexer, apiv1alpha1.Resource("routerinterface"))} } // RouterInterfaces returns an object that can list and get RouterInterfaces. func (s *routerInterfaceLister) RouterInterfaces(namespace string) RouterInterfaceNamespaceLister { - return routerInterfaceNamespaceLister{listers.NewNamespaced[*v1alpha1.RouterInterface](s.ResourceIndexer, namespace)} + return routerInterfaceNamespaceLister{listers.NewNamespaced[*apiv1alpha1.RouterInterface](s.ResourceIndexer, namespace)} } // RouterInterfaceNamespaceLister helps list and get RouterInterfaces. @@ -56,15 +56,15 @@ func (s *routerInterfaceLister) RouterInterfaces(namespace string) RouterInterfa type RouterInterfaceNamespaceLister interface { // List lists all RouterInterfaces in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.RouterInterface, err error) + List(selector labels.Selector) (ret []*apiv1alpha1.RouterInterface, err error) // Get retrieves the RouterInterface from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha1.RouterInterface, error) + Get(name string) (*apiv1alpha1.RouterInterface, error) RouterInterfaceNamespaceListerExpansion } // routerInterfaceNamespaceLister implements the RouterInterfaceNamespaceLister // interface. type routerInterfaceNamespaceLister struct { - listers.ResourceIndexer[*v1alpha1.RouterInterface] + listers.ResourceIndexer[*apiv1alpha1.RouterInterface] } diff --git a/pkg/clients/listers/api/v1alpha1/securitygroup.go b/pkg/clients/listers/api/v1alpha1/securitygroup.go index 4b37918c..8788dc05 100644 --- a/pkg/clients/listers/api/v1alpha1/securitygroup.go +++ b/pkg/clients/listers/api/v1alpha1/securitygroup.go @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // SecurityGroupLister helps list SecurityGroups. @@ -30,7 +30,7 @@ import ( type SecurityGroupLister interface { // List lists all SecurityGroups in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.SecurityGroup, err error) + List(selector labels.Selector) (ret []*apiv1alpha1.SecurityGroup, err error) // SecurityGroups returns an object that can list and get SecurityGroups. SecurityGroups(namespace string) SecurityGroupNamespaceLister SecurityGroupListerExpansion @@ -38,17 +38,17 @@ type SecurityGroupLister interface { // securityGroupLister implements the SecurityGroupLister interface. type securityGroupLister struct { - listers.ResourceIndexer[*v1alpha1.SecurityGroup] + listers.ResourceIndexer[*apiv1alpha1.SecurityGroup] } // NewSecurityGroupLister returns a new SecurityGroupLister. func NewSecurityGroupLister(indexer cache.Indexer) SecurityGroupLister { - return &securityGroupLister{listers.New[*v1alpha1.SecurityGroup](indexer, v1alpha1.Resource("securitygroup"))} + return &securityGroupLister{listers.New[*apiv1alpha1.SecurityGroup](indexer, apiv1alpha1.Resource("securitygroup"))} } // SecurityGroups returns an object that can list and get SecurityGroups. func (s *securityGroupLister) SecurityGroups(namespace string) SecurityGroupNamespaceLister { - return securityGroupNamespaceLister{listers.NewNamespaced[*v1alpha1.SecurityGroup](s.ResourceIndexer, namespace)} + return securityGroupNamespaceLister{listers.NewNamespaced[*apiv1alpha1.SecurityGroup](s.ResourceIndexer, namespace)} } // SecurityGroupNamespaceLister helps list and get SecurityGroups. @@ -56,15 +56,15 @@ func (s *securityGroupLister) SecurityGroups(namespace string) SecurityGroupName type SecurityGroupNamespaceLister interface { // List lists all SecurityGroups in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.SecurityGroup, err error) + List(selector labels.Selector) (ret []*apiv1alpha1.SecurityGroup, err error) // Get retrieves the SecurityGroup from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha1.SecurityGroup, error) + Get(name string) (*apiv1alpha1.SecurityGroup, error) SecurityGroupNamespaceListerExpansion } // securityGroupNamespaceLister implements the SecurityGroupNamespaceLister // interface. type securityGroupNamespaceLister struct { - listers.ResourceIndexer[*v1alpha1.SecurityGroup] + listers.ResourceIndexer[*apiv1alpha1.SecurityGroup] } diff --git a/pkg/clients/listers/api/v1alpha1/server.go b/pkg/clients/listers/api/v1alpha1/server.go index 7b0472b9..c624d47c 100644 --- a/pkg/clients/listers/api/v1alpha1/server.go +++ b/pkg/clients/listers/api/v1alpha1/server.go @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ServerLister helps list Servers. @@ -30,7 +30,7 @@ import ( type ServerLister interface { // List lists all Servers in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.Server, err error) + List(selector labels.Selector) (ret []*apiv1alpha1.Server, err error) // Servers returns an object that can list and get Servers. Servers(namespace string) ServerNamespaceLister ServerListerExpansion @@ -38,17 +38,17 @@ type ServerLister interface { // serverLister implements the ServerLister interface. type serverLister struct { - listers.ResourceIndexer[*v1alpha1.Server] + listers.ResourceIndexer[*apiv1alpha1.Server] } // NewServerLister returns a new ServerLister. func NewServerLister(indexer cache.Indexer) ServerLister { - return &serverLister{listers.New[*v1alpha1.Server](indexer, v1alpha1.Resource("server"))} + return &serverLister{listers.New[*apiv1alpha1.Server](indexer, apiv1alpha1.Resource("server"))} } // Servers returns an object that can list and get Servers. func (s *serverLister) Servers(namespace string) ServerNamespaceLister { - return serverNamespaceLister{listers.NewNamespaced[*v1alpha1.Server](s.ResourceIndexer, namespace)} + return serverNamespaceLister{listers.NewNamespaced[*apiv1alpha1.Server](s.ResourceIndexer, namespace)} } // ServerNamespaceLister helps list and get Servers. @@ -56,15 +56,15 @@ func (s *serverLister) Servers(namespace string) ServerNamespaceLister { type ServerNamespaceLister interface { // List lists all Servers in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.Server, err error) + List(selector labels.Selector) (ret []*apiv1alpha1.Server, err error) // Get retrieves the Server from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha1.Server, error) + Get(name string) (*apiv1alpha1.Server, error) ServerNamespaceListerExpansion } // serverNamespaceLister implements the ServerNamespaceLister // interface. type serverNamespaceLister struct { - listers.ResourceIndexer[*v1alpha1.Server] + listers.ResourceIndexer[*apiv1alpha1.Server] } diff --git a/pkg/clients/listers/api/v1alpha1/subnet.go b/pkg/clients/listers/api/v1alpha1/subnet.go index e84d67bd..e3fbb5da 100644 --- a/pkg/clients/listers/api/v1alpha1/subnet.go +++ b/pkg/clients/listers/api/v1alpha1/subnet.go @@ -19,10 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + apiv1alpha1 "github.com/k-orc/openstack-resource-controller/api/v1alpha1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // SubnetLister helps list Subnets. @@ -30,7 +30,7 @@ import ( type SubnetLister interface { // List lists all Subnets in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.Subnet, err error) + List(selector labels.Selector) (ret []*apiv1alpha1.Subnet, err error) // Subnets returns an object that can list and get Subnets. Subnets(namespace string) SubnetNamespaceLister SubnetListerExpansion @@ -38,17 +38,17 @@ type SubnetLister interface { // subnetLister implements the SubnetLister interface. type subnetLister struct { - listers.ResourceIndexer[*v1alpha1.Subnet] + listers.ResourceIndexer[*apiv1alpha1.Subnet] } // NewSubnetLister returns a new SubnetLister. func NewSubnetLister(indexer cache.Indexer) SubnetLister { - return &subnetLister{listers.New[*v1alpha1.Subnet](indexer, v1alpha1.Resource("subnet"))} + return &subnetLister{listers.New[*apiv1alpha1.Subnet](indexer, apiv1alpha1.Resource("subnet"))} } // Subnets returns an object that can list and get Subnets. func (s *subnetLister) Subnets(namespace string) SubnetNamespaceLister { - return subnetNamespaceLister{listers.NewNamespaced[*v1alpha1.Subnet](s.ResourceIndexer, namespace)} + return subnetNamespaceLister{listers.NewNamespaced[*apiv1alpha1.Subnet](s.ResourceIndexer, namespace)} } // SubnetNamespaceLister helps list and get Subnets. @@ -56,15 +56,15 @@ func (s *subnetLister) Subnets(namespace string) SubnetNamespaceLister { type SubnetNamespaceLister interface { // List lists all Subnets in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.Subnet, err error) + List(selector labels.Selector) (ret []*apiv1alpha1.Subnet, err error) // Get retrieves the Subnet from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha1.Subnet, error) + Get(name string) (*apiv1alpha1.Subnet, error) SubnetNamespaceListerExpansion } // subnetNamespaceLister implements the SubnetNamespaceLister // interface. type subnetNamespaceLister struct { - listers.ResourceIndexer[*v1alpha1.Subnet] + listers.ResourceIndexer[*apiv1alpha1.Subnet] }