From ea9dd8e734915b794e1d2f8f751329512db40002 Mon Sep 17 00:00:00 2001 From: Robert Vasek Date: Mon, 6 Jan 2025 16:42:03 +0100 Subject: [PATCH 1/7] prow: use build:1.23.4-1 On-behalf-of: SAP robert.vasek@sap.com Signed-off-by: Robert Vasek --- .prow.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.prow.yaml b/.prow.yaml index f873721d5..875b8122c 100644 --- a/.prow.yaml +++ b/.prow.yaml @@ -7,7 +7,7 @@ presubmits: preset-goproxy: "true" spec: containers: - - image: ghcr.io/kcp-dev/infra/build:1.22.2-1 + - image: ghcr.io/kcp-dev/infra/build:1.23.4-1 command: - make - verify-codegen @@ -21,7 +21,7 @@ presubmits: preset-goproxy: "true" spec: containers: - - image: ghcr.io/kcp-dev/infra/build:1.22.2-1 + - image: ghcr.io/kcp-dev/infra/build:1.23.4-1 command: - make - lint @@ -34,7 +34,7 @@ presubmits: preset-goproxy: "true" spec: containers: - - image: ghcr.io/kcp-dev/infra/build:1.22.2-1 + - image: ghcr.io/kcp-dev/infra/build:1.23.4-1 command: - make - test From de0a976fce30ac798d7c54083bcd9cc45dca177c Mon Sep 17 00:00:00 2001 From: Robert Vasek Date: Tue, 7 Jan 2025 14:05:17 +0100 Subject: [PATCH 2/7] Makefile: use golangci-lint v1.62.2 Needed for go1.23. On-behalf-of: SAP robert.vasek@sap.com Signed-off-by: Robert Vasek --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3eebd8f9a..f726d7f8f 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ CONTROLLER_GEN_BIN := controller-gen CONTROLLER_GEN := $(GOBIN_DIR)/$(CONTROLLER_GEN_BIN)-$(CONTROLLER_GEN_VER) export CONTROLLER_GEN -GOLANGCI_LINT_VER := v1.58.1 +GOLANGCI_LINT_VER := v1.62.2 GOLANGCI_LINT_BIN := golangci-lint GOLANGCI_LINT := $(GOBIN_DIR)/$(GOLANGCI_LINT_BIN)-$(GOLANGCI_LINT_VER) From cc34b0769725bffd94c8863be1fb80fc2cf6f343 Mon Sep 17 00:00:00 2001 From: Robert Vasek Date: Tue, 7 Jan 2025 14:33:42 +0100 Subject: [PATCH 3/7] Update k8s.io dependencies to 1.32 On-behalf-of: SAP robert.vasek@sap.com Signed-off-by: Robert Vasek --- Makefile | 8 ++++---- go.mod | 28 ++++++++++++++-------------- go.sum | 56 ++++++++++++++++++++++++++++---------------------------- 3 files changed, 46 insertions(+), 46 deletions(-) diff --git a/Makefile b/Makefile index f726d7f8f..fdee08b7b 100644 --- a/Makefile +++ b/Makefile @@ -29,13 +29,13 @@ GOLANGCI_LINT_VER := v1.62.2 GOLANGCI_LINT_BIN := golangci-lint GOLANGCI_LINT := $(GOBIN_DIR)/$(GOLANGCI_LINT_BIN)-$(GOLANGCI_LINT_VER) -KUBE_CLIENT_GEN_VER := v0.31.0 +KUBE_CLIENT_GEN_VER := v0.32.0 KUBE_CLIENT_GEN_BIN := client-gen -KUBE_LISTER_GEN_VER := v0.31.0 +KUBE_LISTER_GEN_VER := v0.32.0 KUBE_LISTER_GEN_BIN := lister-gen -KUBE_INFORMER_GEN_VER := v0.31.0 +KUBE_INFORMER_GEN_VER := v0.32.0 KUBE_INFORMER_GEN_BIN := informer-gen -KUBE_APPLYCONFIGURATION_GEN_VER := v0.31.0 +KUBE_APPLYCONFIGURATION_GEN_VER := v0.32.0 KUBE_APPLYCONFIGURATION_GEN_BIN := applyconfiguration-gen KUBE_CLIENT_GEN := $(GOBIN_DIR)/$(KUBE_CLIENT_GEN_BIN)-$(KUBE_CLIENT_GEN_VER) diff --git a/go.mod b/go.mod index 1b9a4287b..6a1351d4c 100644 --- a/go.mod +++ b/go.mod @@ -1,16 +1,17 @@ module github.com/kcp-dev/code-generator/v2 -go 1.22.0 +go 1.23.0 require ( github.com/onsi/ginkgo v1.16.5 - github.com/onsi/gomega v1.34.1 + github.com/onsi/gomega v1.35.1 github.com/spf13/cobra v1.8.1 github.com/spf13/pflag v1.0.5 - golang.org/x/tools v0.24.0 - k8s.io/apimachinery v0.31.0 - k8s.io/code-generator v0.31.0 - k8s.io/gengo/v2 v2.0.0-20240826214909-a7b603a56eb7 + golang.org/x/text v0.21.0 + golang.org/x/tools v0.29.0 + k8s.io/apimachinery v0.32.0 + k8s.io/code-generator v0.32.0 + k8s.io/gengo/v2 v2.0.0-20250106234829-0359904fc2a6 k8s.io/klog/v2 v2.130.1 sigs.k8s.io/controller-tools v0.16.1 ) @@ -21,17 +22,16 @@ require ( github.com/go-logr/logr v1.4.2 // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/kr/text v0.2.0 // indirect + github.com/kr/pretty v0.3.1 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/nxadm/tail v1.4.8 // indirect - github.com/onsi/ginkgo/v2 v2.20.0 // indirect - golang.org/x/exp v0.0.0-20240823005443-9b4947da3948 // indirect - golang.org/x/mod v0.20.0 // indirect - golang.org/x/net v0.28.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.24.0 // indirect - golang.org/x/text v0.17.0 // indirect + github.com/rogpeppe/go-internal v1.12.0 // indirect + golang.org/x/mod v0.22.0 // indirect + golang.org/x/net v0.34.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.29.0 // indirect + google.golang.org/protobuf v1.36.2 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/go.sum b/go.sum index 62c6a3890..48536a804 100644 --- a/go.sum +++ b/go.sum @@ -26,8 +26,8 @@ github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMyw github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/pprof v0.0.0-20240727154555-813a5fbdbec8 h1:FKHo8hFI3A+7w0aUQuYXQ+6EN5stWmeY/AZqtM8xk9k= -github.com/google/pprof v0.0.0-20240727154555-813a5fbdbec8/go.mod h1:K1liHPHnj73Fdn/EKuT8nrFqBihUSKXoLYU0BuatOYo= +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/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= @@ -50,13 +50,15 @@ github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+W github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= -github.com/onsi/ginkgo/v2 v2.20.0 h1:PE84V2mHqoT1sglvHc8ZdQtPcwmvvt29WLEEO3xmdZw= -github.com/onsi/ginkgo/v2 v2.20.0/go.mod h1:lG9ey2Z29hR41WMVthyJBGUBcBhGOtoPF2VFMvBXFCI= +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.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/onsi/gomega v1.34.1 h1:EUMJIKUjM8sKjYbtxQI9A4z2o+rruxnzNvpknOXie6k= -github.com/onsi/gomega v1.34.1/go.mod h1:kU1QgUvBDLXBJq618Xvm2LUX6rSAfRaFRTcdOeDLwwY= +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/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= @@ -70,23 +72,21 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec 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= -golang.org/x/exp v0.0.0-20240823005443-9b4947da3948 h1:kx6Ds3MlpiUHKj7syVnbp57++8WpuKPcR5yjLBjvLEA= -golang.org/x/exp v0.0.0-20240823005443-9b4947da3948/go.mod h1:akd2r19cwCdwSwWeIdzYQGa/EZZyqcOdwWiwj5L5eKQ= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.20.0 h1:utOm6MM3R3dnawAiJgn0y+xvuYRsm1RKM/4giyfDgV0= -golang.org/x/mod v0.20.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4= +golang.org/x/mod v0.22.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE= -golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg= +golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0= +golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -98,17 +98,17 @@ golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= -golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU= +golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= -golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.24.0 h1:J1shsA93PJUEVaUSaay7UXAyE8aimq3GW0pjlolpa24= -golang.org/x/tools v0.24.0/go.mod h1:YhNqVBIfWHdzvTLs0d8LCuMhkKUgSUKldakyV7W/WDQ= +golang.org/x/tools v0.29.0 h1:Xx0h3TtM9rzQpQuR4dKLrdglAmCEN5Oi+P74JdhdzXE= +golang.org/x/tools v0.29.0/go.mod h1:KMQVMRsVxU6nHCFXrBPhDB8XncLNLM0lIy/F14RP588= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -119,8 +119,8 @@ google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQ google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= -google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= +google.golang.org/protobuf v1.36.2 h1:R8FeyR1/eLmkutZOM5CWghmo5itiG9z0ktFlTVLuTmU= +google.golang.org/protobuf v1.36.2/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= @@ -134,12 +134,12 @@ 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.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -k8s.io/apimachinery v0.31.0 h1:m9jOiSr3FoSSL5WO9bjm1n6B9KROYYgNZOb4tyZ1lBc= -k8s.io/apimachinery v0.31.0/go.mod h1:rsPdaZJfTfLsNJSQzNHQvYoTmxhoOEofxtOsF3rtsMo= -k8s.io/code-generator v0.31.0 h1:w607nrMi1KeDKB3/F/J4lIoOgAwc+gV9ZKew4XRfMp8= -k8s.io/code-generator v0.31.0/go.mod h1:84y4w3es8rOJOUUP1rLsIiGlO1JuEaPFXQPA9e/K6U0= -k8s.io/gengo/v2 v2.0.0-20240826214909-a7b603a56eb7 h1:cErOOTkQ3JW19o4lo91fFurouhP8NcoBvb7CkvhZZpk= -k8s.io/gengo/v2 v2.0.0-20240826214909-a7b603a56eb7/go.mod h1:EJykeLsmFC60UQbYJezXkEsG2FLrt0GPNkU5iK5GWxU= +k8s.io/apimachinery v0.32.0 h1:cFSE7N3rmEEtv4ei5X6DaJPHHX0C+upp+v5lVPiEwpg= +k8s.io/apimachinery v0.32.0/go.mod h1:GpHVgxoKlTxClKcteaeuF1Ul/lDVb74KpZcxcmLDElE= +k8s.io/code-generator v0.32.0 h1:s0lNN8VSWny8LBz5t5iy7MCdgwdOhdg7vAGVxvS+VWU= +k8s.io/code-generator v0.32.0/go.mod h1:b7Q7KMZkvsYFy72A79QYjiv4aTz3GvW0f1T3UfhFq4s= +k8s.io/gengo/v2 v2.0.0-20250106234829-0359904fc2a6 h1:SdzkGIk4b5LFkVO36PuO0Bx4tpBDJDpNN0F1/v8JM5c= +k8s.io/gengo/v2 v2.0.0-20250106234829-0359904fc2a6/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= sigs.k8s.io/controller-tools v0.16.1 h1:gvIsZm+2aimFDIBiDKumR7EBkc+oLxljoUVfRbDI6RI= From 0351bdd4ef60ad94f5b8272f62b085b6c3e8ca80 Mon Sep 17 00:00:00 2001 From: Robert Vasek Date: Tue, 7 Jan 2025 14:40:48 +0100 Subject: [PATCH 4/7] Makefile: use controller-gen v0.17.0 Needed for client-go v0.32.0. On-behalf-of: SAP robert.vasek@sap.com Signed-off-by: Robert Vasek --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fdee08b7b..a57f1d266 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ TOOLS_DIR=hack/tools GOBIN_DIR := $(abspath $(TOOLS_DIR)) TMPDIR := $(shell mktemp -d) -CONTROLLER_GEN_VER := v0.16.5 +CONTROLLER_GEN_VER := v0.17.0 CONTROLLER_GEN_BIN := controller-gen CONTROLLER_GEN := $(GOBIN_DIR)/$(CONTROLLER_GEN_BIN)-$(CONTROLLER_GEN_VER) export CONTROLLER_GEN From 602601000a6da8c741aac6a1a717db82104a0f5a Mon Sep 17 00:00:00 2001 From: Robert Vasek Date: Tue, 7 Jan 2025 15:47:49 +0100 Subject: [PATCH 5/7] examples: Update kcp-dev/apimachinery and k8s dependencies to 1.32 On-behalf-of: SAP robert.vasek@sap.com Signed-off-by: Robert Vasek --- examples/go.mod | 37 +++++++++++---------- examples/go.sum | 86 ++++++++++++++++++++++++------------------------- 2 files changed, 60 insertions(+), 63 deletions(-) diff --git a/examples/go.mod b/examples/go.mod index 96fa3705c..8aff2ec57 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -1,16 +1,16 @@ module acme.corp -go 1.22.0 +go 1.23.0 replace acme.corp/pkg => ./pkg require ( - github.com/kcp-dev/apimachinery/v2 v2.0.0-alpha.0.0.20240510131959-2fa3992332d0 + github.com/kcp-dev/apimachinery/v2 v2.0.1-0.20241230150911-cd7529a844f3 github.com/kcp-dev/client-go v0.0.0-20230927101349-0416c830e3b1 github.com/kcp-dev/logicalcluster/v3 v3.0.4 - k8s.io/apimachinery v0.31.0 - k8s.io/client-go v0.31.0 - sigs.k8s.io/structured-merge-diff/v4 v4.4.1 + k8s.io/apimachinery v0.32.0 + k8s.io/client-go v0.32.0 + sigs.k8s.io/structured-merge-diff/v4 v4.4.2 ) require ( @@ -19,9 +19,9 @@ require ( github.com/evanphx/json-patch v5.6.0+incompatible // indirect github.com/fxamacker/cbor/v2 v2.7.0 // indirect github.com/go-logr/logr v1.4.2 // 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/gogo/protobuf v1.3.2 // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/google/gnostic-models v0.6.8 // indirect @@ -36,21 +36,20 @@ require ( github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/x448/float16 v0.8.4 // indirect - golang.org/x/net v0.26.0 // indirect - golang.org/x/oauth2 v0.21.0 // indirect - golang.org/x/sys v0.21.0 // indirect - golang.org/x/term v0.21.0 // indirect - golang.org/x/text v0.16.0 // indirect - golang.org/x/time v0.3.0 // indirect - google.golang.org/protobuf v1.34.2 // indirect + golang.org/x/net v0.30.0 // indirect + golang.org/x/oauth2 v0.23.0 // indirect + golang.org/x/sys v0.26.0 // indirect + golang.org/x/term v0.25.0 // indirect + golang.org/x/text v0.19.0 // indirect + golang.org/x/time v0.7.0 // indirect + google.golang.org/protobuf v1.35.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/api v0.31.0 // indirect + k8s.io/api v0.32.0 // indirect k8s.io/klog/v2 v2.130.1 // indirect - k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect - k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect - sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect + k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f // indirect + k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect + sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect sigs.k8s.io/yaml v1.4.0 // indirect ) diff --git a/examples/go.sum b/examples/go.sum index 15a075b4b..f3b7a2640 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -11,13 +11,14 @@ github.com/fxamacker/cbor/v2 v2.7.0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv github.com/fxamacker/cbor/v2 v2.7.0/go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ= github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= -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/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= @@ -32,16 +33,16 @@ 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-20240525223248-4bfdf5a9a2af h1:kmjWCqn2qkEml422C2Rrd27c3VGxi6a/6HNq8QmHRKM= -github.com/google/pprof v0.0.0-20240525223248-4bfdf5a9a2af/go.mod h1:K1liHPHnj73Fdn/EKuT8nrFqBihUSKXoLYU0BuatOYo= +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/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/kcp-dev/apimachinery/v2 v2.0.0-alpha.0.0.20240510131959-2fa3992332d0 h1:op3XYaMYEBBXJs3aaECa3emMjFs+tf26xRuTINg46VU= -github.com/kcp-dev/apimachinery/v2 v2.0.0-alpha.0.0.20240510131959-2fa3992332d0/go.mod h1:cXCx7fku8/rYK23PNEBRLQ5ByoABoA+CZeJNC81TO0g= +github.com/kcp-dev/apimachinery/v2 v2.0.1-0.20241230150911-cd7529a844f3 h1:c9j9T9Q5g7o8VhC1SqfN/J/RdbcKQODbg3giJUigtYI= +github.com/kcp-dev/apimachinery/v2 v2.0.1-0.20241230150911-cd7529a844f3/go.mod h1:LRmJklLHYYIpEPIYG4GaF8NkCCrmMMQbaMQlhaOTjvU= github.com/kcp-dev/client-go v0.0.0-20230927101349-0416c830e3b1 h1:cyRhjhVSmcUqsMg0wh+DB/DjlpV58nhRpJYxRgCjayA= github.com/kcp-dev/client-go v0.0.0-20230927101349-0416c830e3b1/go.mod h1:XfQFbR0lb2SsNEiAcR0ktxzgjlcJQpiWLX+OHw3a5ac= github.com/kcp-dev/logicalcluster/v3 v3.0.4 h1:q7KngML/QM7sWl8aVzmfZF0TPMnBwYNxsPKfwUvvBvU= @@ -64,10 +65,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.19.0 h1:9Cnnf7UHo57Hy3k6/m5k3dRfGTMXGvxhHFvkDTCTpvA= -github.com/onsi/ginkgo/v2 v2.19.0/go.mod h1:rlwLi9PilAFJ8jCg9UE1QP6VBpd6/xj3SRC0d6TU0To= -github.com/onsi/gomega v1.19.0 h1:4ieX6qQjPP/BfC3mpsAtIGGlxTWPeA3Inl/7DtXw1tw= -github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= +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/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= @@ -99,38 +100,38 @@ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= -golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= -golang.org/x/oauth2 v0.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs= -golang.org/x/oauth2 v0.21.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= +golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= +golang.org/x/oauth2 v0.23.0 h1:PbgcYx2W7i4LvjJWEbf0ngHV6qJYr86PkAV3bXdLEbs= +golang.org/x/oauth2 v0.23.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= -golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/term v0.21.0 h1:WVXCp+/EBEHOj53Rvu+7KiT/iElMrO8ACK16SMZ3jaA= -golang.org/x/term v0.21.0/go.mod h1:ooXLefLobQVslOqselCNF4SxFAaoS6KujMbsGzSDmX0= +golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= +golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= +golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= -golang.org/x/time v0.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4= -golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= +golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/time v0.7.0 h1:ntUhktv3OPE6TgYxXWv9vKvUSJyIFJlyohwbkEwPrKQ= +golang.org/x/time v0.7.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg= -golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= +golang.org/x/tools v0.26.0 h1:v/60pFQmzmT9ExmjDv2gGIfi3OqfKoEP6I5+umXlbnQ= +golang.org/x/tools v0.26.0/go.mod h1:TPVVj70c7JJ3WCazhD8OdXcZg/og+b9+tH/KxylGwH0= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= -google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= +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= 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= @@ -138,27 +139,24 @@ 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.0 h1:b9LiSjR2ym/SzTOlfMHm1tr7/21aD7fSkqgD/CVJBCo= -k8s.io/api v0.31.0/go.mod h1:0YiFF+JfFxMM6+1hQei8FY8M7s1Mth+z/q7eF1aJkTE= -k8s.io/apimachinery v0.31.0 h1:m9jOiSr3FoSSL5WO9bjm1n6B9KROYYgNZOb4tyZ1lBc= -k8s.io/apimachinery v0.31.0/go.mod h1:rsPdaZJfTfLsNJSQzNHQvYoTmxhoOEofxtOsF3rtsMo= -k8s.io/client-go v0.31.0 h1:QqEJzNjbN2Yv1H79SsS+SWnXkBgVu4Pj3CJQgbx0gI8= -k8s.io/client-go v0.31.0/go.mod h1:Y9wvC76g4fLjmU0BA+rV+h2cncoadjvjjkkIGoTLcGU= +k8s.io/api v0.32.0 h1:OL9JpbvAU5ny9ga2fb24X8H6xQlVp+aJMFlgtQjR9CE= +k8s.io/api v0.32.0/go.mod h1:4LEwHZEf6Q/cG96F3dqR965sYOfmPM7rq81BLgsE0p0= +k8s.io/apimachinery v0.32.0 h1:cFSE7N3rmEEtv4ei5X6DaJPHHX0C+upp+v5lVPiEwpg= +k8s.io/apimachinery v0.32.0/go.mod h1:GpHVgxoKlTxClKcteaeuF1Ul/lDVb74KpZcxcmLDElE= +k8s.io/client-go v0.32.0 h1:DimtMcnN/JIKZcrSrstiwvvZvLjG0aSxy8PxN8IChp8= +k8s.io/client-go v0.32.0/go.mod h1:boDWvdM1Drk4NJj/VddSLnx59X3OPgwrOo0vGbtq9+8= 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/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/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= From 05f71fdec805ed14dae87849567e2bf63593337b Mon Sep 17 00:00:00 2001 From: Robert Vasek Date: Thu, 23 Jan 2025 20:03:55 +0100 Subject: [PATCH 6/7] Removed "!ignore_autogenerated" build constraints in file templates The constraint caused the files to be not picked up by tools in k8s.io/code-generator/cmd. On-behalf-of: SAP robert.vasek@sap.com Signed-off-by: Robert Vasek --- pkg/internal/clientgen/clientset.go | 3 --- pkg/internal/clientgen/fake_clientset.go | 3 --- pkg/internal/clientgen/fake_group.go | 3 --- pkg/internal/clientgen/fake_type.go | 3 --- pkg/internal/clientgen/group.go | 3 --- pkg/internal/clientgen/scheme.go | 3 --- pkg/internal/clientgen/type.go | 3 --- pkg/internal/informergen/factory.go | 3 --- pkg/internal/informergen/factoryinterface.go | 3 --- pkg/internal/informergen/generic.go | 3 --- pkg/internal/informergen/groupinterface.go | 3 --- pkg/internal/informergen/informer.go | 3 --- pkg/internal/informergen/versioninterface.go | 3 --- pkg/internal/listergen/expansions.go | 3 --- pkg/internal/listergen/lister.go | 3 --- 15 files changed, 45 deletions(-) diff --git a/pkg/internal/clientgen/clientset.go b/pkg/internal/clientgen/clientset.go index b42849c40..668b730ea 100644 --- a/pkg/internal/clientgen/clientset.go +++ b/pkg/internal/clientgen/clientset.go @@ -46,9 +46,6 @@ func (c *ClientSet) WriteContent(w io.Writer) error { } var clientset = ` -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - // Code generated by kcp code-generator. DO NOT EDIT. package {{.packageName}} diff --git a/pkg/internal/clientgen/fake_clientset.go b/pkg/internal/clientgen/fake_clientset.go index a1c55251f..179e8fee7 100644 --- a/pkg/internal/clientgen/fake_clientset.go +++ b/pkg/internal/clientgen/fake_clientset.go @@ -45,9 +45,6 @@ func (c *FakeClientset) WriteContent(w io.Writer) error { } var fakeClientset = ` -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - // Code generated by kcp code-generator. DO NOT EDIT. package fake diff --git a/pkg/internal/clientgen/fake_group.go b/pkg/internal/clientgen/fake_group.go index 8d9f6672d..ea151b158 100644 --- a/pkg/internal/clientgen/fake_group.go +++ b/pkg/internal/clientgen/fake_group.go @@ -45,9 +45,6 @@ func (g *FakeGroup) WriteContent(w io.Writer) error { } var fakeGroup = ` -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - // Code generated by kcp code-generator. DO NOT EDIT. package fake diff --git a/pkg/internal/clientgen/fake_type.go b/pkg/internal/clientgen/fake_type.go index 00099ab4a..545abd381 100644 --- a/pkg/internal/clientgen/fake_type.go +++ b/pkg/internal/clientgen/fake_type.go @@ -127,9 +127,6 @@ func (c *FakeTypedClient) WriteContent(w io.Writer) error { } var fakeTypedClient = ` -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - // Code generated by kcp code-generator. DO NOT EDIT. package fake diff --git a/pkg/internal/clientgen/group.go b/pkg/internal/clientgen/group.go index 89dfa91ba..c28035ba1 100644 --- a/pkg/internal/clientgen/group.go +++ b/pkg/internal/clientgen/group.go @@ -40,9 +40,6 @@ func (g *Group) WriteContent(w io.Writer) error { } var group = ` -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - // Code generated by kcp code-generator. DO NOT EDIT. package {{.group.Version.PackageName}} diff --git a/pkg/internal/clientgen/scheme.go b/pkg/internal/clientgen/scheme.go index 305e98cdd..a8cf60450 100644 --- a/pkg/internal/clientgen/scheme.go +++ b/pkg/internal/clientgen/scheme.go @@ -36,9 +36,6 @@ func (c *Scheme) WriteContent(w io.Writer) error { } var scheme = ` -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - // Code generated by kcp code-generator. DO NOT EDIT. package scheme diff --git a/pkg/internal/clientgen/type.go b/pkg/internal/clientgen/type.go index a633c46c2..d1ad7536a 100644 --- a/pkg/internal/clientgen/type.go +++ b/pkg/internal/clientgen/type.go @@ -45,9 +45,6 @@ func (c *TypedClient) WriteContent(w io.Writer) error { } var typedClient = ` -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - // Code generated by kcp code-generator. DO NOT EDIT. package {{.group.Version.PackageName}} diff --git a/pkg/internal/informergen/factory.go b/pkg/internal/informergen/factory.go index c125a378f..1764a4ca3 100644 --- a/pkg/internal/informergen/factory.go +++ b/pkg/internal/informergen/factory.go @@ -64,9 +64,6 @@ func (f *Factory) WriteContent(w io.Writer) error { } var sharedInformerFactoryStruct = ` -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - // Code generated by kcp code-generator. DO NOT EDIT. package informers diff --git a/pkg/internal/informergen/factoryinterface.go b/pkg/internal/informergen/factoryinterface.go index 77a415f34..d4e648790 100644 --- a/pkg/internal/informergen/factoryinterface.go +++ b/pkg/internal/informergen/factoryinterface.go @@ -49,9 +49,6 @@ func (f *FactoryInterface) WriteContent(w io.Writer) error { } var externalSharedInformerFactoryInterface = ` -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - // Code generated by kcp code-generator. DO NOT EDIT. package internalinterfaces diff --git a/pkg/internal/informergen/generic.go b/pkg/internal/informergen/generic.go index 3a863838d..af46d14b1 100644 --- a/pkg/internal/informergen/generic.go +++ b/pkg/internal/informergen/generic.go @@ -58,9 +58,6 @@ func (g *Generic) WriteContent(w io.Writer) error { } var genericInformer = ` -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - // Code generated by kcp code-generator. DO NOT EDIT. package informers diff --git a/pkg/internal/informergen/groupinterface.go b/pkg/internal/informergen/groupinterface.go index b2f1d156e..280f68d33 100644 --- a/pkg/internal/informergen/groupinterface.go +++ b/pkg/internal/informergen/groupinterface.go @@ -57,9 +57,6 @@ func (g GroupInterface) WriteContent(w io.Writer) error { } var groupInterface = ` -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - // Code generated by kcp code-generator. DO NOT EDIT. package {{.packageName}} diff --git a/pkg/internal/informergen/informer.go b/pkg/internal/informergen/informer.go index 8405a0744..796040425 100644 --- a/pkg/internal/informergen/informer.go +++ b/pkg/internal/informergen/informer.go @@ -83,9 +83,6 @@ func (i *Informer) WriteContent(w io.Writer) error { } var informer = ` -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - // Code generated by kcp code-generator. DO NOT EDIT. package {{.group.Version.PackageName}} diff --git a/pkg/internal/informergen/versioninterface.go b/pkg/internal/informergen/versioninterface.go index 41905a2bf..93a5c038b 100644 --- a/pkg/internal/informergen/versioninterface.go +++ b/pkg/internal/informergen/versioninterface.go @@ -59,9 +59,6 @@ func (v *VersionInterface) WriteContent(w io.Writer) error { } var versionInterfaceTemplate = ` -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - // Code generated by kcp code-generator. DO NOT EDIT. package {{.packageName}} diff --git a/pkg/internal/listergen/expansions.go b/pkg/internal/listergen/expansions.go index 5c4f3089c..3186b5740 100644 --- a/pkg/internal/listergen/expansions.go +++ b/pkg/internal/listergen/expansions.go @@ -34,9 +34,6 @@ func (l *Expansions) WriteContent(w io.Writer) error { } var expansions = ` -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - // Code generated by kcp code-generator. DO NOT EDIT. package {{.group.Version.PackageName}} diff --git a/pkg/internal/listergen/lister.go b/pkg/internal/listergen/lister.go index 662c53e92..864d5bad1 100644 --- a/pkg/internal/listergen/lister.go +++ b/pkg/internal/listergen/lister.go @@ -41,9 +41,6 @@ func (l *Lister) WriteContent(w io.Writer) error { } var lister = ` -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - // Code generated by kcp code-generator. DO NOT EDIT. package {{.group.Version.PackageName}} From ba6ed45e0c6a3d7ddf3ff1a7da1cf4a0f36c18df Mon Sep 17 00:00:00 2001 From: Robert Vasek Date: Tue, 7 Jan 2025 14:57:33 +0100 Subject: [PATCH 7/7] Update generated example code Ran 'make codegen'. On-behalf-of: SAP robert.vasek@sap.com Signed-off-by: Robert Vasek --- .../example/v1/clustertesttype.go | 64 ++++----- .../example/v1/clustertesttypestatus.go | 2 +- .../example/v1/testtype.go | 60 ++++---- .../example/v1/withoutverbtype.go | 58 ++++---- .../example/v1alpha1/clustertesttype.go | 42 +++--- .../example/v1alpha1/clustertesttypestatus.go | 2 +- .../example/v1alpha1/testtype.go | 42 +++--- .../example/v1beta1/clustertesttype.go | 42 +++--- .../example/v1beta1/clustertesttypestatus.go | 2 +- .../example/v1beta1/testtype.go | 42 +++--- .../example/v2/clustertesttype.go | 42 +++--- .../example/v2/clustertesttypestatus.go | 2 +- .../example/v2/testtype.go | 42 +++--- .../example3/v1/clustertesttype.go | 64 ++++----- .../example3/v1/clustertesttypestatus.go | 2 +- .../example3/v1/testtype.go | 60 ++++---- .../exampledashed/v1/clustertesttype.go | 64 ++++----- .../exampledashed/v1/clustertesttypestatus.go | 2 +- .../exampledashed/v1/testtype.go | 60 ++++---- .../existinginterfaces/v1/clustertesttype.go | 64 ++++----- .../v1/clustertesttypestatus.go | 2 +- .../existinginterfaces/v1/testtype.go | 60 ++++---- .../applyconfigurations/internal/internal.go | 6 +- .../secondexample/v1/clustertesttype.go | 64 ++++----- .../secondexample/v1/clustertesttypestatus.go | 2 +- .../secondexample/v1/testtype.go | 60 ++++---- .../generated/applyconfigurations/utils.go | 2 +- .../clientset/versioned/clientset.go | 6 +- .../versioned/fake/clientset_generated.go | 2 +- .../generated/clientset/versioned/fake/doc.go | 2 +- .../clientset/versioned/fake/register.go | 2 +- .../clientset/versioned/scheme/doc.go | 2 +- .../clientset/versioned/scheme/register.go | 2 +- .../typed/example/v1/clustertesttype.go | 27 ++-- .../versioned/typed/example/v1/doc.go | 2 +- .../typed/example/v1/example_client.go | 12 +- .../versioned/typed/example/v1/fake/doc.go | 2 +- .../example/v1/fake/fake_clustertesttype.go | 132 +++-------------- .../example/v1/fake/fake_example_client.go | 8 +- .../typed/example/v1/fake/fake_testtype.go | 136 ++++-------------- .../example/v1/fake/fake_withoutverbtype.go | 28 +++- .../typed/example/v1/generated_expansion.go | 2 +- .../versioned/typed/example/v1/testtype.go | 45 +++--- .../typed/example/v1/withoutverbtype.go | 11 +- .../typed/example/v1alpha1/clustertesttype.go | 27 ++-- .../versioned/typed/example/v1alpha1/doc.go | 2 +- .../typed/example/v1alpha1/example_client.go | 12 +- .../typed/example/v1alpha1/fake/doc.go | 2 +- .../v1alpha1/fake/fake_clustertesttype.go | 134 ++++------------- .../v1alpha1/fake/fake_example_client.go | 6 +- .../example/v1alpha1/fake/fake_testtype.go | 128 +++-------------- .../example/v1alpha1/generated_expansion.go | 2 +- .../typed/example/v1alpha1/testtype.go | 25 ++-- .../typed/example/v1beta1/clustertesttype.go | 27 ++-- .../versioned/typed/example/v1beta1/doc.go | 2 +- .../typed/example/v1beta1/example_client.go | 12 +- .../typed/example/v1beta1/fake/doc.go | 2 +- .../v1beta1/fake/fake_clustertesttype.go | 134 ++++------------- .../v1beta1/fake/fake_example_client.go | 6 +- .../example/v1beta1/fake/fake_testtype.go | 128 +++-------------- .../example/v1beta1/generated_expansion.go | 2 +- .../typed/example/v1beta1/testtype.go | 25 ++-- .../typed/example/v2/clustertesttype.go | 27 ++-- .../versioned/typed/example/v2/doc.go | 2 +- .../typed/example/v2/example_client.go | 12 +- .../versioned/typed/example/v2/fake/doc.go | 2 +- .../example/v2/fake/fake_clustertesttype.go | 132 +++-------------- .../example/v2/fake/fake_example_client.go | 6 +- .../typed/example/v2/fake/fake_testtype.go | 126 +++------------- .../typed/example/v2/generated_expansion.go | 2 +- .../versioned/typed/example/v2/testtype.go | 25 ++-- .../typed/example3/v1/clustertesttype.go | 27 ++-- .../versioned/typed/example3/v1/doc.go | 2 +- .../typed/example3/v1/example3_client.go | 12 +- .../versioned/typed/example3/v1/fake/doc.go | 2 +- .../example3/v1/fake/fake_clustertesttype.go | 132 +++-------------- .../example3/v1/fake/fake_example3_client.go | 6 +- .../typed/example3/v1/fake/fake_testtype.go | 136 ++++-------------- .../typed/example3/v1/generated_expansion.go | 2 +- .../versioned/typed/example3/v1/testtype.go | 25 ++-- .../typed/exampledashed/v1/clustertesttype.go | 27 ++-- .../versioned/typed/exampledashed/v1/doc.go | 2 +- .../exampledashed/v1/exampledashed_client.go | 12 +- .../typed/exampledashed/v1/fake/doc.go | 2 +- .../v1/fake/fake_clustertesttype.go | 132 +++-------------- .../v1/fake/fake_exampledashed_client.go | 6 +- .../exampledashed/v1/fake/fake_testtype.go | 136 ++++-------------- .../exampledashed/v1/generated_expansion.go | 2 +- .../typed/exampledashed/v1/testtype.go | 25 ++-- .../existinginterfaces/v1/clustertesttype.go | 27 ++-- .../typed/existinginterfaces/v1/doc.go | 2 +- .../v1/existinginterfaces_client.go | 12 +- .../typed/existinginterfaces/v1/fake/doc.go | 2 +- .../v1/fake/fake_clustertesttype.go | 132 +++-------------- .../v1/fake/fake_existinginterfaces_client.go | 6 +- .../v1/fake/fake_testtype.go | 126 +++------------- .../v1/generated_expansion.go | 2 +- .../typed/existinginterfaces/v1/testtype.go | 25 ++-- .../typed/secondexample/v1/clustertesttype.go | 27 ++-- .../versioned/typed/secondexample/v1/doc.go | 2 +- .../typed/secondexample/v1/fake/doc.go | 2 +- .../v1/fake/fake_clustertesttype.go | 132 +++-------------- .../v1/fake/fake_secondexample_client.go | 6 +- .../secondexample/v1/fake/fake_testtype.go | 126 +++------------- .../secondexample/v1/generated_expansion.go | 2 +- .../secondexample/v1/secondexample_client.go | 12 +- .../typed/secondexample/v1/testtype.go | 25 ++-- .../externalversions/example/interface.go | 2 +- .../example/v1/clustertesttype.go | 18 +-- .../externalversions/example/v1/interface.go | 2 +- .../externalversions/example/v1/testtype.go | 18 +-- .../example/v1alpha1/clustertesttype.go | 18 +-- .../example/v1alpha1/interface.go | 2 +- .../example/v1alpha1/testtype.go | 18 +-- .../example/v1beta1/clustertesttype.go | 18 +-- .../example/v1beta1/interface.go | 2 +- .../example/v1beta1/testtype.go | 18 +-- .../example/v2/clustertesttype.go | 18 +-- .../externalversions/example/v2/interface.go | 2 +- .../externalversions/example/v2/testtype.go | 18 +-- .../externalversions/example3/interface.go | 2 +- .../example3/v1/clustertesttype.go | 18 +-- .../externalversions/example3/v1/interface.go | 2 +- .../externalversions/example3/v1/testtype.go | 18 +-- .../exampledashed/interface.go | 2 +- .../exampledashed/v1/clustertesttype.go | 18 +-- .../exampledashed/v1/interface.go | 2 +- .../exampledashed/v1/testtype.go | 18 +-- .../existinginterfaces/interface.go | 2 +- .../existinginterfaces/v1/clustertesttype.go | 18 +-- .../existinginterfaces/v1/interface.go | 2 +- .../existinginterfaces/v1/testtype.go | 18 +-- .../informers/externalversions/factory.go | 2 +- .../informers/externalversions/generic.go | 4 +- .../internalinterfaces/factory_interfaces.go | 2 +- .../secondexample/interface.go | 2 +- .../secondexample/v1/clustertesttype.go | 18 +-- .../secondexample/v1/interface.go | 2 +- .../secondexample/v1/testtype.go | 18 +-- .../listers/example/v1/clustertesttype.go | 18 +-- .../listers/example/v1/expansion_generated.go | 2 +- .../generated/listers/example/v1/testtype.go | 24 ++-- .../listers/example/v1/withoutverbtype.go | 24 ++-- .../example/v1alpha1/clustertesttype.go | 18 +-- .../example/v1alpha1/expansion_generated.go | 2 +- .../listers/example/v1alpha1/testtype.go | 24 ++-- .../example/v1beta1/clustertesttype.go | 18 +-- .../example/v1beta1/expansion_generated.go | 2 +- .../listers/example/v1beta1/testtype.go | 24 ++-- .../listers/example/v2/clustertesttype.go | 18 +-- .../listers/example/v2/expansion_generated.go | 2 +- .../generated/listers/example/v2/testtype.go | 24 ++-- .../listers/example3/v1/clustertesttype.go | 18 +-- .../example3/v1/expansion_generated.go | 2 +- .../generated/listers/example3/v1/testtype.go | 24 ++-- .../exampledashed/v1/clustertesttype.go | 18 +-- .../exampledashed/v1/expansion_generated.go | 2 +- .../listers/exampledashed/v1/testtype.go | 24 ++-- .../existinginterfaces/v1/clustertesttype.go | 18 +-- .../v1/expansion_generated.go | 2 +- .../listers/existinginterfaces/v1/testtype.go | 24 ++-- .../secondexample/v1/clustertesttype.go | 18 +-- .../secondexample/v1/expansion_generated.go | 2 +- .../listers/secondexample/v1/testtype.go | 24 ++-- .../clients/clientset/versioned/clientset.go | 3 - .../clientset/versioned/fake/clientset.go | 3 - .../clientset/versioned/scheme/register.go | 3 - .../typed/example/v1/clustertesttype.go | 3 - .../typed/example/v1/example_client.go | 3 - .../typed/example/v1/fake/clustertesttype.go | 3 - .../typed/example/v1/fake/example_client.go | 3 - .../typed/example/v1/fake/testtype.go | 3 - .../typed/example/v1/fake/withoutverbtype.go | 3 - .../versioned/typed/example/v1/testtype.go | 3 - .../typed/example/v1/withoutverbtype.go | 3 - .../typed/example/v1alpha1/clustertesttype.go | 3 - .../typed/example/v1alpha1/example_client.go | 3 - .../example/v1alpha1/fake/clustertesttype.go | 3 - .../example/v1alpha1/fake/example_client.go | 3 - .../typed/example/v1alpha1/fake/testtype.go | 3 - .../typed/example/v1alpha1/testtype.go | 3 - .../typed/example/v1beta1/clustertesttype.go | 3 - .../typed/example/v1beta1/example_client.go | 3 - .../example/v1beta1/fake/clustertesttype.go | 3 - .../example/v1beta1/fake/example_client.go | 3 - .../typed/example/v1beta1/fake/testtype.go | 3 - .../typed/example/v1beta1/testtype.go | 3 - .../typed/example/v2/clustertesttype.go | 3 - .../typed/example/v2/example_client.go | 3 - .../typed/example/v2/fake/clustertesttype.go | 3 - .../typed/example/v2/fake/example_client.go | 3 - .../typed/example/v2/fake/testtype.go | 3 - .../versioned/typed/example/v2/testtype.go | 3 - .../typed/example3/v1/clustertesttype.go | 3 - .../typed/example3/v1/example3_client.go | 3 - .../typed/example3/v1/fake/clustertesttype.go | 3 - .../typed/example3/v1/fake/example3_client.go | 3 - .../typed/example3/v1/fake/testtype.go | 3 - .../versioned/typed/example3/v1/testtype.go | 3 - .../typed/exampledashed/v1/clustertesttype.go | 3 - .../exampledashed/v1/exampledashed_client.go | 3 - .../exampledashed/v1/fake/clustertesttype.go | 3 - .../v1/fake/exampledashed_client.go | 3 - .../typed/exampledashed/v1/fake/testtype.go | 3 - .../typed/exampledashed/v1/testtype.go | 3 - .../existinginterfaces/v1/clustertesttype.go | 3 - .../v1/existinginterfaces_client.go | 3 - .../v1/fake/clustertesttype.go | 3 - .../v1/fake/existinginterfaces_client.go | 3 - .../existinginterfaces/v1/fake/testtype.go | 3 - .../typed/existinginterfaces/v1/testtype.go | 3 - .../typed/secondexample/v1/clustertesttype.go | 3 - .../secondexample/v1/fake/clustertesttype.go | 3 - .../v1/fake/secondexample_client.go | 3 - .../typed/secondexample/v1/fake/testtype.go | 3 - .../secondexample/v1/secondexample_client.go | 3 - .../typed/secondexample/v1/testtype.go | 3 - .../externalversions/example/interface.go | 3 - .../example/v1/clustertesttype.go | 3 - .../externalversions/example/v1/interface.go | 3 - .../externalversions/example/v1/testtype.go | 3 - .../example/v1alpha1/clustertesttype.go | 3 - .../example/v1alpha1/interface.go | 3 - .../example/v1alpha1/testtype.go | 3 - .../example/v1beta1/clustertesttype.go | 3 - .../example/v1beta1/interface.go | 3 - .../example/v1beta1/testtype.go | 3 - .../example/v2/clustertesttype.go | 3 - .../externalversions/example/v2/interface.go | 3 - .../externalversions/example/v2/testtype.go | 3 - .../externalversions/example3/interface.go | 3 - .../example3/v1/clustertesttype.go | 3 - .../externalversions/example3/v1/interface.go | 3 - .../externalversions/example3/v1/testtype.go | 3 - .../exampledashed/interface.go | 3 - .../exampledashed/v1/clustertesttype.go | 3 - .../exampledashed/v1/interface.go | 3 - .../exampledashed/v1/testtype.go | 3 - .../existinginterfaces/interface.go | 3 - .../existinginterfaces/v1/clustertesttype.go | 3 - .../existinginterfaces/v1/interface.go | 3 - .../existinginterfaces/v1/testtype.go | 3 - .../informers/externalversions/factory.go | 3 - .../informers/externalversions/generic.go | 3 - .../internalinterfaces/factory_interfaces.go | 3 - .../secondexample/interface.go | 3 - .../secondexample/v1/clustertesttype.go | 3 - .../secondexample/v1/interface.go | 3 - .../secondexample/v1/testtype.go | 3 - .../listers/example/v1/clustertesttype.go | 3 - .../clients/listers/example/v1/testtype.go | 3 - .../example/v1alpha1/clustertesttype.go | 3 - .../listers/example/v1alpha1/testtype.go | 3 - .../example/v1beta1/clustertesttype.go | 3 - .../listers/example/v1beta1/testtype.go | 3 - .../listers/example/v2/clustertesttype.go | 3 - .../clients/listers/example/v2/testtype.go | 3 - .../listers/example3/v1/clustertesttype.go | 3 - .../clients/listers/example3/v1/testtype.go | 3 - .../exampledashed/v1/clustertesttype.go | 3 - .../listers/exampledashed/v1/testtype.go | 3 - .../existinginterfaces/v1/clustertesttype.go | 3 - .../listers/existinginterfaces/v1/testtype.go | 3 - .../secondexample/v1/clustertesttype.go | 3 - .../listers/secondexample/v1/testtype.go | 3 - .../clients/clientset/versioned/clientset.go | 3 - .../clientset/versioned/fake/clientset.go | 3 - .../clientset/versioned/scheme/register.go | 3 - .../typed/example/v1/clustertesttype.go | 3 - .../typed/example/v1/example_client.go | 3 - .../typed/example/v1/fake/clustertesttype.go | 3 - .../typed/example/v1/fake/example_client.go | 3 - .../typed/example/v1/fake/testtype.go | 3 - .../typed/example/v1/fake/withoutverbtype.go | 3 - .../versioned/typed/example/v1/testtype.go | 3 - .../typed/example/v1/withoutverbtype.go | 3 - .../typed/example/v1alpha1/clustertesttype.go | 3 - .../typed/example/v1alpha1/example_client.go | 3 - .../example/v1alpha1/fake/clustertesttype.go | 3 - .../example/v1alpha1/fake/example_client.go | 3 - .../typed/example/v1alpha1/fake/testtype.go | 3 - .../typed/example/v1alpha1/testtype.go | 3 - .../typed/example/v1beta1/clustertesttype.go | 3 - .../typed/example/v1beta1/example_client.go | 3 - .../example/v1beta1/fake/clustertesttype.go | 3 - .../example/v1beta1/fake/example_client.go | 3 - .../typed/example/v1beta1/fake/testtype.go | 3 - .../typed/example/v1beta1/testtype.go | 3 - .../typed/example/v2/clustertesttype.go | 3 - .../typed/example/v2/example_client.go | 3 - .../typed/example/v2/fake/clustertesttype.go | 3 - .../typed/example/v2/fake/example_client.go | 3 - .../typed/example/v2/fake/testtype.go | 3 - .../versioned/typed/example/v2/testtype.go | 3 - .../typed/example3/v1/clustertesttype.go | 3 - .../typed/example3/v1/example3_client.go | 3 - .../typed/example3/v1/fake/clustertesttype.go | 3 - .../typed/example3/v1/fake/example3_client.go | 3 - .../typed/example3/v1/fake/testtype.go | 3 - .../versioned/typed/example3/v1/testtype.go | 3 - .../typed/exampledashed/v1/clustertesttype.go | 3 - .../exampledashed/v1/exampledashed_client.go | 3 - .../exampledashed/v1/fake/clustertesttype.go | 3 - .../v1/fake/exampledashed_client.go | 3 - .../typed/exampledashed/v1/fake/testtype.go | 3 - .../typed/exampledashed/v1/testtype.go | 3 - .../existinginterfaces/v1/clustertesttype.go | 3 - .../v1/existinginterfaces_client.go | 3 - .../v1/fake/clustertesttype.go | 3 - .../v1/fake/existinginterfaces_client.go | 3 - .../existinginterfaces/v1/fake/testtype.go | 3 - .../typed/existinginterfaces/v1/testtype.go | 3 - .../typed/secondexample/v1/clustertesttype.go | 3 - .../secondexample/v1/fake/clustertesttype.go | 3 - .../v1/fake/secondexample_client.go | 3 - .../typed/secondexample/v1/fake/testtype.go | 3 - .../secondexample/v1/secondexample_client.go | 3 - .../typed/secondexample/v1/testtype.go | 3 - .../externalversions/example/interface.go | 3 - .../example/v1/clustertesttype.go | 3 - .../externalversions/example/v1/interface.go | 3 - .../externalversions/example/v1/testtype.go | 3 - .../example/v1alpha1/clustertesttype.go | 3 - .../example/v1alpha1/interface.go | 3 - .../example/v1alpha1/testtype.go | 3 - .../example/v1beta1/clustertesttype.go | 3 - .../example/v1beta1/interface.go | 3 - .../example/v1beta1/testtype.go | 3 - .../example/v2/clustertesttype.go | 3 - .../externalversions/example/v2/interface.go | 3 - .../externalversions/example/v2/testtype.go | 3 - .../externalversions/example3/interface.go | 3 - .../example3/v1/clustertesttype.go | 3 - .../externalversions/example3/v1/interface.go | 3 - .../externalversions/example3/v1/testtype.go | 3 - .../exampledashed/interface.go | 3 - .../exampledashed/v1/clustertesttype.go | 3 - .../exampledashed/v1/interface.go | 3 - .../exampledashed/v1/testtype.go | 3 - .../existinginterfaces/interface.go | 3 - .../existinginterfaces/v1/clustertesttype.go | 3 - .../existinginterfaces/v1/interface.go | 3 - .../existinginterfaces/v1/testtype.go | 3 - .../informers/externalversions/factory.go | 3 - .../informers/externalversions/generic.go | 3 - .../internalinterfaces/factory_interfaces.go | 3 - .../secondexample/interface.go | 3 - .../secondexample/v1/clustertesttype.go | 3 - .../secondexample/v1/interface.go | 3 - .../secondexample/v1/testtype.go | 3 - .../listers/example/v1/clustertesttype.go | 3 - .../clients/listers/example/v1/testtype.go | 3 - .../example/v1alpha1/clustertesttype.go | 3 - .../listers/example/v1alpha1/testtype.go | 3 - .../example/v1beta1/clustertesttype.go | 3 - .../listers/example/v1beta1/testtype.go | 3 - .../listers/example/v2/clustertesttype.go | 3 - .../clients/listers/example/v2/testtype.go | 3 - .../listers/example3/v1/clustertesttype.go | 3 - .../clients/listers/example3/v1/testtype.go | 3 - .../exampledashed/v1/clustertesttype.go | 3 - .../listers/exampledashed/v1/testtype.go | 3 - .../existinginterfaces/v1/clustertesttype.go | 3 - .../listers/existinginterfaces/v1/testtype.go | 3 - .../secondexample/v1/clustertesttype.go | 3 - .../listers/secondexample/v1/testtype.go | 3 - 366 files changed, 1552 insertions(+), 3493 deletions(-) diff --git a/examples/pkg/generated/applyconfigurations/example/v1/clustertesttype.go b/examples/pkg/generated/applyconfigurations/example/v1/clustertesttype.go index 4fc9e35f1..d253d9807 100644 --- a/examples/pkg/generated/applyconfigurations/example/v1/clustertesttype.go +++ b/examples/pkg/generated/applyconfigurations/example/v1/clustertesttype.go @@ -14,24 +14,24 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1 import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // ClusterTestTypeApplyConfiguration represents a declarative configuration of the ClusterTestType type for use // with apply. type ClusterTestTypeApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - ObjectKind *string `json:"kind,omitempty"` - ObjectName *string `json:"name,omitempty"` - Status *ClusterTestTypeStatusApplyConfiguration `json:"status,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + ObjectKind *string `json:"kind,omitempty"` + ObjectName *string `json:"name,omitempty"` + Status *ClusterTestTypeStatusApplyConfiguration `json:"status,omitempty"` } // ClusterTestType constructs a declarative configuration of the ClusterTestType type for use with @@ -48,7 +48,7 @@ func ClusterTestType(name string) *ClusterTestTypeApplyConfiguration { // 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 *ClusterTestTypeApplyConfiguration) WithKind(value string) *ClusterTestTypeApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -56,7 +56,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithKind(value string) *ClusterTestT // 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 *ClusterTestTypeApplyConfiguration) WithAPIVersion(value string) *ClusterTestTypeApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -65,7 +65,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithAPIVersion(value string) *Cluste // If called multiple times, the Name field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithName(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -74,7 +74,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithName(value string) *ClusterTestT // If called multiple times, the GenerateName field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithGenerateName(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -83,7 +83,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithGenerateName(value string) *Clus // If called multiple times, the Namespace field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithNamespace(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -92,7 +92,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithNamespace(value string) *Cluster // If called multiple times, the UID field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithUID(value types.UID) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -101,7 +101,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithUID(value types.UID) *ClusterTes // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithResourceVersion(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -110,25 +110,25 @@ func (b *ClusterTestTypeApplyConfiguration) WithResourceVersion(value string) *C // If called multiple times, the Generation field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithGeneration(value int64) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *ClusterTestTypeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterTestTypeApplyConfiguration { +func (b *ClusterTestTypeApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterTestTypeApplyConfiguration { +func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -137,7 +137,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.T // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -147,11 +147,11 @@ func (b *ClusterTestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value // overwriting an existing map entries in Labels field with the same key. func (b *ClusterTestTypeApplyConfiguration) WithLabels(entries map[string]string) *ClusterTestTypeApplyConfiguration { 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 } @@ -162,11 +162,11 @@ func (b *ClusterTestTypeApplyConfiguration) WithLabels(entries map[string]string // overwriting an existing map entries in Annotations field with the same key. func (b *ClusterTestTypeApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterTestTypeApplyConfiguration { 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 } @@ -174,13 +174,13 @@ func (b *ClusterTestTypeApplyConfiguration) WithAnnotations(entries map[string]s // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *ClusterTestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterTestTypeApplyConfiguration { +func (b *ClusterTestTypeApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { 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 } @@ -191,14 +191,14 @@ func (b *ClusterTestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.Ow func (b *ClusterTestTypeApplyConfiguration) WithFinalizers(values ...string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } func (b *ClusterTestTypeApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } @@ -229,5 +229,5 @@ func (b *ClusterTestTypeApplyConfiguration) WithStatus(value *ClusterTestTypeSta // GetName retrieves the value of the Name field in the declarative configuration. func (b *ClusterTestTypeApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/examples/pkg/generated/applyconfigurations/example/v1/clustertesttypestatus.go b/examples/pkg/generated/applyconfigurations/example/v1/clustertesttypestatus.go index 9c966d9ae..617d11463 100644 --- a/examples/pkg/generated/applyconfigurations/example/v1/clustertesttypestatus.go +++ b/examples/pkg/generated/applyconfigurations/example/v1/clustertesttypestatus.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1 diff --git a/examples/pkg/generated/applyconfigurations/example/v1/testtype.go b/examples/pkg/generated/applyconfigurations/example/v1/testtype.go index c3a9c72fb..4eb03f6c4 100644 --- a/examples/pkg/generated/applyconfigurations/example/v1/testtype.go +++ b/examples/pkg/generated/applyconfigurations/example/v1/testtype.go @@ -14,22 +14,22 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1 import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // TestTypeApplyConfiguration represents a declarative configuration of the TestType type for use // with apply. type TestTypeApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - APIGroups []string `json:"apiGroups,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + APIGroups []string `json:"apiGroups,omitempty"` } // TestType constructs a declarative configuration of the TestType type for use with @@ -47,7 +47,7 @@ func TestType(name, namespace string) *TestTypeApplyConfiguration { // 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 *TestTypeApplyConfiguration) WithKind(value string) *TestTypeApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -55,7 +55,7 @@ func (b *TestTypeApplyConfiguration) WithKind(value string) *TestTypeApplyConfig // 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 *TestTypeApplyConfiguration) WithAPIVersion(value string) *TestTypeApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -64,7 +64,7 @@ func (b *TestTypeApplyConfiguration) WithAPIVersion(value string) *TestTypeApply // If called multiple times, the Name field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithName(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -73,7 +73,7 @@ func (b *TestTypeApplyConfiguration) WithName(value string) *TestTypeApplyConfig // If called multiple times, the GenerateName field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithGenerateName(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -82,7 +82,7 @@ func (b *TestTypeApplyConfiguration) WithGenerateName(value string) *TestTypeApp // If called multiple times, the Namespace field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithNamespace(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -91,7 +91,7 @@ func (b *TestTypeApplyConfiguration) WithNamespace(value string) *TestTypeApplyC // If called multiple times, the UID field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithUID(value types.UID) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -100,7 +100,7 @@ func (b *TestTypeApplyConfiguration) WithUID(value types.UID) *TestTypeApplyConf // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithResourceVersion(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -109,25 +109,25 @@ func (b *TestTypeApplyConfiguration) WithResourceVersion(value string) *TestType // If called multiple times, the Generation field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithGeneration(value int64) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *TestTypeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *TestTypeApplyConfiguration { +func (b *TestTypeApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *TestTypeApplyConfiguration { +func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -136,7 +136,7 @@ func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *T // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -146,11 +146,11 @@ func (b *TestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) // overwriting an existing map entries in Labels field with the same key. func (b *TestTypeApplyConfiguration) WithLabels(entries map[string]string) *TestTypeApplyConfiguration { 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 } @@ -161,11 +161,11 @@ func (b *TestTypeApplyConfiguration) WithLabels(entries map[string]string) *Test // overwriting an existing map entries in Annotations field with the same key. func (b *TestTypeApplyConfiguration) WithAnnotations(entries map[string]string) *TestTypeApplyConfiguration { 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 } @@ -173,13 +173,13 @@ func (b *TestTypeApplyConfiguration) WithAnnotations(entries map[string]string) // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *TestTypeApplyConfiguration { +func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { 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 } @@ -190,14 +190,14 @@ func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefe func (b *TestTypeApplyConfiguration) WithFinalizers(values ...string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } func (b *TestTypeApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } @@ -214,5 +214,5 @@ func (b *TestTypeApplyConfiguration) WithAPIGroups(values ...string) *TestTypeAp // GetName retrieves the value of the Name field in the declarative configuration. func (b *TestTypeApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/examples/pkg/generated/applyconfigurations/example/v1/withoutverbtype.go b/examples/pkg/generated/applyconfigurations/example/v1/withoutverbtype.go index b5f0f7bb6..3db838628 100644 --- a/examples/pkg/generated/applyconfigurations/example/v1/withoutverbtype.go +++ b/examples/pkg/generated/applyconfigurations/example/v1/withoutverbtype.go @@ -14,21 +14,21 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1 import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // WithoutVerbTypeApplyConfiguration represents a declarative configuration of the WithoutVerbType type for use // with apply. type WithoutVerbTypeApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` } // WithoutVerbType constructs a declarative configuration of the WithoutVerbType type for use with @@ -46,7 +46,7 @@ func WithoutVerbType(name, namespace string) *WithoutVerbTypeApplyConfiguration // 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 *WithoutVerbTypeApplyConfiguration) WithKind(value string) *WithoutVerbTypeApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -54,7 +54,7 @@ func (b *WithoutVerbTypeApplyConfiguration) WithKind(value string) *WithoutVerbT // 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 *WithoutVerbTypeApplyConfiguration) WithAPIVersion(value string) *WithoutVerbTypeApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -63,7 +63,7 @@ func (b *WithoutVerbTypeApplyConfiguration) WithAPIVersion(value string) *Withou // If called multiple times, the Name field is set to the value of the last call. func (b *WithoutVerbTypeApplyConfiguration) WithName(value string) *WithoutVerbTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -72,7 +72,7 @@ func (b *WithoutVerbTypeApplyConfiguration) WithName(value string) *WithoutVerbT // If called multiple times, the GenerateName field is set to the value of the last call. func (b *WithoutVerbTypeApplyConfiguration) WithGenerateName(value string) *WithoutVerbTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -81,7 +81,7 @@ func (b *WithoutVerbTypeApplyConfiguration) WithGenerateName(value string) *With // If called multiple times, the Namespace field is set to the value of the last call. func (b *WithoutVerbTypeApplyConfiguration) WithNamespace(value string) *WithoutVerbTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -90,7 +90,7 @@ func (b *WithoutVerbTypeApplyConfiguration) WithNamespace(value string) *Without // If called multiple times, the UID field is set to the value of the last call. func (b *WithoutVerbTypeApplyConfiguration) WithUID(value types.UID) *WithoutVerbTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -99,7 +99,7 @@ func (b *WithoutVerbTypeApplyConfiguration) WithUID(value types.UID) *WithoutVer // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *WithoutVerbTypeApplyConfiguration) WithResourceVersion(value string) *WithoutVerbTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -108,25 +108,25 @@ func (b *WithoutVerbTypeApplyConfiguration) WithResourceVersion(value string) *W // If called multiple times, the Generation field is set to the value of the last call. func (b *WithoutVerbTypeApplyConfiguration) WithGeneration(value int64) *WithoutVerbTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *WithoutVerbTypeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *WithoutVerbTypeApplyConfiguration { +func (b *WithoutVerbTypeApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *WithoutVerbTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *WithoutVerbTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *WithoutVerbTypeApplyConfiguration { +func (b *WithoutVerbTypeApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *WithoutVerbTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -135,7 +135,7 @@ func (b *WithoutVerbTypeApplyConfiguration) WithDeletionTimestamp(value metav1.T // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *WithoutVerbTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *WithoutVerbTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -145,11 +145,11 @@ func (b *WithoutVerbTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value // overwriting an existing map entries in Labels field with the same key. func (b *WithoutVerbTypeApplyConfiguration) WithLabels(entries map[string]string) *WithoutVerbTypeApplyConfiguration { 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 } @@ -160,11 +160,11 @@ func (b *WithoutVerbTypeApplyConfiguration) WithLabels(entries map[string]string // overwriting an existing map entries in Annotations field with the same key. func (b *WithoutVerbTypeApplyConfiguration) WithAnnotations(entries map[string]string) *WithoutVerbTypeApplyConfiguration { 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 } @@ -172,13 +172,13 @@ func (b *WithoutVerbTypeApplyConfiguration) WithAnnotations(entries map[string]s // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *WithoutVerbTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *WithoutVerbTypeApplyConfiguration { +func (b *WithoutVerbTypeApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *WithoutVerbTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { 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 } @@ -189,19 +189,19 @@ func (b *WithoutVerbTypeApplyConfiguration) WithOwnerReferences(values ...*v1.Ow func (b *WithoutVerbTypeApplyConfiguration) WithFinalizers(values ...string) *WithoutVerbTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } func (b *WithoutVerbTypeApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } // GetName retrieves the value of the Name field in the declarative configuration. func (b *WithoutVerbTypeApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/examples/pkg/generated/applyconfigurations/example/v1alpha1/clustertesttype.go b/examples/pkg/generated/applyconfigurations/example/v1alpha1/clustertesttype.go index 58a0bc602..f479271f8 100644 --- a/examples/pkg/generated/applyconfigurations/example/v1alpha1/clustertesttype.go +++ b/examples/pkg/generated/applyconfigurations/example/v1alpha1/clustertesttype.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1alpha1 @@ -48,7 +48,7 @@ func ClusterTestType(name string) *ClusterTestTypeApplyConfiguration { // 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 *ClusterTestTypeApplyConfiguration) WithKind(value string) *ClusterTestTypeApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -56,7 +56,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithKind(value string) *ClusterTestT // 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 *ClusterTestTypeApplyConfiguration) WithAPIVersion(value string) *ClusterTestTypeApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -65,7 +65,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithAPIVersion(value string) *Cluste // If called multiple times, the Name field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithName(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -74,7 +74,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithName(value string) *ClusterTestT // If called multiple times, the GenerateName field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithGenerateName(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -83,7 +83,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithGenerateName(value string) *Clus // If called multiple times, the Namespace field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithNamespace(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -92,7 +92,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithNamespace(value string) *Cluster // If called multiple times, the UID field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithUID(value types.UID) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -101,7 +101,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithUID(value types.UID) *ClusterTes // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithResourceVersion(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -110,7 +110,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithResourceVersion(value string) *C // If called multiple times, the Generation field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithGeneration(value int64) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } @@ -119,7 +119,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithGeneration(value int64) *Cluster // If called multiple times, the CreationTimestamp field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } @@ -128,7 +128,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithCreationTimestamp(value metav1.T // If called multiple times, the DeletionTimestamp field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -137,7 +137,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.T // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -147,11 +147,11 @@ func (b *ClusterTestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value // overwriting an existing map entries in Labels field with the same key. func (b *ClusterTestTypeApplyConfiguration) WithLabels(entries map[string]string) *ClusterTestTypeApplyConfiguration { 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 } @@ -162,11 +162,11 @@ func (b *ClusterTestTypeApplyConfiguration) WithLabels(entries map[string]string // overwriting an existing map entries in Annotations field with the same key. func (b *ClusterTestTypeApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterTestTypeApplyConfiguration { 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 } @@ -180,7 +180,7 @@ func (b *ClusterTestTypeApplyConfiguration) 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 } @@ -191,7 +191,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.Ow func (b *ClusterTestTypeApplyConfiguration) WithFinalizers(values ...string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } @@ -229,5 +229,5 @@ func (b *ClusterTestTypeApplyConfiguration) WithStatus(value *ClusterTestTypeSta // GetName retrieves the value of the Name field in the declarative configuration. func (b *ClusterTestTypeApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/examples/pkg/generated/applyconfigurations/example/v1alpha1/clustertesttypestatus.go b/examples/pkg/generated/applyconfigurations/example/v1alpha1/clustertesttypestatus.go index b2f8d1d38..215b4cffa 100644 --- a/examples/pkg/generated/applyconfigurations/example/v1alpha1/clustertesttypestatus.go +++ b/examples/pkg/generated/applyconfigurations/example/v1alpha1/clustertesttypestatus.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1alpha1 diff --git a/examples/pkg/generated/applyconfigurations/example/v1alpha1/testtype.go b/examples/pkg/generated/applyconfigurations/example/v1alpha1/testtype.go index 12b329a41..50906a9cc 100644 --- a/examples/pkg/generated/applyconfigurations/example/v1alpha1/testtype.go +++ b/examples/pkg/generated/applyconfigurations/example/v1alpha1/testtype.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1alpha1 @@ -47,7 +47,7 @@ func TestType(name, namespace string) *TestTypeApplyConfiguration { // 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 *TestTypeApplyConfiguration) WithKind(value string) *TestTypeApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -55,7 +55,7 @@ func (b *TestTypeApplyConfiguration) WithKind(value string) *TestTypeApplyConfig // 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 *TestTypeApplyConfiguration) WithAPIVersion(value string) *TestTypeApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -64,7 +64,7 @@ func (b *TestTypeApplyConfiguration) WithAPIVersion(value string) *TestTypeApply // If called multiple times, the Name field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithName(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -73,7 +73,7 @@ func (b *TestTypeApplyConfiguration) WithName(value string) *TestTypeApplyConfig // If called multiple times, the GenerateName field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithGenerateName(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -82,7 +82,7 @@ func (b *TestTypeApplyConfiguration) WithGenerateName(value string) *TestTypeApp // If called multiple times, the Namespace field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithNamespace(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -91,7 +91,7 @@ func (b *TestTypeApplyConfiguration) WithNamespace(value string) *TestTypeApplyC // If called multiple times, the UID field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithUID(value types.UID) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -100,7 +100,7 @@ func (b *TestTypeApplyConfiguration) WithUID(value types.UID) *TestTypeApplyConf // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithResourceVersion(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -109,7 +109,7 @@ func (b *TestTypeApplyConfiguration) WithResourceVersion(value string) *TestType // If called multiple times, the Generation field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithGeneration(value int64) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } @@ -118,7 +118,7 @@ func (b *TestTypeApplyConfiguration) WithGeneration(value int64) *TestTypeApplyC // If called multiple times, the CreationTimestamp field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } @@ -127,7 +127,7 @@ func (b *TestTypeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *T // If called multiple times, the DeletionTimestamp field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -136,7 +136,7 @@ func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *T // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -146,11 +146,11 @@ func (b *TestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) // overwriting an existing map entries in Labels field with the same key. func (b *TestTypeApplyConfiguration) WithLabels(entries map[string]string) *TestTypeApplyConfiguration { 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 } @@ -161,11 +161,11 @@ func (b *TestTypeApplyConfiguration) WithLabels(entries map[string]string) *Test // overwriting an existing map entries in Annotations field with the same key. func (b *TestTypeApplyConfiguration) WithAnnotations(entries map[string]string) *TestTypeApplyConfiguration { 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 } @@ -179,7 +179,7 @@ func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefe 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 } @@ -190,7 +190,7 @@ func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefe func (b *TestTypeApplyConfiguration) WithFinalizers(values ...string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } @@ -214,5 +214,5 @@ func (b *TestTypeApplyConfiguration) WithAPIGroups(values ...string) *TestTypeAp // GetName retrieves the value of the Name field in the declarative configuration. func (b *TestTypeApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/examples/pkg/generated/applyconfigurations/example/v1beta1/clustertesttype.go b/examples/pkg/generated/applyconfigurations/example/v1beta1/clustertesttype.go index 105bcc91f..b6516e0ab 100644 --- a/examples/pkg/generated/applyconfigurations/example/v1beta1/clustertesttype.go +++ b/examples/pkg/generated/applyconfigurations/example/v1beta1/clustertesttype.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1beta1 @@ -48,7 +48,7 @@ func ClusterTestType(name string) *ClusterTestTypeApplyConfiguration { // 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 *ClusterTestTypeApplyConfiguration) WithKind(value string) *ClusterTestTypeApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -56,7 +56,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithKind(value string) *ClusterTestT // 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 *ClusterTestTypeApplyConfiguration) WithAPIVersion(value string) *ClusterTestTypeApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -65,7 +65,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithAPIVersion(value string) *Cluste // If called multiple times, the Name field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithName(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -74,7 +74,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithName(value string) *ClusterTestT // If called multiple times, the GenerateName field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithGenerateName(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -83,7 +83,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithGenerateName(value string) *Clus // If called multiple times, the Namespace field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithNamespace(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -92,7 +92,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithNamespace(value string) *Cluster // If called multiple times, the UID field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithUID(value types.UID) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -101,7 +101,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithUID(value types.UID) *ClusterTes // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithResourceVersion(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -110,7 +110,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithResourceVersion(value string) *C // If called multiple times, the Generation field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithGeneration(value int64) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } @@ -119,7 +119,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithGeneration(value int64) *Cluster // If called multiple times, the CreationTimestamp field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } @@ -128,7 +128,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithCreationTimestamp(value metav1.T // If called multiple times, the DeletionTimestamp field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -137,7 +137,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.T // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -147,11 +147,11 @@ func (b *ClusterTestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value // overwriting an existing map entries in Labels field with the same key. func (b *ClusterTestTypeApplyConfiguration) WithLabels(entries map[string]string) *ClusterTestTypeApplyConfiguration { 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 } @@ -162,11 +162,11 @@ func (b *ClusterTestTypeApplyConfiguration) WithLabels(entries map[string]string // overwriting an existing map entries in Annotations field with the same key. func (b *ClusterTestTypeApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterTestTypeApplyConfiguration { 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 } @@ -180,7 +180,7 @@ func (b *ClusterTestTypeApplyConfiguration) 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 } @@ -191,7 +191,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.Ow func (b *ClusterTestTypeApplyConfiguration) WithFinalizers(values ...string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } @@ -229,5 +229,5 @@ func (b *ClusterTestTypeApplyConfiguration) WithStatus(value *ClusterTestTypeSta // GetName retrieves the value of the Name field in the declarative configuration. func (b *ClusterTestTypeApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/examples/pkg/generated/applyconfigurations/example/v1beta1/clustertesttypestatus.go b/examples/pkg/generated/applyconfigurations/example/v1beta1/clustertesttypestatus.go index b50e11225..1ad47d870 100644 --- a/examples/pkg/generated/applyconfigurations/example/v1beta1/clustertesttypestatus.go +++ b/examples/pkg/generated/applyconfigurations/example/v1beta1/clustertesttypestatus.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1beta1 diff --git a/examples/pkg/generated/applyconfigurations/example/v1beta1/testtype.go b/examples/pkg/generated/applyconfigurations/example/v1beta1/testtype.go index cb3b8387f..f10cf3806 100644 --- a/examples/pkg/generated/applyconfigurations/example/v1beta1/testtype.go +++ b/examples/pkg/generated/applyconfigurations/example/v1beta1/testtype.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1beta1 @@ -47,7 +47,7 @@ func TestType(name, namespace string) *TestTypeApplyConfiguration { // 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 *TestTypeApplyConfiguration) WithKind(value string) *TestTypeApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -55,7 +55,7 @@ func (b *TestTypeApplyConfiguration) WithKind(value string) *TestTypeApplyConfig // 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 *TestTypeApplyConfiguration) WithAPIVersion(value string) *TestTypeApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -64,7 +64,7 @@ func (b *TestTypeApplyConfiguration) WithAPIVersion(value string) *TestTypeApply // If called multiple times, the Name field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithName(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -73,7 +73,7 @@ func (b *TestTypeApplyConfiguration) WithName(value string) *TestTypeApplyConfig // If called multiple times, the GenerateName field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithGenerateName(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -82,7 +82,7 @@ func (b *TestTypeApplyConfiguration) WithGenerateName(value string) *TestTypeApp // If called multiple times, the Namespace field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithNamespace(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -91,7 +91,7 @@ func (b *TestTypeApplyConfiguration) WithNamespace(value string) *TestTypeApplyC // If called multiple times, the UID field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithUID(value types.UID) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -100,7 +100,7 @@ func (b *TestTypeApplyConfiguration) WithUID(value types.UID) *TestTypeApplyConf // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithResourceVersion(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -109,7 +109,7 @@ func (b *TestTypeApplyConfiguration) WithResourceVersion(value string) *TestType // If called multiple times, the Generation field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithGeneration(value int64) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } @@ -118,7 +118,7 @@ func (b *TestTypeApplyConfiguration) WithGeneration(value int64) *TestTypeApplyC // If called multiple times, the CreationTimestamp field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } @@ -127,7 +127,7 @@ func (b *TestTypeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *T // If called multiple times, the DeletionTimestamp field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -136,7 +136,7 @@ func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *T // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -146,11 +146,11 @@ func (b *TestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) // overwriting an existing map entries in Labels field with the same key. func (b *TestTypeApplyConfiguration) WithLabels(entries map[string]string) *TestTypeApplyConfiguration { 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 } @@ -161,11 +161,11 @@ func (b *TestTypeApplyConfiguration) WithLabels(entries map[string]string) *Test // overwriting an existing map entries in Annotations field with the same key. func (b *TestTypeApplyConfiguration) WithAnnotations(entries map[string]string) *TestTypeApplyConfiguration { 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 } @@ -179,7 +179,7 @@ func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefe 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 } @@ -190,7 +190,7 @@ func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefe func (b *TestTypeApplyConfiguration) WithFinalizers(values ...string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } @@ -214,5 +214,5 @@ func (b *TestTypeApplyConfiguration) WithAPIGroups(values ...string) *TestTypeAp // GetName retrieves the value of the Name field in the declarative configuration. func (b *TestTypeApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/examples/pkg/generated/applyconfigurations/example/v2/clustertesttype.go b/examples/pkg/generated/applyconfigurations/example/v2/clustertesttype.go index cd5e13c57..8b79a777d 100644 --- a/examples/pkg/generated/applyconfigurations/example/v2/clustertesttype.go +++ b/examples/pkg/generated/applyconfigurations/example/v2/clustertesttype.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v2 @@ -48,7 +48,7 @@ func ClusterTestType(name string) *ClusterTestTypeApplyConfiguration { // 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 *ClusterTestTypeApplyConfiguration) WithKind(value string) *ClusterTestTypeApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -56,7 +56,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithKind(value string) *ClusterTestT // 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 *ClusterTestTypeApplyConfiguration) WithAPIVersion(value string) *ClusterTestTypeApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -65,7 +65,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithAPIVersion(value string) *Cluste // If called multiple times, the Name field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithName(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -74,7 +74,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithName(value string) *ClusterTestT // If called multiple times, the GenerateName field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithGenerateName(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -83,7 +83,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithGenerateName(value string) *Clus // If called multiple times, the Namespace field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithNamespace(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -92,7 +92,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithNamespace(value string) *Cluster // If called multiple times, the UID field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithUID(value types.UID) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -101,7 +101,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithUID(value types.UID) *ClusterTes // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithResourceVersion(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -110,7 +110,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithResourceVersion(value string) *C // If called multiple times, the Generation field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithGeneration(value int64) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } @@ -119,7 +119,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithGeneration(value int64) *Cluster // If called multiple times, the CreationTimestamp field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } @@ -128,7 +128,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithCreationTimestamp(value metav1.T // If called multiple times, the DeletionTimestamp field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -137,7 +137,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.T // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -147,11 +147,11 @@ func (b *ClusterTestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value // overwriting an existing map entries in Labels field with the same key. func (b *ClusterTestTypeApplyConfiguration) WithLabels(entries map[string]string) *ClusterTestTypeApplyConfiguration { 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 } @@ -162,11 +162,11 @@ func (b *ClusterTestTypeApplyConfiguration) WithLabels(entries map[string]string // overwriting an existing map entries in Annotations field with the same key. func (b *ClusterTestTypeApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterTestTypeApplyConfiguration { 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 } @@ -180,7 +180,7 @@ func (b *ClusterTestTypeApplyConfiguration) 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 } @@ -191,7 +191,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.Ow func (b *ClusterTestTypeApplyConfiguration) WithFinalizers(values ...string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } @@ -229,5 +229,5 @@ func (b *ClusterTestTypeApplyConfiguration) WithStatus(value *ClusterTestTypeSta // GetName retrieves the value of the Name field in the declarative configuration. func (b *ClusterTestTypeApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/examples/pkg/generated/applyconfigurations/example/v2/clustertesttypestatus.go b/examples/pkg/generated/applyconfigurations/example/v2/clustertesttypestatus.go index dfab3fe1b..9b160febd 100644 --- a/examples/pkg/generated/applyconfigurations/example/v2/clustertesttypestatus.go +++ b/examples/pkg/generated/applyconfigurations/example/v2/clustertesttypestatus.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v2 diff --git a/examples/pkg/generated/applyconfigurations/example/v2/testtype.go b/examples/pkg/generated/applyconfigurations/example/v2/testtype.go index d52d07344..4b05c0544 100644 --- a/examples/pkg/generated/applyconfigurations/example/v2/testtype.go +++ b/examples/pkg/generated/applyconfigurations/example/v2/testtype.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v2 @@ -47,7 +47,7 @@ func TestType(name, namespace string) *TestTypeApplyConfiguration { // 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 *TestTypeApplyConfiguration) WithKind(value string) *TestTypeApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -55,7 +55,7 @@ func (b *TestTypeApplyConfiguration) WithKind(value string) *TestTypeApplyConfig // 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 *TestTypeApplyConfiguration) WithAPIVersion(value string) *TestTypeApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -64,7 +64,7 @@ func (b *TestTypeApplyConfiguration) WithAPIVersion(value string) *TestTypeApply // If called multiple times, the Name field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithName(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -73,7 +73,7 @@ func (b *TestTypeApplyConfiguration) WithName(value string) *TestTypeApplyConfig // If called multiple times, the GenerateName field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithGenerateName(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -82,7 +82,7 @@ func (b *TestTypeApplyConfiguration) WithGenerateName(value string) *TestTypeApp // If called multiple times, the Namespace field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithNamespace(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -91,7 +91,7 @@ func (b *TestTypeApplyConfiguration) WithNamespace(value string) *TestTypeApplyC // If called multiple times, the UID field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithUID(value types.UID) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -100,7 +100,7 @@ func (b *TestTypeApplyConfiguration) WithUID(value types.UID) *TestTypeApplyConf // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithResourceVersion(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -109,7 +109,7 @@ func (b *TestTypeApplyConfiguration) WithResourceVersion(value string) *TestType // If called multiple times, the Generation field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithGeneration(value int64) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } @@ -118,7 +118,7 @@ func (b *TestTypeApplyConfiguration) WithGeneration(value int64) *TestTypeApplyC // If called multiple times, the CreationTimestamp field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } @@ -127,7 +127,7 @@ func (b *TestTypeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *T // If called multiple times, the DeletionTimestamp field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -136,7 +136,7 @@ func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *T // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -146,11 +146,11 @@ func (b *TestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) // overwriting an existing map entries in Labels field with the same key. func (b *TestTypeApplyConfiguration) WithLabels(entries map[string]string) *TestTypeApplyConfiguration { 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 } @@ -161,11 +161,11 @@ func (b *TestTypeApplyConfiguration) WithLabels(entries map[string]string) *Test // overwriting an existing map entries in Annotations field with the same key. func (b *TestTypeApplyConfiguration) WithAnnotations(entries map[string]string) *TestTypeApplyConfiguration { 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 } @@ -179,7 +179,7 @@ func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefe 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 } @@ -190,7 +190,7 @@ func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefe func (b *TestTypeApplyConfiguration) WithFinalizers(values ...string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } @@ -214,5 +214,5 @@ func (b *TestTypeApplyConfiguration) WithAPIGroups(values ...string) *TestTypeAp // GetName retrieves the value of the Name field in the declarative configuration. func (b *TestTypeApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/examples/pkg/generated/applyconfigurations/example3/v1/clustertesttype.go b/examples/pkg/generated/applyconfigurations/example3/v1/clustertesttype.go index 04128cdae..d1060fb50 100644 --- a/examples/pkg/generated/applyconfigurations/example3/v1/clustertesttype.go +++ b/examples/pkg/generated/applyconfigurations/example3/v1/clustertesttype.go @@ -14,24 +14,24 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1 import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // ClusterTestTypeApplyConfiguration represents a declarative configuration of the ClusterTestType type for use // with apply. type ClusterTestTypeApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - ObjectKind *string `json:"kind,omitempty"` - ObjectName *string `json:"name,omitempty"` - Status *ClusterTestTypeStatusApplyConfiguration `json:"status,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + ObjectKind *string `json:"kind,omitempty"` + ObjectName *string `json:"name,omitempty"` + Status *ClusterTestTypeStatusApplyConfiguration `json:"status,omitempty"` } // ClusterTestType constructs a declarative configuration of the ClusterTestType type for use with @@ -48,7 +48,7 @@ func ClusterTestType(name string) *ClusterTestTypeApplyConfiguration { // 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 *ClusterTestTypeApplyConfiguration) WithKind(value string) *ClusterTestTypeApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -56,7 +56,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithKind(value string) *ClusterTestT // 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 *ClusterTestTypeApplyConfiguration) WithAPIVersion(value string) *ClusterTestTypeApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -65,7 +65,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithAPIVersion(value string) *Cluste // If called multiple times, the Name field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithName(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -74,7 +74,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithName(value string) *ClusterTestT // If called multiple times, the GenerateName field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithGenerateName(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -83,7 +83,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithGenerateName(value string) *Clus // If called multiple times, the Namespace field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithNamespace(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -92,7 +92,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithNamespace(value string) *Cluster // If called multiple times, the UID field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithUID(value types.UID) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -101,7 +101,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithUID(value types.UID) *ClusterTes // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithResourceVersion(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -110,25 +110,25 @@ func (b *ClusterTestTypeApplyConfiguration) WithResourceVersion(value string) *C // If called multiple times, the Generation field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithGeneration(value int64) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *ClusterTestTypeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterTestTypeApplyConfiguration { +func (b *ClusterTestTypeApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterTestTypeApplyConfiguration { +func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -137,7 +137,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.T // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -147,11 +147,11 @@ func (b *ClusterTestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value // overwriting an existing map entries in Labels field with the same key. func (b *ClusterTestTypeApplyConfiguration) WithLabels(entries map[string]string) *ClusterTestTypeApplyConfiguration { 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 } @@ -162,11 +162,11 @@ func (b *ClusterTestTypeApplyConfiguration) WithLabels(entries map[string]string // overwriting an existing map entries in Annotations field with the same key. func (b *ClusterTestTypeApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterTestTypeApplyConfiguration { 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 } @@ -174,13 +174,13 @@ func (b *ClusterTestTypeApplyConfiguration) WithAnnotations(entries map[string]s // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *ClusterTestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterTestTypeApplyConfiguration { +func (b *ClusterTestTypeApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { 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 } @@ -191,14 +191,14 @@ func (b *ClusterTestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.Ow func (b *ClusterTestTypeApplyConfiguration) WithFinalizers(values ...string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } func (b *ClusterTestTypeApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } @@ -229,5 +229,5 @@ func (b *ClusterTestTypeApplyConfiguration) WithStatus(value *ClusterTestTypeSta // GetName retrieves the value of the Name field in the declarative configuration. func (b *ClusterTestTypeApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/examples/pkg/generated/applyconfigurations/example3/v1/clustertesttypestatus.go b/examples/pkg/generated/applyconfigurations/example3/v1/clustertesttypestatus.go index 9c966d9ae..617d11463 100644 --- a/examples/pkg/generated/applyconfigurations/example3/v1/clustertesttypestatus.go +++ b/examples/pkg/generated/applyconfigurations/example3/v1/clustertesttypestatus.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1 diff --git a/examples/pkg/generated/applyconfigurations/example3/v1/testtype.go b/examples/pkg/generated/applyconfigurations/example3/v1/testtype.go index b39a1aa72..ea7fbdcf5 100644 --- a/examples/pkg/generated/applyconfigurations/example3/v1/testtype.go +++ b/examples/pkg/generated/applyconfigurations/example3/v1/testtype.go @@ -14,22 +14,22 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1 import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // TestTypeApplyConfiguration represents a declarative configuration of the TestType type for use // with apply. type TestTypeApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - APIGroups []string `json:"apiGroups,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + APIGroups []string `json:"apiGroups,omitempty"` } // TestType constructs a declarative configuration of the TestType type for use with @@ -47,7 +47,7 @@ func TestType(name, namespace string) *TestTypeApplyConfiguration { // 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 *TestTypeApplyConfiguration) WithKind(value string) *TestTypeApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -55,7 +55,7 @@ func (b *TestTypeApplyConfiguration) WithKind(value string) *TestTypeApplyConfig // 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 *TestTypeApplyConfiguration) WithAPIVersion(value string) *TestTypeApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -64,7 +64,7 @@ func (b *TestTypeApplyConfiguration) WithAPIVersion(value string) *TestTypeApply // If called multiple times, the Name field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithName(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -73,7 +73,7 @@ func (b *TestTypeApplyConfiguration) WithName(value string) *TestTypeApplyConfig // If called multiple times, the GenerateName field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithGenerateName(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -82,7 +82,7 @@ func (b *TestTypeApplyConfiguration) WithGenerateName(value string) *TestTypeApp // If called multiple times, the Namespace field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithNamespace(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -91,7 +91,7 @@ func (b *TestTypeApplyConfiguration) WithNamespace(value string) *TestTypeApplyC // If called multiple times, the UID field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithUID(value types.UID) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -100,7 +100,7 @@ func (b *TestTypeApplyConfiguration) WithUID(value types.UID) *TestTypeApplyConf // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithResourceVersion(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -109,25 +109,25 @@ func (b *TestTypeApplyConfiguration) WithResourceVersion(value string) *TestType // If called multiple times, the Generation field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithGeneration(value int64) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *TestTypeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *TestTypeApplyConfiguration { +func (b *TestTypeApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *TestTypeApplyConfiguration { +func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -136,7 +136,7 @@ func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *T // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -146,11 +146,11 @@ func (b *TestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) // overwriting an existing map entries in Labels field with the same key. func (b *TestTypeApplyConfiguration) WithLabels(entries map[string]string) *TestTypeApplyConfiguration { 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 } @@ -161,11 +161,11 @@ func (b *TestTypeApplyConfiguration) WithLabels(entries map[string]string) *Test // overwriting an existing map entries in Annotations field with the same key. func (b *TestTypeApplyConfiguration) WithAnnotations(entries map[string]string) *TestTypeApplyConfiguration { 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 } @@ -173,13 +173,13 @@ func (b *TestTypeApplyConfiguration) WithAnnotations(entries map[string]string) // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *TestTypeApplyConfiguration { +func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { 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 } @@ -190,14 +190,14 @@ func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefe func (b *TestTypeApplyConfiguration) WithFinalizers(values ...string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } func (b *TestTypeApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } @@ -214,5 +214,5 @@ func (b *TestTypeApplyConfiguration) WithAPIGroups(values ...string) *TestTypeAp // GetName retrieves the value of the Name field in the declarative configuration. func (b *TestTypeApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/examples/pkg/generated/applyconfigurations/exampledashed/v1/clustertesttype.go b/examples/pkg/generated/applyconfigurations/exampledashed/v1/clustertesttype.go index 74c16fc78..ba165e225 100644 --- a/examples/pkg/generated/applyconfigurations/exampledashed/v1/clustertesttype.go +++ b/examples/pkg/generated/applyconfigurations/exampledashed/v1/clustertesttype.go @@ -14,24 +14,24 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1 import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // ClusterTestTypeApplyConfiguration represents a declarative configuration of the ClusterTestType type for use // with apply. type ClusterTestTypeApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - ObjectKind *string `json:"kind,omitempty"` - ObjectName *string `json:"name,omitempty"` - Status *ClusterTestTypeStatusApplyConfiguration `json:"status,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + ObjectKind *string `json:"kind,omitempty"` + ObjectName *string `json:"name,omitempty"` + Status *ClusterTestTypeStatusApplyConfiguration `json:"status,omitempty"` } // ClusterTestType constructs a declarative configuration of the ClusterTestType type for use with @@ -48,7 +48,7 @@ func ClusterTestType(name string) *ClusterTestTypeApplyConfiguration { // 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 *ClusterTestTypeApplyConfiguration) WithKind(value string) *ClusterTestTypeApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -56,7 +56,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithKind(value string) *ClusterTestT // 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 *ClusterTestTypeApplyConfiguration) WithAPIVersion(value string) *ClusterTestTypeApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -65,7 +65,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithAPIVersion(value string) *Cluste // If called multiple times, the Name field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithName(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -74,7 +74,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithName(value string) *ClusterTestT // If called multiple times, the GenerateName field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithGenerateName(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -83,7 +83,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithGenerateName(value string) *Clus // If called multiple times, the Namespace field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithNamespace(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -92,7 +92,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithNamespace(value string) *Cluster // If called multiple times, the UID field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithUID(value types.UID) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -101,7 +101,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithUID(value types.UID) *ClusterTes // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithResourceVersion(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -110,25 +110,25 @@ func (b *ClusterTestTypeApplyConfiguration) WithResourceVersion(value string) *C // If called multiple times, the Generation field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithGeneration(value int64) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *ClusterTestTypeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterTestTypeApplyConfiguration { +func (b *ClusterTestTypeApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterTestTypeApplyConfiguration { +func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -137,7 +137,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.T // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -147,11 +147,11 @@ func (b *ClusterTestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value // overwriting an existing map entries in Labels field with the same key. func (b *ClusterTestTypeApplyConfiguration) WithLabels(entries map[string]string) *ClusterTestTypeApplyConfiguration { 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 } @@ -162,11 +162,11 @@ func (b *ClusterTestTypeApplyConfiguration) WithLabels(entries map[string]string // overwriting an existing map entries in Annotations field with the same key. func (b *ClusterTestTypeApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterTestTypeApplyConfiguration { 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 } @@ -174,13 +174,13 @@ func (b *ClusterTestTypeApplyConfiguration) WithAnnotations(entries map[string]s // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *ClusterTestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterTestTypeApplyConfiguration { +func (b *ClusterTestTypeApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { 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 } @@ -191,14 +191,14 @@ func (b *ClusterTestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.Ow func (b *ClusterTestTypeApplyConfiguration) WithFinalizers(values ...string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } func (b *ClusterTestTypeApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } @@ -229,5 +229,5 @@ func (b *ClusterTestTypeApplyConfiguration) WithStatus(value *ClusterTestTypeSta // GetName retrieves the value of the Name field in the declarative configuration. func (b *ClusterTestTypeApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/examples/pkg/generated/applyconfigurations/exampledashed/v1/clustertesttypestatus.go b/examples/pkg/generated/applyconfigurations/exampledashed/v1/clustertesttypestatus.go index 9c966d9ae..617d11463 100644 --- a/examples/pkg/generated/applyconfigurations/exampledashed/v1/clustertesttypestatus.go +++ b/examples/pkg/generated/applyconfigurations/exampledashed/v1/clustertesttypestatus.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1 diff --git a/examples/pkg/generated/applyconfigurations/exampledashed/v1/testtype.go b/examples/pkg/generated/applyconfigurations/exampledashed/v1/testtype.go index 60fca0a04..3bbc89e1f 100644 --- a/examples/pkg/generated/applyconfigurations/exampledashed/v1/testtype.go +++ b/examples/pkg/generated/applyconfigurations/exampledashed/v1/testtype.go @@ -14,22 +14,22 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1 import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // TestTypeApplyConfiguration represents a declarative configuration of the TestType type for use // with apply. type TestTypeApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - APIGroups []string `json:"apiGroups,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + APIGroups []string `json:"apiGroups,omitempty"` } // TestType constructs a declarative configuration of the TestType type for use with @@ -47,7 +47,7 @@ func TestType(name, namespace string) *TestTypeApplyConfiguration { // 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 *TestTypeApplyConfiguration) WithKind(value string) *TestTypeApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -55,7 +55,7 @@ func (b *TestTypeApplyConfiguration) WithKind(value string) *TestTypeApplyConfig // 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 *TestTypeApplyConfiguration) WithAPIVersion(value string) *TestTypeApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -64,7 +64,7 @@ func (b *TestTypeApplyConfiguration) WithAPIVersion(value string) *TestTypeApply // If called multiple times, the Name field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithName(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -73,7 +73,7 @@ func (b *TestTypeApplyConfiguration) WithName(value string) *TestTypeApplyConfig // If called multiple times, the GenerateName field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithGenerateName(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -82,7 +82,7 @@ func (b *TestTypeApplyConfiguration) WithGenerateName(value string) *TestTypeApp // If called multiple times, the Namespace field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithNamespace(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -91,7 +91,7 @@ func (b *TestTypeApplyConfiguration) WithNamespace(value string) *TestTypeApplyC // If called multiple times, the UID field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithUID(value types.UID) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -100,7 +100,7 @@ func (b *TestTypeApplyConfiguration) WithUID(value types.UID) *TestTypeApplyConf // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithResourceVersion(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -109,25 +109,25 @@ func (b *TestTypeApplyConfiguration) WithResourceVersion(value string) *TestType // If called multiple times, the Generation field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithGeneration(value int64) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *TestTypeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *TestTypeApplyConfiguration { +func (b *TestTypeApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *TestTypeApplyConfiguration { +func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -136,7 +136,7 @@ func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *T // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -146,11 +146,11 @@ func (b *TestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) // overwriting an existing map entries in Labels field with the same key. func (b *TestTypeApplyConfiguration) WithLabels(entries map[string]string) *TestTypeApplyConfiguration { 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 } @@ -161,11 +161,11 @@ func (b *TestTypeApplyConfiguration) WithLabels(entries map[string]string) *Test // overwriting an existing map entries in Annotations field with the same key. func (b *TestTypeApplyConfiguration) WithAnnotations(entries map[string]string) *TestTypeApplyConfiguration { 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 } @@ -173,13 +173,13 @@ func (b *TestTypeApplyConfiguration) WithAnnotations(entries map[string]string) // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *TestTypeApplyConfiguration { +func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { 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 } @@ -190,14 +190,14 @@ func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefe func (b *TestTypeApplyConfiguration) WithFinalizers(values ...string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } func (b *TestTypeApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } @@ -214,5 +214,5 @@ func (b *TestTypeApplyConfiguration) WithAPIGroups(values ...string) *TestTypeAp // GetName retrieves the value of the Name field in the declarative configuration. func (b *TestTypeApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/examples/pkg/generated/applyconfigurations/existinginterfaces/v1/clustertesttype.go b/examples/pkg/generated/applyconfigurations/existinginterfaces/v1/clustertesttype.go index a5b7f8024..2a04815fd 100644 --- a/examples/pkg/generated/applyconfigurations/existinginterfaces/v1/clustertesttype.go +++ b/examples/pkg/generated/applyconfigurations/existinginterfaces/v1/clustertesttype.go @@ -14,24 +14,24 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1 import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // ClusterTestTypeApplyConfiguration represents a declarative configuration of the ClusterTestType type for use // with apply. type ClusterTestTypeApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - ObjectKind *string `json:"kind,omitempty"` - ObjectName *string `json:"name,omitempty"` - Status *ClusterTestTypeStatusApplyConfiguration `json:"status,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + ObjectKind *string `json:"kind,omitempty"` + ObjectName *string `json:"name,omitempty"` + Status *ClusterTestTypeStatusApplyConfiguration `json:"status,omitempty"` } // ClusterTestType constructs a declarative configuration of the ClusterTestType type for use with @@ -48,7 +48,7 @@ func ClusterTestType(name string) *ClusterTestTypeApplyConfiguration { // 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 *ClusterTestTypeApplyConfiguration) WithKind(value string) *ClusterTestTypeApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -56,7 +56,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithKind(value string) *ClusterTestT // 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 *ClusterTestTypeApplyConfiguration) WithAPIVersion(value string) *ClusterTestTypeApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -65,7 +65,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithAPIVersion(value string) *Cluste // If called multiple times, the Name field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithName(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -74,7 +74,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithName(value string) *ClusterTestT // If called multiple times, the GenerateName field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithGenerateName(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -83,7 +83,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithGenerateName(value string) *Clus // If called multiple times, the Namespace field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithNamespace(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -92,7 +92,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithNamespace(value string) *Cluster // If called multiple times, the UID field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithUID(value types.UID) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -101,7 +101,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithUID(value types.UID) *ClusterTes // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithResourceVersion(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -110,25 +110,25 @@ func (b *ClusterTestTypeApplyConfiguration) WithResourceVersion(value string) *C // If called multiple times, the Generation field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithGeneration(value int64) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *ClusterTestTypeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterTestTypeApplyConfiguration { +func (b *ClusterTestTypeApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterTestTypeApplyConfiguration { +func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -137,7 +137,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.T // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -147,11 +147,11 @@ func (b *ClusterTestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value // overwriting an existing map entries in Labels field with the same key. func (b *ClusterTestTypeApplyConfiguration) WithLabels(entries map[string]string) *ClusterTestTypeApplyConfiguration { 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 } @@ -162,11 +162,11 @@ func (b *ClusterTestTypeApplyConfiguration) WithLabels(entries map[string]string // overwriting an existing map entries in Annotations field with the same key. func (b *ClusterTestTypeApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterTestTypeApplyConfiguration { 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 } @@ -174,13 +174,13 @@ func (b *ClusterTestTypeApplyConfiguration) WithAnnotations(entries map[string]s // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *ClusterTestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterTestTypeApplyConfiguration { +func (b *ClusterTestTypeApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { 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 } @@ -191,14 +191,14 @@ func (b *ClusterTestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.Ow func (b *ClusterTestTypeApplyConfiguration) WithFinalizers(values ...string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } func (b *ClusterTestTypeApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } @@ -229,5 +229,5 @@ func (b *ClusterTestTypeApplyConfiguration) WithStatus(value *ClusterTestTypeSta // GetName retrieves the value of the Name field in the declarative configuration. func (b *ClusterTestTypeApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/examples/pkg/generated/applyconfigurations/existinginterfaces/v1/clustertesttypestatus.go b/examples/pkg/generated/applyconfigurations/existinginterfaces/v1/clustertesttypestatus.go index 9c966d9ae..617d11463 100644 --- a/examples/pkg/generated/applyconfigurations/existinginterfaces/v1/clustertesttypestatus.go +++ b/examples/pkg/generated/applyconfigurations/existinginterfaces/v1/clustertesttypestatus.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1 diff --git a/examples/pkg/generated/applyconfigurations/existinginterfaces/v1/testtype.go b/examples/pkg/generated/applyconfigurations/existinginterfaces/v1/testtype.go index 2764c64bd..a5b4b18f0 100644 --- a/examples/pkg/generated/applyconfigurations/existinginterfaces/v1/testtype.go +++ b/examples/pkg/generated/applyconfigurations/existinginterfaces/v1/testtype.go @@ -14,22 +14,22 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1 import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // TestTypeApplyConfiguration represents a declarative configuration of the TestType type for use // with apply. type TestTypeApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - APIGroups []string `json:"apiGroups,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + APIGroups []string `json:"apiGroups,omitempty"` } // TestType constructs a declarative configuration of the TestType type for use with @@ -47,7 +47,7 @@ func TestType(name, namespace string) *TestTypeApplyConfiguration { // 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 *TestTypeApplyConfiguration) WithKind(value string) *TestTypeApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -55,7 +55,7 @@ func (b *TestTypeApplyConfiguration) WithKind(value string) *TestTypeApplyConfig // 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 *TestTypeApplyConfiguration) WithAPIVersion(value string) *TestTypeApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -64,7 +64,7 @@ func (b *TestTypeApplyConfiguration) WithAPIVersion(value string) *TestTypeApply // If called multiple times, the Name field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithName(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -73,7 +73,7 @@ func (b *TestTypeApplyConfiguration) WithName(value string) *TestTypeApplyConfig // If called multiple times, the GenerateName field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithGenerateName(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -82,7 +82,7 @@ func (b *TestTypeApplyConfiguration) WithGenerateName(value string) *TestTypeApp // If called multiple times, the Namespace field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithNamespace(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -91,7 +91,7 @@ func (b *TestTypeApplyConfiguration) WithNamespace(value string) *TestTypeApplyC // If called multiple times, the UID field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithUID(value types.UID) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -100,7 +100,7 @@ func (b *TestTypeApplyConfiguration) WithUID(value types.UID) *TestTypeApplyConf // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithResourceVersion(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -109,25 +109,25 @@ func (b *TestTypeApplyConfiguration) WithResourceVersion(value string) *TestType // If called multiple times, the Generation field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithGeneration(value int64) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *TestTypeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *TestTypeApplyConfiguration { +func (b *TestTypeApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *TestTypeApplyConfiguration { +func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -136,7 +136,7 @@ func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *T // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -146,11 +146,11 @@ func (b *TestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) // overwriting an existing map entries in Labels field with the same key. func (b *TestTypeApplyConfiguration) WithLabels(entries map[string]string) *TestTypeApplyConfiguration { 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 } @@ -161,11 +161,11 @@ func (b *TestTypeApplyConfiguration) WithLabels(entries map[string]string) *Test // overwriting an existing map entries in Annotations field with the same key. func (b *TestTypeApplyConfiguration) WithAnnotations(entries map[string]string) *TestTypeApplyConfiguration { 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 } @@ -173,13 +173,13 @@ func (b *TestTypeApplyConfiguration) WithAnnotations(entries map[string]string) // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *TestTypeApplyConfiguration { +func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { 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 } @@ -190,14 +190,14 @@ func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefe func (b *TestTypeApplyConfiguration) WithFinalizers(values ...string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } func (b *TestTypeApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } @@ -214,5 +214,5 @@ func (b *TestTypeApplyConfiguration) WithAPIGroups(values ...string) *TestTypeAp // GetName retrieves the value of the Name field in the declarative configuration. func (b *TestTypeApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/examples/pkg/generated/applyconfigurations/internal/internal.go b/examples/pkg/generated/applyconfigurations/internal/internal.go index 82f62ba54..f29d585da 100644 --- a/examples/pkg/generated/applyconfigurations/internal/internal.go +++ b/examples/pkg/generated/applyconfigurations/internal/internal.go @@ -14,13 +14,13 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package internal import ( - "fmt" - "sync" + fmt "fmt" + sync "sync" typed "sigs.k8s.io/structured-merge-diff/v4/typed" ) diff --git a/examples/pkg/generated/applyconfigurations/secondexample/v1/clustertesttype.go b/examples/pkg/generated/applyconfigurations/secondexample/v1/clustertesttype.go index 1d93379e7..ffebc0ed2 100644 --- a/examples/pkg/generated/applyconfigurations/secondexample/v1/clustertesttype.go +++ b/examples/pkg/generated/applyconfigurations/secondexample/v1/clustertesttype.go @@ -14,24 +14,24 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1 import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // ClusterTestTypeApplyConfiguration represents a declarative configuration of the ClusterTestType type for use // with apply. type ClusterTestTypeApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - ObjectKind *string `json:"kind,omitempty"` - ObjectName *string `json:"name,omitempty"` - Status *ClusterTestTypeStatusApplyConfiguration `json:"status,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + ObjectKind *string `json:"kind,omitempty"` + ObjectName *string `json:"name,omitempty"` + Status *ClusterTestTypeStatusApplyConfiguration `json:"status,omitempty"` } // ClusterTestType constructs a declarative configuration of the ClusterTestType type for use with @@ -48,7 +48,7 @@ func ClusterTestType(name string) *ClusterTestTypeApplyConfiguration { // 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 *ClusterTestTypeApplyConfiguration) WithKind(value string) *ClusterTestTypeApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -56,7 +56,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithKind(value string) *ClusterTestT // 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 *ClusterTestTypeApplyConfiguration) WithAPIVersion(value string) *ClusterTestTypeApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -65,7 +65,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithAPIVersion(value string) *Cluste // If called multiple times, the Name field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithName(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -74,7 +74,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithName(value string) *ClusterTestT // If called multiple times, the GenerateName field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithGenerateName(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -83,7 +83,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithGenerateName(value string) *Clus // If called multiple times, the Namespace field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithNamespace(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -92,7 +92,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithNamespace(value string) *Cluster // If called multiple times, the UID field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithUID(value types.UID) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -101,7 +101,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithUID(value types.UID) *ClusterTes // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithResourceVersion(value string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -110,25 +110,25 @@ func (b *ClusterTestTypeApplyConfiguration) WithResourceVersion(value string) *C // If called multiple times, the Generation field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithGeneration(value int64) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *ClusterTestTypeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterTestTypeApplyConfiguration { +func (b *ClusterTestTypeApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterTestTypeApplyConfiguration { +func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -137,7 +137,7 @@ func (b *ClusterTestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.T // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *ClusterTestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -147,11 +147,11 @@ func (b *ClusterTestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value // overwriting an existing map entries in Labels field with the same key. func (b *ClusterTestTypeApplyConfiguration) WithLabels(entries map[string]string) *ClusterTestTypeApplyConfiguration { 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 } @@ -162,11 +162,11 @@ func (b *ClusterTestTypeApplyConfiguration) WithLabels(entries map[string]string // overwriting an existing map entries in Annotations field with the same key. func (b *ClusterTestTypeApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterTestTypeApplyConfiguration { 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 } @@ -174,13 +174,13 @@ func (b *ClusterTestTypeApplyConfiguration) WithAnnotations(entries map[string]s // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *ClusterTestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterTestTypeApplyConfiguration { +func (b *ClusterTestTypeApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { 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 } @@ -191,14 +191,14 @@ func (b *ClusterTestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.Ow func (b *ClusterTestTypeApplyConfiguration) WithFinalizers(values ...string) *ClusterTestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } func (b *ClusterTestTypeApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } @@ -229,5 +229,5 @@ func (b *ClusterTestTypeApplyConfiguration) WithStatus(value *ClusterTestTypeSta // GetName retrieves the value of the Name field in the declarative configuration. func (b *ClusterTestTypeApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/examples/pkg/generated/applyconfigurations/secondexample/v1/clustertesttypestatus.go b/examples/pkg/generated/applyconfigurations/secondexample/v1/clustertesttypestatus.go index 9c966d9ae..617d11463 100644 --- a/examples/pkg/generated/applyconfigurations/secondexample/v1/clustertesttypestatus.go +++ b/examples/pkg/generated/applyconfigurations/secondexample/v1/clustertesttypestatus.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1 diff --git a/examples/pkg/generated/applyconfigurations/secondexample/v1/testtype.go b/examples/pkg/generated/applyconfigurations/secondexample/v1/testtype.go index e4e85de61..6a326a6cf 100644 --- a/examples/pkg/generated/applyconfigurations/secondexample/v1/testtype.go +++ b/examples/pkg/generated/applyconfigurations/secondexample/v1/testtype.go @@ -14,22 +14,22 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package v1 import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" - v1 "k8s.io/client-go/applyconfigurations/meta/v1" + metav1 "k8s.io/client-go/applyconfigurations/meta/v1" ) // TestTypeApplyConfiguration represents a declarative configuration of the TestType type for use // with apply. type TestTypeApplyConfiguration struct { - v1.TypeMetaApplyConfiguration `json:",inline"` - *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` - APIGroups []string `json:"apiGroups,omitempty"` + metav1.TypeMetaApplyConfiguration `json:",inline"` + *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + APIGroups []string `json:"apiGroups,omitempty"` } // TestType constructs a declarative configuration of the TestType type for use with @@ -47,7 +47,7 @@ func TestType(name, namespace string) *TestTypeApplyConfiguration { // 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 *TestTypeApplyConfiguration) WithKind(value string) *TestTypeApplyConfiguration { - b.Kind = &value + b.TypeMetaApplyConfiguration.Kind = &value return b } @@ -55,7 +55,7 @@ func (b *TestTypeApplyConfiguration) WithKind(value string) *TestTypeApplyConfig // 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 *TestTypeApplyConfiguration) WithAPIVersion(value string) *TestTypeApplyConfiguration { - b.APIVersion = &value + b.TypeMetaApplyConfiguration.APIVersion = &value return b } @@ -64,7 +64,7 @@ func (b *TestTypeApplyConfiguration) WithAPIVersion(value string) *TestTypeApply // If called multiple times, the Name field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithName(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Name = &value + b.ObjectMetaApplyConfiguration.Name = &value return b } @@ -73,7 +73,7 @@ func (b *TestTypeApplyConfiguration) WithName(value string) *TestTypeApplyConfig // If called multiple times, the GenerateName field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithGenerateName(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.GenerateName = &value + b.ObjectMetaApplyConfiguration.GenerateName = &value return b } @@ -82,7 +82,7 @@ func (b *TestTypeApplyConfiguration) WithGenerateName(value string) *TestTypeApp // If called multiple times, the Namespace field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithNamespace(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Namespace = &value + b.ObjectMetaApplyConfiguration.Namespace = &value return b } @@ -91,7 +91,7 @@ func (b *TestTypeApplyConfiguration) WithNamespace(value string) *TestTypeApplyC // If called multiple times, the UID field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithUID(value types.UID) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.UID = &value + b.ObjectMetaApplyConfiguration.UID = &value return b } @@ -100,7 +100,7 @@ func (b *TestTypeApplyConfiguration) WithUID(value types.UID) *TestTypeApplyConf // If called multiple times, the ResourceVersion field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithResourceVersion(value string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.ResourceVersion = &value + b.ObjectMetaApplyConfiguration.ResourceVersion = &value return b } @@ -109,25 +109,25 @@ func (b *TestTypeApplyConfiguration) WithResourceVersion(value string) *TestType // If called multiple times, the Generation field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithGeneration(value int64) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.Generation = &value + b.ObjectMetaApplyConfiguration.Generation = &value return b } // WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CreationTimestamp field is set to the value of the last call. -func (b *TestTypeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *TestTypeApplyConfiguration { +func (b *TestTypeApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.CreationTimestamp = &value + b.ObjectMetaApplyConfiguration.CreationTimestamp = &value return b } // WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the DeletionTimestamp field is set to the value of the last call. -func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *TestTypeApplyConfiguration { +func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionTimestamp = &value + b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value return b } @@ -136,7 +136,7 @@ func (b *TestTypeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *T // If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. func (b *TestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() - b.DeletionGracePeriodSeconds = &value + b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value return b } @@ -146,11 +146,11 @@ func (b *TestTypeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) // overwriting an existing map entries in Labels field with the same key. func (b *TestTypeApplyConfiguration) WithLabels(entries map[string]string) *TestTypeApplyConfiguration { 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 } @@ -161,11 +161,11 @@ func (b *TestTypeApplyConfiguration) WithLabels(entries map[string]string) *Test // overwriting an existing map entries in Annotations field with the same key. func (b *TestTypeApplyConfiguration) WithAnnotations(entries map[string]string) *TestTypeApplyConfiguration { 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 } @@ -173,13 +173,13 @@ func (b *TestTypeApplyConfiguration) WithAnnotations(entries map[string]string) // WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the OwnerReferences field. -func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *TestTypeApplyConfiguration { +func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { 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 } @@ -190,14 +190,14 @@ func (b *TestTypeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefe func (b *TestTypeApplyConfiguration) WithFinalizers(values ...string) *TestTypeApplyConfiguration { b.ensureObjectMetaApplyConfigurationExists() for i := range values { - b.Finalizers = append(b.Finalizers, values[i]) + b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i]) } return b } func (b *TestTypeApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { if b.ObjectMetaApplyConfiguration == nil { - b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{} } } @@ -214,5 +214,5 @@ func (b *TestTypeApplyConfiguration) WithAPIGroups(values ...string) *TestTypeAp // GetName retrieves the value of the Name field in the declarative configuration. func (b *TestTypeApplyConfiguration) GetName() *string { b.ensureObjectMetaApplyConfigurationExists() - return b.Name + return b.ObjectMetaApplyConfiguration.Name } diff --git a/examples/pkg/generated/applyconfigurations/utils.go b/examples/pkg/generated/applyconfigurations/utils.go index f46560dcb..37a5360df 100644 --- a/examples/pkg/generated/applyconfigurations/utils.go +++ b/examples/pkg/generated/applyconfigurations/utils.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by applyconfiguration-gen-v0.31. DO NOT EDIT. +// Code generated by applyconfiguration-gen-v0.32. DO NOT EDIT. package applyconfigurations diff --git a/examples/pkg/generated/clientset/versioned/clientset.go b/examples/pkg/generated/clientset/versioned/clientset.go index 78b3f1360..c603452dd 100644 --- a/examples/pkg/generated/clientset/versioned/clientset.go +++ b/examples/pkg/generated/clientset/versioned/clientset.go @@ -14,13 +14,13 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package versioned import ( - "fmt" - "net/http" + fmt "fmt" + http "net/http" discovery "k8s.io/client-go/discovery" rest "k8s.io/client-go/rest" diff --git a/examples/pkg/generated/clientset/versioned/fake/clientset_generated.go b/examples/pkg/generated/clientset/versioned/fake/clientset_generated.go index 3d33029f9..531b1d6bd 100644 --- a/examples/pkg/generated/clientset/versioned/fake/clientset_generated.go +++ b/examples/pkg/generated/clientset/versioned/fake/clientset_generated.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake diff --git a/examples/pkg/generated/clientset/versioned/fake/doc.go b/examples/pkg/generated/clientset/versioned/fake/doc.go index 4293c8ce8..b866f3981 100644 --- a/examples/pkg/generated/clientset/versioned/fake/doc.go +++ b/examples/pkg/generated/clientset/versioned/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. // This package has the automatically generated fake clientset. package fake diff --git a/examples/pkg/generated/clientset/versioned/fake/register.go b/examples/pkg/generated/clientset/versioned/fake/register.go index 4914f6ddd..5197f7c1a 100644 --- a/examples/pkg/generated/clientset/versioned/fake/register.go +++ b/examples/pkg/generated/clientset/versioned/fake/register.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake diff --git a/examples/pkg/generated/clientset/versioned/scheme/doc.go b/examples/pkg/generated/clientset/versioned/scheme/doc.go index 0ba73696d..977048176 100644 --- a/examples/pkg/generated/clientset/versioned/scheme/doc.go +++ b/examples/pkg/generated/clientset/versioned/scheme/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. // This package contains the scheme of the automatically generated clientset. package scheme diff --git a/examples/pkg/generated/clientset/versioned/scheme/register.go b/examples/pkg/generated/clientset/versioned/scheme/register.go index d22aec109..8920da1ed 100644 --- a/examples/pkg/generated/clientset/versioned/scheme/register.go +++ b/examples/pkg/generated/clientset/versioned/scheme/register.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package scheme diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1/clustertesttype.go b/examples/pkg/generated/clientset/versioned/typed/example/v1/clustertesttype.go index 1a5f726dd..ed43df3ff 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1/clustertesttype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1/clustertesttype.go @@ -14,19 +14,19 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 import ( - "context" + context "context" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" gentype "k8s.io/client-go/gentype" - v1 "acme.corp/pkg/apis/example/v1" + examplev1 "acme.corp/pkg/apis/example/v1" scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) @@ -38,33 +38,34 @@ type ClusterTestTypesGetter interface { // ClusterTestTypeInterface has methods to work with ClusterTestType resources. type ClusterTestTypeInterface interface { - Create(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.CreateOptions) (*v1.ClusterTestType, error) - Update(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.UpdateOptions) (*v1.ClusterTestType, error) + Create(ctx context.Context, clusterTestType *examplev1.ClusterTestType, opts metav1.CreateOptions) (*examplev1.ClusterTestType, error) + Update(ctx context.Context, clusterTestType *examplev1.ClusterTestType, opts metav1.UpdateOptions) (*examplev1.ClusterTestType, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.UpdateOptions) (*v1.ClusterTestType, error) + UpdateStatus(ctx context.Context, clusterTestType *examplev1.ClusterTestType, opts metav1.UpdateOptions) (*examplev1.ClusterTestType, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterTestType, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterTestTypeList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*examplev1.ClusterTestType, error) + List(ctx context.Context, opts metav1.ListOptions) (*examplev1.ClusterTestTypeList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterTestType, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *examplev1.ClusterTestType, err error) ClusterTestTypeExpansion } // clusterTestTypes implements ClusterTestTypeInterface type clusterTestTypes struct { - *gentype.ClientWithList[*v1.ClusterTestType, *v1.ClusterTestTypeList] + *gentype.ClientWithList[*examplev1.ClusterTestType, *examplev1.ClusterTestTypeList] } // newClusterTestTypes returns a ClusterTestTypes func newClusterTestTypes(c *ExampleV1Client) *clusterTestTypes { return &clusterTestTypes{ - gentype.NewClientWithList[*v1.ClusterTestType, *v1.ClusterTestTypeList]( + gentype.NewClientWithList[*examplev1.ClusterTestType, *examplev1.ClusterTestTypeList]( "clustertesttypes", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.ClusterTestType { return &v1.ClusterTestType{} }, - func() *v1.ClusterTestTypeList { return &v1.ClusterTestTypeList{} }), + func() *examplev1.ClusterTestType { return &examplev1.ClusterTestType{} }, + func() *examplev1.ClusterTestTypeList { return &examplev1.ClusterTestTypeList{} }, + ), } } diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1/doc.go b/examples/pkg/generated/clientset/versioned/typed/example/v1/doc.go index b2e49efd1..8f148c5b8 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1/doc.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. // This package has the automatically generated typed clients. package v1 diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1/example_client.go b/examples/pkg/generated/clientset/versioned/typed/example/v1/example_client.go index 4b5b332ff..edae45818 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1/example_client.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1/example_client.go @@ -14,17 +14,17 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 import ( - "net/http" + http "net/http" rest "k8s.io/client-go/rest" - v1 "acme.corp/pkg/apis/example/v1" - "acme.corp/pkg/generated/clientset/versioned/scheme" + examplev1 "acme.corp/pkg/apis/example/v1" + scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) type ExampleV1Interface interface { @@ -96,10 +96,10 @@ func New(c rest.Interface) *ExampleV1Client { } func setConfigDefaults(config *rest.Config) error { - gv := v1.SchemeGroupVersion + gv := examplev1.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/examples/pkg/generated/clientset/versioned/typed/example/v1/fake/doc.go b/examples/pkg/generated/clientset/versioned/typed/example/v1/fake/doc.go index 43d633d75..f0986a890 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1/fake/doc.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. // Package fake has the automatically generated clients. package fake diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1/fake/fake_clustertesttype.go b/examples/pkg/generated/clientset/versioned/typed/example/v1/fake/fake_clustertesttype.go index 447de55cb..35e1385e6 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1/fake/fake_clustertesttype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1/fake/fake_clustertesttype.go @@ -14,126 +14,38 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake import ( - "context" - - metav1 "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" + gentype "k8s.io/client-go/gentype" v1 "acme.corp/pkg/apis/example/v1" + examplev1 "acme.corp/pkg/generated/clientset/versioned/typed/example/v1" ) -// FakeClusterTestTypes implements ClusterTestTypeInterface -type FakeClusterTestTypes struct { +// fakeClusterTestTypes implements ClusterTestTypeInterface +type fakeClusterTestTypes struct { + *gentype.FakeClientWithList[*v1.ClusterTestType, *v1.ClusterTestTypeList] Fake *FakeExampleV1 } -var clustertesttypesResource = v1.SchemeGroupVersion.WithResource("clustertesttypes") - -var clustertesttypesKind = v1.SchemeGroupVersion.WithKind("ClusterTestType") - -// Get takes name of the clusterTestType, and returns the corresponding clusterTestType object, and an error if there is any. -func (c *FakeClusterTestTypes) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(clustertesttypesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterTestType), err -} - -// List takes label and field selectors, and returns the list of ClusterTestTypes that match those selectors. -func (c *FakeClusterTestTypes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterTestTypeList, err error) { - emptyResult := &v1.ClusterTestTypeList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(clustertesttypesResource, clustertesttypesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.ClusterTestTypeList{ListMeta: obj.(*v1.ClusterTestTypeList).ListMeta} - for _, item := range obj.(*v1.ClusterTestTypeList).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 clusterTestTypes. -func (c *FakeClusterTestTypes) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(clustertesttypesResource, opts)) -} - -// Create takes the representation of a clusterTestType and creates it. Returns the server's representation of the clusterTestType, and an error, if there is any. -func (c *FakeClusterTestTypes) Create(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.CreateOptions) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(clustertesttypesResource, clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterTestType), err -} - -// Update takes the representation of a clusterTestType and updates it. Returns the server's representation of the clusterTestType, and an error, if there is any. -func (c *FakeClusterTestTypes) Update(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.UpdateOptions) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(clustertesttypesResource, clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterTestType), 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 *FakeClusterTestTypes) UpdateStatus(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.UpdateOptions) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clustertesttypesResource, "status", clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterTestType), err -} - -// Delete takes name of the clusterTestType and deletes it. Returns an error if one occurs. -func (c *FakeClusterTestTypes) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(clustertesttypesResource, name, opts), &v1.ClusterTestType{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeClusterTestTypes) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(clustertesttypesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.ClusterTestTypeList{}) - return err -} - -// Patch applies the patch and returns the patched clusterTestType. -func (c *FakeClusterTestTypes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(clustertesttypesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeClusterTestTypes(fake *FakeExampleV1) examplev1.ClusterTestTypeInterface { + return &fakeClusterTestTypes{ + gentype.NewFakeClientWithList[*v1.ClusterTestType, *v1.ClusterTestTypeList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("clustertesttypes"), + v1.SchemeGroupVersion.WithKind("ClusterTestType"), + func() *v1.ClusterTestType { return &v1.ClusterTestType{} }, + func() *v1.ClusterTestTypeList { return &v1.ClusterTestTypeList{} }, + func(dst, src *v1.ClusterTestTypeList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ClusterTestTypeList) []*v1.ClusterTestType { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.ClusterTestTypeList, items []*v1.ClusterTestType) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.ClusterTestType), err } diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1/fake/fake_example_client.go b/examples/pkg/generated/clientset/versioned/typed/example/v1/fake/fake_example_client.go index cf29962c8..c6bdada54 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1/fake/fake_example_client.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1/fake/fake_example_client.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake @@ -30,15 +30,15 @@ type FakeExampleV1 struct { } func (c *FakeExampleV1) ClusterTestTypes() v1.ClusterTestTypeInterface { - return &FakeClusterTestTypes{c} + return newFakeClusterTestTypes(c) } func (c *FakeExampleV1) TestTypes(namespace string) v1.TestTypeInterface { - return &FakeTestTypes{c, namespace} + return newFakeTestTypes(c, namespace) } func (c *FakeExampleV1) WithoutVerbTypes(namespace string) v1.WithoutVerbTypeInterface { - return &FakeWithoutVerbTypes{c, namespace} + return newFakeWithoutVerbTypes(c, namespace) } // RESTClient returns a RESTClient that is used to communicate diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1/fake/fake_testtype.go b/examples/pkg/generated/clientset/versioned/typed/example/v1/fake/fake_testtype.go index d805f4f55..7900dc798 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1/fake/fake_testtype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1/fake/fake_testtype.go @@ -14,131 +14,49 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake import ( - "context" + context "context" metav1 "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" + gentype "k8s.io/client-go/gentype" testing "k8s.io/client-go/testing" v1 "acme.corp/pkg/apis/example/v1" + examplev1 "acme.corp/pkg/generated/clientset/versioned/typed/example/v1" ) -// FakeTestTypes implements TestTypeInterface -type FakeTestTypes struct { +// fakeTestTypes implements TestTypeInterface +type fakeTestTypes struct { + *gentype.FakeClientWithList[*v1.TestType, *v1.TestTypeList] Fake *FakeExampleV1 - ns string } -var testtypesResource = v1.SchemeGroupVersion.WithResource("testtypes") - -var testtypesKind = v1.SchemeGroupVersion.WithKind("TestType") - -// Get takes name of the testType, and returns the corresponding testType object, and an error if there is any. -func (c *FakeTestTypes) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.TestType, err error) { - emptyResult := &v1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(testtypesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TestType), err -} - -// List takes label and field selectors, and returns the list of TestTypes that match those selectors. -func (c *FakeTestTypes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.TestTypeList, err error) { - emptyResult := &v1.TestTypeList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(testtypesResource, testtypesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.TestTypeList{ListMeta: obj.(*v1.TestTypeList).ListMeta} - for _, item := range obj.(*v1.TestTypeList).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 testTypes. -func (c *FakeTestTypes) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(testtypesResource, c.ns, opts)) - -} - -// Create takes the representation of a testType and creates it. Returns the server's representation of the testType, and an error, if there is any. -func (c *FakeTestTypes) Create(ctx context.Context, testType *v1.TestType, opts metav1.CreateOptions) (result *v1.TestType, err error) { - emptyResult := &v1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(testtypesResource, c.ns, testType, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TestType), err -} - -// Update takes the representation of a testType and updates it. Returns the server's representation of the testType, and an error, if there is any. -func (c *FakeTestTypes) Update(ctx context.Context, testType *v1.TestType, opts metav1.UpdateOptions) (result *v1.TestType, err error) { - emptyResult := &v1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(testtypesResource, c.ns, testType, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TestType), err -} - -// Delete takes name of the testType and deletes it. Returns an error if one occurs. -func (c *FakeTestTypes) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(testtypesResource, c.ns, name, opts), &v1.TestType{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeTestTypes) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(testtypesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.TestTypeList{}) - return err -} - -// Patch applies the patch and returns the patched testType. -func (c *FakeTestTypes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.TestType, err error) { - emptyResult := &v1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(testtypesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeTestTypes(fake *FakeExampleV1, namespace string) examplev1.TestTypeInterface { + return &fakeTestTypes{ + gentype.NewFakeClientWithList[*v1.TestType, *v1.TestTypeList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("testtypes"), + v1.SchemeGroupVersion.WithKind("TestType"), + func() *v1.TestType { return &v1.TestType{} }, + func() *v1.TestTypeList { return &v1.TestTypeList{} }, + func(dst, src *v1.TestTypeList) { dst.ListMeta = src.ListMeta }, + func(list *v1.TestTypeList) []*v1.TestType { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.TestTypeList, items []*v1.TestType) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.TestType), err } // CreateField takes the representation of a field and creates it. Returns the server's representation of the field, and an error, if there is any. -func (c *FakeTestTypes) CreateField(ctx context.Context, testTypeName string, field *v1.Field, opts metav1.CreateOptions) (result *v1.Field, err error) { +func (c *fakeTestTypes) CreateField(ctx context.Context, testTypeName string, field *v1.Field, opts metav1.CreateOptions) (result *v1.Field, err error) { emptyResult := &v1.Field{} obj, err := c.Fake. - Invokes(testing.NewCreateSubresourceActionWithOptions(testtypesResource, testTypeName, "field", c.ns, field, opts), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), testTypeName, "field", c.Namespace(), field, opts), emptyResult) if obj == nil { return emptyResult, err @@ -147,10 +65,10 @@ func (c *FakeTestTypes) CreateField(ctx context.Context, testTypeName string, fi } // UpdateField takes the representation of a field and updates it. Returns the server's representation of the field, and an error, if there is any. -func (c *FakeTestTypes) UpdateField(ctx context.Context, testTypeName string, field *v1.Field, opts metav1.UpdateOptions) (result *v1.Field, err error) { +func (c *fakeTestTypes) UpdateField(ctx context.Context, testTypeName string, field *v1.Field, opts metav1.UpdateOptions) (result *v1.Field, err error) { emptyResult := &v1.Field{} obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(testtypesResource, "field", c.ns, field, opts), &v1.Field{}) + Invokes(testing.NewUpdateSubresourceActionWithOptions(c.Resource(), "field", c.Namespace(), field, opts), &v1.Field{}) if obj == nil { return emptyResult, err @@ -159,10 +77,10 @@ func (c *FakeTestTypes) UpdateField(ctx context.Context, testTypeName string, fi } // GetField takes name of the testType, and returns the corresponding field object, and an error if there is any. -func (c *FakeTestTypes) GetField(ctx context.Context, testTypeName string, options metav1.GetOptions) (result *v1.Field, err error) { +func (c *fakeTestTypes) GetField(ctx context.Context, testTypeName string, options metav1.GetOptions) (result *v1.Field, err error) { emptyResult := &v1.Field{} obj, err := c.Fake. - Invokes(testing.NewGetSubresourceActionWithOptions(testtypesResource, c.ns, "field", testTypeName, options), emptyResult) + Invokes(testing.NewGetSubresourceActionWithOptions(c.Resource(), c.Namespace(), "field", testTypeName, options), emptyResult) if obj == nil { return emptyResult, err diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1/fake/fake_withoutverbtype.go b/examples/pkg/generated/clientset/versioned/typed/example/v1/fake/fake_withoutverbtype.go index c276bd376..d61df8d27 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1/fake/fake_withoutverbtype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1/fake/fake_withoutverbtype.go @@ -14,12 +14,32 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake -// FakeWithoutVerbTypes implements WithoutVerbTypeInterface -type FakeWithoutVerbTypes struct { +import ( + gentype "k8s.io/client-go/gentype" + + v1 "acme.corp/pkg/apis/example/v1" + examplev1 "acme.corp/pkg/generated/clientset/versioned/typed/example/v1" +) + +// fakeWithoutVerbTypes implements WithoutVerbTypeInterface +type fakeWithoutVerbTypes struct { + *gentype.FakeClient[*v1.WithoutVerbType] Fake *FakeExampleV1 - ns string +} + +func newFakeWithoutVerbTypes(fake *FakeExampleV1, namespace string) examplev1.WithoutVerbTypeInterface { + return &fakeWithoutVerbTypes{ + gentype.NewFakeClient[*v1.WithoutVerbType]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("withoutverbtypes"), + v1.SchemeGroupVersion.WithKind("WithoutVerbType"), + func() *v1.WithoutVerbType { return &v1.WithoutVerbType{} }, + ), + fake, + } } diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1/generated_expansion.go b/examples/pkg/generated/clientset/versioned/typed/example/v1/generated_expansion.go index 87ef21b3e..bb8ef7c9f 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1/generated_expansion.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1/generated_expansion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1/testtype.go b/examples/pkg/generated/clientset/versioned/typed/example/v1/testtype.go index bb7e55895..9cf6b7617 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1/testtype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1/testtype.go @@ -14,19 +14,19 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 import ( - "context" + context "context" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" gentype "k8s.io/client-go/gentype" - v1 "acme.corp/pkg/apis/example/v1" + examplev1 "acme.corp/pkg/apis/example/v1" scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) @@ -38,42 +38,43 @@ type TestTypesGetter interface { // TestTypeInterface has methods to work with TestType resources. type TestTypeInterface interface { - Create(ctx context.Context, testType *v1.TestType, opts metav1.CreateOptions) (*v1.TestType, error) - Update(ctx context.Context, testType *v1.TestType, opts metav1.UpdateOptions) (*v1.TestType, error) + Create(ctx context.Context, testType *examplev1.TestType, opts metav1.CreateOptions) (*examplev1.TestType, error) + Update(ctx context.Context, testType *examplev1.TestType, opts metav1.UpdateOptions) (*examplev1.TestType, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.TestType, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.TestTypeList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*examplev1.TestType, error) + List(ctx context.Context, opts metav1.ListOptions) (*examplev1.TestTypeList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.TestType, err error) - CreateField(ctx context.Context, testTypeName string, field *v1.Field, opts metav1.CreateOptions) (*v1.Field, error) - UpdateField(ctx context.Context, testTypeName string, field *v1.Field, opts metav1.UpdateOptions) (*v1.Field, error) - GetField(ctx context.Context, testTypeName string, options metav1.GetOptions) (*v1.Field, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *examplev1.TestType, err error) + CreateField(ctx context.Context, testTypeName string, field *examplev1.Field, opts metav1.CreateOptions) (*examplev1.Field, error) + UpdateField(ctx context.Context, testTypeName string, field *examplev1.Field, opts metav1.UpdateOptions) (*examplev1.Field, error) + GetField(ctx context.Context, testTypeName string, options metav1.GetOptions) (*examplev1.Field, error) TestTypeExpansion } // testTypes implements TestTypeInterface type testTypes struct { - *gentype.ClientWithList[*v1.TestType, *v1.TestTypeList] + *gentype.ClientWithList[*examplev1.TestType, *examplev1.TestTypeList] } // newTestTypes returns a TestTypes func newTestTypes(c *ExampleV1Client, namespace string) *testTypes { return &testTypes{ - gentype.NewClientWithList[*v1.TestType, *v1.TestTypeList]( + gentype.NewClientWithList[*examplev1.TestType, *examplev1.TestTypeList]( "testtypes", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.TestType { return &v1.TestType{} }, - func() *v1.TestTypeList { return &v1.TestTypeList{} }), + func() *examplev1.TestType { return &examplev1.TestType{} }, + func() *examplev1.TestTypeList { return &examplev1.TestTypeList{} }, + ), } } // CreateField takes the representation of a field and creates it. Returns the server's representation of the field, and an error, if there is any. -func (c *testTypes) CreateField(ctx context.Context, testTypeName string, field *v1.Field, opts metav1.CreateOptions) (result *v1.Field, err error) { - result = &v1.Field{} +func (c *testTypes) CreateField(ctx context.Context, testTypeName string, field *examplev1.Field, opts metav1.CreateOptions) (result *examplev1.Field, err error) { + result = &examplev1.Field{} err = c.GetClient().Post(). Namespace(c.GetNamespace()). Resource("testtypes"). @@ -87,8 +88,8 @@ func (c *testTypes) CreateField(ctx context.Context, testTypeName string, field } // UpdateField takes the top resource name and the representation of a field and updates it. Returns the server's representation of the field, and an error, if there is any. -func (c *testTypes) UpdateField(ctx context.Context, testTypeName string, field *v1.Field, opts metav1.UpdateOptions) (result *v1.Field, err error) { - result = &v1.Field{} +func (c *testTypes) UpdateField(ctx context.Context, testTypeName string, field *examplev1.Field, opts metav1.UpdateOptions) (result *examplev1.Field, err error) { + result = &examplev1.Field{} err = c.GetClient().Put(). Namespace(c.GetNamespace()). Resource("testtypes"). @@ -101,9 +102,9 @@ func (c *testTypes) UpdateField(ctx context.Context, testTypeName string, field return } -// GetField takes name of the testType, and returns the corresponding v1.Field object, and an error if there is any. -func (c *testTypes) GetField(ctx context.Context, testTypeName string, options metav1.GetOptions) (result *v1.Field, err error) { - result = &v1.Field{} +// GetField takes name of the testType, and returns the corresponding examplev1.Field object, and an error if there is any. +func (c *testTypes) GetField(ctx context.Context, testTypeName string, options metav1.GetOptions) (result *examplev1.Field, err error) { + result = &examplev1.Field{} err = c.GetClient().Get(). Namespace(c.GetNamespace()). Resource("testtypes"). diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1/withoutverbtype.go b/examples/pkg/generated/clientset/versioned/typed/example/v1/withoutverbtype.go index 3218023dd..2d838a63d 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1/withoutverbtype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1/withoutverbtype.go @@ -14,14 +14,14 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 import ( gentype "k8s.io/client-go/gentype" - v1 "acme.corp/pkg/apis/example/v1" + examplev1 "acme.corp/pkg/apis/example/v1" scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) @@ -38,17 +38,18 @@ type WithoutVerbTypeInterface interface { // withoutVerbTypes implements WithoutVerbTypeInterface type withoutVerbTypes struct { - *gentype.Client[*v1.WithoutVerbType] + *gentype.Client[*examplev1.WithoutVerbType] } // newWithoutVerbTypes returns a WithoutVerbTypes func newWithoutVerbTypes(c *ExampleV1Client, namespace string) *withoutVerbTypes { return &withoutVerbTypes{ - gentype.NewClient[*v1.WithoutVerbType]( + gentype.NewClient[*examplev1.WithoutVerbType]( "withoutverbtypes", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.WithoutVerbType { return &v1.WithoutVerbType{} }), + func() *examplev1.WithoutVerbType { return &examplev1.WithoutVerbType{} }, + ), } } diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/clustertesttype.go b/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/clustertesttype.go index 7c6123140..30e122584 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/clustertesttype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/clustertesttype.go @@ -14,19 +14,19 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1alpha1 import ( - "context" + context "context" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" gentype "k8s.io/client-go/gentype" - v1alpha1 "acme.corp/pkg/apis/example/v1alpha1" + examplev1alpha1 "acme.corp/pkg/apis/example/v1alpha1" scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) @@ -38,33 +38,34 @@ type ClusterTestTypesGetter interface { // ClusterTestTypeInterface has methods to work with ClusterTestType resources. type ClusterTestTypeInterface interface { - Create(ctx context.Context, clusterTestType *v1alpha1.ClusterTestType, opts v1.CreateOptions) (*v1alpha1.ClusterTestType, error) - Update(ctx context.Context, clusterTestType *v1alpha1.ClusterTestType, opts v1.UpdateOptions) (*v1alpha1.ClusterTestType, error) + Create(ctx context.Context, clusterTestType *examplev1alpha1.ClusterTestType, opts v1.CreateOptions) (*examplev1alpha1.ClusterTestType, error) + Update(ctx context.Context, clusterTestType *examplev1alpha1.ClusterTestType, opts v1.UpdateOptions) (*examplev1alpha1.ClusterTestType, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, clusterTestType *v1alpha1.ClusterTestType, opts v1.UpdateOptions) (*v1alpha1.ClusterTestType, error) + UpdateStatus(ctx context.Context, clusterTestType *examplev1alpha1.ClusterTestType, opts v1.UpdateOptions) (*examplev1alpha1.ClusterTestType, 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.ClusterTestType, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ClusterTestTypeList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*examplev1alpha1.ClusterTestType, error) + List(ctx context.Context, opts v1.ListOptions) (*examplev1alpha1.ClusterTestTypeList, 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.ClusterTestType, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *examplev1alpha1.ClusterTestType, err error) ClusterTestTypeExpansion } // clusterTestTypes implements ClusterTestTypeInterface type clusterTestTypes struct { - *gentype.ClientWithList[*v1alpha1.ClusterTestType, *v1alpha1.ClusterTestTypeList] + *gentype.ClientWithList[*examplev1alpha1.ClusterTestType, *examplev1alpha1.ClusterTestTypeList] } // newClusterTestTypes returns a ClusterTestTypes func newClusterTestTypes(c *ExampleV1alpha1Client) *clusterTestTypes { return &clusterTestTypes{ - gentype.NewClientWithList[*v1alpha1.ClusterTestType, *v1alpha1.ClusterTestTypeList]( + gentype.NewClientWithList[*examplev1alpha1.ClusterTestType, *examplev1alpha1.ClusterTestTypeList]( "clustertesttypes", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1alpha1.ClusterTestType { return &v1alpha1.ClusterTestType{} }, - func() *v1alpha1.ClusterTestTypeList { return &v1alpha1.ClusterTestTypeList{} }), + func() *examplev1alpha1.ClusterTestType { return &examplev1alpha1.ClusterTestType{} }, + func() *examplev1alpha1.ClusterTestTypeList { return &examplev1alpha1.ClusterTestTypeList{} }, + ), } } diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/doc.go b/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/doc.go index 2319b52c9..8a0e7341c 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/doc.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. // This package has the automatically generated typed clients. package v1alpha1 diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/example_client.go b/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/example_client.go index deef329b7..d59494a41 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/example_client.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/example_client.go @@ -14,17 +14,17 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1alpha1 import ( - "net/http" + http "net/http" rest "k8s.io/client-go/rest" - v1alpha1 "acme.corp/pkg/apis/example/v1alpha1" - "acme.corp/pkg/generated/clientset/versioned/scheme" + examplev1alpha1 "acme.corp/pkg/apis/example/v1alpha1" + scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) type ExampleV1alpha1Interface interface { @@ -91,10 +91,10 @@ func New(c rest.Interface) *ExampleV1alpha1Client { } func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion + gv := examplev1alpha1.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/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/fake/doc.go b/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/fake/doc.go index 43d633d75..f0986a890 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/fake/doc.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. // Package fake has the automatically generated clients. package fake diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/fake/fake_clustertesttype.go b/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/fake/fake_clustertesttype.go index 2da6835e5..a5db3c151 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/fake/fake_clustertesttype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/fake/fake_clustertesttype.go @@ -14,126 +14,40 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake import ( - "context" - - 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" + gentype "k8s.io/client-go/gentype" v1alpha1 "acme.corp/pkg/apis/example/v1alpha1" + examplev1alpha1 "acme.corp/pkg/generated/clientset/versioned/typed/example/v1alpha1" ) -// FakeClusterTestTypes implements ClusterTestTypeInterface -type FakeClusterTestTypes struct { +// fakeClusterTestTypes implements ClusterTestTypeInterface +type fakeClusterTestTypes struct { + *gentype.FakeClientWithList[*v1alpha1.ClusterTestType, *v1alpha1.ClusterTestTypeList] Fake *FakeExampleV1alpha1 } -var clustertesttypesResource = v1alpha1.SchemeGroupVersion.WithResource("clustertesttypes") - -var clustertesttypesKind = v1alpha1.SchemeGroupVersion.WithKind("ClusterTestType") - -// Get takes name of the clusterTestType, and returns the corresponding clusterTestType object, and an error if there is any. -func (c *FakeClusterTestTypes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterTestType, err error) { - emptyResult := &v1alpha1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(clustertesttypesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.ClusterTestType), err -} - -// List takes label and field selectors, and returns the list of ClusterTestTypes that match those selectors. -func (c *FakeClusterTestTypes) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterTestTypeList, err error) { - emptyResult := &v1alpha1.ClusterTestTypeList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(clustertesttypesResource, clustertesttypesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.ClusterTestTypeList{ListMeta: obj.(*v1alpha1.ClusterTestTypeList).ListMeta} - for _, item := range obj.(*v1alpha1.ClusterTestTypeList).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 clusterTestTypes. -func (c *FakeClusterTestTypes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(clustertesttypesResource, opts)) -} - -// Create takes the representation of a clusterTestType and creates it. Returns the server's representation of the clusterTestType, and an error, if there is any. -func (c *FakeClusterTestTypes) Create(ctx context.Context, clusterTestType *v1alpha1.ClusterTestType, opts v1.CreateOptions) (result *v1alpha1.ClusterTestType, err error) { - emptyResult := &v1alpha1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(clustertesttypesResource, clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.ClusterTestType), err -} - -// Update takes the representation of a clusterTestType and updates it. Returns the server's representation of the clusterTestType, and an error, if there is any. -func (c *FakeClusterTestTypes) Update(ctx context.Context, clusterTestType *v1alpha1.ClusterTestType, opts v1.UpdateOptions) (result *v1alpha1.ClusterTestType, err error) { - emptyResult := &v1alpha1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(clustertesttypesResource, clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.ClusterTestType), 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 *FakeClusterTestTypes) UpdateStatus(ctx context.Context, clusterTestType *v1alpha1.ClusterTestType, opts v1.UpdateOptions) (result *v1alpha1.ClusterTestType, err error) { - emptyResult := &v1alpha1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clustertesttypesResource, "status", clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.ClusterTestType), err -} - -// Delete takes name of the clusterTestType and deletes it. Returns an error if one occurs. -func (c *FakeClusterTestTypes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(clustertesttypesResource, name, opts), &v1alpha1.ClusterTestType{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeClusterTestTypes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(clustertesttypesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.ClusterTestTypeList{}) - return err -} - -// Patch applies the patch and returns the patched clusterTestType. -func (c *FakeClusterTestTypes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ClusterTestType, err error) { - emptyResult := &v1alpha1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(clustertesttypesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeClusterTestTypes(fake *FakeExampleV1alpha1) examplev1alpha1.ClusterTestTypeInterface { + return &fakeClusterTestTypes{ + gentype.NewFakeClientWithList[*v1alpha1.ClusterTestType, *v1alpha1.ClusterTestTypeList]( + fake.Fake, + "", + v1alpha1.SchemeGroupVersion.WithResource("clustertesttypes"), + v1alpha1.SchemeGroupVersion.WithKind("ClusterTestType"), + func() *v1alpha1.ClusterTestType { return &v1alpha1.ClusterTestType{} }, + func() *v1alpha1.ClusterTestTypeList { return &v1alpha1.ClusterTestTypeList{} }, + func(dst, src *v1alpha1.ClusterTestTypeList) { dst.ListMeta = src.ListMeta }, + func(list *v1alpha1.ClusterTestTypeList) []*v1alpha1.ClusterTestType { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1alpha1.ClusterTestTypeList, items []*v1alpha1.ClusterTestType) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1alpha1.ClusterTestType), err } diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/fake/fake_example_client.go b/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/fake/fake_example_client.go index 91f0d9097..d1dedcb31 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/fake/fake_example_client.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/fake/fake_example_client.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake @@ -30,11 +30,11 @@ type FakeExampleV1alpha1 struct { } func (c *FakeExampleV1alpha1) ClusterTestTypes() v1alpha1.ClusterTestTypeInterface { - return &FakeClusterTestTypes{c} + return newFakeClusterTestTypes(c) } func (c *FakeExampleV1alpha1) TestTypes(namespace string) v1alpha1.TestTypeInterface { - return &FakeTestTypes{c, namespace} + return newFakeTestTypes(c, namespace) } // RESTClient returns a RESTClient that is used to communicate diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/fake/fake_testtype.go b/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/fake/fake_testtype.go index 3c8977ccb..4161994e8 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/fake/fake_testtype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/fake/fake_testtype.go @@ -14,122 +14,38 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake import ( - "context" - - 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" + gentype "k8s.io/client-go/gentype" v1alpha1 "acme.corp/pkg/apis/example/v1alpha1" + examplev1alpha1 "acme.corp/pkg/generated/clientset/versioned/typed/example/v1alpha1" ) -// FakeTestTypes implements TestTypeInterface -type FakeTestTypes struct { +// fakeTestTypes implements TestTypeInterface +type fakeTestTypes struct { + *gentype.FakeClientWithList[*v1alpha1.TestType, *v1alpha1.TestTypeList] Fake *FakeExampleV1alpha1 - ns string -} - -var testtypesResource = v1alpha1.SchemeGroupVersion.WithResource("testtypes") - -var testtypesKind = v1alpha1.SchemeGroupVersion.WithKind("TestType") - -// Get takes name of the testType, and returns the corresponding testType object, and an error if there is any. -func (c *FakeTestTypes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.TestType, err error) { - emptyResult := &v1alpha1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(testtypesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.TestType), err -} - -// List takes label and field selectors, and returns the list of TestTypes that match those selectors. -func (c *FakeTestTypes) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TestTypeList, err error) { - emptyResult := &v1alpha1.TestTypeList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(testtypesResource, testtypesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.TestTypeList{ListMeta: obj.(*v1alpha1.TestTypeList).ListMeta} - for _, item := range obj.(*v1alpha1.TestTypeList).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 testTypes. -func (c *FakeTestTypes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(testtypesResource, c.ns, opts)) - -} - -// Create takes the representation of a testType and creates it. Returns the server's representation of the testType, and an error, if there is any. -func (c *FakeTestTypes) Create(ctx context.Context, testType *v1alpha1.TestType, opts v1.CreateOptions) (result *v1alpha1.TestType, err error) { - emptyResult := &v1alpha1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(testtypesResource, c.ns, testType, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.TestType), err -} - -// Update takes the representation of a testType and updates it. Returns the server's representation of the testType, and an error, if there is any. -func (c *FakeTestTypes) Update(ctx context.Context, testType *v1alpha1.TestType, opts v1.UpdateOptions) (result *v1alpha1.TestType, err error) { - emptyResult := &v1alpha1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(testtypesResource, c.ns, testType, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1alpha1.TestType), err -} - -// Delete takes name of the testType and deletes it. Returns an error if one occurs. -func (c *FakeTestTypes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(testtypesResource, c.ns, name, opts), &v1alpha1.TestType{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeTestTypes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(testtypesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.TestTypeList{}) - return err -} - -// Patch applies the patch and returns the patched testType. -func (c *FakeTestTypes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.TestType, err error) { - emptyResult := &v1alpha1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(testtypesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeTestTypes(fake *FakeExampleV1alpha1, namespace string) examplev1alpha1.TestTypeInterface { + return &fakeTestTypes{ + gentype.NewFakeClientWithList[*v1alpha1.TestType, *v1alpha1.TestTypeList]( + fake.Fake, + namespace, + v1alpha1.SchemeGroupVersion.WithResource("testtypes"), + v1alpha1.SchemeGroupVersion.WithKind("TestType"), + func() *v1alpha1.TestType { return &v1alpha1.TestType{} }, + func() *v1alpha1.TestTypeList { return &v1alpha1.TestTypeList{} }, + func(dst, src *v1alpha1.TestTypeList) { dst.ListMeta = src.ListMeta }, + func(list *v1alpha1.TestTypeList) []*v1alpha1.TestType { return gentype.ToPointerSlice(list.Items) }, + func(list *v1alpha1.TestTypeList, items []*v1alpha1.TestType) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1alpha1.TestType), err } diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/generated_expansion.go b/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/generated_expansion.go index 440063423..5f5cb68f6 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/generated_expansion.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/generated_expansion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1alpha1 diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/testtype.go b/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/testtype.go index 6bfc2003f..dda43ca27 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/testtype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1alpha1/testtype.go @@ -14,19 +14,19 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1alpha1 import ( - "context" + context "context" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" gentype "k8s.io/client-go/gentype" - v1alpha1 "acme.corp/pkg/apis/example/v1alpha1" + examplev1alpha1 "acme.corp/pkg/apis/example/v1alpha1" scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) @@ -38,31 +38,32 @@ type TestTypesGetter interface { // TestTypeInterface has methods to work with TestType resources. type TestTypeInterface interface { - Create(ctx context.Context, testType *v1alpha1.TestType, opts v1.CreateOptions) (*v1alpha1.TestType, error) - Update(ctx context.Context, testType *v1alpha1.TestType, opts v1.UpdateOptions) (*v1alpha1.TestType, error) + Create(ctx context.Context, testType *examplev1alpha1.TestType, opts v1.CreateOptions) (*examplev1alpha1.TestType, error) + Update(ctx context.Context, testType *examplev1alpha1.TestType, opts v1.UpdateOptions) (*examplev1alpha1.TestType, 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.TestType, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.TestTypeList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*examplev1alpha1.TestType, error) + List(ctx context.Context, opts v1.ListOptions) (*examplev1alpha1.TestTypeList, 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.TestType, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *examplev1alpha1.TestType, err error) TestTypeExpansion } // testTypes implements TestTypeInterface type testTypes struct { - *gentype.ClientWithList[*v1alpha1.TestType, *v1alpha1.TestTypeList] + *gentype.ClientWithList[*examplev1alpha1.TestType, *examplev1alpha1.TestTypeList] } // newTestTypes returns a TestTypes func newTestTypes(c *ExampleV1alpha1Client, namespace string) *testTypes { return &testTypes{ - gentype.NewClientWithList[*v1alpha1.TestType, *v1alpha1.TestTypeList]( + gentype.NewClientWithList[*examplev1alpha1.TestType, *examplev1alpha1.TestTypeList]( "testtypes", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1alpha1.TestType { return &v1alpha1.TestType{} }, - func() *v1alpha1.TestTypeList { return &v1alpha1.TestTypeList{} }), + func() *examplev1alpha1.TestType { return &examplev1alpha1.TestType{} }, + func() *examplev1alpha1.TestTypeList { return &examplev1alpha1.TestTypeList{} }, + ), } } diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/clustertesttype.go b/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/clustertesttype.go index 6d2408ba3..02e7fc54e 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/clustertesttype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/clustertesttype.go @@ -14,19 +14,19 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1beta1 import ( - "context" + context "context" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" gentype "k8s.io/client-go/gentype" - v1beta1 "acme.corp/pkg/apis/example/v1beta1" + examplev1beta1 "acme.corp/pkg/apis/example/v1beta1" scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) @@ -38,33 +38,34 @@ type ClusterTestTypesGetter interface { // ClusterTestTypeInterface has methods to work with ClusterTestType resources. type ClusterTestTypeInterface interface { - Create(ctx context.Context, clusterTestType *v1beta1.ClusterTestType, opts v1.CreateOptions) (*v1beta1.ClusterTestType, error) - Update(ctx context.Context, clusterTestType *v1beta1.ClusterTestType, opts v1.UpdateOptions) (*v1beta1.ClusterTestType, error) + Create(ctx context.Context, clusterTestType *examplev1beta1.ClusterTestType, opts v1.CreateOptions) (*examplev1beta1.ClusterTestType, error) + Update(ctx context.Context, clusterTestType *examplev1beta1.ClusterTestType, opts v1.UpdateOptions) (*examplev1beta1.ClusterTestType, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, clusterTestType *v1beta1.ClusterTestType, opts v1.UpdateOptions) (*v1beta1.ClusterTestType, error) + UpdateStatus(ctx context.Context, clusterTestType *examplev1beta1.ClusterTestType, opts v1.UpdateOptions) (*examplev1beta1.ClusterTestType, 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) (*v1beta1.ClusterTestType, error) - List(ctx context.Context, opts v1.ListOptions) (*v1beta1.ClusterTestTypeList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*examplev1beta1.ClusterTestType, error) + List(ctx context.Context, opts v1.ListOptions) (*examplev1beta1.ClusterTestTypeList, 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 *v1beta1.ClusterTestType, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *examplev1beta1.ClusterTestType, err error) ClusterTestTypeExpansion } // clusterTestTypes implements ClusterTestTypeInterface type clusterTestTypes struct { - *gentype.ClientWithList[*v1beta1.ClusterTestType, *v1beta1.ClusterTestTypeList] + *gentype.ClientWithList[*examplev1beta1.ClusterTestType, *examplev1beta1.ClusterTestTypeList] } // newClusterTestTypes returns a ClusterTestTypes func newClusterTestTypes(c *ExampleV1beta1Client) *clusterTestTypes { return &clusterTestTypes{ - gentype.NewClientWithList[*v1beta1.ClusterTestType, *v1beta1.ClusterTestTypeList]( + gentype.NewClientWithList[*examplev1beta1.ClusterTestType, *examplev1beta1.ClusterTestTypeList]( "clustertesttypes", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1beta1.ClusterTestType { return &v1beta1.ClusterTestType{} }, - func() *v1beta1.ClusterTestTypeList { return &v1beta1.ClusterTestTypeList{} }), + func() *examplev1beta1.ClusterTestType { return &examplev1beta1.ClusterTestType{} }, + func() *examplev1beta1.ClusterTestTypeList { return &examplev1beta1.ClusterTestTypeList{} }, + ), } } diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/doc.go b/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/doc.go index b8099c9ff..c0c0a5773 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/doc.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. // This package has the automatically generated typed clients. package v1beta1 diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/example_client.go b/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/example_client.go index d87d456b4..1e53a2632 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/example_client.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/example_client.go @@ -14,17 +14,17 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1beta1 import ( - "net/http" + http "net/http" rest "k8s.io/client-go/rest" - v1beta1 "acme.corp/pkg/apis/example/v1beta1" - "acme.corp/pkg/generated/clientset/versioned/scheme" + examplev1beta1 "acme.corp/pkg/apis/example/v1beta1" + scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) type ExampleV1beta1Interface interface { @@ -91,10 +91,10 @@ func New(c rest.Interface) *ExampleV1beta1Client { } func setConfigDefaults(config *rest.Config) error { - gv := v1beta1.SchemeGroupVersion + gv := examplev1beta1.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/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/fake/doc.go b/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/fake/doc.go index 43d633d75..f0986a890 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/fake/doc.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. // Package fake has the automatically generated clients. package fake diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/fake/fake_clustertesttype.go b/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/fake/fake_clustertesttype.go index ea6790c53..372ff9ac8 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/fake/fake_clustertesttype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/fake/fake_clustertesttype.go @@ -14,126 +14,40 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake import ( - "context" - - 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" + gentype "k8s.io/client-go/gentype" v1beta1 "acme.corp/pkg/apis/example/v1beta1" + examplev1beta1 "acme.corp/pkg/generated/clientset/versioned/typed/example/v1beta1" ) -// FakeClusterTestTypes implements ClusterTestTypeInterface -type FakeClusterTestTypes struct { +// fakeClusterTestTypes implements ClusterTestTypeInterface +type fakeClusterTestTypes struct { + *gentype.FakeClientWithList[*v1beta1.ClusterTestType, *v1beta1.ClusterTestTypeList] Fake *FakeExampleV1beta1 } -var clustertesttypesResource = v1beta1.SchemeGroupVersion.WithResource("clustertesttypes") - -var clustertesttypesKind = v1beta1.SchemeGroupVersion.WithKind("ClusterTestType") - -// Get takes name of the clusterTestType, and returns the corresponding clusterTestType object, and an error if there is any. -func (c *FakeClusterTestTypes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ClusterTestType, err error) { - emptyResult := &v1beta1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(clustertesttypesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1beta1.ClusterTestType), err -} - -// List takes label and field selectors, and returns the list of ClusterTestTypes that match those selectors. -func (c *FakeClusterTestTypes) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ClusterTestTypeList, err error) { - emptyResult := &v1beta1.ClusterTestTypeList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(clustertesttypesResource, clustertesttypesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1beta1.ClusterTestTypeList{ListMeta: obj.(*v1beta1.ClusterTestTypeList).ListMeta} - for _, item := range obj.(*v1beta1.ClusterTestTypeList).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 clusterTestTypes. -func (c *FakeClusterTestTypes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(clustertesttypesResource, opts)) -} - -// Create takes the representation of a clusterTestType and creates it. Returns the server's representation of the clusterTestType, and an error, if there is any. -func (c *FakeClusterTestTypes) Create(ctx context.Context, clusterTestType *v1beta1.ClusterTestType, opts v1.CreateOptions) (result *v1beta1.ClusterTestType, err error) { - emptyResult := &v1beta1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(clustertesttypesResource, clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1beta1.ClusterTestType), err -} - -// Update takes the representation of a clusterTestType and updates it. Returns the server's representation of the clusterTestType, and an error, if there is any. -func (c *FakeClusterTestTypes) Update(ctx context.Context, clusterTestType *v1beta1.ClusterTestType, opts v1.UpdateOptions) (result *v1beta1.ClusterTestType, err error) { - emptyResult := &v1beta1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(clustertesttypesResource, clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1beta1.ClusterTestType), 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 *FakeClusterTestTypes) UpdateStatus(ctx context.Context, clusterTestType *v1beta1.ClusterTestType, opts v1.UpdateOptions) (result *v1beta1.ClusterTestType, err error) { - emptyResult := &v1beta1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clustertesttypesResource, "status", clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1beta1.ClusterTestType), err -} - -// Delete takes name of the clusterTestType and deletes it. Returns an error if one occurs. -func (c *FakeClusterTestTypes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(clustertesttypesResource, name, opts), &v1beta1.ClusterTestType{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeClusterTestTypes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(clustertesttypesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1beta1.ClusterTestTypeList{}) - return err -} - -// Patch applies the patch and returns the patched clusterTestType. -func (c *FakeClusterTestTypes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.ClusterTestType, err error) { - emptyResult := &v1beta1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(clustertesttypesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeClusterTestTypes(fake *FakeExampleV1beta1) examplev1beta1.ClusterTestTypeInterface { + return &fakeClusterTestTypes{ + gentype.NewFakeClientWithList[*v1beta1.ClusterTestType, *v1beta1.ClusterTestTypeList]( + fake.Fake, + "", + v1beta1.SchemeGroupVersion.WithResource("clustertesttypes"), + v1beta1.SchemeGroupVersion.WithKind("ClusterTestType"), + func() *v1beta1.ClusterTestType { return &v1beta1.ClusterTestType{} }, + func() *v1beta1.ClusterTestTypeList { return &v1beta1.ClusterTestTypeList{} }, + func(dst, src *v1beta1.ClusterTestTypeList) { dst.ListMeta = src.ListMeta }, + func(list *v1beta1.ClusterTestTypeList) []*v1beta1.ClusterTestType { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1beta1.ClusterTestTypeList, items []*v1beta1.ClusterTestType) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1beta1.ClusterTestType), err } diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/fake/fake_example_client.go b/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/fake/fake_example_client.go index f4b58eee8..0445b6caa 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/fake/fake_example_client.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/fake/fake_example_client.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake @@ -30,11 +30,11 @@ type FakeExampleV1beta1 struct { } func (c *FakeExampleV1beta1) ClusterTestTypes() v1beta1.ClusterTestTypeInterface { - return &FakeClusterTestTypes{c} + return newFakeClusterTestTypes(c) } func (c *FakeExampleV1beta1) TestTypes(namespace string) v1beta1.TestTypeInterface { - return &FakeTestTypes{c, namespace} + return newFakeTestTypes(c, namespace) } // RESTClient returns a RESTClient that is used to communicate diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/fake/fake_testtype.go b/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/fake/fake_testtype.go index 11c9f12bb..191cc957d 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/fake/fake_testtype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/fake/fake_testtype.go @@ -14,122 +14,38 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake import ( - "context" - - 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" + gentype "k8s.io/client-go/gentype" v1beta1 "acme.corp/pkg/apis/example/v1beta1" + examplev1beta1 "acme.corp/pkg/generated/clientset/versioned/typed/example/v1beta1" ) -// FakeTestTypes implements TestTypeInterface -type FakeTestTypes struct { +// fakeTestTypes implements TestTypeInterface +type fakeTestTypes struct { + *gentype.FakeClientWithList[*v1beta1.TestType, *v1beta1.TestTypeList] Fake *FakeExampleV1beta1 - ns string -} - -var testtypesResource = v1beta1.SchemeGroupVersion.WithResource("testtypes") - -var testtypesKind = v1beta1.SchemeGroupVersion.WithKind("TestType") - -// Get takes name of the testType, and returns the corresponding testType object, and an error if there is any. -func (c *FakeTestTypes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.TestType, err error) { - emptyResult := &v1beta1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(testtypesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1beta1.TestType), err -} - -// List takes label and field selectors, and returns the list of TestTypes that match those selectors. -func (c *FakeTestTypes) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.TestTypeList, err error) { - emptyResult := &v1beta1.TestTypeList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(testtypesResource, testtypesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1beta1.TestTypeList{ListMeta: obj.(*v1beta1.TestTypeList).ListMeta} - for _, item := range obj.(*v1beta1.TestTypeList).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 testTypes. -func (c *FakeTestTypes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(testtypesResource, c.ns, opts)) - -} - -// Create takes the representation of a testType and creates it. Returns the server's representation of the testType, and an error, if there is any. -func (c *FakeTestTypes) Create(ctx context.Context, testType *v1beta1.TestType, opts v1.CreateOptions) (result *v1beta1.TestType, err error) { - emptyResult := &v1beta1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(testtypesResource, c.ns, testType, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1beta1.TestType), err -} - -// Update takes the representation of a testType and updates it. Returns the server's representation of the testType, and an error, if there is any. -func (c *FakeTestTypes) Update(ctx context.Context, testType *v1beta1.TestType, opts v1.UpdateOptions) (result *v1beta1.TestType, err error) { - emptyResult := &v1beta1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(testtypesResource, c.ns, testType, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1beta1.TestType), err -} - -// Delete takes name of the testType and deletes it. Returns an error if one occurs. -func (c *FakeTestTypes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(testtypesResource, c.ns, name, opts), &v1beta1.TestType{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeTestTypes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(testtypesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1beta1.TestTypeList{}) - return err -} - -// Patch applies the patch and returns the patched testType. -func (c *FakeTestTypes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.TestType, err error) { - emptyResult := &v1beta1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(testtypesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeTestTypes(fake *FakeExampleV1beta1, namespace string) examplev1beta1.TestTypeInterface { + return &fakeTestTypes{ + gentype.NewFakeClientWithList[*v1beta1.TestType, *v1beta1.TestTypeList]( + fake.Fake, + namespace, + v1beta1.SchemeGroupVersion.WithResource("testtypes"), + v1beta1.SchemeGroupVersion.WithKind("TestType"), + func() *v1beta1.TestType { return &v1beta1.TestType{} }, + func() *v1beta1.TestTypeList { return &v1beta1.TestTypeList{} }, + func(dst, src *v1beta1.TestTypeList) { dst.ListMeta = src.ListMeta }, + func(list *v1beta1.TestTypeList) []*v1beta1.TestType { return gentype.ToPointerSlice(list.Items) }, + func(list *v1beta1.TestTypeList, items []*v1beta1.TestType) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1beta1.TestType), err } diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/generated_expansion.go b/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/generated_expansion.go index 3561bb83b..472448d46 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/generated_expansion.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/generated_expansion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1beta1 diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/testtype.go b/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/testtype.go index e87e5ae96..1ef7a501d 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/testtype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v1beta1/testtype.go @@ -14,19 +14,19 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1beta1 import ( - "context" + context "context" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" gentype "k8s.io/client-go/gentype" - v1beta1 "acme.corp/pkg/apis/example/v1beta1" + examplev1beta1 "acme.corp/pkg/apis/example/v1beta1" scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) @@ -38,31 +38,32 @@ type TestTypesGetter interface { // TestTypeInterface has methods to work with TestType resources. type TestTypeInterface interface { - Create(ctx context.Context, testType *v1beta1.TestType, opts v1.CreateOptions) (*v1beta1.TestType, error) - Update(ctx context.Context, testType *v1beta1.TestType, opts v1.UpdateOptions) (*v1beta1.TestType, error) + Create(ctx context.Context, testType *examplev1beta1.TestType, opts v1.CreateOptions) (*examplev1beta1.TestType, error) + Update(ctx context.Context, testType *examplev1beta1.TestType, opts v1.UpdateOptions) (*examplev1beta1.TestType, 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) (*v1beta1.TestType, error) - List(ctx context.Context, opts v1.ListOptions) (*v1beta1.TestTypeList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*examplev1beta1.TestType, error) + List(ctx context.Context, opts v1.ListOptions) (*examplev1beta1.TestTypeList, 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 *v1beta1.TestType, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *examplev1beta1.TestType, err error) TestTypeExpansion } // testTypes implements TestTypeInterface type testTypes struct { - *gentype.ClientWithList[*v1beta1.TestType, *v1beta1.TestTypeList] + *gentype.ClientWithList[*examplev1beta1.TestType, *examplev1beta1.TestTypeList] } // newTestTypes returns a TestTypes func newTestTypes(c *ExampleV1beta1Client, namespace string) *testTypes { return &testTypes{ - gentype.NewClientWithList[*v1beta1.TestType, *v1beta1.TestTypeList]( + gentype.NewClientWithList[*examplev1beta1.TestType, *examplev1beta1.TestTypeList]( "testtypes", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1beta1.TestType { return &v1beta1.TestType{} }, - func() *v1beta1.TestTypeList { return &v1beta1.TestTypeList{} }), + func() *examplev1beta1.TestType { return &examplev1beta1.TestType{} }, + func() *examplev1beta1.TestTypeList { return &examplev1beta1.TestTypeList{} }, + ), } } diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v2/clustertesttype.go b/examples/pkg/generated/clientset/versioned/typed/example/v2/clustertesttype.go index c24a1e3fb..fa9a3f4fb 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v2/clustertesttype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v2/clustertesttype.go @@ -14,19 +14,19 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v2 import ( - "context" + context "context" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" gentype "k8s.io/client-go/gentype" - v2 "acme.corp/pkg/apis/example/v2" + examplev2 "acme.corp/pkg/apis/example/v2" scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) @@ -38,33 +38,34 @@ type ClusterTestTypesGetter interface { // ClusterTestTypeInterface has methods to work with ClusterTestType resources. type ClusterTestTypeInterface interface { - Create(ctx context.Context, clusterTestType *v2.ClusterTestType, opts v1.CreateOptions) (*v2.ClusterTestType, error) - Update(ctx context.Context, clusterTestType *v2.ClusterTestType, opts v1.UpdateOptions) (*v2.ClusterTestType, error) + Create(ctx context.Context, clusterTestType *examplev2.ClusterTestType, opts v1.CreateOptions) (*examplev2.ClusterTestType, error) + Update(ctx context.Context, clusterTestType *examplev2.ClusterTestType, opts v1.UpdateOptions) (*examplev2.ClusterTestType, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, clusterTestType *v2.ClusterTestType, opts v1.UpdateOptions) (*v2.ClusterTestType, error) + UpdateStatus(ctx context.Context, clusterTestType *examplev2.ClusterTestType, opts v1.UpdateOptions) (*examplev2.ClusterTestType, 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) (*v2.ClusterTestType, error) - List(ctx context.Context, opts v1.ListOptions) (*v2.ClusterTestTypeList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*examplev2.ClusterTestType, error) + List(ctx context.Context, opts v1.ListOptions) (*examplev2.ClusterTestTypeList, 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 *v2.ClusterTestType, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *examplev2.ClusterTestType, err error) ClusterTestTypeExpansion } // clusterTestTypes implements ClusterTestTypeInterface type clusterTestTypes struct { - *gentype.ClientWithList[*v2.ClusterTestType, *v2.ClusterTestTypeList] + *gentype.ClientWithList[*examplev2.ClusterTestType, *examplev2.ClusterTestTypeList] } // newClusterTestTypes returns a ClusterTestTypes func newClusterTestTypes(c *ExampleV2Client) *clusterTestTypes { return &clusterTestTypes{ - gentype.NewClientWithList[*v2.ClusterTestType, *v2.ClusterTestTypeList]( + gentype.NewClientWithList[*examplev2.ClusterTestType, *examplev2.ClusterTestTypeList]( "clustertesttypes", c.RESTClient(), scheme.ParameterCodec, "", - func() *v2.ClusterTestType { return &v2.ClusterTestType{} }, - func() *v2.ClusterTestTypeList { return &v2.ClusterTestTypeList{} }), + func() *examplev2.ClusterTestType { return &examplev2.ClusterTestType{} }, + func() *examplev2.ClusterTestTypeList { return &examplev2.ClusterTestTypeList{} }, + ), } } diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v2/doc.go b/examples/pkg/generated/clientset/versioned/typed/example/v2/doc.go index c2e5631c8..3bf1d9b5c 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v2/doc.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v2/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. // This package has the automatically generated typed clients. package v2 diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v2/example_client.go b/examples/pkg/generated/clientset/versioned/typed/example/v2/example_client.go index 7d3f1d113..f9790b779 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v2/example_client.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v2/example_client.go @@ -14,17 +14,17 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v2 import ( - "net/http" + http "net/http" rest "k8s.io/client-go/rest" - v2 "acme.corp/pkg/apis/example/v2" - "acme.corp/pkg/generated/clientset/versioned/scheme" + examplev2 "acme.corp/pkg/apis/example/v2" + scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) type ExampleV2Interface interface { @@ -91,10 +91,10 @@ func New(c rest.Interface) *ExampleV2Client { } func setConfigDefaults(config *rest.Config) error { - gv := v2.SchemeGroupVersion + gv := examplev2.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/examples/pkg/generated/clientset/versioned/typed/example/v2/fake/doc.go b/examples/pkg/generated/clientset/versioned/typed/example/v2/fake/doc.go index 43d633d75..f0986a890 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v2/fake/doc.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v2/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. // Package fake has the automatically generated clients. package fake diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v2/fake/fake_clustertesttype.go b/examples/pkg/generated/clientset/versioned/typed/example/v2/fake/fake_clustertesttype.go index 0ba1104e8..8f0503258 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v2/fake/fake_clustertesttype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v2/fake/fake_clustertesttype.go @@ -14,126 +14,38 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake import ( - "context" - - 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" + gentype "k8s.io/client-go/gentype" v2 "acme.corp/pkg/apis/example/v2" + examplev2 "acme.corp/pkg/generated/clientset/versioned/typed/example/v2" ) -// FakeClusterTestTypes implements ClusterTestTypeInterface -type FakeClusterTestTypes struct { +// fakeClusterTestTypes implements ClusterTestTypeInterface +type fakeClusterTestTypes struct { + *gentype.FakeClientWithList[*v2.ClusterTestType, *v2.ClusterTestTypeList] Fake *FakeExampleV2 } -var clustertesttypesResource = v2.SchemeGroupVersion.WithResource("clustertesttypes") - -var clustertesttypesKind = v2.SchemeGroupVersion.WithKind("ClusterTestType") - -// Get takes name of the clusterTestType, and returns the corresponding clusterTestType object, and an error if there is any. -func (c *FakeClusterTestTypes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.ClusterTestType, err error) { - emptyResult := &v2.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(clustertesttypesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v2.ClusterTestType), err -} - -// List takes label and field selectors, and returns the list of ClusterTestTypes that match those selectors. -func (c *FakeClusterTestTypes) List(ctx context.Context, opts v1.ListOptions) (result *v2.ClusterTestTypeList, err error) { - emptyResult := &v2.ClusterTestTypeList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(clustertesttypesResource, clustertesttypesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v2.ClusterTestTypeList{ListMeta: obj.(*v2.ClusterTestTypeList).ListMeta} - for _, item := range obj.(*v2.ClusterTestTypeList).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 clusterTestTypes. -func (c *FakeClusterTestTypes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(clustertesttypesResource, opts)) -} - -// Create takes the representation of a clusterTestType and creates it. Returns the server's representation of the clusterTestType, and an error, if there is any. -func (c *FakeClusterTestTypes) Create(ctx context.Context, clusterTestType *v2.ClusterTestType, opts v1.CreateOptions) (result *v2.ClusterTestType, err error) { - emptyResult := &v2.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(clustertesttypesResource, clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v2.ClusterTestType), err -} - -// Update takes the representation of a clusterTestType and updates it. Returns the server's representation of the clusterTestType, and an error, if there is any. -func (c *FakeClusterTestTypes) Update(ctx context.Context, clusterTestType *v2.ClusterTestType, opts v1.UpdateOptions) (result *v2.ClusterTestType, err error) { - emptyResult := &v2.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(clustertesttypesResource, clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v2.ClusterTestType), 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 *FakeClusterTestTypes) UpdateStatus(ctx context.Context, clusterTestType *v2.ClusterTestType, opts v1.UpdateOptions) (result *v2.ClusterTestType, err error) { - emptyResult := &v2.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clustertesttypesResource, "status", clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v2.ClusterTestType), err -} - -// Delete takes name of the clusterTestType and deletes it. Returns an error if one occurs. -func (c *FakeClusterTestTypes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(clustertesttypesResource, name, opts), &v2.ClusterTestType{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeClusterTestTypes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(clustertesttypesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v2.ClusterTestTypeList{}) - return err -} - -// Patch applies the patch and returns the patched clusterTestType. -func (c *FakeClusterTestTypes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.ClusterTestType, err error) { - emptyResult := &v2.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(clustertesttypesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeClusterTestTypes(fake *FakeExampleV2) examplev2.ClusterTestTypeInterface { + return &fakeClusterTestTypes{ + gentype.NewFakeClientWithList[*v2.ClusterTestType, *v2.ClusterTestTypeList]( + fake.Fake, + "", + v2.SchemeGroupVersion.WithResource("clustertesttypes"), + v2.SchemeGroupVersion.WithKind("ClusterTestType"), + func() *v2.ClusterTestType { return &v2.ClusterTestType{} }, + func() *v2.ClusterTestTypeList { return &v2.ClusterTestTypeList{} }, + func(dst, src *v2.ClusterTestTypeList) { dst.ListMeta = src.ListMeta }, + func(list *v2.ClusterTestTypeList) []*v2.ClusterTestType { return gentype.ToPointerSlice(list.Items) }, + func(list *v2.ClusterTestTypeList, items []*v2.ClusterTestType) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v2.ClusterTestType), err } diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v2/fake/fake_example_client.go b/examples/pkg/generated/clientset/versioned/typed/example/v2/fake/fake_example_client.go index adc82fd10..c03142641 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v2/fake/fake_example_client.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v2/fake/fake_example_client.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake @@ -30,11 +30,11 @@ type FakeExampleV2 struct { } func (c *FakeExampleV2) ClusterTestTypes() v2.ClusterTestTypeInterface { - return &FakeClusterTestTypes{c} + return newFakeClusterTestTypes(c) } func (c *FakeExampleV2) TestTypes(namespace string) v2.TestTypeInterface { - return &FakeTestTypes{c, namespace} + return newFakeTestTypes(c, namespace) } // RESTClient returns a RESTClient that is used to communicate diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v2/fake/fake_testtype.go b/examples/pkg/generated/clientset/versioned/typed/example/v2/fake/fake_testtype.go index 878e5e888..91937b5eb 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v2/fake/fake_testtype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v2/fake/fake_testtype.go @@ -14,122 +14,36 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake import ( - "context" - - 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" + gentype "k8s.io/client-go/gentype" v2 "acme.corp/pkg/apis/example/v2" + examplev2 "acme.corp/pkg/generated/clientset/versioned/typed/example/v2" ) -// FakeTestTypes implements TestTypeInterface -type FakeTestTypes struct { +// fakeTestTypes implements TestTypeInterface +type fakeTestTypes struct { + *gentype.FakeClientWithList[*v2.TestType, *v2.TestTypeList] Fake *FakeExampleV2 - ns string -} - -var testtypesResource = v2.SchemeGroupVersion.WithResource("testtypes") - -var testtypesKind = v2.SchemeGroupVersion.WithKind("TestType") - -// Get takes name of the testType, and returns the corresponding testType object, and an error if there is any. -func (c *FakeTestTypes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.TestType, err error) { - emptyResult := &v2.TestType{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(testtypesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v2.TestType), err -} - -// List takes label and field selectors, and returns the list of TestTypes that match those selectors. -func (c *FakeTestTypes) List(ctx context.Context, opts v1.ListOptions) (result *v2.TestTypeList, err error) { - emptyResult := &v2.TestTypeList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(testtypesResource, testtypesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v2.TestTypeList{ListMeta: obj.(*v2.TestTypeList).ListMeta} - for _, item := range obj.(*v2.TestTypeList).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 testTypes. -func (c *FakeTestTypes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(testtypesResource, c.ns, opts)) - -} - -// Create takes the representation of a testType and creates it. Returns the server's representation of the testType, and an error, if there is any. -func (c *FakeTestTypes) Create(ctx context.Context, testType *v2.TestType, opts v1.CreateOptions) (result *v2.TestType, err error) { - emptyResult := &v2.TestType{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(testtypesResource, c.ns, testType, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v2.TestType), err -} - -// Update takes the representation of a testType and updates it. Returns the server's representation of the testType, and an error, if there is any. -func (c *FakeTestTypes) Update(ctx context.Context, testType *v2.TestType, opts v1.UpdateOptions) (result *v2.TestType, err error) { - emptyResult := &v2.TestType{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(testtypesResource, c.ns, testType, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v2.TestType), err -} - -// Delete takes name of the testType and deletes it. Returns an error if one occurs. -func (c *FakeTestTypes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(testtypesResource, c.ns, name, opts), &v2.TestType{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeTestTypes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(testtypesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v2.TestTypeList{}) - return err -} - -// Patch applies the patch and returns the patched testType. -func (c *FakeTestTypes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.TestType, err error) { - emptyResult := &v2.TestType{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(testtypesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeTestTypes(fake *FakeExampleV2, namespace string) examplev2.TestTypeInterface { + return &fakeTestTypes{ + gentype.NewFakeClientWithList[*v2.TestType, *v2.TestTypeList]( + fake.Fake, + namespace, + v2.SchemeGroupVersion.WithResource("testtypes"), + v2.SchemeGroupVersion.WithKind("TestType"), + func() *v2.TestType { return &v2.TestType{} }, + func() *v2.TestTypeList { return &v2.TestTypeList{} }, + func(dst, src *v2.TestTypeList) { dst.ListMeta = src.ListMeta }, + func(list *v2.TestTypeList) []*v2.TestType { return gentype.ToPointerSlice(list.Items) }, + func(list *v2.TestTypeList, items []*v2.TestType) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v2.TestType), err } diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v2/generated_expansion.go b/examples/pkg/generated/clientset/versioned/typed/example/v2/generated_expansion.go index 233b68adf..9c04368c0 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v2/generated_expansion.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v2/generated_expansion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v2 diff --git a/examples/pkg/generated/clientset/versioned/typed/example/v2/testtype.go b/examples/pkg/generated/clientset/versioned/typed/example/v2/testtype.go index 8408c9540..db53d7696 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example/v2/testtype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example/v2/testtype.go @@ -14,19 +14,19 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v2 import ( - "context" + context "context" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" gentype "k8s.io/client-go/gentype" - v2 "acme.corp/pkg/apis/example/v2" + examplev2 "acme.corp/pkg/apis/example/v2" scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) @@ -38,31 +38,32 @@ type TestTypesGetter interface { // TestTypeInterface has methods to work with TestType resources. type TestTypeInterface interface { - Create(ctx context.Context, testType *v2.TestType, opts v1.CreateOptions) (*v2.TestType, error) - Update(ctx context.Context, testType *v2.TestType, opts v1.UpdateOptions) (*v2.TestType, error) + Create(ctx context.Context, testType *examplev2.TestType, opts v1.CreateOptions) (*examplev2.TestType, error) + Update(ctx context.Context, testType *examplev2.TestType, opts v1.UpdateOptions) (*examplev2.TestType, 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) (*v2.TestType, error) - List(ctx context.Context, opts v1.ListOptions) (*v2.TestTypeList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*examplev2.TestType, error) + List(ctx context.Context, opts v1.ListOptions) (*examplev2.TestTypeList, 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 *v2.TestType, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *examplev2.TestType, err error) TestTypeExpansion } // testTypes implements TestTypeInterface type testTypes struct { - *gentype.ClientWithList[*v2.TestType, *v2.TestTypeList] + *gentype.ClientWithList[*examplev2.TestType, *examplev2.TestTypeList] } // newTestTypes returns a TestTypes func newTestTypes(c *ExampleV2Client, namespace string) *testTypes { return &testTypes{ - gentype.NewClientWithList[*v2.TestType, *v2.TestTypeList]( + gentype.NewClientWithList[*examplev2.TestType, *examplev2.TestTypeList]( "testtypes", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v2.TestType { return &v2.TestType{} }, - func() *v2.TestTypeList { return &v2.TestTypeList{} }), + func() *examplev2.TestType { return &examplev2.TestType{} }, + func() *examplev2.TestTypeList { return &examplev2.TestTypeList{} }, + ), } } diff --git a/examples/pkg/generated/clientset/versioned/typed/example3/v1/clustertesttype.go b/examples/pkg/generated/clientset/versioned/typed/example3/v1/clustertesttype.go index b75ea1bb9..84380c1a6 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example3/v1/clustertesttype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example3/v1/clustertesttype.go @@ -14,19 +14,19 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 import ( - "context" + context "context" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" gentype "k8s.io/client-go/gentype" - v1 "acme.corp/pkg/apis/example3/v1" + example3v1 "acme.corp/pkg/apis/example3/v1" scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) @@ -38,33 +38,34 @@ type ClusterTestTypesGetter interface { // ClusterTestTypeInterface has methods to work with ClusterTestType resources. type ClusterTestTypeInterface interface { - Create(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.CreateOptions) (*v1.ClusterTestType, error) - Update(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.UpdateOptions) (*v1.ClusterTestType, error) + Create(ctx context.Context, clusterTestType *example3v1.ClusterTestType, opts metav1.CreateOptions) (*example3v1.ClusterTestType, error) + Update(ctx context.Context, clusterTestType *example3v1.ClusterTestType, opts metav1.UpdateOptions) (*example3v1.ClusterTestType, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.UpdateOptions) (*v1.ClusterTestType, error) + UpdateStatus(ctx context.Context, clusterTestType *example3v1.ClusterTestType, opts metav1.UpdateOptions) (*example3v1.ClusterTestType, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterTestType, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterTestTypeList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*example3v1.ClusterTestType, error) + List(ctx context.Context, opts metav1.ListOptions) (*example3v1.ClusterTestTypeList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterTestType, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *example3v1.ClusterTestType, err error) ClusterTestTypeExpansion } // clusterTestTypes implements ClusterTestTypeInterface type clusterTestTypes struct { - *gentype.ClientWithList[*v1.ClusterTestType, *v1.ClusterTestTypeList] + *gentype.ClientWithList[*example3v1.ClusterTestType, *example3v1.ClusterTestTypeList] } // newClusterTestTypes returns a ClusterTestTypes func newClusterTestTypes(c *Example3V1Client) *clusterTestTypes { return &clusterTestTypes{ - gentype.NewClientWithList[*v1.ClusterTestType, *v1.ClusterTestTypeList]( + gentype.NewClientWithList[*example3v1.ClusterTestType, *example3v1.ClusterTestTypeList]( "clustertesttypes", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.ClusterTestType { return &v1.ClusterTestType{} }, - func() *v1.ClusterTestTypeList { return &v1.ClusterTestTypeList{} }), + func() *example3v1.ClusterTestType { return &example3v1.ClusterTestType{} }, + func() *example3v1.ClusterTestTypeList { return &example3v1.ClusterTestTypeList{} }, + ), } } diff --git a/examples/pkg/generated/clientset/versioned/typed/example3/v1/doc.go b/examples/pkg/generated/clientset/versioned/typed/example3/v1/doc.go index b2e49efd1..8f148c5b8 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example3/v1/doc.go +++ b/examples/pkg/generated/clientset/versioned/typed/example3/v1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. // This package has the automatically generated typed clients. package v1 diff --git a/examples/pkg/generated/clientset/versioned/typed/example3/v1/example3_client.go b/examples/pkg/generated/clientset/versioned/typed/example3/v1/example3_client.go index db3fb8063..4e2b715c7 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example3/v1/example3_client.go +++ b/examples/pkg/generated/clientset/versioned/typed/example3/v1/example3_client.go @@ -14,17 +14,17 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 import ( - "net/http" + http "net/http" rest "k8s.io/client-go/rest" - v1 "acme.corp/pkg/apis/example3/v1" - "acme.corp/pkg/generated/clientset/versioned/scheme" + example3v1 "acme.corp/pkg/apis/example3/v1" + scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) type Example3V1Interface interface { @@ -91,10 +91,10 @@ func New(c rest.Interface) *Example3V1Client { } func setConfigDefaults(config *rest.Config) error { - gv := v1.SchemeGroupVersion + gv := example3v1.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/examples/pkg/generated/clientset/versioned/typed/example3/v1/fake/doc.go b/examples/pkg/generated/clientset/versioned/typed/example3/v1/fake/doc.go index 43d633d75..f0986a890 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example3/v1/fake/doc.go +++ b/examples/pkg/generated/clientset/versioned/typed/example3/v1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. // Package fake has the automatically generated clients. package fake diff --git a/examples/pkg/generated/clientset/versioned/typed/example3/v1/fake/fake_clustertesttype.go b/examples/pkg/generated/clientset/versioned/typed/example3/v1/fake/fake_clustertesttype.go index 340e736d9..c76a79191 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example3/v1/fake/fake_clustertesttype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example3/v1/fake/fake_clustertesttype.go @@ -14,126 +14,38 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake import ( - "context" - - metav1 "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" + gentype "k8s.io/client-go/gentype" v1 "acme.corp/pkg/apis/example3/v1" + example3v1 "acme.corp/pkg/generated/clientset/versioned/typed/example3/v1" ) -// FakeClusterTestTypes implements ClusterTestTypeInterface -type FakeClusterTestTypes struct { +// fakeClusterTestTypes implements ClusterTestTypeInterface +type fakeClusterTestTypes struct { + *gentype.FakeClientWithList[*v1.ClusterTestType, *v1.ClusterTestTypeList] Fake *FakeExample3V1 } -var clustertesttypesResource = v1.SchemeGroupVersion.WithResource("clustertesttypes") - -var clustertesttypesKind = v1.SchemeGroupVersion.WithKind("ClusterTestType") - -// Get takes name of the clusterTestType, and returns the corresponding clusterTestType object, and an error if there is any. -func (c *FakeClusterTestTypes) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(clustertesttypesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterTestType), err -} - -// List takes label and field selectors, and returns the list of ClusterTestTypes that match those selectors. -func (c *FakeClusterTestTypes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterTestTypeList, err error) { - emptyResult := &v1.ClusterTestTypeList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(clustertesttypesResource, clustertesttypesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.ClusterTestTypeList{ListMeta: obj.(*v1.ClusterTestTypeList).ListMeta} - for _, item := range obj.(*v1.ClusterTestTypeList).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 clusterTestTypes. -func (c *FakeClusterTestTypes) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(clustertesttypesResource, opts)) -} - -// Create takes the representation of a clusterTestType and creates it. Returns the server's representation of the clusterTestType, and an error, if there is any. -func (c *FakeClusterTestTypes) Create(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.CreateOptions) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(clustertesttypesResource, clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterTestType), err -} - -// Update takes the representation of a clusterTestType and updates it. Returns the server's representation of the clusterTestType, and an error, if there is any. -func (c *FakeClusterTestTypes) Update(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.UpdateOptions) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(clustertesttypesResource, clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterTestType), 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 *FakeClusterTestTypes) UpdateStatus(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.UpdateOptions) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clustertesttypesResource, "status", clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterTestType), err -} - -// Delete takes name of the clusterTestType and deletes it. Returns an error if one occurs. -func (c *FakeClusterTestTypes) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(clustertesttypesResource, name, opts), &v1.ClusterTestType{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeClusterTestTypes) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(clustertesttypesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.ClusterTestTypeList{}) - return err -} - -// Patch applies the patch and returns the patched clusterTestType. -func (c *FakeClusterTestTypes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(clustertesttypesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeClusterTestTypes(fake *FakeExample3V1) example3v1.ClusterTestTypeInterface { + return &fakeClusterTestTypes{ + gentype.NewFakeClientWithList[*v1.ClusterTestType, *v1.ClusterTestTypeList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("clustertesttypes"), + v1.SchemeGroupVersion.WithKind("ClusterTestType"), + func() *v1.ClusterTestType { return &v1.ClusterTestType{} }, + func() *v1.ClusterTestTypeList { return &v1.ClusterTestTypeList{} }, + func(dst, src *v1.ClusterTestTypeList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ClusterTestTypeList) []*v1.ClusterTestType { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.ClusterTestTypeList, items []*v1.ClusterTestType) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.ClusterTestType), err } diff --git a/examples/pkg/generated/clientset/versioned/typed/example3/v1/fake/fake_example3_client.go b/examples/pkg/generated/clientset/versioned/typed/example3/v1/fake/fake_example3_client.go index 32fd00871..6d71a72dd 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example3/v1/fake/fake_example3_client.go +++ b/examples/pkg/generated/clientset/versioned/typed/example3/v1/fake/fake_example3_client.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake @@ -30,11 +30,11 @@ type FakeExample3V1 struct { } func (c *FakeExample3V1) ClusterTestTypes() v1.ClusterTestTypeInterface { - return &FakeClusterTestTypes{c} + return newFakeClusterTestTypes(c) } func (c *FakeExample3V1) TestTypes(namespace string) v1.TestTypeInterface { - return &FakeTestTypes{c, namespace} + return newFakeTestTypes(c, namespace) } // RESTClient returns a RESTClient that is used to communicate diff --git a/examples/pkg/generated/clientset/versioned/typed/example3/v1/fake/fake_testtype.go b/examples/pkg/generated/clientset/versioned/typed/example3/v1/fake/fake_testtype.go index 8e3e288d0..34497601b 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example3/v1/fake/fake_testtype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example3/v1/fake/fake_testtype.go @@ -14,132 +14,50 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake import ( - "context" + context "context" metav1 "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" + gentype "k8s.io/client-go/gentype" testing "k8s.io/client-go/testing" examplev1 "acme.corp/pkg/apis/example/v1" v1 "acme.corp/pkg/apis/example3/v1" + example3v1 "acme.corp/pkg/generated/clientset/versioned/typed/example3/v1" ) -// FakeTestTypes implements TestTypeInterface -type FakeTestTypes struct { +// fakeTestTypes implements TestTypeInterface +type fakeTestTypes struct { + *gentype.FakeClientWithList[*v1.TestType, *v1.TestTypeList] Fake *FakeExample3V1 - ns string } -var testtypesResource = v1.SchemeGroupVersion.WithResource("testtypes") - -var testtypesKind = v1.SchemeGroupVersion.WithKind("TestType") - -// Get takes name of the testType, and returns the corresponding testType object, and an error if there is any. -func (c *FakeTestTypes) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.TestType, err error) { - emptyResult := &v1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(testtypesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TestType), err -} - -// List takes label and field selectors, and returns the list of TestTypes that match those selectors. -func (c *FakeTestTypes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.TestTypeList, err error) { - emptyResult := &v1.TestTypeList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(testtypesResource, testtypesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.TestTypeList{ListMeta: obj.(*v1.TestTypeList).ListMeta} - for _, item := range obj.(*v1.TestTypeList).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 testTypes. -func (c *FakeTestTypes) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(testtypesResource, c.ns, opts)) - -} - -// Create takes the representation of a testType and creates it. Returns the server's representation of the testType, and an error, if there is any. -func (c *FakeTestTypes) Create(ctx context.Context, testType *v1.TestType, opts metav1.CreateOptions) (result *v1.TestType, err error) { - emptyResult := &v1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(testtypesResource, c.ns, testType, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TestType), err -} - -// Update takes the representation of a testType and updates it. Returns the server's representation of the testType, and an error, if there is any. -func (c *FakeTestTypes) Update(ctx context.Context, testType *v1.TestType, opts metav1.UpdateOptions) (result *v1.TestType, err error) { - emptyResult := &v1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(testtypesResource, c.ns, testType, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TestType), err -} - -// Delete takes name of the testType and deletes it. Returns an error if one occurs. -func (c *FakeTestTypes) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(testtypesResource, c.ns, name, opts), &v1.TestType{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeTestTypes) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(testtypesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.TestTypeList{}) - return err -} - -// Patch applies the patch and returns the patched testType. -func (c *FakeTestTypes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.TestType, err error) { - emptyResult := &v1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(testtypesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeTestTypes(fake *FakeExample3V1, namespace string) example3v1.TestTypeInterface { + return &fakeTestTypes{ + gentype.NewFakeClientWithList[*v1.TestType, *v1.TestTypeList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("testtypes"), + v1.SchemeGroupVersion.WithKind("TestType"), + func() *v1.TestType { return &v1.TestType{} }, + func() *v1.TestTypeList { return &v1.TestTypeList{} }, + func(dst, src *v1.TestTypeList) { dst.ListMeta = src.ListMeta }, + func(list *v1.TestTypeList) []*v1.TestType { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.TestTypeList, items []*v1.TestType) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.TestType), err } // CreateField takes the representation of a field and creates it. Returns the server's representation of the field, and an error, if there is any. -func (c *FakeTestTypes) CreateField(ctx context.Context, testTypeName string, field *examplev1.Field, opts metav1.CreateOptions) (result *examplev1.Field, err error) { +func (c *fakeTestTypes) CreateField(ctx context.Context, testTypeName string, field *examplev1.Field, opts metav1.CreateOptions) (result *examplev1.Field, err error) { emptyResult := &examplev1.Field{} obj, err := c.Fake. - Invokes(testing.NewCreateSubresourceActionWithOptions(testtypesResource, testTypeName, "field", c.ns, field, opts), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), testTypeName, "field", c.Namespace(), field, opts), emptyResult) if obj == nil { return emptyResult, err @@ -148,10 +66,10 @@ func (c *FakeTestTypes) CreateField(ctx context.Context, testTypeName string, fi } // UpdateField takes the representation of a field and updates it. Returns the server's representation of the field, and an error, if there is any. -func (c *FakeTestTypes) UpdateField(ctx context.Context, testTypeName string, field *examplev1.Field, opts metav1.UpdateOptions) (result *examplev1.Field, err error) { +func (c *fakeTestTypes) UpdateField(ctx context.Context, testTypeName string, field *examplev1.Field, opts metav1.UpdateOptions) (result *examplev1.Field, err error) { emptyResult := &examplev1.Field{} obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(testtypesResource, "field", c.ns, field, opts), &examplev1.Field{}) + Invokes(testing.NewUpdateSubresourceActionWithOptions(c.Resource(), "field", c.Namespace(), field, opts), &examplev1.Field{}) if obj == nil { return emptyResult, err @@ -160,10 +78,10 @@ func (c *FakeTestTypes) UpdateField(ctx context.Context, testTypeName string, fi } // GetField takes name of the testType, and returns the corresponding field object, and an error if there is any. -func (c *FakeTestTypes) GetField(ctx context.Context, testTypeName string, options metav1.GetOptions) (result *examplev1.Field, err error) { +func (c *fakeTestTypes) GetField(ctx context.Context, testTypeName string, options metav1.GetOptions) (result *examplev1.Field, err error) { emptyResult := &examplev1.Field{} obj, err := c.Fake. - Invokes(testing.NewGetSubresourceActionWithOptions(testtypesResource, c.ns, "field", testTypeName, options), emptyResult) + Invokes(testing.NewGetSubresourceActionWithOptions(c.Resource(), c.Namespace(), "field", testTypeName, options), emptyResult) if obj == nil { return emptyResult, err diff --git a/examples/pkg/generated/clientset/versioned/typed/example3/v1/generated_expansion.go b/examples/pkg/generated/clientset/versioned/typed/example3/v1/generated_expansion.go index 4233cb0ef..bb3aba146 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example3/v1/generated_expansion.go +++ b/examples/pkg/generated/clientset/versioned/typed/example3/v1/generated_expansion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 diff --git a/examples/pkg/generated/clientset/versioned/typed/example3/v1/testtype.go b/examples/pkg/generated/clientset/versioned/typed/example3/v1/testtype.go index 7b1586d1a..e274356ef 100644 --- a/examples/pkg/generated/clientset/versioned/typed/example3/v1/testtype.go +++ b/examples/pkg/generated/clientset/versioned/typed/example3/v1/testtype.go @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 import ( - "context" + context "context" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -27,7 +27,7 @@ import ( gentype "k8s.io/client-go/gentype" examplev1 "acme.corp/pkg/apis/example/v1" - v1 "acme.corp/pkg/apis/example3/v1" + example3v1 "acme.corp/pkg/apis/example3/v1" scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) @@ -39,14 +39,14 @@ type TestTypesGetter interface { // TestTypeInterface has methods to work with TestType resources. type TestTypeInterface interface { - Create(ctx context.Context, testType *v1.TestType, opts metav1.CreateOptions) (*v1.TestType, error) - Update(ctx context.Context, testType *v1.TestType, opts metav1.UpdateOptions) (*v1.TestType, error) + Create(ctx context.Context, testType *example3v1.TestType, opts metav1.CreateOptions) (*example3v1.TestType, error) + Update(ctx context.Context, testType *example3v1.TestType, opts metav1.UpdateOptions) (*example3v1.TestType, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.TestType, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.TestTypeList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*example3v1.TestType, error) + List(ctx context.Context, opts metav1.ListOptions) (*example3v1.TestTypeList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.TestType, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *example3v1.TestType, err error) CreateField(ctx context.Context, testTypeName string, field *examplev1.Field, opts metav1.CreateOptions) (*examplev1.Field, error) UpdateField(ctx context.Context, testTypeName string, field *examplev1.Field, opts metav1.UpdateOptions) (*examplev1.Field, error) GetField(ctx context.Context, testTypeName string, options metav1.GetOptions) (*examplev1.Field, error) @@ -56,19 +56,20 @@ type TestTypeInterface interface { // testTypes implements TestTypeInterface type testTypes struct { - *gentype.ClientWithList[*v1.TestType, *v1.TestTypeList] + *gentype.ClientWithList[*example3v1.TestType, *example3v1.TestTypeList] } // newTestTypes returns a TestTypes func newTestTypes(c *Example3V1Client, namespace string) *testTypes { return &testTypes{ - gentype.NewClientWithList[*v1.TestType, *v1.TestTypeList]( + gentype.NewClientWithList[*example3v1.TestType, *example3v1.TestTypeList]( "testtypes", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.TestType { return &v1.TestType{} }, - func() *v1.TestTypeList { return &v1.TestTypeList{} }), + func() *example3v1.TestType { return &example3v1.TestType{} }, + func() *example3v1.TestTypeList { return &example3v1.TestTypeList{} }, + ), } } diff --git a/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/clustertesttype.go b/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/clustertesttype.go index 34afc956f..08757025c 100644 --- a/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/clustertesttype.go +++ b/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/clustertesttype.go @@ -14,19 +14,19 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 import ( - "context" + context "context" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" gentype "k8s.io/client-go/gentype" - v1 "acme.corp/pkg/apis/exampledashed/v1" + exampledashedv1 "acme.corp/pkg/apis/exampledashed/v1" scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) @@ -38,33 +38,34 @@ type ClusterTestTypesGetter interface { // ClusterTestTypeInterface has methods to work with ClusterTestType resources. type ClusterTestTypeInterface interface { - Create(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.CreateOptions) (*v1.ClusterTestType, error) - Update(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.UpdateOptions) (*v1.ClusterTestType, error) + Create(ctx context.Context, clusterTestType *exampledashedv1.ClusterTestType, opts metav1.CreateOptions) (*exampledashedv1.ClusterTestType, error) + Update(ctx context.Context, clusterTestType *exampledashedv1.ClusterTestType, opts metav1.UpdateOptions) (*exampledashedv1.ClusterTestType, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.UpdateOptions) (*v1.ClusterTestType, error) + UpdateStatus(ctx context.Context, clusterTestType *exampledashedv1.ClusterTestType, opts metav1.UpdateOptions) (*exampledashedv1.ClusterTestType, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterTestType, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterTestTypeList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*exampledashedv1.ClusterTestType, error) + List(ctx context.Context, opts metav1.ListOptions) (*exampledashedv1.ClusterTestTypeList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterTestType, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *exampledashedv1.ClusterTestType, err error) ClusterTestTypeExpansion } // clusterTestTypes implements ClusterTestTypeInterface type clusterTestTypes struct { - *gentype.ClientWithList[*v1.ClusterTestType, *v1.ClusterTestTypeList] + *gentype.ClientWithList[*exampledashedv1.ClusterTestType, *exampledashedv1.ClusterTestTypeList] } // newClusterTestTypes returns a ClusterTestTypes func newClusterTestTypes(c *ExampleDashedV1Client) *clusterTestTypes { return &clusterTestTypes{ - gentype.NewClientWithList[*v1.ClusterTestType, *v1.ClusterTestTypeList]( + gentype.NewClientWithList[*exampledashedv1.ClusterTestType, *exampledashedv1.ClusterTestTypeList]( "clustertesttypes", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.ClusterTestType { return &v1.ClusterTestType{} }, - func() *v1.ClusterTestTypeList { return &v1.ClusterTestTypeList{} }), + func() *exampledashedv1.ClusterTestType { return &exampledashedv1.ClusterTestType{} }, + func() *exampledashedv1.ClusterTestTypeList { return &exampledashedv1.ClusterTestTypeList{} }, + ), } } diff --git a/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/doc.go b/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/doc.go index b2e49efd1..8f148c5b8 100644 --- a/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/doc.go +++ b/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. // This package has the automatically generated typed clients. package v1 diff --git a/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/exampledashed_client.go b/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/exampledashed_client.go index 080cc7d3e..75725dd0c 100644 --- a/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/exampledashed_client.go +++ b/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/exampledashed_client.go @@ -14,17 +14,17 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 import ( - "net/http" + http "net/http" rest "k8s.io/client-go/rest" - v1 "acme.corp/pkg/apis/exampledashed/v1" - "acme.corp/pkg/generated/clientset/versioned/scheme" + exampledashedv1 "acme.corp/pkg/apis/exampledashed/v1" + scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) type ExampleDashedV1Interface interface { @@ -91,10 +91,10 @@ func New(c rest.Interface) *ExampleDashedV1Client { } func setConfigDefaults(config *rest.Config) error { - gv := v1.SchemeGroupVersion + gv := exampledashedv1.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/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/fake/doc.go b/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/fake/doc.go index 43d633d75..f0986a890 100644 --- a/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/fake/doc.go +++ b/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. // Package fake has the automatically generated clients. package fake diff --git a/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/fake/fake_clustertesttype.go b/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/fake/fake_clustertesttype.go index 88cc6b717..4f129cb3e 100644 --- a/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/fake/fake_clustertesttype.go +++ b/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/fake/fake_clustertesttype.go @@ -14,126 +14,38 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake import ( - "context" - - metav1 "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" + gentype "k8s.io/client-go/gentype" v1 "acme.corp/pkg/apis/exampledashed/v1" + exampledashedv1 "acme.corp/pkg/generated/clientset/versioned/typed/exampledashed/v1" ) -// FakeClusterTestTypes implements ClusterTestTypeInterface -type FakeClusterTestTypes struct { +// fakeClusterTestTypes implements ClusterTestTypeInterface +type fakeClusterTestTypes struct { + *gentype.FakeClientWithList[*v1.ClusterTestType, *v1.ClusterTestTypeList] Fake *FakeExampleDashedV1 } -var clustertesttypesResource = v1.SchemeGroupVersion.WithResource("clustertesttypes") - -var clustertesttypesKind = v1.SchemeGroupVersion.WithKind("ClusterTestType") - -// Get takes name of the clusterTestType, and returns the corresponding clusterTestType object, and an error if there is any. -func (c *FakeClusterTestTypes) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(clustertesttypesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterTestType), err -} - -// List takes label and field selectors, and returns the list of ClusterTestTypes that match those selectors. -func (c *FakeClusterTestTypes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterTestTypeList, err error) { - emptyResult := &v1.ClusterTestTypeList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(clustertesttypesResource, clustertesttypesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.ClusterTestTypeList{ListMeta: obj.(*v1.ClusterTestTypeList).ListMeta} - for _, item := range obj.(*v1.ClusterTestTypeList).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 clusterTestTypes. -func (c *FakeClusterTestTypes) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(clustertesttypesResource, opts)) -} - -// Create takes the representation of a clusterTestType and creates it. Returns the server's representation of the clusterTestType, and an error, if there is any. -func (c *FakeClusterTestTypes) Create(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.CreateOptions) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(clustertesttypesResource, clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterTestType), err -} - -// Update takes the representation of a clusterTestType and updates it. Returns the server's representation of the clusterTestType, and an error, if there is any. -func (c *FakeClusterTestTypes) Update(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.UpdateOptions) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(clustertesttypesResource, clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterTestType), 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 *FakeClusterTestTypes) UpdateStatus(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.UpdateOptions) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clustertesttypesResource, "status", clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterTestType), err -} - -// Delete takes name of the clusterTestType and deletes it. Returns an error if one occurs. -func (c *FakeClusterTestTypes) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(clustertesttypesResource, name, opts), &v1.ClusterTestType{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeClusterTestTypes) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(clustertesttypesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.ClusterTestTypeList{}) - return err -} - -// Patch applies the patch and returns the patched clusterTestType. -func (c *FakeClusterTestTypes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(clustertesttypesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeClusterTestTypes(fake *FakeExampleDashedV1) exampledashedv1.ClusterTestTypeInterface { + return &fakeClusterTestTypes{ + gentype.NewFakeClientWithList[*v1.ClusterTestType, *v1.ClusterTestTypeList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("clustertesttypes"), + v1.SchemeGroupVersion.WithKind("ClusterTestType"), + func() *v1.ClusterTestType { return &v1.ClusterTestType{} }, + func() *v1.ClusterTestTypeList { return &v1.ClusterTestTypeList{} }, + func(dst, src *v1.ClusterTestTypeList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ClusterTestTypeList) []*v1.ClusterTestType { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.ClusterTestTypeList, items []*v1.ClusterTestType) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.ClusterTestType), err } diff --git a/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/fake/fake_exampledashed_client.go b/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/fake/fake_exampledashed_client.go index 85213f67a..86a125754 100644 --- a/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/fake/fake_exampledashed_client.go +++ b/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/fake/fake_exampledashed_client.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake @@ -30,11 +30,11 @@ type FakeExampleDashedV1 struct { } func (c *FakeExampleDashedV1) ClusterTestTypes() v1.ClusterTestTypeInterface { - return &FakeClusterTestTypes{c} + return newFakeClusterTestTypes(c) } func (c *FakeExampleDashedV1) TestTypes(namespace string) v1.TestTypeInterface { - return &FakeTestTypes{c, namespace} + return newFakeTestTypes(c, namespace) } // RESTClient returns a RESTClient that is used to communicate diff --git a/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/fake/fake_testtype.go b/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/fake/fake_testtype.go index ecf6ac9d4..625bdab71 100644 --- a/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/fake/fake_testtype.go +++ b/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/fake/fake_testtype.go @@ -14,132 +14,50 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake import ( - "context" + context "context" metav1 "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" + gentype "k8s.io/client-go/gentype" testing "k8s.io/client-go/testing" examplev1 "acme.corp/pkg/apis/example/v1" v1 "acme.corp/pkg/apis/exampledashed/v1" + exampledashedv1 "acme.corp/pkg/generated/clientset/versioned/typed/exampledashed/v1" ) -// FakeTestTypes implements TestTypeInterface -type FakeTestTypes struct { +// fakeTestTypes implements TestTypeInterface +type fakeTestTypes struct { + *gentype.FakeClientWithList[*v1.TestType, *v1.TestTypeList] Fake *FakeExampleDashedV1 - ns string } -var testtypesResource = v1.SchemeGroupVersion.WithResource("testtypes") - -var testtypesKind = v1.SchemeGroupVersion.WithKind("TestType") - -// Get takes name of the testType, and returns the corresponding testType object, and an error if there is any. -func (c *FakeTestTypes) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.TestType, err error) { - emptyResult := &v1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(testtypesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TestType), err -} - -// List takes label and field selectors, and returns the list of TestTypes that match those selectors. -func (c *FakeTestTypes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.TestTypeList, err error) { - emptyResult := &v1.TestTypeList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(testtypesResource, testtypesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.TestTypeList{ListMeta: obj.(*v1.TestTypeList).ListMeta} - for _, item := range obj.(*v1.TestTypeList).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 testTypes. -func (c *FakeTestTypes) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(testtypesResource, c.ns, opts)) - -} - -// Create takes the representation of a testType and creates it. Returns the server's representation of the testType, and an error, if there is any. -func (c *FakeTestTypes) Create(ctx context.Context, testType *v1.TestType, opts metav1.CreateOptions) (result *v1.TestType, err error) { - emptyResult := &v1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(testtypesResource, c.ns, testType, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TestType), err -} - -// Update takes the representation of a testType and updates it. Returns the server's representation of the testType, and an error, if there is any. -func (c *FakeTestTypes) Update(ctx context.Context, testType *v1.TestType, opts metav1.UpdateOptions) (result *v1.TestType, err error) { - emptyResult := &v1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(testtypesResource, c.ns, testType, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TestType), err -} - -// Delete takes name of the testType and deletes it. Returns an error if one occurs. -func (c *FakeTestTypes) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(testtypesResource, c.ns, name, opts), &v1.TestType{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeTestTypes) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(testtypesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.TestTypeList{}) - return err -} - -// Patch applies the patch and returns the patched testType. -func (c *FakeTestTypes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.TestType, err error) { - emptyResult := &v1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(testtypesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeTestTypes(fake *FakeExampleDashedV1, namespace string) exampledashedv1.TestTypeInterface { + return &fakeTestTypes{ + gentype.NewFakeClientWithList[*v1.TestType, *v1.TestTypeList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("testtypes"), + v1.SchemeGroupVersion.WithKind("TestType"), + func() *v1.TestType { return &v1.TestType{} }, + func() *v1.TestTypeList { return &v1.TestTypeList{} }, + func(dst, src *v1.TestTypeList) { dst.ListMeta = src.ListMeta }, + func(list *v1.TestTypeList) []*v1.TestType { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.TestTypeList, items []*v1.TestType) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.TestType), err } // CreateField takes the representation of a field and creates it. Returns the server's representation of the field, and an error, if there is any. -func (c *FakeTestTypes) CreateField(ctx context.Context, testTypeName string, field *examplev1.Field, opts metav1.CreateOptions) (result *examplev1.Field, err error) { +func (c *fakeTestTypes) CreateField(ctx context.Context, testTypeName string, field *examplev1.Field, opts metav1.CreateOptions) (result *examplev1.Field, err error) { emptyResult := &examplev1.Field{} obj, err := c.Fake. - Invokes(testing.NewCreateSubresourceActionWithOptions(testtypesResource, testTypeName, "field", c.ns, field, opts), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), testTypeName, "field", c.Namespace(), field, opts), emptyResult) if obj == nil { return emptyResult, err @@ -148,10 +66,10 @@ func (c *FakeTestTypes) CreateField(ctx context.Context, testTypeName string, fi } // UpdateField takes the representation of a field and updates it. Returns the server's representation of the field, and an error, if there is any. -func (c *FakeTestTypes) UpdateField(ctx context.Context, testTypeName string, field *examplev1.Field, opts metav1.UpdateOptions) (result *examplev1.Field, err error) { +func (c *fakeTestTypes) UpdateField(ctx context.Context, testTypeName string, field *examplev1.Field, opts metav1.UpdateOptions) (result *examplev1.Field, err error) { emptyResult := &examplev1.Field{} obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(testtypesResource, "field", c.ns, field, opts), &examplev1.Field{}) + Invokes(testing.NewUpdateSubresourceActionWithOptions(c.Resource(), "field", c.Namespace(), field, opts), &examplev1.Field{}) if obj == nil { return emptyResult, err @@ -160,10 +78,10 @@ func (c *FakeTestTypes) UpdateField(ctx context.Context, testTypeName string, fi } // GetField takes name of the testType, and returns the corresponding field object, and an error if there is any. -func (c *FakeTestTypes) GetField(ctx context.Context, testTypeName string, options metav1.GetOptions) (result *examplev1.Field, err error) { +func (c *fakeTestTypes) GetField(ctx context.Context, testTypeName string, options metav1.GetOptions) (result *examplev1.Field, err error) { emptyResult := &examplev1.Field{} obj, err := c.Fake. - Invokes(testing.NewGetSubresourceActionWithOptions(testtypesResource, c.ns, "field", testTypeName, options), emptyResult) + Invokes(testing.NewGetSubresourceActionWithOptions(c.Resource(), c.Namespace(), "field", testTypeName, options), emptyResult) if obj == nil { return emptyResult, err diff --git a/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/generated_expansion.go b/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/generated_expansion.go index 4233cb0ef..bb3aba146 100644 --- a/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/generated_expansion.go +++ b/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/generated_expansion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 diff --git a/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/testtype.go b/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/testtype.go index a044c31c8..bdf9af896 100644 --- a/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/testtype.go +++ b/examples/pkg/generated/clientset/versioned/typed/exampledashed/v1/testtype.go @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 import ( - "context" + context "context" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -27,7 +27,7 @@ import ( gentype "k8s.io/client-go/gentype" examplev1 "acme.corp/pkg/apis/example/v1" - v1 "acme.corp/pkg/apis/exampledashed/v1" + exampledashedv1 "acme.corp/pkg/apis/exampledashed/v1" scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) @@ -39,14 +39,14 @@ type TestTypesGetter interface { // TestTypeInterface has methods to work with TestType resources. type TestTypeInterface interface { - Create(ctx context.Context, testType *v1.TestType, opts metav1.CreateOptions) (*v1.TestType, error) - Update(ctx context.Context, testType *v1.TestType, opts metav1.UpdateOptions) (*v1.TestType, error) + Create(ctx context.Context, testType *exampledashedv1.TestType, opts metav1.CreateOptions) (*exampledashedv1.TestType, error) + Update(ctx context.Context, testType *exampledashedv1.TestType, opts metav1.UpdateOptions) (*exampledashedv1.TestType, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.TestType, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.TestTypeList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*exampledashedv1.TestType, error) + List(ctx context.Context, opts metav1.ListOptions) (*exampledashedv1.TestTypeList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.TestType, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *exampledashedv1.TestType, err error) CreateField(ctx context.Context, testTypeName string, field *examplev1.Field, opts metav1.CreateOptions) (*examplev1.Field, error) UpdateField(ctx context.Context, testTypeName string, field *examplev1.Field, opts metav1.UpdateOptions) (*examplev1.Field, error) GetField(ctx context.Context, testTypeName string, options metav1.GetOptions) (*examplev1.Field, error) @@ -56,19 +56,20 @@ type TestTypeInterface interface { // testTypes implements TestTypeInterface type testTypes struct { - *gentype.ClientWithList[*v1.TestType, *v1.TestTypeList] + *gentype.ClientWithList[*exampledashedv1.TestType, *exampledashedv1.TestTypeList] } // newTestTypes returns a TestTypes func newTestTypes(c *ExampleDashedV1Client, namespace string) *testTypes { return &testTypes{ - gentype.NewClientWithList[*v1.TestType, *v1.TestTypeList]( + gentype.NewClientWithList[*exampledashedv1.TestType, *exampledashedv1.TestTypeList]( "testtypes", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.TestType { return &v1.TestType{} }, - func() *v1.TestTypeList { return &v1.TestTypeList{} }), + func() *exampledashedv1.TestType { return &exampledashedv1.TestType{} }, + func() *exampledashedv1.TestTypeList { return &exampledashedv1.TestTypeList{} }, + ), } } diff --git a/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/clustertesttype.go b/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/clustertesttype.go index c90430c55..50fe736a3 100644 --- a/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/clustertesttype.go +++ b/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/clustertesttype.go @@ -14,19 +14,19 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 import ( - "context" + context "context" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" gentype "k8s.io/client-go/gentype" - v1 "acme.corp/pkg/apis/existinginterfaces/v1" + existinginterfacesv1 "acme.corp/pkg/apis/existinginterfaces/v1" scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) @@ -38,33 +38,34 @@ type ClusterTestTypesGetter interface { // ClusterTestTypeInterface has methods to work with ClusterTestType resources. type ClusterTestTypeInterface interface { - Create(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.CreateOptions) (*v1.ClusterTestType, error) - Update(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.UpdateOptions) (*v1.ClusterTestType, error) + Create(ctx context.Context, clusterTestType *existinginterfacesv1.ClusterTestType, opts metav1.CreateOptions) (*existinginterfacesv1.ClusterTestType, error) + Update(ctx context.Context, clusterTestType *existinginterfacesv1.ClusterTestType, opts metav1.UpdateOptions) (*existinginterfacesv1.ClusterTestType, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.UpdateOptions) (*v1.ClusterTestType, error) + UpdateStatus(ctx context.Context, clusterTestType *existinginterfacesv1.ClusterTestType, opts metav1.UpdateOptions) (*existinginterfacesv1.ClusterTestType, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterTestType, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterTestTypeList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*existinginterfacesv1.ClusterTestType, error) + List(ctx context.Context, opts metav1.ListOptions) (*existinginterfacesv1.ClusterTestTypeList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterTestType, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *existinginterfacesv1.ClusterTestType, err error) ClusterTestTypeExpansion } // clusterTestTypes implements ClusterTestTypeInterface type clusterTestTypes struct { - *gentype.ClientWithList[*v1.ClusterTestType, *v1.ClusterTestTypeList] + *gentype.ClientWithList[*existinginterfacesv1.ClusterTestType, *existinginterfacesv1.ClusterTestTypeList] } // newClusterTestTypes returns a ClusterTestTypes func newClusterTestTypes(c *ExistinginterfacesV1Client) *clusterTestTypes { return &clusterTestTypes{ - gentype.NewClientWithList[*v1.ClusterTestType, *v1.ClusterTestTypeList]( + gentype.NewClientWithList[*existinginterfacesv1.ClusterTestType, *existinginterfacesv1.ClusterTestTypeList]( "clustertesttypes", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.ClusterTestType { return &v1.ClusterTestType{} }, - func() *v1.ClusterTestTypeList { return &v1.ClusterTestTypeList{} }), + func() *existinginterfacesv1.ClusterTestType { return &existinginterfacesv1.ClusterTestType{} }, + func() *existinginterfacesv1.ClusterTestTypeList { return &existinginterfacesv1.ClusterTestTypeList{} }, + ), } } diff --git a/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/doc.go b/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/doc.go index b2e49efd1..8f148c5b8 100644 --- a/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/doc.go +++ b/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. // This package has the automatically generated typed clients. package v1 diff --git a/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/existinginterfaces_client.go b/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/existinginterfaces_client.go index e780673d9..06f561172 100644 --- a/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/existinginterfaces_client.go +++ b/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/existinginterfaces_client.go @@ -14,17 +14,17 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 import ( - "net/http" + http "net/http" rest "k8s.io/client-go/rest" - v1 "acme.corp/pkg/apis/existinginterfaces/v1" - "acme.corp/pkg/generated/clientset/versioned/scheme" + existinginterfacesv1 "acme.corp/pkg/apis/existinginterfaces/v1" + scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) type ExistinginterfacesV1Interface interface { @@ -91,10 +91,10 @@ func New(c rest.Interface) *ExistinginterfacesV1Client { } func setConfigDefaults(config *rest.Config) error { - gv := v1.SchemeGroupVersion + gv := existinginterfacesv1.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/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/fake/doc.go b/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/fake/doc.go index 43d633d75..f0986a890 100644 --- a/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/fake/doc.go +++ b/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. // Package fake has the automatically generated clients. package fake diff --git a/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/fake/fake_clustertesttype.go b/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/fake/fake_clustertesttype.go index 0e2ddec98..d4385a5da 100644 --- a/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/fake/fake_clustertesttype.go +++ b/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/fake/fake_clustertesttype.go @@ -14,126 +14,38 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake import ( - "context" - - metav1 "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" + gentype "k8s.io/client-go/gentype" v1 "acme.corp/pkg/apis/existinginterfaces/v1" + existinginterfacesv1 "acme.corp/pkg/generated/clientset/versioned/typed/existinginterfaces/v1" ) -// FakeClusterTestTypes implements ClusterTestTypeInterface -type FakeClusterTestTypes struct { +// fakeClusterTestTypes implements ClusterTestTypeInterface +type fakeClusterTestTypes struct { + *gentype.FakeClientWithList[*v1.ClusterTestType, *v1.ClusterTestTypeList] Fake *FakeExistinginterfacesV1 } -var clustertesttypesResource = v1.SchemeGroupVersion.WithResource("clustertesttypes") - -var clustertesttypesKind = v1.SchemeGroupVersion.WithKind("ClusterTestType") - -// Get takes name of the clusterTestType, and returns the corresponding clusterTestType object, and an error if there is any. -func (c *FakeClusterTestTypes) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(clustertesttypesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterTestType), err -} - -// List takes label and field selectors, and returns the list of ClusterTestTypes that match those selectors. -func (c *FakeClusterTestTypes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterTestTypeList, err error) { - emptyResult := &v1.ClusterTestTypeList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(clustertesttypesResource, clustertesttypesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.ClusterTestTypeList{ListMeta: obj.(*v1.ClusterTestTypeList).ListMeta} - for _, item := range obj.(*v1.ClusterTestTypeList).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 clusterTestTypes. -func (c *FakeClusterTestTypes) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(clustertesttypesResource, opts)) -} - -// Create takes the representation of a clusterTestType and creates it. Returns the server's representation of the clusterTestType, and an error, if there is any. -func (c *FakeClusterTestTypes) Create(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.CreateOptions) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(clustertesttypesResource, clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterTestType), err -} - -// Update takes the representation of a clusterTestType and updates it. Returns the server's representation of the clusterTestType, and an error, if there is any. -func (c *FakeClusterTestTypes) Update(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.UpdateOptions) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(clustertesttypesResource, clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterTestType), 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 *FakeClusterTestTypes) UpdateStatus(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.UpdateOptions) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clustertesttypesResource, "status", clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterTestType), err -} - -// Delete takes name of the clusterTestType and deletes it. Returns an error if one occurs. -func (c *FakeClusterTestTypes) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(clustertesttypesResource, name, opts), &v1.ClusterTestType{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeClusterTestTypes) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(clustertesttypesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.ClusterTestTypeList{}) - return err -} - -// Patch applies the patch and returns the patched clusterTestType. -func (c *FakeClusterTestTypes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(clustertesttypesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeClusterTestTypes(fake *FakeExistinginterfacesV1) existinginterfacesv1.ClusterTestTypeInterface { + return &fakeClusterTestTypes{ + gentype.NewFakeClientWithList[*v1.ClusterTestType, *v1.ClusterTestTypeList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("clustertesttypes"), + v1.SchemeGroupVersion.WithKind("ClusterTestType"), + func() *v1.ClusterTestType { return &v1.ClusterTestType{} }, + func() *v1.ClusterTestTypeList { return &v1.ClusterTestTypeList{} }, + func(dst, src *v1.ClusterTestTypeList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ClusterTestTypeList) []*v1.ClusterTestType { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.ClusterTestTypeList, items []*v1.ClusterTestType) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.ClusterTestType), err } diff --git a/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/fake/fake_existinginterfaces_client.go b/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/fake/fake_existinginterfaces_client.go index 9c4e19349..f15002c4a 100644 --- a/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/fake/fake_existinginterfaces_client.go +++ b/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/fake/fake_existinginterfaces_client.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake @@ -30,11 +30,11 @@ type FakeExistinginterfacesV1 struct { } func (c *FakeExistinginterfacesV1) ClusterTestTypes() v1.ClusterTestTypeInterface { - return &FakeClusterTestTypes{c} + return newFakeClusterTestTypes(c) } func (c *FakeExistinginterfacesV1) TestTypes(namespace string) v1.TestTypeInterface { - return &FakeTestTypes{c, namespace} + return newFakeTestTypes(c, namespace) } // RESTClient returns a RESTClient that is used to communicate diff --git a/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/fake/fake_testtype.go b/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/fake/fake_testtype.go index 19a3134b1..eb4a10fd0 100644 --- a/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/fake/fake_testtype.go +++ b/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/fake/fake_testtype.go @@ -14,122 +14,36 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake import ( - "context" - - metav1 "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" + gentype "k8s.io/client-go/gentype" v1 "acme.corp/pkg/apis/existinginterfaces/v1" + existinginterfacesv1 "acme.corp/pkg/generated/clientset/versioned/typed/existinginterfaces/v1" ) -// FakeTestTypes implements TestTypeInterface -type FakeTestTypes struct { +// fakeTestTypes implements TestTypeInterface +type fakeTestTypes struct { + *gentype.FakeClientWithList[*v1.TestType, *v1.TestTypeList] Fake *FakeExistinginterfacesV1 - ns string -} - -var testtypesResource = v1.SchemeGroupVersion.WithResource("testtypes") - -var testtypesKind = v1.SchemeGroupVersion.WithKind("TestType") - -// Get takes name of the testType, and returns the corresponding testType object, and an error if there is any. -func (c *FakeTestTypes) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.TestType, err error) { - emptyResult := &v1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(testtypesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TestType), err -} - -// List takes label and field selectors, and returns the list of TestTypes that match those selectors. -func (c *FakeTestTypes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.TestTypeList, err error) { - emptyResult := &v1.TestTypeList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(testtypesResource, testtypesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.TestTypeList{ListMeta: obj.(*v1.TestTypeList).ListMeta} - for _, item := range obj.(*v1.TestTypeList).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 testTypes. -func (c *FakeTestTypes) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(testtypesResource, c.ns, opts)) - -} - -// Create takes the representation of a testType and creates it. Returns the server's representation of the testType, and an error, if there is any. -func (c *FakeTestTypes) Create(ctx context.Context, testType *v1.TestType, opts metav1.CreateOptions) (result *v1.TestType, err error) { - emptyResult := &v1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(testtypesResource, c.ns, testType, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TestType), err -} - -// Update takes the representation of a testType and updates it. Returns the server's representation of the testType, and an error, if there is any. -func (c *FakeTestTypes) Update(ctx context.Context, testType *v1.TestType, opts metav1.UpdateOptions) (result *v1.TestType, err error) { - emptyResult := &v1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(testtypesResource, c.ns, testType, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TestType), err -} - -// Delete takes name of the testType and deletes it. Returns an error if one occurs. -func (c *FakeTestTypes) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(testtypesResource, c.ns, name, opts), &v1.TestType{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeTestTypes) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(testtypesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.TestTypeList{}) - return err -} - -// Patch applies the patch and returns the patched testType. -func (c *FakeTestTypes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.TestType, err error) { - emptyResult := &v1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(testtypesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeTestTypes(fake *FakeExistinginterfacesV1, namespace string) existinginterfacesv1.TestTypeInterface { + return &fakeTestTypes{ + gentype.NewFakeClientWithList[*v1.TestType, *v1.TestTypeList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("testtypes"), + v1.SchemeGroupVersion.WithKind("TestType"), + func() *v1.TestType { return &v1.TestType{} }, + func() *v1.TestTypeList { return &v1.TestTypeList{} }, + func(dst, src *v1.TestTypeList) { dst.ListMeta = src.ListMeta }, + func(list *v1.TestTypeList) []*v1.TestType { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.TestTypeList, items []*v1.TestType) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.TestType), err } diff --git a/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/generated_expansion.go b/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/generated_expansion.go index 4233cb0ef..bb3aba146 100644 --- a/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/generated_expansion.go +++ b/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/generated_expansion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 diff --git a/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/testtype.go b/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/testtype.go index f91bc8698..e304b20f0 100644 --- a/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/testtype.go +++ b/examples/pkg/generated/clientset/versioned/typed/existinginterfaces/v1/testtype.go @@ -14,19 +14,19 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 import ( - "context" + context "context" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" gentype "k8s.io/client-go/gentype" - v1 "acme.corp/pkg/apis/existinginterfaces/v1" + existinginterfacesv1 "acme.corp/pkg/apis/existinginterfaces/v1" scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) @@ -38,31 +38,32 @@ type TestTypesGetter interface { // TestTypeInterface has methods to work with TestType resources. type TestTypeInterface interface { - Create(ctx context.Context, testType *v1.TestType, opts metav1.CreateOptions) (*v1.TestType, error) - Update(ctx context.Context, testType *v1.TestType, opts metav1.UpdateOptions) (*v1.TestType, error) + Create(ctx context.Context, testType *existinginterfacesv1.TestType, opts metav1.CreateOptions) (*existinginterfacesv1.TestType, error) + Update(ctx context.Context, testType *existinginterfacesv1.TestType, opts metav1.UpdateOptions) (*existinginterfacesv1.TestType, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.TestType, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.TestTypeList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*existinginterfacesv1.TestType, error) + List(ctx context.Context, opts metav1.ListOptions) (*existinginterfacesv1.TestTypeList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.TestType, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *existinginterfacesv1.TestType, err error) TestTypeExpansion } // testTypes implements TestTypeInterface type testTypes struct { - *gentype.ClientWithList[*v1.TestType, *v1.TestTypeList] + *gentype.ClientWithList[*existinginterfacesv1.TestType, *existinginterfacesv1.TestTypeList] } // newTestTypes returns a TestTypes func newTestTypes(c *ExistinginterfacesV1Client, namespace string) *testTypes { return &testTypes{ - gentype.NewClientWithList[*v1.TestType, *v1.TestTypeList]( + gentype.NewClientWithList[*existinginterfacesv1.TestType, *existinginterfacesv1.TestTypeList]( "testtypes", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.TestType { return &v1.TestType{} }, - func() *v1.TestTypeList { return &v1.TestTypeList{} }), + func() *existinginterfacesv1.TestType { return &existinginterfacesv1.TestType{} }, + func() *existinginterfacesv1.TestTypeList { return &existinginterfacesv1.TestTypeList{} }, + ), } } diff --git a/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/clustertesttype.go b/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/clustertesttype.go index 098d780a8..ccdfbe8a5 100644 --- a/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/clustertesttype.go +++ b/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/clustertesttype.go @@ -14,19 +14,19 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 import ( - "context" + context "context" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" gentype "k8s.io/client-go/gentype" - v1 "acme.corp/pkg/apis/secondexample/v1" + secondexamplev1 "acme.corp/pkg/apis/secondexample/v1" scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) @@ -38,33 +38,34 @@ type ClusterTestTypesGetter interface { // ClusterTestTypeInterface has methods to work with ClusterTestType resources. type ClusterTestTypeInterface interface { - Create(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.CreateOptions) (*v1.ClusterTestType, error) - Update(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.UpdateOptions) (*v1.ClusterTestType, error) + Create(ctx context.Context, clusterTestType *secondexamplev1.ClusterTestType, opts metav1.CreateOptions) (*secondexamplev1.ClusterTestType, error) + Update(ctx context.Context, clusterTestType *secondexamplev1.ClusterTestType, opts metav1.UpdateOptions) (*secondexamplev1.ClusterTestType, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.UpdateOptions) (*v1.ClusterTestType, error) + UpdateStatus(ctx context.Context, clusterTestType *secondexamplev1.ClusterTestType, opts metav1.UpdateOptions) (*secondexamplev1.ClusterTestType, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterTestType, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterTestTypeList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*secondexamplev1.ClusterTestType, error) + List(ctx context.Context, opts metav1.ListOptions) (*secondexamplev1.ClusterTestTypeList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterTestType, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *secondexamplev1.ClusterTestType, err error) ClusterTestTypeExpansion } // clusterTestTypes implements ClusterTestTypeInterface type clusterTestTypes struct { - *gentype.ClientWithList[*v1.ClusterTestType, *v1.ClusterTestTypeList] + *gentype.ClientWithList[*secondexamplev1.ClusterTestType, *secondexamplev1.ClusterTestTypeList] } // newClusterTestTypes returns a ClusterTestTypes func newClusterTestTypes(c *SecondexampleV1Client) *clusterTestTypes { return &clusterTestTypes{ - gentype.NewClientWithList[*v1.ClusterTestType, *v1.ClusterTestTypeList]( + gentype.NewClientWithList[*secondexamplev1.ClusterTestType, *secondexamplev1.ClusterTestTypeList]( "clustertesttypes", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.ClusterTestType { return &v1.ClusterTestType{} }, - func() *v1.ClusterTestTypeList { return &v1.ClusterTestTypeList{} }), + func() *secondexamplev1.ClusterTestType { return &secondexamplev1.ClusterTestType{} }, + func() *secondexamplev1.ClusterTestTypeList { return &secondexamplev1.ClusterTestTypeList{} }, + ), } } diff --git a/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/doc.go b/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/doc.go index b2e49efd1..8f148c5b8 100644 --- a/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/doc.go +++ b/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. // This package has the automatically generated typed clients. package v1 diff --git a/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/fake/doc.go b/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/fake/doc.go index 43d633d75..f0986a890 100644 --- a/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/fake/doc.go +++ b/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. // Package fake has the automatically generated clients. package fake diff --git a/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/fake/fake_clustertesttype.go b/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/fake/fake_clustertesttype.go index 54cb4cbd2..ddb1411e8 100644 --- a/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/fake/fake_clustertesttype.go +++ b/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/fake/fake_clustertesttype.go @@ -14,126 +14,38 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake import ( - "context" - - metav1 "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" + gentype "k8s.io/client-go/gentype" v1 "acme.corp/pkg/apis/secondexample/v1" + secondexamplev1 "acme.corp/pkg/generated/clientset/versioned/typed/secondexample/v1" ) -// FakeClusterTestTypes implements ClusterTestTypeInterface -type FakeClusterTestTypes struct { +// fakeClusterTestTypes implements ClusterTestTypeInterface +type fakeClusterTestTypes struct { + *gentype.FakeClientWithList[*v1.ClusterTestType, *v1.ClusterTestTypeList] Fake *FakeSecondexampleV1 } -var clustertesttypesResource = v1.SchemeGroupVersion.WithResource("clustertesttypes") - -var clustertesttypesKind = v1.SchemeGroupVersion.WithKind("ClusterTestType") - -// Get takes name of the clusterTestType, and returns the corresponding clusterTestType object, and an error if there is any. -func (c *FakeClusterTestTypes) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(clustertesttypesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterTestType), err -} - -// List takes label and field selectors, and returns the list of ClusterTestTypes that match those selectors. -func (c *FakeClusterTestTypes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterTestTypeList, err error) { - emptyResult := &v1.ClusterTestTypeList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(clustertesttypesResource, clustertesttypesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.ClusterTestTypeList{ListMeta: obj.(*v1.ClusterTestTypeList).ListMeta} - for _, item := range obj.(*v1.ClusterTestTypeList).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 clusterTestTypes. -func (c *FakeClusterTestTypes) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(clustertesttypesResource, opts)) -} - -// Create takes the representation of a clusterTestType and creates it. Returns the server's representation of the clusterTestType, and an error, if there is any. -func (c *FakeClusterTestTypes) Create(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.CreateOptions) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(clustertesttypesResource, clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterTestType), err -} - -// Update takes the representation of a clusterTestType and updates it. Returns the server's representation of the clusterTestType, and an error, if there is any. -func (c *FakeClusterTestTypes) Update(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.UpdateOptions) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(clustertesttypesResource, clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterTestType), 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 *FakeClusterTestTypes) UpdateStatus(ctx context.Context, clusterTestType *v1.ClusterTestType, opts metav1.UpdateOptions) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clustertesttypesResource, "status", clusterTestType, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterTestType), err -} - -// Delete takes name of the clusterTestType and deletes it. Returns an error if one occurs. -func (c *FakeClusterTestTypes) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(clustertesttypesResource, name, opts), &v1.ClusterTestType{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeClusterTestTypes) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(clustertesttypesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.ClusterTestTypeList{}) - return err -} - -// Patch applies the patch and returns the patched clusterTestType. -func (c *FakeClusterTestTypes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterTestType, err error) { - emptyResult := &v1.ClusterTestType{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(clustertesttypesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeClusterTestTypes(fake *FakeSecondexampleV1) secondexamplev1.ClusterTestTypeInterface { + return &fakeClusterTestTypes{ + gentype.NewFakeClientWithList[*v1.ClusterTestType, *v1.ClusterTestTypeList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("clustertesttypes"), + v1.SchemeGroupVersion.WithKind("ClusterTestType"), + func() *v1.ClusterTestType { return &v1.ClusterTestType{} }, + func() *v1.ClusterTestTypeList { return &v1.ClusterTestTypeList{} }, + func(dst, src *v1.ClusterTestTypeList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ClusterTestTypeList) []*v1.ClusterTestType { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.ClusterTestTypeList, items []*v1.ClusterTestType) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.ClusterTestType), err } diff --git a/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/fake/fake_secondexample_client.go b/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/fake/fake_secondexample_client.go index c9ebc7ed0..fa287642c 100644 --- a/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/fake/fake_secondexample_client.go +++ b/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/fake/fake_secondexample_client.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake @@ -30,11 +30,11 @@ type FakeSecondexampleV1 struct { } func (c *FakeSecondexampleV1) ClusterTestTypes() v1.ClusterTestTypeInterface { - return &FakeClusterTestTypes{c} + return newFakeClusterTestTypes(c) } func (c *FakeSecondexampleV1) TestTypes(namespace string) v1.TestTypeInterface { - return &FakeTestTypes{c, namespace} + return newFakeTestTypes(c, namespace) } // RESTClient returns a RESTClient that is used to communicate diff --git a/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/fake/fake_testtype.go b/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/fake/fake_testtype.go index 7569587f5..b5ecbb072 100644 --- a/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/fake/fake_testtype.go +++ b/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/fake/fake_testtype.go @@ -14,122 +14,36 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package fake import ( - "context" - - metav1 "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" + gentype "k8s.io/client-go/gentype" v1 "acme.corp/pkg/apis/secondexample/v1" + secondexamplev1 "acme.corp/pkg/generated/clientset/versioned/typed/secondexample/v1" ) -// FakeTestTypes implements TestTypeInterface -type FakeTestTypes struct { +// fakeTestTypes implements TestTypeInterface +type fakeTestTypes struct { + *gentype.FakeClientWithList[*v1.TestType, *v1.TestTypeList] Fake *FakeSecondexampleV1 - ns string -} - -var testtypesResource = v1.SchemeGroupVersion.WithResource("testtypes") - -var testtypesKind = v1.SchemeGroupVersion.WithKind("TestType") - -// Get takes name of the testType, and returns the corresponding testType object, and an error if there is any. -func (c *FakeTestTypes) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.TestType, err error) { - emptyResult := &v1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(testtypesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TestType), err -} - -// List takes label and field selectors, and returns the list of TestTypes that match those selectors. -func (c *FakeTestTypes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.TestTypeList, err error) { - emptyResult := &v1.TestTypeList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(testtypesResource, testtypesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.TestTypeList{ListMeta: obj.(*v1.TestTypeList).ListMeta} - for _, item := range obj.(*v1.TestTypeList).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 testTypes. -func (c *FakeTestTypes) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(testtypesResource, c.ns, opts)) - -} - -// Create takes the representation of a testType and creates it. Returns the server's representation of the testType, and an error, if there is any. -func (c *FakeTestTypes) Create(ctx context.Context, testType *v1.TestType, opts metav1.CreateOptions) (result *v1.TestType, err error) { - emptyResult := &v1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(testtypesResource, c.ns, testType, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TestType), err -} - -// Update takes the representation of a testType and updates it. Returns the server's representation of the testType, and an error, if there is any. -func (c *FakeTestTypes) Update(ctx context.Context, testType *v1.TestType, opts metav1.UpdateOptions) (result *v1.TestType, err error) { - emptyResult := &v1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(testtypesResource, c.ns, testType, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TestType), err -} - -// Delete takes name of the testType and deletes it. Returns an error if one occurs. -func (c *FakeTestTypes) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(testtypesResource, c.ns, name, opts), &v1.TestType{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeTestTypes) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(testtypesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.TestTypeList{}) - return err -} - -// Patch applies the patch and returns the patched testType. -func (c *FakeTestTypes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.TestType, err error) { - emptyResult := &v1.TestType{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(testtypesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeTestTypes(fake *FakeSecondexampleV1, namespace string) secondexamplev1.TestTypeInterface { + return &fakeTestTypes{ + gentype.NewFakeClientWithList[*v1.TestType, *v1.TestTypeList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("testtypes"), + v1.SchemeGroupVersion.WithKind("TestType"), + func() *v1.TestType { return &v1.TestType{} }, + func() *v1.TestTypeList { return &v1.TestTypeList{} }, + func(dst, src *v1.TestTypeList) { dst.ListMeta = src.ListMeta }, + func(list *v1.TestTypeList) []*v1.TestType { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.TestTypeList, items []*v1.TestType) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.TestType), err } diff --git a/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/generated_expansion.go b/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/generated_expansion.go index 4233cb0ef..bb3aba146 100644 --- a/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/generated_expansion.go +++ b/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/generated_expansion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 diff --git a/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/secondexample_client.go b/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/secondexample_client.go index 4b0a9b0ac..f3bab9db4 100644 --- a/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/secondexample_client.go +++ b/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/secondexample_client.go @@ -14,17 +14,17 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 import ( - "net/http" + http "net/http" rest "k8s.io/client-go/rest" - v1 "acme.corp/pkg/apis/secondexample/v1" - "acme.corp/pkg/generated/clientset/versioned/scheme" + secondexamplev1 "acme.corp/pkg/apis/secondexample/v1" + scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) type SecondexampleV1Interface interface { @@ -91,10 +91,10 @@ func New(c rest.Interface) *SecondexampleV1Client { } func setConfigDefaults(config *rest.Config) error { - gv := v1.SchemeGroupVersion + gv := secondexamplev1.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/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/testtype.go b/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/testtype.go index d343fa3ea..426dac0d9 100644 --- a/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/testtype.go +++ b/examples/pkg/generated/clientset/versioned/typed/secondexample/v1/testtype.go @@ -14,19 +14,19 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by client-gen-v0.31. DO NOT EDIT. +// Code generated by client-gen-v0.32. DO NOT EDIT. package v1 import ( - "context" + context "context" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" gentype "k8s.io/client-go/gentype" - v1 "acme.corp/pkg/apis/secondexample/v1" + secondexamplev1 "acme.corp/pkg/apis/secondexample/v1" scheme "acme.corp/pkg/generated/clientset/versioned/scheme" ) @@ -38,31 +38,32 @@ type TestTypesGetter interface { // TestTypeInterface has methods to work with TestType resources. type TestTypeInterface interface { - Create(ctx context.Context, testType *v1.TestType, opts metav1.CreateOptions) (*v1.TestType, error) - Update(ctx context.Context, testType *v1.TestType, opts metav1.UpdateOptions) (*v1.TestType, error) + Create(ctx context.Context, testType *secondexamplev1.TestType, opts metav1.CreateOptions) (*secondexamplev1.TestType, error) + Update(ctx context.Context, testType *secondexamplev1.TestType, opts metav1.UpdateOptions) (*secondexamplev1.TestType, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.TestType, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.TestTypeList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*secondexamplev1.TestType, error) + List(ctx context.Context, opts metav1.ListOptions) (*secondexamplev1.TestTypeList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.TestType, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *secondexamplev1.TestType, err error) TestTypeExpansion } // testTypes implements TestTypeInterface type testTypes struct { - *gentype.ClientWithList[*v1.TestType, *v1.TestTypeList] + *gentype.ClientWithList[*secondexamplev1.TestType, *secondexamplev1.TestTypeList] } // newTestTypes returns a TestTypes func newTestTypes(c *SecondexampleV1Client, namespace string) *testTypes { return &testTypes{ - gentype.NewClientWithList[*v1.TestType, *v1.TestTypeList]( + gentype.NewClientWithList[*secondexamplev1.TestType, *secondexamplev1.TestTypeList]( "testtypes", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.TestType { return &v1.TestType{} }, - func() *v1.TestTypeList { return &v1.TestTypeList{} }), + func() *secondexamplev1.TestType { return &secondexamplev1.TestType{} }, + func() *secondexamplev1.TestTypeList { return &secondexamplev1.TestTypeList{} }, + ), } } diff --git a/examples/pkg/generated/informers/externalversions/example/interface.go b/examples/pkg/generated/informers/externalversions/example/interface.go index 2be3f99a5..a65045266 100644 --- a/examples/pkg/generated/informers/externalversions/example/interface.go +++ b/examples/pkg/generated/informers/externalversions/example/interface.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package example diff --git a/examples/pkg/generated/informers/externalversions/example/v1/clustertesttype.go b/examples/pkg/generated/informers/externalversions/example/v1/clustertesttype.go index 42689a431..a2eaf8f23 100644 --- a/examples/pkg/generated/informers/externalversions/example/v1/clustertesttype.go +++ b/examples/pkg/generated/informers/externalversions/example/v1/clustertesttype.go @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1 import ( - "context" + context "context" time "time" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -27,17 +27,17 @@ import ( watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" - examplev1 "acme.corp/pkg/apis/example/v1" + apisexamplev1 "acme.corp/pkg/apis/example/v1" versioned "acme.corp/pkg/generated/clientset/versioned" internalinterfaces "acme.corp/pkg/generated/informers/externalversions/internalinterfaces" - v1 "acme.corp/pkg/generated/listers/example/v1" + examplev1 "acme.corp/pkg/generated/listers/example/v1" ) // ClusterTestTypeInformer provides access to a shared informer and lister for // ClusterTestTypes. type ClusterTestTypeInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.ClusterTestTypeLister + Lister() examplev1.ClusterTestTypeLister } type clusterTestTypeInformer struct { @@ -71,7 +71,7 @@ func NewFilteredClusterTestTypeInformer(client versioned.Interface, resyncPeriod return client.ExampleV1().ClusterTestTypes().Watch(context.TODO(), options) }, }, - &examplev1.ClusterTestType{}, + &apisexamplev1.ClusterTestType{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *clusterTestTypeInformer) defaultInformer(client versioned.Interface, re } func (f *clusterTestTypeInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&examplev1.ClusterTestType{}, f.defaultInformer) + return f.factory.InformerFor(&apisexamplev1.ClusterTestType{}, f.defaultInformer) } -func (f *clusterTestTypeInformer) Lister() v1.ClusterTestTypeLister { - return v1.NewClusterTestTypeLister(f.Informer().GetIndexer()) +func (f *clusterTestTypeInformer) Lister() examplev1.ClusterTestTypeLister { + return examplev1.NewClusterTestTypeLister(f.Informer().GetIndexer()) } diff --git a/examples/pkg/generated/informers/externalversions/example/v1/interface.go b/examples/pkg/generated/informers/externalversions/example/v1/interface.go index 066225ba4..4ab82bea4 100644 --- a/examples/pkg/generated/informers/externalversions/example/v1/interface.go +++ b/examples/pkg/generated/informers/externalversions/example/v1/interface.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1 diff --git a/examples/pkg/generated/informers/externalversions/example/v1/testtype.go b/examples/pkg/generated/informers/externalversions/example/v1/testtype.go index f5aaf6d95..55a1af242 100644 --- a/examples/pkg/generated/informers/externalversions/example/v1/testtype.go +++ b/examples/pkg/generated/informers/externalversions/example/v1/testtype.go @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1 import ( - "context" + context "context" time "time" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -27,17 +27,17 @@ import ( watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" - examplev1 "acme.corp/pkg/apis/example/v1" + apisexamplev1 "acme.corp/pkg/apis/example/v1" versioned "acme.corp/pkg/generated/clientset/versioned" internalinterfaces "acme.corp/pkg/generated/informers/externalversions/internalinterfaces" - v1 "acme.corp/pkg/generated/listers/example/v1" + examplev1 "acme.corp/pkg/generated/listers/example/v1" ) // TestTypeInformer provides access to a shared informer and lister for // TestTypes. type TestTypeInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.TestTypeLister + Lister() examplev1.TestTypeLister } type testTypeInformer struct { @@ -72,7 +72,7 @@ func NewFilteredTestTypeInformer(client versioned.Interface, namespace string, r return client.ExampleV1().TestTypes(namespace).Watch(context.TODO(), options) }, }, - &examplev1.TestType{}, + &apisexamplev1.TestType{}, resyncPeriod, indexers, ) @@ -83,9 +83,9 @@ func (f *testTypeInformer) defaultInformer(client versioned.Interface, resyncPer } func (f *testTypeInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&examplev1.TestType{}, f.defaultInformer) + return f.factory.InformerFor(&apisexamplev1.TestType{}, f.defaultInformer) } -func (f *testTypeInformer) Lister() v1.TestTypeLister { - return v1.NewTestTypeLister(f.Informer().GetIndexer()) +func (f *testTypeInformer) Lister() examplev1.TestTypeLister { + return examplev1.NewTestTypeLister(f.Informer().GetIndexer()) } diff --git a/examples/pkg/generated/informers/externalversions/example/v1alpha1/clustertesttype.go b/examples/pkg/generated/informers/externalversions/example/v1alpha1/clustertesttype.go index 9f9b47fd2..1edd07d44 100644 --- a/examples/pkg/generated/informers/externalversions/example/v1alpha1/clustertesttype.go +++ b/examples/pkg/generated/informers/externalversions/example/v1alpha1/clustertesttype.go @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1alpha1 import ( - "context" + context "context" time "time" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -27,17 +27,17 @@ import ( watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" - examplev1alpha1 "acme.corp/pkg/apis/example/v1alpha1" + apisexamplev1alpha1 "acme.corp/pkg/apis/example/v1alpha1" versioned "acme.corp/pkg/generated/clientset/versioned" internalinterfaces "acme.corp/pkg/generated/informers/externalversions/internalinterfaces" - v1alpha1 "acme.corp/pkg/generated/listers/example/v1alpha1" + examplev1alpha1 "acme.corp/pkg/generated/listers/example/v1alpha1" ) // ClusterTestTypeInformer provides access to a shared informer and lister for // ClusterTestTypes. type ClusterTestTypeInformer interface { Informer() cache.SharedIndexInformer - Lister() v1alpha1.ClusterTestTypeLister + Lister() examplev1alpha1.ClusterTestTypeLister } type clusterTestTypeInformer struct { @@ -71,7 +71,7 @@ func NewFilteredClusterTestTypeInformer(client versioned.Interface, resyncPeriod return client.ExampleV1alpha1().ClusterTestTypes().Watch(context.TODO(), options) }, }, - &examplev1alpha1.ClusterTestType{}, + &apisexamplev1alpha1.ClusterTestType{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *clusterTestTypeInformer) defaultInformer(client versioned.Interface, re } func (f *clusterTestTypeInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&examplev1alpha1.ClusterTestType{}, f.defaultInformer) + return f.factory.InformerFor(&apisexamplev1alpha1.ClusterTestType{}, f.defaultInformer) } -func (f *clusterTestTypeInformer) Lister() v1alpha1.ClusterTestTypeLister { - return v1alpha1.NewClusterTestTypeLister(f.Informer().GetIndexer()) +func (f *clusterTestTypeInformer) Lister() examplev1alpha1.ClusterTestTypeLister { + return examplev1alpha1.NewClusterTestTypeLister(f.Informer().GetIndexer()) } diff --git a/examples/pkg/generated/informers/externalversions/example/v1alpha1/interface.go b/examples/pkg/generated/informers/externalversions/example/v1alpha1/interface.go index 976f09e79..6f5fa9e4f 100644 --- a/examples/pkg/generated/informers/externalversions/example/v1alpha1/interface.go +++ b/examples/pkg/generated/informers/externalversions/example/v1alpha1/interface.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1alpha1 diff --git a/examples/pkg/generated/informers/externalversions/example/v1alpha1/testtype.go b/examples/pkg/generated/informers/externalversions/example/v1alpha1/testtype.go index adf49636c..99b8a9e67 100644 --- a/examples/pkg/generated/informers/externalversions/example/v1alpha1/testtype.go +++ b/examples/pkg/generated/informers/externalversions/example/v1alpha1/testtype.go @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1alpha1 import ( - "context" + context "context" time "time" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -27,17 +27,17 @@ import ( watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" - examplev1alpha1 "acme.corp/pkg/apis/example/v1alpha1" + apisexamplev1alpha1 "acme.corp/pkg/apis/example/v1alpha1" versioned "acme.corp/pkg/generated/clientset/versioned" internalinterfaces "acme.corp/pkg/generated/informers/externalversions/internalinterfaces" - v1alpha1 "acme.corp/pkg/generated/listers/example/v1alpha1" + examplev1alpha1 "acme.corp/pkg/generated/listers/example/v1alpha1" ) // TestTypeInformer provides access to a shared informer and lister for // TestTypes. type TestTypeInformer interface { Informer() cache.SharedIndexInformer - Lister() v1alpha1.TestTypeLister + Lister() examplev1alpha1.TestTypeLister } type testTypeInformer struct { @@ -72,7 +72,7 @@ func NewFilteredTestTypeInformer(client versioned.Interface, namespace string, r return client.ExampleV1alpha1().TestTypes(namespace).Watch(context.TODO(), options) }, }, - &examplev1alpha1.TestType{}, + &apisexamplev1alpha1.TestType{}, resyncPeriod, indexers, ) @@ -83,9 +83,9 @@ func (f *testTypeInformer) defaultInformer(client versioned.Interface, resyncPer } func (f *testTypeInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&examplev1alpha1.TestType{}, f.defaultInformer) + return f.factory.InformerFor(&apisexamplev1alpha1.TestType{}, f.defaultInformer) } -func (f *testTypeInformer) Lister() v1alpha1.TestTypeLister { - return v1alpha1.NewTestTypeLister(f.Informer().GetIndexer()) +func (f *testTypeInformer) Lister() examplev1alpha1.TestTypeLister { + return examplev1alpha1.NewTestTypeLister(f.Informer().GetIndexer()) } diff --git a/examples/pkg/generated/informers/externalversions/example/v1beta1/clustertesttype.go b/examples/pkg/generated/informers/externalversions/example/v1beta1/clustertesttype.go index 61ed3ecfa..8912a45f2 100644 --- a/examples/pkg/generated/informers/externalversions/example/v1beta1/clustertesttype.go +++ b/examples/pkg/generated/informers/externalversions/example/v1beta1/clustertesttype.go @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1beta1 import ( - "context" + context "context" time "time" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -27,17 +27,17 @@ import ( watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" - examplev1beta1 "acme.corp/pkg/apis/example/v1beta1" + apisexamplev1beta1 "acme.corp/pkg/apis/example/v1beta1" versioned "acme.corp/pkg/generated/clientset/versioned" internalinterfaces "acme.corp/pkg/generated/informers/externalversions/internalinterfaces" - v1beta1 "acme.corp/pkg/generated/listers/example/v1beta1" + examplev1beta1 "acme.corp/pkg/generated/listers/example/v1beta1" ) // ClusterTestTypeInformer provides access to a shared informer and lister for // ClusterTestTypes. type ClusterTestTypeInformer interface { Informer() cache.SharedIndexInformer - Lister() v1beta1.ClusterTestTypeLister + Lister() examplev1beta1.ClusterTestTypeLister } type clusterTestTypeInformer struct { @@ -71,7 +71,7 @@ func NewFilteredClusterTestTypeInformer(client versioned.Interface, resyncPeriod return client.ExampleV1beta1().ClusterTestTypes().Watch(context.TODO(), options) }, }, - &examplev1beta1.ClusterTestType{}, + &apisexamplev1beta1.ClusterTestType{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *clusterTestTypeInformer) defaultInformer(client versioned.Interface, re } func (f *clusterTestTypeInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&examplev1beta1.ClusterTestType{}, f.defaultInformer) + return f.factory.InformerFor(&apisexamplev1beta1.ClusterTestType{}, f.defaultInformer) } -func (f *clusterTestTypeInformer) Lister() v1beta1.ClusterTestTypeLister { - return v1beta1.NewClusterTestTypeLister(f.Informer().GetIndexer()) +func (f *clusterTestTypeInformer) Lister() examplev1beta1.ClusterTestTypeLister { + return examplev1beta1.NewClusterTestTypeLister(f.Informer().GetIndexer()) } diff --git a/examples/pkg/generated/informers/externalversions/example/v1beta1/interface.go b/examples/pkg/generated/informers/externalversions/example/v1beta1/interface.go index 4620985b5..a0ec3c8c0 100644 --- a/examples/pkg/generated/informers/externalversions/example/v1beta1/interface.go +++ b/examples/pkg/generated/informers/externalversions/example/v1beta1/interface.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1beta1 diff --git a/examples/pkg/generated/informers/externalversions/example/v1beta1/testtype.go b/examples/pkg/generated/informers/externalversions/example/v1beta1/testtype.go index 1af6b4a5a..0f90538b9 100644 --- a/examples/pkg/generated/informers/externalversions/example/v1beta1/testtype.go +++ b/examples/pkg/generated/informers/externalversions/example/v1beta1/testtype.go @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1beta1 import ( - "context" + context "context" time "time" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -27,17 +27,17 @@ import ( watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" - examplev1beta1 "acme.corp/pkg/apis/example/v1beta1" + apisexamplev1beta1 "acme.corp/pkg/apis/example/v1beta1" versioned "acme.corp/pkg/generated/clientset/versioned" internalinterfaces "acme.corp/pkg/generated/informers/externalversions/internalinterfaces" - v1beta1 "acme.corp/pkg/generated/listers/example/v1beta1" + examplev1beta1 "acme.corp/pkg/generated/listers/example/v1beta1" ) // TestTypeInformer provides access to a shared informer and lister for // TestTypes. type TestTypeInformer interface { Informer() cache.SharedIndexInformer - Lister() v1beta1.TestTypeLister + Lister() examplev1beta1.TestTypeLister } type testTypeInformer struct { @@ -72,7 +72,7 @@ func NewFilteredTestTypeInformer(client versioned.Interface, namespace string, r return client.ExampleV1beta1().TestTypes(namespace).Watch(context.TODO(), options) }, }, - &examplev1beta1.TestType{}, + &apisexamplev1beta1.TestType{}, resyncPeriod, indexers, ) @@ -83,9 +83,9 @@ func (f *testTypeInformer) defaultInformer(client versioned.Interface, resyncPer } func (f *testTypeInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&examplev1beta1.TestType{}, f.defaultInformer) + return f.factory.InformerFor(&apisexamplev1beta1.TestType{}, f.defaultInformer) } -func (f *testTypeInformer) Lister() v1beta1.TestTypeLister { - return v1beta1.NewTestTypeLister(f.Informer().GetIndexer()) +func (f *testTypeInformer) Lister() examplev1beta1.TestTypeLister { + return examplev1beta1.NewTestTypeLister(f.Informer().GetIndexer()) } diff --git a/examples/pkg/generated/informers/externalversions/example/v2/clustertesttype.go b/examples/pkg/generated/informers/externalversions/example/v2/clustertesttype.go index 6538a040e..f32aca9af 100644 --- a/examples/pkg/generated/informers/externalversions/example/v2/clustertesttype.go +++ b/examples/pkg/generated/informers/externalversions/example/v2/clustertesttype.go @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v2 import ( - "context" + context "context" time "time" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -27,17 +27,17 @@ import ( watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" - examplev2 "acme.corp/pkg/apis/example/v2" + apisexamplev2 "acme.corp/pkg/apis/example/v2" versioned "acme.corp/pkg/generated/clientset/versioned" internalinterfaces "acme.corp/pkg/generated/informers/externalversions/internalinterfaces" - v2 "acme.corp/pkg/generated/listers/example/v2" + examplev2 "acme.corp/pkg/generated/listers/example/v2" ) // ClusterTestTypeInformer provides access to a shared informer and lister for // ClusterTestTypes. type ClusterTestTypeInformer interface { Informer() cache.SharedIndexInformer - Lister() v2.ClusterTestTypeLister + Lister() examplev2.ClusterTestTypeLister } type clusterTestTypeInformer struct { @@ -71,7 +71,7 @@ func NewFilteredClusterTestTypeInformer(client versioned.Interface, resyncPeriod return client.ExampleV2().ClusterTestTypes().Watch(context.TODO(), options) }, }, - &examplev2.ClusterTestType{}, + &apisexamplev2.ClusterTestType{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *clusterTestTypeInformer) defaultInformer(client versioned.Interface, re } func (f *clusterTestTypeInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&examplev2.ClusterTestType{}, f.defaultInformer) + return f.factory.InformerFor(&apisexamplev2.ClusterTestType{}, f.defaultInformer) } -func (f *clusterTestTypeInformer) Lister() v2.ClusterTestTypeLister { - return v2.NewClusterTestTypeLister(f.Informer().GetIndexer()) +func (f *clusterTestTypeInformer) Lister() examplev2.ClusterTestTypeLister { + return examplev2.NewClusterTestTypeLister(f.Informer().GetIndexer()) } diff --git a/examples/pkg/generated/informers/externalversions/example/v2/interface.go b/examples/pkg/generated/informers/externalversions/example/v2/interface.go index 3f37e19a2..971414889 100644 --- a/examples/pkg/generated/informers/externalversions/example/v2/interface.go +++ b/examples/pkg/generated/informers/externalversions/example/v2/interface.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v2 diff --git a/examples/pkg/generated/informers/externalversions/example/v2/testtype.go b/examples/pkg/generated/informers/externalversions/example/v2/testtype.go index 217f95beb..0295c65fa 100644 --- a/examples/pkg/generated/informers/externalversions/example/v2/testtype.go +++ b/examples/pkg/generated/informers/externalversions/example/v2/testtype.go @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v2 import ( - "context" + context "context" time "time" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -27,17 +27,17 @@ import ( watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" - examplev2 "acme.corp/pkg/apis/example/v2" + apisexamplev2 "acme.corp/pkg/apis/example/v2" versioned "acme.corp/pkg/generated/clientset/versioned" internalinterfaces "acme.corp/pkg/generated/informers/externalversions/internalinterfaces" - v2 "acme.corp/pkg/generated/listers/example/v2" + examplev2 "acme.corp/pkg/generated/listers/example/v2" ) // TestTypeInformer provides access to a shared informer and lister for // TestTypes. type TestTypeInformer interface { Informer() cache.SharedIndexInformer - Lister() v2.TestTypeLister + Lister() examplev2.TestTypeLister } type testTypeInformer struct { @@ -72,7 +72,7 @@ func NewFilteredTestTypeInformer(client versioned.Interface, namespace string, r return client.ExampleV2().TestTypes(namespace).Watch(context.TODO(), options) }, }, - &examplev2.TestType{}, + &apisexamplev2.TestType{}, resyncPeriod, indexers, ) @@ -83,9 +83,9 @@ func (f *testTypeInformer) defaultInformer(client versioned.Interface, resyncPer } func (f *testTypeInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&examplev2.TestType{}, f.defaultInformer) + return f.factory.InformerFor(&apisexamplev2.TestType{}, f.defaultInformer) } -func (f *testTypeInformer) Lister() v2.TestTypeLister { - return v2.NewTestTypeLister(f.Informer().GetIndexer()) +func (f *testTypeInformer) Lister() examplev2.TestTypeLister { + return examplev2.NewTestTypeLister(f.Informer().GetIndexer()) } diff --git a/examples/pkg/generated/informers/externalversions/example3/interface.go b/examples/pkg/generated/informers/externalversions/example3/interface.go index 4ccfa568f..888f6b55d 100644 --- a/examples/pkg/generated/informers/externalversions/example3/interface.go +++ b/examples/pkg/generated/informers/externalversions/example3/interface.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package example3 diff --git a/examples/pkg/generated/informers/externalversions/example3/v1/clustertesttype.go b/examples/pkg/generated/informers/externalversions/example3/v1/clustertesttype.go index 284219e3f..75010f173 100644 --- a/examples/pkg/generated/informers/externalversions/example3/v1/clustertesttype.go +++ b/examples/pkg/generated/informers/externalversions/example3/v1/clustertesttype.go @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1 import ( - "context" + context "context" time "time" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -27,17 +27,17 @@ import ( watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" - example3v1 "acme.corp/pkg/apis/example3/v1" + apisexample3v1 "acme.corp/pkg/apis/example3/v1" versioned "acme.corp/pkg/generated/clientset/versioned" internalinterfaces "acme.corp/pkg/generated/informers/externalversions/internalinterfaces" - v1 "acme.corp/pkg/generated/listers/example3/v1" + example3v1 "acme.corp/pkg/generated/listers/example3/v1" ) // ClusterTestTypeInformer provides access to a shared informer and lister for // ClusterTestTypes. type ClusterTestTypeInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.ClusterTestTypeLister + Lister() example3v1.ClusterTestTypeLister } type clusterTestTypeInformer struct { @@ -71,7 +71,7 @@ func NewFilteredClusterTestTypeInformer(client versioned.Interface, resyncPeriod return client.Example3V1().ClusterTestTypes().Watch(context.TODO(), options) }, }, - &example3v1.ClusterTestType{}, + &apisexample3v1.ClusterTestType{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *clusterTestTypeInformer) defaultInformer(client versioned.Interface, re } func (f *clusterTestTypeInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&example3v1.ClusterTestType{}, f.defaultInformer) + return f.factory.InformerFor(&apisexample3v1.ClusterTestType{}, f.defaultInformer) } -func (f *clusterTestTypeInformer) Lister() v1.ClusterTestTypeLister { - return v1.NewClusterTestTypeLister(f.Informer().GetIndexer()) +func (f *clusterTestTypeInformer) Lister() example3v1.ClusterTestTypeLister { + return example3v1.NewClusterTestTypeLister(f.Informer().GetIndexer()) } diff --git a/examples/pkg/generated/informers/externalversions/example3/v1/interface.go b/examples/pkg/generated/informers/externalversions/example3/v1/interface.go index 066225ba4..4ab82bea4 100644 --- a/examples/pkg/generated/informers/externalversions/example3/v1/interface.go +++ b/examples/pkg/generated/informers/externalversions/example3/v1/interface.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1 diff --git a/examples/pkg/generated/informers/externalversions/example3/v1/testtype.go b/examples/pkg/generated/informers/externalversions/example3/v1/testtype.go index e9b5b1aa7..ac72d728f 100644 --- a/examples/pkg/generated/informers/externalversions/example3/v1/testtype.go +++ b/examples/pkg/generated/informers/externalversions/example3/v1/testtype.go @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1 import ( - "context" + context "context" time "time" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -27,17 +27,17 @@ import ( watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" - example3v1 "acme.corp/pkg/apis/example3/v1" + apisexample3v1 "acme.corp/pkg/apis/example3/v1" versioned "acme.corp/pkg/generated/clientset/versioned" internalinterfaces "acme.corp/pkg/generated/informers/externalversions/internalinterfaces" - v1 "acme.corp/pkg/generated/listers/example3/v1" + example3v1 "acme.corp/pkg/generated/listers/example3/v1" ) // TestTypeInformer provides access to a shared informer and lister for // TestTypes. type TestTypeInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.TestTypeLister + Lister() example3v1.TestTypeLister } type testTypeInformer struct { @@ -72,7 +72,7 @@ func NewFilteredTestTypeInformer(client versioned.Interface, namespace string, r return client.Example3V1().TestTypes(namespace).Watch(context.TODO(), options) }, }, - &example3v1.TestType{}, + &apisexample3v1.TestType{}, resyncPeriod, indexers, ) @@ -83,9 +83,9 @@ func (f *testTypeInformer) defaultInformer(client versioned.Interface, resyncPer } func (f *testTypeInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&example3v1.TestType{}, f.defaultInformer) + return f.factory.InformerFor(&apisexample3v1.TestType{}, f.defaultInformer) } -func (f *testTypeInformer) Lister() v1.TestTypeLister { - return v1.NewTestTypeLister(f.Informer().GetIndexer()) +func (f *testTypeInformer) Lister() example3v1.TestTypeLister { + return example3v1.NewTestTypeLister(f.Informer().GetIndexer()) } diff --git a/examples/pkg/generated/informers/externalversions/exampledashed/interface.go b/examples/pkg/generated/informers/externalversions/exampledashed/interface.go index e5277e3f6..9d4070faa 100644 --- a/examples/pkg/generated/informers/externalversions/exampledashed/interface.go +++ b/examples/pkg/generated/informers/externalversions/exampledashed/interface.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package exampledashed diff --git a/examples/pkg/generated/informers/externalversions/exampledashed/v1/clustertesttype.go b/examples/pkg/generated/informers/externalversions/exampledashed/v1/clustertesttype.go index fa987482c..bcfee5eae 100644 --- a/examples/pkg/generated/informers/externalversions/exampledashed/v1/clustertesttype.go +++ b/examples/pkg/generated/informers/externalversions/exampledashed/v1/clustertesttype.go @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1 import ( - "context" + context "context" time "time" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -27,17 +27,17 @@ import ( watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" - exampledashedv1 "acme.corp/pkg/apis/exampledashed/v1" + apisexampledashedv1 "acme.corp/pkg/apis/exampledashed/v1" versioned "acme.corp/pkg/generated/clientset/versioned" internalinterfaces "acme.corp/pkg/generated/informers/externalversions/internalinterfaces" - v1 "acme.corp/pkg/generated/listers/exampledashed/v1" + exampledashedv1 "acme.corp/pkg/generated/listers/exampledashed/v1" ) // ClusterTestTypeInformer provides access to a shared informer and lister for // ClusterTestTypes. type ClusterTestTypeInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.ClusterTestTypeLister + Lister() exampledashedv1.ClusterTestTypeLister } type clusterTestTypeInformer struct { @@ -71,7 +71,7 @@ func NewFilteredClusterTestTypeInformer(client versioned.Interface, resyncPeriod return client.ExampleDashedV1().ClusterTestTypes().Watch(context.TODO(), options) }, }, - &exampledashedv1.ClusterTestType{}, + &apisexampledashedv1.ClusterTestType{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *clusterTestTypeInformer) defaultInformer(client versioned.Interface, re } func (f *clusterTestTypeInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&exampledashedv1.ClusterTestType{}, f.defaultInformer) + return f.factory.InformerFor(&apisexampledashedv1.ClusterTestType{}, f.defaultInformer) } -func (f *clusterTestTypeInformer) Lister() v1.ClusterTestTypeLister { - return v1.NewClusterTestTypeLister(f.Informer().GetIndexer()) +func (f *clusterTestTypeInformer) Lister() exampledashedv1.ClusterTestTypeLister { + return exampledashedv1.NewClusterTestTypeLister(f.Informer().GetIndexer()) } diff --git a/examples/pkg/generated/informers/externalversions/exampledashed/v1/interface.go b/examples/pkg/generated/informers/externalversions/exampledashed/v1/interface.go index 066225ba4..4ab82bea4 100644 --- a/examples/pkg/generated/informers/externalversions/exampledashed/v1/interface.go +++ b/examples/pkg/generated/informers/externalversions/exampledashed/v1/interface.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1 diff --git a/examples/pkg/generated/informers/externalversions/exampledashed/v1/testtype.go b/examples/pkg/generated/informers/externalversions/exampledashed/v1/testtype.go index 6a910df8a..4d80f8b48 100644 --- a/examples/pkg/generated/informers/externalversions/exampledashed/v1/testtype.go +++ b/examples/pkg/generated/informers/externalversions/exampledashed/v1/testtype.go @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1 import ( - "context" + context "context" time "time" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -27,17 +27,17 @@ import ( watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" - exampledashedv1 "acme.corp/pkg/apis/exampledashed/v1" + apisexampledashedv1 "acme.corp/pkg/apis/exampledashed/v1" versioned "acme.corp/pkg/generated/clientset/versioned" internalinterfaces "acme.corp/pkg/generated/informers/externalversions/internalinterfaces" - v1 "acme.corp/pkg/generated/listers/exampledashed/v1" + exampledashedv1 "acme.corp/pkg/generated/listers/exampledashed/v1" ) // TestTypeInformer provides access to a shared informer and lister for // TestTypes. type TestTypeInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.TestTypeLister + Lister() exampledashedv1.TestTypeLister } type testTypeInformer struct { @@ -72,7 +72,7 @@ func NewFilteredTestTypeInformer(client versioned.Interface, namespace string, r return client.ExampleDashedV1().TestTypes(namespace).Watch(context.TODO(), options) }, }, - &exampledashedv1.TestType{}, + &apisexampledashedv1.TestType{}, resyncPeriod, indexers, ) @@ -83,9 +83,9 @@ func (f *testTypeInformer) defaultInformer(client versioned.Interface, resyncPer } func (f *testTypeInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&exampledashedv1.TestType{}, f.defaultInformer) + return f.factory.InformerFor(&apisexampledashedv1.TestType{}, f.defaultInformer) } -func (f *testTypeInformer) Lister() v1.TestTypeLister { - return v1.NewTestTypeLister(f.Informer().GetIndexer()) +func (f *testTypeInformer) Lister() exampledashedv1.TestTypeLister { + return exampledashedv1.NewTestTypeLister(f.Informer().GetIndexer()) } diff --git a/examples/pkg/generated/informers/externalversions/existinginterfaces/interface.go b/examples/pkg/generated/informers/externalversions/existinginterfaces/interface.go index 417441916..3b40e6693 100644 --- a/examples/pkg/generated/informers/externalversions/existinginterfaces/interface.go +++ b/examples/pkg/generated/informers/externalversions/existinginterfaces/interface.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package existinginterfaces diff --git a/examples/pkg/generated/informers/externalversions/existinginterfaces/v1/clustertesttype.go b/examples/pkg/generated/informers/externalversions/existinginterfaces/v1/clustertesttype.go index f2ad5f554..0d3da17e0 100644 --- a/examples/pkg/generated/informers/externalversions/existinginterfaces/v1/clustertesttype.go +++ b/examples/pkg/generated/informers/externalversions/existinginterfaces/v1/clustertesttype.go @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1 import ( - "context" + context "context" time "time" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -27,17 +27,17 @@ import ( watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" - existinginterfacesv1 "acme.corp/pkg/apis/existinginterfaces/v1" + apisexistinginterfacesv1 "acme.corp/pkg/apis/existinginterfaces/v1" versioned "acme.corp/pkg/generated/clientset/versioned" internalinterfaces "acme.corp/pkg/generated/informers/externalversions/internalinterfaces" - v1 "acme.corp/pkg/generated/listers/existinginterfaces/v1" + existinginterfacesv1 "acme.corp/pkg/generated/listers/existinginterfaces/v1" ) // ClusterTestTypeInformer provides access to a shared informer and lister for // ClusterTestTypes. type ClusterTestTypeInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.ClusterTestTypeLister + Lister() existinginterfacesv1.ClusterTestTypeLister } type clusterTestTypeInformer struct { @@ -71,7 +71,7 @@ func NewFilteredClusterTestTypeInformer(client versioned.Interface, resyncPeriod return client.ExistinginterfacesV1().ClusterTestTypes().Watch(context.TODO(), options) }, }, - &existinginterfacesv1.ClusterTestType{}, + &apisexistinginterfacesv1.ClusterTestType{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *clusterTestTypeInformer) defaultInformer(client versioned.Interface, re } func (f *clusterTestTypeInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&existinginterfacesv1.ClusterTestType{}, f.defaultInformer) + return f.factory.InformerFor(&apisexistinginterfacesv1.ClusterTestType{}, f.defaultInformer) } -func (f *clusterTestTypeInformer) Lister() v1.ClusterTestTypeLister { - return v1.NewClusterTestTypeLister(f.Informer().GetIndexer()) +func (f *clusterTestTypeInformer) Lister() existinginterfacesv1.ClusterTestTypeLister { + return existinginterfacesv1.NewClusterTestTypeLister(f.Informer().GetIndexer()) } diff --git a/examples/pkg/generated/informers/externalversions/existinginterfaces/v1/interface.go b/examples/pkg/generated/informers/externalversions/existinginterfaces/v1/interface.go index 066225ba4..4ab82bea4 100644 --- a/examples/pkg/generated/informers/externalversions/existinginterfaces/v1/interface.go +++ b/examples/pkg/generated/informers/externalversions/existinginterfaces/v1/interface.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1 diff --git a/examples/pkg/generated/informers/externalversions/existinginterfaces/v1/testtype.go b/examples/pkg/generated/informers/externalversions/existinginterfaces/v1/testtype.go index b3f448d76..3db89206d 100644 --- a/examples/pkg/generated/informers/externalversions/existinginterfaces/v1/testtype.go +++ b/examples/pkg/generated/informers/externalversions/existinginterfaces/v1/testtype.go @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1 import ( - "context" + context "context" time "time" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -27,17 +27,17 @@ import ( watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" - existinginterfacesv1 "acme.corp/pkg/apis/existinginterfaces/v1" + apisexistinginterfacesv1 "acme.corp/pkg/apis/existinginterfaces/v1" versioned "acme.corp/pkg/generated/clientset/versioned" internalinterfaces "acme.corp/pkg/generated/informers/externalversions/internalinterfaces" - v1 "acme.corp/pkg/generated/listers/existinginterfaces/v1" + existinginterfacesv1 "acme.corp/pkg/generated/listers/existinginterfaces/v1" ) // TestTypeInformer provides access to a shared informer and lister for // TestTypes. type TestTypeInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.TestTypeLister + Lister() existinginterfacesv1.TestTypeLister } type testTypeInformer struct { @@ -72,7 +72,7 @@ func NewFilteredTestTypeInformer(client versioned.Interface, namespace string, r return client.ExistinginterfacesV1().TestTypes(namespace).Watch(context.TODO(), options) }, }, - &existinginterfacesv1.TestType{}, + &apisexistinginterfacesv1.TestType{}, resyncPeriod, indexers, ) @@ -83,9 +83,9 @@ func (f *testTypeInformer) defaultInformer(client versioned.Interface, resyncPer } func (f *testTypeInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&existinginterfacesv1.TestType{}, f.defaultInformer) + return f.factory.InformerFor(&apisexistinginterfacesv1.TestType{}, f.defaultInformer) } -func (f *testTypeInformer) Lister() v1.TestTypeLister { - return v1.NewTestTypeLister(f.Informer().GetIndexer()) +func (f *testTypeInformer) Lister() existinginterfacesv1.TestTypeLister { + return existinginterfacesv1.NewTestTypeLister(f.Informer().GetIndexer()) } diff --git a/examples/pkg/generated/informers/externalversions/factory.go b/examples/pkg/generated/informers/externalversions/factory.go index 28af342a0..f53b7bd88 100644 --- a/examples/pkg/generated/informers/externalversions/factory.go +++ b/examples/pkg/generated/informers/externalversions/factory.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package externalversions diff --git a/examples/pkg/generated/informers/externalversions/generic.go b/examples/pkg/generated/informers/externalversions/generic.go index 792370a65..4e443e1ff 100644 --- a/examples/pkg/generated/informers/externalversions/generic.go +++ b/examples/pkg/generated/informers/externalversions/generic.go @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package externalversions import ( - "fmt" + fmt "fmt" schema "k8s.io/apimachinery/pkg/runtime/schema" cache "k8s.io/client-go/tools/cache" diff --git a/examples/pkg/generated/informers/externalversions/internalinterfaces/factory_interfaces.go b/examples/pkg/generated/informers/externalversions/internalinterfaces/factory_interfaces.go index 392f91887..9a6cf5d11 100644 --- a/examples/pkg/generated/informers/externalversions/internalinterfaces/factory_interfaces.go +++ b/examples/pkg/generated/informers/externalversions/internalinterfaces/factory_interfaces.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package internalinterfaces diff --git a/examples/pkg/generated/informers/externalversions/secondexample/interface.go b/examples/pkg/generated/informers/externalversions/secondexample/interface.go index 888852b92..ad7336600 100644 --- a/examples/pkg/generated/informers/externalversions/secondexample/interface.go +++ b/examples/pkg/generated/informers/externalversions/secondexample/interface.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package secondexample diff --git a/examples/pkg/generated/informers/externalversions/secondexample/v1/clustertesttype.go b/examples/pkg/generated/informers/externalversions/secondexample/v1/clustertesttype.go index bc2d6b573..c7c9301ec 100644 --- a/examples/pkg/generated/informers/externalversions/secondexample/v1/clustertesttype.go +++ b/examples/pkg/generated/informers/externalversions/secondexample/v1/clustertesttype.go @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1 import ( - "context" + context "context" time "time" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -27,17 +27,17 @@ import ( watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" - secondexamplev1 "acme.corp/pkg/apis/secondexample/v1" + apissecondexamplev1 "acme.corp/pkg/apis/secondexample/v1" versioned "acme.corp/pkg/generated/clientset/versioned" internalinterfaces "acme.corp/pkg/generated/informers/externalversions/internalinterfaces" - v1 "acme.corp/pkg/generated/listers/secondexample/v1" + secondexamplev1 "acme.corp/pkg/generated/listers/secondexample/v1" ) // ClusterTestTypeInformer provides access to a shared informer and lister for // ClusterTestTypes. type ClusterTestTypeInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.ClusterTestTypeLister + Lister() secondexamplev1.ClusterTestTypeLister } type clusterTestTypeInformer struct { @@ -71,7 +71,7 @@ func NewFilteredClusterTestTypeInformer(client versioned.Interface, resyncPeriod return client.SecondexampleV1().ClusterTestTypes().Watch(context.TODO(), options) }, }, - &secondexamplev1.ClusterTestType{}, + &apissecondexamplev1.ClusterTestType{}, resyncPeriod, indexers, ) @@ -82,9 +82,9 @@ func (f *clusterTestTypeInformer) defaultInformer(client versioned.Interface, re } func (f *clusterTestTypeInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&secondexamplev1.ClusterTestType{}, f.defaultInformer) + return f.factory.InformerFor(&apissecondexamplev1.ClusterTestType{}, f.defaultInformer) } -func (f *clusterTestTypeInformer) Lister() v1.ClusterTestTypeLister { - return v1.NewClusterTestTypeLister(f.Informer().GetIndexer()) +func (f *clusterTestTypeInformer) Lister() secondexamplev1.ClusterTestTypeLister { + return secondexamplev1.NewClusterTestTypeLister(f.Informer().GetIndexer()) } diff --git a/examples/pkg/generated/informers/externalversions/secondexample/v1/interface.go b/examples/pkg/generated/informers/externalversions/secondexample/v1/interface.go index 066225ba4..4ab82bea4 100644 --- a/examples/pkg/generated/informers/externalversions/secondexample/v1/interface.go +++ b/examples/pkg/generated/informers/externalversions/secondexample/v1/interface.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1 diff --git a/examples/pkg/generated/informers/externalversions/secondexample/v1/testtype.go b/examples/pkg/generated/informers/externalversions/secondexample/v1/testtype.go index 358462eb4..5e88267b1 100644 --- a/examples/pkg/generated/informers/externalversions/secondexample/v1/testtype.go +++ b/examples/pkg/generated/informers/externalversions/secondexample/v1/testtype.go @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by informer-gen-v0.31. DO NOT EDIT. +// Code generated by informer-gen-v0.32. DO NOT EDIT. package v1 import ( - "context" + context "context" time "time" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -27,17 +27,17 @@ import ( watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" - secondexamplev1 "acme.corp/pkg/apis/secondexample/v1" + apissecondexamplev1 "acme.corp/pkg/apis/secondexample/v1" versioned "acme.corp/pkg/generated/clientset/versioned" internalinterfaces "acme.corp/pkg/generated/informers/externalversions/internalinterfaces" - v1 "acme.corp/pkg/generated/listers/secondexample/v1" + secondexamplev1 "acme.corp/pkg/generated/listers/secondexample/v1" ) // TestTypeInformer provides access to a shared informer and lister for // TestTypes. type TestTypeInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.TestTypeLister + Lister() secondexamplev1.TestTypeLister } type testTypeInformer struct { @@ -72,7 +72,7 @@ func NewFilteredTestTypeInformer(client versioned.Interface, namespace string, r return client.SecondexampleV1().TestTypes(namespace).Watch(context.TODO(), options) }, }, - &secondexamplev1.TestType{}, + &apissecondexamplev1.TestType{}, resyncPeriod, indexers, ) @@ -83,9 +83,9 @@ func (f *testTypeInformer) defaultInformer(client versioned.Interface, resyncPer } func (f *testTypeInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&secondexamplev1.TestType{}, f.defaultInformer) + return f.factory.InformerFor(&apissecondexamplev1.TestType{}, f.defaultInformer) } -func (f *testTypeInformer) Lister() v1.TestTypeLister { - return v1.NewTestTypeLister(f.Informer().GetIndexer()) +func (f *testTypeInformer) Lister() secondexamplev1.TestTypeLister { + return secondexamplev1.NewTestTypeLister(f.Informer().GetIndexer()) } diff --git a/examples/pkg/generated/listers/example/v1/clustertesttype.go b/examples/pkg/generated/listers/example/v1/clustertesttype.go index 50afa933d..2f5145fe0 100644 --- a/examples/pkg/generated/listers/example/v1/clustertesttype.go +++ b/examples/pkg/generated/listers/example/v1/clustertesttype.go @@ -14,16 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1 import ( - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" - v1 "acme.corp/pkg/apis/example/v1" + examplev1 "acme.corp/pkg/apis/example/v1" ) // ClusterTestTypeLister helps list ClusterTestTypes. @@ -31,19 +31,19 @@ import ( type ClusterTestTypeLister interface { // List lists all ClusterTestTypes in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.ClusterTestType, err error) + List(selector labels.Selector) (ret []*examplev1.ClusterTestType, err error) // Get retrieves the ClusterTestType from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.ClusterTestType, error) + Get(name string) (*examplev1.ClusterTestType, error) ClusterTestTypeListerExpansion } // clusterTestTypeLister implements the ClusterTestTypeLister interface. type clusterTestTypeLister struct { - listers.ResourceIndexer[*v1.ClusterTestType] + listers.ResourceIndexer[*examplev1.ClusterTestType] } // NewClusterTestTypeLister returns a new ClusterTestTypeLister. func NewClusterTestTypeLister(indexer cache.Indexer) ClusterTestTypeLister { - return &clusterTestTypeLister{listers.New[*v1.ClusterTestType](indexer, v1.Resource("clustertesttype"))} + return &clusterTestTypeLister{listers.New[*examplev1.ClusterTestType](indexer, examplev1.Resource("clustertesttype"))} } diff --git a/examples/pkg/generated/listers/example/v1/expansion_generated.go b/examples/pkg/generated/listers/example/v1/expansion_generated.go index 9f9f33353..6272900fa 100644 --- a/examples/pkg/generated/listers/example/v1/expansion_generated.go +++ b/examples/pkg/generated/listers/example/v1/expansion_generated.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1 diff --git a/examples/pkg/generated/listers/example/v1/testtype.go b/examples/pkg/generated/listers/example/v1/testtype.go index f09bbb155..96be33c8a 100644 --- a/examples/pkg/generated/listers/example/v1/testtype.go +++ b/examples/pkg/generated/listers/example/v1/testtype.go @@ -14,16 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1 import ( - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" - v1 "acme.corp/pkg/apis/example/v1" + examplev1 "acme.corp/pkg/apis/example/v1" ) // TestTypeLister helps list TestTypes. @@ -31,7 +31,7 @@ import ( type TestTypeLister interface { // List lists all TestTypes in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.TestType, err error) + List(selector labels.Selector) (ret []*examplev1.TestType, err error) // TestTypes returns an object that can list and get TestTypes. TestTypes(namespace string) TestTypeNamespaceLister TestTypeListerExpansion @@ -39,17 +39,17 @@ type TestTypeLister interface { // testTypeLister implements the TestTypeLister interface. type testTypeLister struct { - listers.ResourceIndexer[*v1.TestType] + listers.ResourceIndexer[*examplev1.TestType] } // NewTestTypeLister returns a new TestTypeLister. func NewTestTypeLister(indexer cache.Indexer) TestTypeLister { - return &testTypeLister{listers.New[*v1.TestType](indexer, v1.Resource("testtype"))} + return &testTypeLister{listers.New[*examplev1.TestType](indexer, examplev1.Resource("testtype"))} } // TestTypes returns an object that can list and get TestTypes. func (s *testTypeLister) TestTypes(namespace string) TestTypeNamespaceLister { - return testTypeNamespaceLister{listers.NewNamespaced[*v1.TestType](s.ResourceIndexer, namespace)} + return testTypeNamespaceLister{listers.NewNamespaced[*examplev1.TestType](s.ResourceIndexer, namespace)} } // TestTypeNamespaceLister helps list and get TestTypes. @@ -57,15 +57,15 @@ func (s *testTypeLister) TestTypes(namespace string) TestTypeNamespaceLister { type TestTypeNamespaceLister interface { // List lists all TestTypes in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.TestType, err error) + List(selector labels.Selector) (ret []*examplev1.TestType, err error) // Get retrieves the TestType from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.TestType, error) + Get(name string) (*examplev1.TestType, error) TestTypeNamespaceListerExpansion } // testTypeNamespaceLister implements the TestTypeNamespaceLister // interface. type testTypeNamespaceLister struct { - listers.ResourceIndexer[*v1.TestType] + listers.ResourceIndexer[*examplev1.TestType] } diff --git a/examples/pkg/generated/listers/example/v1/withoutverbtype.go b/examples/pkg/generated/listers/example/v1/withoutverbtype.go index 063f20289..830efb8d2 100644 --- a/examples/pkg/generated/listers/example/v1/withoutverbtype.go +++ b/examples/pkg/generated/listers/example/v1/withoutverbtype.go @@ -14,16 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1 import ( - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" - v1 "acme.corp/pkg/apis/example/v1" + examplev1 "acme.corp/pkg/apis/example/v1" ) // WithoutVerbTypeLister helps list WithoutVerbTypes. @@ -31,7 +31,7 @@ import ( type WithoutVerbTypeLister interface { // List lists all WithoutVerbTypes in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.WithoutVerbType, err error) + List(selector labels.Selector) (ret []*examplev1.WithoutVerbType, err error) // WithoutVerbTypes returns an object that can list and get WithoutVerbTypes. WithoutVerbTypes(namespace string) WithoutVerbTypeNamespaceLister WithoutVerbTypeListerExpansion @@ -39,17 +39,17 @@ type WithoutVerbTypeLister interface { // withoutVerbTypeLister implements the WithoutVerbTypeLister interface. type withoutVerbTypeLister struct { - listers.ResourceIndexer[*v1.WithoutVerbType] + listers.ResourceIndexer[*examplev1.WithoutVerbType] } // NewWithoutVerbTypeLister returns a new WithoutVerbTypeLister. func NewWithoutVerbTypeLister(indexer cache.Indexer) WithoutVerbTypeLister { - return &withoutVerbTypeLister{listers.New[*v1.WithoutVerbType](indexer, v1.Resource("withoutverbtype"))} + return &withoutVerbTypeLister{listers.New[*examplev1.WithoutVerbType](indexer, examplev1.Resource("withoutverbtype"))} } // WithoutVerbTypes returns an object that can list and get WithoutVerbTypes. func (s *withoutVerbTypeLister) WithoutVerbTypes(namespace string) WithoutVerbTypeNamespaceLister { - return withoutVerbTypeNamespaceLister{listers.NewNamespaced[*v1.WithoutVerbType](s.ResourceIndexer, namespace)} + return withoutVerbTypeNamespaceLister{listers.NewNamespaced[*examplev1.WithoutVerbType](s.ResourceIndexer, namespace)} } // WithoutVerbTypeNamespaceLister helps list and get WithoutVerbTypes. @@ -57,15 +57,15 @@ func (s *withoutVerbTypeLister) WithoutVerbTypes(namespace string) WithoutVerbTy type WithoutVerbTypeNamespaceLister interface { // List lists all WithoutVerbTypes in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.WithoutVerbType, err error) + List(selector labels.Selector) (ret []*examplev1.WithoutVerbType, err error) // Get retrieves the WithoutVerbType from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.WithoutVerbType, error) + Get(name string) (*examplev1.WithoutVerbType, error) WithoutVerbTypeNamespaceListerExpansion } // withoutVerbTypeNamespaceLister implements the WithoutVerbTypeNamespaceLister // interface. type withoutVerbTypeNamespaceLister struct { - listers.ResourceIndexer[*v1.WithoutVerbType] + listers.ResourceIndexer[*examplev1.WithoutVerbType] } diff --git a/examples/pkg/generated/listers/example/v1alpha1/clustertesttype.go b/examples/pkg/generated/listers/example/v1alpha1/clustertesttype.go index b70007958..9d9395789 100644 --- a/examples/pkg/generated/listers/example/v1alpha1/clustertesttype.go +++ b/examples/pkg/generated/listers/example/v1alpha1/clustertesttype.go @@ -14,16 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1alpha1 import ( - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" - v1alpha1 "acme.corp/pkg/apis/example/v1alpha1" + examplev1alpha1 "acme.corp/pkg/apis/example/v1alpha1" ) // ClusterTestTypeLister helps list ClusterTestTypes. @@ -31,19 +31,19 @@ import ( type ClusterTestTypeLister interface { // List lists all ClusterTestTypes in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.ClusterTestType, err error) + List(selector labels.Selector) (ret []*examplev1alpha1.ClusterTestType, err error) // Get retrieves the ClusterTestType from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha1.ClusterTestType, error) + Get(name string) (*examplev1alpha1.ClusterTestType, error) ClusterTestTypeListerExpansion } // clusterTestTypeLister implements the ClusterTestTypeLister interface. type clusterTestTypeLister struct { - listers.ResourceIndexer[*v1alpha1.ClusterTestType] + listers.ResourceIndexer[*examplev1alpha1.ClusterTestType] } // NewClusterTestTypeLister returns a new ClusterTestTypeLister. func NewClusterTestTypeLister(indexer cache.Indexer) ClusterTestTypeLister { - return &clusterTestTypeLister{listers.New[*v1alpha1.ClusterTestType](indexer, v1alpha1.Resource("clustertesttype"))} + return &clusterTestTypeLister{listers.New[*examplev1alpha1.ClusterTestType](indexer, examplev1alpha1.Resource("clustertesttype"))} } diff --git a/examples/pkg/generated/listers/example/v1alpha1/expansion_generated.go b/examples/pkg/generated/listers/example/v1alpha1/expansion_generated.go index 29c678e4d..0869797e1 100644 --- a/examples/pkg/generated/listers/example/v1alpha1/expansion_generated.go +++ b/examples/pkg/generated/listers/example/v1alpha1/expansion_generated.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1alpha1 diff --git a/examples/pkg/generated/listers/example/v1alpha1/testtype.go b/examples/pkg/generated/listers/example/v1alpha1/testtype.go index 30b23868d..55f5587df 100644 --- a/examples/pkg/generated/listers/example/v1alpha1/testtype.go +++ b/examples/pkg/generated/listers/example/v1alpha1/testtype.go @@ -14,16 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1alpha1 import ( - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" - v1alpha1 "acme.corp/pkg/apis/example/v1alpha1" + examplev1alpha1 "acme.corp/pkg/apis/example/v1alpha1" ) // TestTypeLister helps list TestTypes. @@ -31,7 +31,7 @@ import ( type TestTypeLister interface { // List lists all TestTypes in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.TestType, err error) + List(selector labels.Selector) (ret []*examplev1alpha1.TestType, err error) // TestTypes returns an object that can list and get TestTypes. TestTypes(namespace string) TestTypeNamespaceLister TestTypeListerExpansion @@ -39,17 +39,17 @@ type TestTypeLister interface { // testTypeLister implements the TestTypeLister interface. type testTypeLister struct { - listers.ResourceIndexer[*v1alpha1.TestType] + listers.ResourceIndexer[*examplev1alpha1.TestType] } // NewTestTypeLister returns a new TestTypeLister. func NewTestTypeLister(indexer cache.Indexer) TestTypeLister { - return &testTypeLister{listers.New[*v1alpha1.TestType](indexer, v1alpha1.Resource("testtype"))} + return &testTypeLister{listers.New[*examplev1alpha1.TestType](indexer, examplev1alpha1.Resource("testtype"))} } // TestTypes returns an object that can list and get TestTypes. func (s *testTypeLister) TestTypes(namespace string) TestTypeNamespaceLister { - return testTypeNamespaceLister{listers.NewNamespaced[*v1alpha1.TestType](s.ResourceIndexer, namespace)} + return testTypeNamespaceLister{listers.NewNamespaced[*examplev1alpha1.TestType](s.ResourceIndexer, namespace)} } // TestTypeNamespaceLister helps list and get TestTypes. @@ -57,15 +57,15 @@ func (s *testTypeLister) TestTypes(namespace string) TestTypeNamespaceLister { type TestTypeNamespaceLister interface { // List lists all TestTypes in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.TestType, err error) + List(selector labels.Selector) (ret []*examplev1alpha1.TestType, err error) // Get retrieves the TestType from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha1.TestType, error) + Get(name string) (*examplev1alpha1.TestType, error) TestTypeNamespaceListerExpansion } // testTypeNamespaceLister implements the TestTypeNamespaceLister // interface. type testTypeNamespaceLister struct { - listers.ResourceIndexer[*v1alpha1.TestType] + listers.ResourceIndexer[*examplev1alpha1.TestType] } diff --git a/examples/pkg/generated/listers/example/v1beta1/clustertesttype.go b/examples/pkg/generated/listers/example/v1beta1/clustertesttype.go index 85362c311..f2431ea04 100644 --- a/examples/pkg/generated/listers/example/v1beta1/clustertesttype.go +++ b/examples/pkg/generated/listers/example/v1beta1/clustertesttype.go @@ -14,16 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1beta1 import ( - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" - v1beta1 "acme.corp/pkg/apis/example/v1beta1" + examplev1beta1 "acme.corp/pkg/apis/example/v1beta1" ) // ClusterTestTypeLister helps list ClusterTestTypes. @@ -31,19 +31,19 @@ import ( type ClusterTestTypeLister interface { // List lists all ClusterTestTypes in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1beta1.ClusterTestType, err error) + List(selector labels.Selector) (ret []*examplev1beta1.ClusterTestType, err error) // Get retrieves the ClusterTestType from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1beta1.ClusterTestType, error) + Get(name string) (*examplev1beta1.ClusterTestType, error) ClusterTestTypeListerExpansion } // clusterTestTypeLister implements the ClusterTestTypeLister interface. type clusterTestTypeLister struct { - listers.ResourceIndexer[*v1beta1.ClusterTestType] + listers.ResourceIndexer[*examplev1beta1.ClusterTestType] } // NewClusterTestTypeLister returns a new ClusterTestTypeLister. func NewClusterTestTypeLister(indexer cache.Indexer) ClusterTestTypeLister { - return &clusterTestTypeLister{listers.New[*v1beta1.ClusterTestType](indexer, v1beta1.Resource("clustertesttype"))} + return &clusterTestTypeLister{listers.New[*examplev1beta1.ClusterTestType](indexer, examplev1beta1.Resource("clustertesttype"))} } diff --git a/examples/pkg/generated/listers/example/v1beta1/expansion_generated.go b/examples/pkg/generated/listers/example/v1beta1/expansion_generated.go index 37d6e59e6..2e3daf652 100644 --- a/examples/pkg/generated/listers/example/v1beta1/expansion_generated.go +++ b/examples/pkg/generated/listers/example/v1beta1/expansion_generated.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1beta1 diff --git a/examples/pkg/generated/listers/example/v1beta1/testtype.go b/examples/pkg/generated/listers/example/v1beta1/testtype.go index 7a29a9e28..f26518493 100644 --- a/examples/pkg/generated/listers/example/v1beta1/testtype.go +++ b/examples/pkg/generated/listers/example/v1beta1/testtype.go @@ -14,16 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1beta1 import ( - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" - v1beta1 "acme.corp/pkg/apis/example/v1beta1" + examplev1beta1 "acme.corp/pkg/apis/example/v1beta1" ) // TestTypeLister helps list TestTypes. @@ -31,7 +31,7 @@ import ( type TestTypeLister interface { // List lists all TestTypes in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1beta1.TestType, err error) + List(selector labels.Selector) (ret []*examplev1beta1.TestType, err error) // TestTypes returns an object that can list and get TestTypes. TestTypes(namespace string) TestTypeNamespaceLister TestTypeListerExpansion @@ -39,17 +39,17 @@ type TestTypeLister interface { // testTypeLister implements the TestTypeLister interface. type testTypeLister struct { - listers.ResourceIndexer[*v1beta1.TestType] + listers.ResourceIndexer[*examplev1beta1.TestType] } // NewTestTypeLister returns a new TestTypeLister. func NewTestTypeLister(indexer cache.Indexer) TestTypeLister { - return &testTypeLister{listers.New[*v1beta1.TestType](indexer, v1beta1.Resource("testtype"))} + return &testTypeLister{listers.New[*examplev1beta1.TestType](indexer, examplev1beta1.Resource("testtype"))} } // TestTypes returns an object that can list and get TestTypes. func (s *testTypeLister) TestTypes(namespace string) TestTypeNamespaceLister { - return testTypeNamespaceLister{listers.NewNamespaced[*v1beta1.TestType](s.ResourceIndexer, namespace)} + return testTypeNamespaceLister{listers.NewNamespaced[*examplev1beta1.TestType](s.ResourceIndexer, namespace)} } // TestTypeNamespaceLister helps list and get TestTypes. @@ -57,15 +57,15 @@ func (s *testTypeLister) TestTypes(namespace string) TestTypeNamespaceLister { type TestTypeNamespaceLister interface { // List lists all TestTypes in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1beta1.TestType, err error) + List(selector labels.Selector) (ret []*examplev1beta1.TestType, err error) // Get retrieves the TestType from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1beta1.TestType, error) + Get(name string) (*examplev1beta1.TestType, error) TestTypeNamespaceListerExpansion } // testTypeNamespaceLister implements the TestTypeNamespaceLister // interface. type testTypeNamespaceLister struct { - listers.ResourceIndexer[*v1beta1.TestType] + listers.ResourceIndexer[*examplev1beta1.TestType] } diff --git a/examples/pkg/generated/listers/example/v2/clustertesttype.go b/examples/pkg/generated/listers/example/v2/clustertesttype.go index 63bfa0eea..52748ff24 100644 --- a/examples/pkg/generated/listers/example/v2/clustertesttype.go +++ b/examples/pkg/generated/listers/example/v2/clustertesttype.go @@ -14,16 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v2 import ( - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" - v2 "acme.corp/pkg/apis/example/v2" + examplev2 "acme.corp/pkg/apis/example/v2" ) // ClusterTestTypeLister helps list ClusterTestTypes. @@ -31,19 +31,19 @@ import ( type ClusterTestTypeLister interface { // List lists all ClusterTestTypes in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v2.ClusterTestType, err error) + List(selector labels.Selector) (ret []*examplev2.ClusterTestType, err error) // Get retrieves the ClusterTestType from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v2.ClusterTestType, error) + Get(name string) (*examplev2.ClusterTestType, error) ClusterTestTypeListerExpansion } // clusterTestTypeLister implements the ClusterTestTypeLister interface. type clusterTestTypeLister struct { - listers.ResourceIndexer[*v2.ClusterTestType] + listers.ResourceIndexer[*examplev2.ClusterTestType] } // NewClusterTestTypeLister returns a new ClusterTestTypeLister. func NewClusterTestTypeLister(indexer cache.Indexer) ClusterTestTypeLister { - return &clusterTestTypeLister{listers.New[*v2.ClusterTestType](indexer, v2.Resource("clustertesttype"))} + return &clusterTestTypeLister{listers.New[*examplev2.ClusterTestType](indexer, examplev2.Resource("clustertesttype"))} } diff --git a/examples/pkg/generated/listers/example/v2/expansion_generated.go b/examples/pkg/generated/listers/example/v2/expansion_generated.go index f839dcae1..30b74f294 100644 --- a/examples/pkg/generated/listers/example/v2/expansion_generated.go +++ b/examples/pkg/generated/listers/example/v2/expansion_generated.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v2 diff --git a/examples/pkg/generated/listers/example/v2/testtype.go b/examples/pkg/generated/listers/example/v2/testtype.go index 1103dfbab..abfd00984 100644 --- a/examples/pkg/generated/listers/example/v2/testtype.go +++ b/examples/pkg/generated/listers/example/v2/testtype.go @@ -14,16 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v2 import ( - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" - v2 "acme.corp/pkg/apis/example/v2" + examplev2 "acme.corp/pkg/apis/example/v2" ) // TestTypeLister helps list TestTypes. @@ -31,7 +31,7 @@ import ( type TestTypeLister interface { // List lists all TestTypes in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v2.TestType, err error) + List(selector labels.Selector) (ret []*examplev2.TestType, err error) // TestTypes returns an object that can list and get TestTypes. TestTypes(namespace string) TestTypeNamespaceLister TestTypeListerExpansion @@ -39,17 +39,17 @@ type TestTypeLister interface { // testTypeLister implements the TestTypeLister interface. type testTypeLister struct { - listers.ResourceIndexer[*v2.TestType] + listers.ResourceIndexer[*examplev2.TestType] } // NewTestTypeLister returns a new TestTypeLister. func NewTestTypeLister(indexer cache.Indexer) TestTypeLister { - return &testTypeLister{listers.New[*v2.TestType](indexer, v2.Resource("testtype"))} + return &testTypeLister{listers.New[*examplev2.TestType](indexer, examplev2.Resource("testtype"))} } // TestTypes returns an object that can list and get TestTypes. func (s *testTypeLister) TestTypes(namespace string) TestTypeNamespaceLister { - return testTypeNamespaceLister{listers.NewNamespaced[*v2.TestType](s.ResourceIndexer, namespace)} + return testTypeNamespaceLister{listers.NewNamespaced[*examplev2.TestType](s.ResourceIndexer, namespace)} } // TestTypeNamespaceLister helps list and get TestTypes. @@ -57,15 +57,15 @@ func (s *testTypeLister) TestTypes(namespace string) TestTypeNamespaceLister { type TestTypeNamespaceLister interface { // List lists all TestTypes in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v2.TestType, err error) + List(selector labels.Selector) (ret []*examplev2.TestType, err error) // Get retrieves the TestType from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v2.TestType, error) + Get(name string) (*examplev2.TestType, error) TestTypeNamespaceListerExpansion } // testTypeNamespaceLister implements the TestTypeNamespaceLister // interface. type testTypeNamespaceLister struct { - listers.ResourceIndexer[*v2.TestType] + listers.ResourceIndexer[*examplev2.TestType] } diff --git a/examples/pkg/generated/listers/example3/v1/clustertesttype.go b/examples/pkg/generated/listers/example3/v1/clustertesttype.go index 1c9c074e4..98a0ff9b3 100644 --- a/examples/pkg/generated/listers/example3/v1/clustertesttype.go +++ b/examples/pkg/generated/listers/example3/v1/clustertesttype.go @@ -14,16 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1 import ( - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" - v1 "acme.corp/pkg/apis/example3/v1" + example3v1 "acme.corp/pkg/apis/example3/v1" ) // ClusterTestTypeLister helps list ClusterTestTypes. @@ -31,19 +31,19 @@ import ( type ClusterTestTypeLister interface { // List lists all ClusterTestTypes in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.ClusterTestType, err error) + List(selector labels.Selector) (ret []*example3v1.ClusterTestType, err error) // Get retrieves the ClusterTestType from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.ClusterTestType, error) + Get(name string) (*example3v1.ClusterTestType, error) ClusterTestTypeListerExpansion } // clusterTestTypeLister implements the ClusterTestTypeLister interface. type clusterTestTypeLister struct { - listers.ResourceIndexer[*v1.ClusterTestType] + listers.ResourceIndexer[*example3v1.ClusterTestType] } // NewClusterTestTypeLister returns a new ClusterTestTypeLister. func NewClusterTestTypeLister(indexer cache.Indexer) ClusterTestTypeLister { - return &clusterTestTypeLister{listers.New[*v1.ClusterTestType](indexer, v1.Resource("clustertesttype"))} + return &clusterTestTypeLister{listers.New[*example3v1.ClusterTestType](indexer, example3v1.Resource("clustertesttype"))} } diff --git a/examples/pkg/generated/listers/example3/v1/expansion_generated.go b/examples/pkg/generated/listers/example3/v1/expansion_generated.go index 35b3a43bb..f82056382 100644 --- a/examples/pkg/generated/listers/example3/v1/expansion_generated.go +++ b/examples/pkg/generated/listers/example3/v1/expansion_generated.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1 diff --git a/examples/pkg/generated/listers/example3/v1/testtype.go b/examples/pkg/generated/listers/example3/v1/testtype.go index 29ae78cfb..224242b70 100644 --- a/examples/pkg/generated/listers/example3/v1/testtype.go +++ b/examples/pkg/generated/listers/example3/v1/testtype.go @@ -14,16 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1 import ( - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" - v1 "acme.corp/pkg/apis/example3/v1" + example3v1 "acme.corp/pkg/apis/example3/v1" ) // TestTypeLister helps list TestTypes. @@ -31,7 +31,7 @@ import ( type TestTypeLister interface { // List lists all TestTypes in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.TestType, err error) + List(selector labels.Selector) (ret []*example3v1.TestType, err error) // TestTypes returns an object that can list and get TestTypes. TestTypes(namespace string) TestTypeNamespaceLister TestTypeListerExpansion @@ -39,17 +39,17 @@ type TestTypeLister interface { // testTypeLister implements the TestTypeLister interface. type testTypeLister struct { - listers.ResourceIndexer[*v1.TestType] + listers.ResourceIndexer[*example3v1.TestType] } // NewTestTypeLister returns a new TestTypeLister. func NewTestTypeLister(indexer cache.Indexer) TestTypeLister { - return &testTypeLister{listers.New[*v1.TestType](indexer, v1.Resource("testtype"))} + return &testTypeLister{listers.New[*example3v1.TestType](indexer, example3v1.Resource("testtype"))} } // TestTypes returns an object that can list and get TestTypes. func (s *testTypeLister) TestTypes(namespace string) TestTypeNamespaceLister { - return testTypeNamespaceLister{listers.NewNamespaced[*v1.TestType](s.ResourceIndexer, namespace)} + return testTypeNamespaceLister{listers.NewNamespaced[*example3v1.TestType](s.ResourceIndexer, namespace)} } // TestTypeNamespaceLister helps list and get TestTypes. @@ -57,15 +57,15 @@ func (s *testTypeLister) TestTypes(namespace string) TestTypeNamespaceLister { type TestTypeNamespaceLister interface { // List lists all TestTypes in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.TestType, err error) + List(selector labels.Selector) (ret []*example3v1.TestType, err error) // Get retrieves the TestType from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.TestType, error) + Get(name string) (*example3v1.TestType, error) TestTypeNamespaceListerExpansion } // testTypeNamespaceLister implements the TestTypeNamespaceLister // interface. type testTypeNamespaceLister struct { - listers.ResourceIndexer[*v1.TestType] + listers.ResourceIndexer[*example3v1.TestType] } diff --git a/examples/pkg/generated/listers/exampledashed/v1/clustertesttype.go b/examples/pkg/generated/listers/exampledashed/v1/clustertesttype.go index ba313da5a..eb6d13bb8 100644 --- a/examples/pkg/generated/listers/exampledashed/v1/clustertesttype.go +++ b/examples/pkg/generated/listers/exampledashed/v1/clustertesttype.go @@ -14,16 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1 import ( - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" - v1 "acme.corp/pkg/apis/exampledashed/v1" + exampledashedv1 "acme.corp/pkg/apis/exampledashed/v1" ) // ClusterTestTypeLister helps list ClusterTestTypes. @@ -31,19 +31,19 @@ import ( type ClusterTestTypeLister interface { // List lists all ClusterTestTypes in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.ClusterTestType, err error) + List(selector labels.Selector) (ret []*exampledashedv1.ClusterTestType, err error) // Get retrieves the ClusterTestType from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.ClusterTestType, error) + Get(name string) (*exampledashedv1.ClusterTestType, error) ClusterTestTypeListerExpansion } // clusterTestTypeLister implements the ClusterTestTypeLister interface. type clusterTestTypeLister struct { - listers.ResourceIndexer[*v1.ClusterTestType] + listers.ResourceIndexer[*exampledashedv1.ClusterTestType] } // NewClusterTestTypeLister returns a new ClusterTestTypeLister. func NewClusterTestTypeLister(indexer cache.Indexer) ClusterTestTypeLister { - return &clusterTestTypeLister{listers.New[*v1.ClusterTestType](indexer, v1.Resource("clustertesttype"))} + return &clusterTestTypeLister{listers.New[*exampledashedv1.ClusterTestType](indexer, exampledashedv1.Resource("clustertesttype"))} } diff --git a/examples/pkg/generated/listers/exampledashed/v1/expansion_generated.go b/examples/pkg/generated/listers/exampledashed/v1/expansion_generated.go index 35b3a43bb..f82056382 100644 --- a/examples/pkg/generated/listers/exampledashed/v1/expansion_generated.go +++ b/examples/pkg/generated/listers/exampledashed/v1/expansion_generated.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1 diff --git a/examples/pkg/generated/listers/exampledashed/v1/testtype.go b/examples/pkg/generated/listers/exampledashed/v1/testtype.go index e1babab80..bbe40773d 100644 --- a/examples/pkg/generated/listers/exampledashed/v1/testtype.go +++ b/examples/pkg/generated/listers/exampledashed/v1/testtype.go @@ -14,16 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1 import ( - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" - v1 "acme.corp/pkg/apis/exampledashed/v1" + exampledashedv1 "acme.corp/pkg/apis/exampledashed/v1" ) // TestTypeLister helps list TestTypes. @@ -31,7 +31,7 @@ import ( type TestTypeLister interface { // List lists all TestTypes in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.TestType, err error) + List(selector labels.Selector) (ret []*exampledashedv1.TestType, err error) // TestTypes returns an object that can list and get TestTypes. TestTypes(namespace string) TestTypeNamespaceLister TestTypeListerExpansion @@ -39,17 +39,17 @@ type TestTypeLister interface { // testTypeLister implements the TestTypeLister interface. type testTypeLister struct { - listers.ResourceIndexer[*v1.TestType] + listers.ResourceIndexer[*exampledashedv1.TestType] } // NewTestTypeLister returns a new TestTypeLister. func NewTestTypeLister(indexer cache.Indexer) TestTypeLister { - return &testTypeLister{listers.New[*v1.TestType](indexer, v1.Resource("testtype"))} + return &testTypeLister{listers.New[*exampledashedv1.TestType](indexer, exampledashedv1.Resource("testtype"))} } // TestTypes returns an object that can list and get TestTypes. func (s *testTypeLister) TestTypes(namespace string) TestTypeNamespaceLister { - return testTypeNamespaceLister{listers.NewNamespaced[*v1.TestType](s.ResourceIndexer, namespace)} + return testTypeNamespaceLister{listers.NewNamespaced[*exampledashedv1.TestType](s.ResourceIndexer, namespace)} } // TestTypeNamespaceLister helps list and get TestTypes. @@ -57,15 +57,15 @@ func (s *testTypeLister) TestTypes(namespace string) TestTypeNamespaceLister { type TestTypeNamespaceLister interface { // List lists all TestTypes in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.TestType, err error) + List(selector labels.Selector) (ret []*exampledashedv1.TestType, err error) // Get retrieves the TestType from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.TestType, error) + Get(name string) (*exampledashedv1.TestType, error) TestTypeNamespaceListerExpansion } // testTypeNamespaceLister implements the TestTypeNamespaceLister // interface. type testTypeNamespaceLister struct { - listers.ResourceIndexer[*v1.TestType] + listers.ResourceIndexer[*exampledashedv1.TestType] } diff --git a/examples/pkg/generated/listers/existinginterfaces/v1/clustertesttype.go b/examples/pkg/generated/listers/existinginterfaces/v1/clustertesttype.go index 20c8d28e6..dbff40cb4 100644 --- a/examples/pkg/generated/listers/existinginterfaces/v1/clustertesttype.go +++ b/examples/pkg/generated/listers/existinginterfaces/v1/clustertesttype.go @@ -14,16 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1 import ( - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" - v1 "acme.corp/pkg/apis/existinginterfaces/v1" + existinginterfacesv1 "acme.corp/pkg/apis/existinginterfaces/v1" ) // ClusterTestTypeLister helps list ClusterTestTypes. @@ -31,19 +31,19 @@ import ( type ClusterTestTypeLister interface { // List lists all ClusterTestTypes in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.ClusterTestType, err error) + List(selector labels.Selector) (ret []*existinginterfacesv1.ClusterTestType, err error) // Get retrieves the ClusterTestType from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.ClusterTestType, error) + Get(name string) (*existinginterfacesv1.ClusterTestType, error) ClusterTestTypeListerExpansion } // clusterTestTypeLister implements the ClusterTestTypeLister interface. type clusterTestTypeLister struct { - listers.ResourceIndexer[*v1.ClusterTestType] + listers.ResourceIndexer[*existinginterfacesv1.ClusterTestType] } // NewClusterTestTypeLister returns a new ClusterTestTypeLister. func NewClusterTestTypeLister(indexer cache.Indexer) ClusterTestTypeLister { - return &clusterTestTypeLister{listers.New[*v1.ClusterTestType](indexer, v1.Resource("clustertesttype"))} + return &clusterTestTypeLister{listers.New[*existinginterfacesv1.ClusterTestType](indexer, existinginterfacesv1.Resource("clustertesttype"))} } diff --git a/examples/pkg/generated/listers/existinginterfaces/v1/expansion_generated.go b/examples/pkg/generated/listers/existinginterfaces/v1/expansion_generated.go index 35b3a43bb..f82056382 100644 --- a/examples/pkg/generated/listers/existinginterfaces/v1/expansion_generated.go +++ b/examples/pkg/generated/listers/existinginterfaces/v1/expansion_generated.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1 diff --git a/examples/pkg/generated/listers/existinginterfaces/v1/testtype.go b/examples/pkg/generated/listers/existinginterfaces/v1/testtype.go index 1327792ed..6a2ba1c1a 100644 --- a/examples/pkg/generated/listers/existinginterfaces/v1/testtype.go +++ b/examples/pkg/generated/listers/existinginterfaces/v1/testtype.go @@ -14,16 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1 import ( - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" - v1 "acme.corp/pkg/apis/existinginterfaces/v1" + existinginterfacesv1 "acme.corp/pkg/apis/existinginterfaces/v1" ) // TestTypeLister helps list TestTypes. @@ -31,7 +31,7 @@ import ( type TestTypeLister interface { // List lists all TestTypes in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.TestType, err error) + List(selector labels.Selector) (ret []*existinginterfacesv1.TestType, err error) // TestTypes returns an object that can list and get TestTypes. TestTypes(namespace string) TestTypeNamespaceLister TestTypeListerExpansion @@ -39,17 +39,17 @@ type TestTypeLister interface { // testTypeLister implements the TestTypeLister interface. type testTypeLister struct { - listers.ResourceIndexer[*v1.TestType] + listers.ResourceIndexer[*existinginterfacesv1.TestType] } // NewTestTypeLister returns a new TestTypeLister. func NewTestTypeLister(indexer cache.Indexer) TestTypeLister { - return &testTypeLister{listers.New[*v1.TestType](indexer, v1.Resource("testtype"))} + return &testTypeLister{listers.New[*existinginterfacesv1.TestType](indexer, existinginterfacesv1.Resource("testtype"))} } // TestTypes returns an object that can list and get TestTypes. func (s *testTypeLister) TestTypes(namespace string) TestTypeNamespaceLister { - return testTypeNamespaceLister{listers.NewNamespaced[*v1.TestType](s.ResourceIndexer, namespace)} + return testTypeNamespaceLister{listers.NewNamespaced[*existinginterfacesv1.TestType](s.ResourceIndexer, namespace)} } // TestTypeNamespaceLister helps list and get TestTypes. @@ -57,15 +57,15 @@ func (s *testTypeLister) TestTypes(namespace string) TestTypeNamespaceLister { type TestTypeNamespaceLister interface { // List lists all TestTypes in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.TestType, err error) + List(selector labels.Selector) (ret []*existinginterfacesv1.TestType, err error) // Get retrieves the TestType from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.TestType, error) + Get(name string) (*existinginterfacesv1.TestType, error) TestTypeNamespaceListerExpansion } // testTypeNamespaceLister implements the TestTypeNamespaceLister // interface. type testTypeNamespaceLister struct { - listers.ResourceIndexer[*v1.TestType] + listers.ResourceIndexer[*existinginterfacesv1.TestType] } diff --git a/examples/pkg/generated/listers/secondexample/v1/clustertesttype.go b/examples/pkg/generated/listers/secondexample/v1/clustertesttype.go index 9917dceaa..025923f22 100644 --- a/examples/pkg/generated/listers/secondexample/v1/clustertesttype.go +++ b/examples/pkg/generated/listers/secondexample/v1/clustertesttype.go @@ -14,16 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1 import ( - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" - v1 "acme.corp/pkg/apis/secondexample/v1" + secondexamplev1 "acme.corp/pkg/apis/secondexample/v1" ) // ClusterTestTypeLister helps list ClusterTestTypes. @@ -31,19 +31,19 @@ import ( type ClusterTestTypeLister interface { // List lists all ClusterTestTypes in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.ClusterTestType, err error) + List(selector labels.Selector) (ret []*secondexamplev1.ClusterTestType, err error) // Get retrieves the ClusterTestType from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.ClusterTestType, error) + Get(name string) (*secondexamplev1.ClusterTestType, error) ClusterTestTypeListerExpansion } // clusterTestTypeLister implements the ClusterTestTypeLister interface. type clusterTestTypeLister struct { - listers.ResourceIndexer[*v1.ClusterTestType] + listers.ResourceIndexer[*secondexamplev1.ClusterTestType] } // NewClusterTestTypeLister returns a new ClusterTestTypeLister. func NewClusterTestTypeLister(indexer cache.Indexer) ClusterTestTypeLister { - return &clusterTestTypeLister{listers.New[*v1.ClusterTestType](indexer, v1.Resource("clustertesttype"))} + return &clusterTestTypeLister{listers.New[*secondexamplev1.ClusterTestType](indexer, secondexamplev1.Resource("clustertesttype"))} } diff --git a/examples/pkg/generated/listers/secondexample/v1/expansion_generated.go b/examples/pkg/generated/listers/secondexample/v1/expansion_generated.go index 35b3a43bb..f82056382 100644 --- a/examples/pkg/generated/listers/secondexample/v1/expansion_generated.go +++ b/examples/pkg/generated/listers/secondexample/v1/expansion_generated.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1 diff --git a/examples/pkg/generated/listers/secondexample/v1/testtype.go b/examples/pkg/generated/listers/secondexample/v1/testtype.go index 329747ced..6382c34f5 100644 --- a/examples/pkg/generated/listers/secondexample/v1/testtype.go +++ b/examples/pkg/generated/listers/secondexample/v1/testtype.go @@ -14,16 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by lister-gen-v0.31. DO NOT EDIT. +// Code generated by lister-gen-v0.32. DO NOT EDIT. package v1 import ( - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" - v1 "acme.corp/pkg/apis/secondexample/v1" + secondexamplev1 "acme.corp/pkg/apis/secondexample/v1" ) // TestTypeLister helps list TestTypes. @@ -31,7 +31,7 @@ import ( type TestTypeLister interface { // List lists all TestTypes in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.TestType, err error) + List(selector labels.Selector) (ret []*secondexamplev1.TestType, err error) // TestTypes returns an object that can list and get TestTypes. TestTypes(namespace string) TestTypeNamespaceLister TestTypeListerExpansion @@ -39,17 +39,17 @@ type TestTypeLister interface { // testTypeLister implements the TestTypeLister interface. type testTypeLister struct { - listers.ResourceIndexer[*v1.TestType] + listers.ResourceIndexer[*secondexamplev1.TestType] } // NewTestTypeLister returns a new TestTypeLister. func NewTestTypeLister(indexer cache.Indexer) TestTypeLister { - return &testTypeLister{listers.New[*v1.TestType](indexer, v1.Resource("testtype"))} + return &testTypeLister{listers.New[*secondexamplev1.TestType](indexer, secondexamplev1.Resource("testtype"))} } // TestTypes returns an object that can list and get TestTypes. func (s *testTypeLister) TestTypes(namespace string) TestTypeNamespaceLister { - return testTypeNamespaceLister{listers.NewNamespaced[*v1.TestType](s.ResourceIndexer, namespace)} + return testTypeNamespaceLister{listers.NewNamespaced[*secondexamplev1.TestType](s.ResourceIndexer, namespace)} } // TestTypeNamespaceLister helps list and get TestTypes. @@ -57,15 +57,15 @@ func (s *testTypeLister) TestTypes(namespace string) TestTypeNamespaceLister { type TestTypeNamespaceLister interface { // List lists all TestTypes in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.TestType, err error) + List(selector labels.Selector) (ret []*secondexamplev1.TestType, err error) // Get retrieves the TestType from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.TestType, error) + Get(name string) (*secondexamplev1.TestType, error) TestTypeNamespaceListerExpansion } // testTypeNamespaceLister implements the TestTypeNamespaceLister // interface. type testTypeNamespaceLister struct { - listers.ResourceIndexer[*v1.TestType] + listers.ResourceIndexer[*secondexamplev1.TestType] } diff --git a/examples/pkg/kcp/clients/clientset/versioned/clientset.go b/examples/pkg/kcp/clients/clientset/versioned/clientset.go index 93c0659fd..e4491fcd4 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/clientset.go +++ b/examples/pkg/kcp/clients/clientset/versioned/clientset.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/fake/clientset.go b/examples/pkg/kcp/clients/clientset/versioned/fake/clientset.go index 07a6fc29d..079018114 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/fake/clientset.go +++ b/examples/pkg/kcp/clients/clientset/versioned/fake/clientset.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/scheme/register.go b/examples/pkg/kcp/clients/clientset/versioned/scheme/register.go index 9761d7ec8..aac661550 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/scheme/register.go +++ b/examples/pkg/kcp/clients/clientset/versioned/scheme/register.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/clustertesttype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/clustertesttype.go index e11f623f4..3a96d500b 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/clustertesttype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/example_client.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/example_client.go index e1ef8111c..1e7e36fa4 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/example_client.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/example_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/fake/clustertesttype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/fake/clustertesttype.go index 225988045..61133c33b 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/fake/clustertesttype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/fake/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/fake/example_client.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/fake/example_client.go index 4d17ddb58..9a576de3b 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/fake/example_client.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/fake/example_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/fake/testtype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/fake/testtype.go index 7225b9188..81dffa362 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/fake/testtype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/fake/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/fake/withoutverbtype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/fake/withoutverbtype.go index 583dd9c06..f668dcf57 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/fake/withoutverbtype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/fake/withoutverbtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/testtype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/testtype.go index c8776540b..637798366 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/testtype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/withoutverbtype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/withoutverbtype.go index b4d4329bd..e937342af 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/withoutverbtype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1/withoutverbtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/clustertesttype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/clustertesttype.go index c0f2bba07..41aa31422 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/clustertesttype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/example_client.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/example_client.go index e45f76c49..b235912f4 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/example_client.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/example_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/fake/clustertesttype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/fake/clustertesttype.go index e28612369..c1bbe02d1 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/fake/clustertesttype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/fake/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/fake/example_client.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/fake/example_client.go index dfe8f2c45..ea9b3100b 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/fake/example_client.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/fake/example_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/fake/testtype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/fake/testtype.go index 0fabc3f82..e760b682e 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/fake/testtype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/fake/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/testtype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/testtype.go index f181d3aab..97f8fae70 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/testtype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1alpha1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/clustertesttype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/clustertesttype.go index ac21c7549..c76c30cb3 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/clustertesttype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/example_client.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/example_client.go index 9d720f2bd..6b59d7eff 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/example_client.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/example_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/fake/clustertesttype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/fake/clustertesttype.go index 898b28710..1fc2574d0 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/fake/clustertesttype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/fake/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/fake/example_client.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/fake/example_client.go index 740c72a82..9d8a00001 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/fake/example_client.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/fake/example_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/fake/testtype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/fake/testtype.go index a23f81fcb..2c35552fd 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/fake/testtype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/fake/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/testtype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/testtype.go index 5c84ea007..05f7f02a1 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/testtype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v1beta1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/clustertesttype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/clustertesttype.go index c2bc48817..5c4e06335 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/clustertesttype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/example_client.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/example_client.go index 5096e3628..f6e4c4282 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/example_client.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/example_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/fake/clustertesttype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/fake/clustertesttype.go index 50ed201a6..6079c9744 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/fake/clustertesttype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/fake/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/fake/example_client.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/fake/example_client.go index 1f236aa43..7972e2404 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/fake/example_client.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/fake/example_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/fake/testtype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/fake/testtype.go index f565b8a4c..a431e9cc5 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/fake/testtype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/fake/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/testtype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/testtype.go index d140c37d5..37a3eca68 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/testtype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example/v2/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/clustertesttype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/clustertesttype.go index adde1fd08..455302a58 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/clustertesttype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/example3_client.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/example3_client.go index 2285f2cf5..a78e00fb2 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/example3_client.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/example3_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/fake/clustertesttype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/fake/clustertesttype.go index 5905b6d77..df053b400 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/fake/clustertesttype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/fake/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/fake/example3_client.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/fake/example3_client.go index c88f0c78e..48e757947 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/fake/example3_client.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/fake/example3_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/fake/testtype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/fake/testtype.go index a48cedad0..9d1f58160 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/fake/testtype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/fake/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/testtype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/testtype.go index bee57419e..839e05a87 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/testtype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/example3/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/clustertesttype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/clustertesttype.go index 85031ddd1..0a3121c6d 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/clustertesttype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/exampledashed_client.go b/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/exampledashed_client.go index 6030bf227..1ef27fd52 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/exampledashed_client.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/exampledashed_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/fake/clustertesttype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/fake/clustertesttype.go index 58dbc19e9..e42c093b9 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/fake/clustertesttype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/fake/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/fake/exampledashed_client.go b/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/fake/exampledashed_client.go index 7e266d18b..36bb1822b 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/fake/exampledashed_client.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/fake/exampledashed_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/fake/testtype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/fake/testtype.go index 444efcb75..a8e5415d9 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/fake/testtype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/fake/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/testtype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/testtype.go index eb9eacdd1..ce4377c53 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/testtype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/exampledashed/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/clustertesttype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/clustertesttype.go index c9f0833ce..d693778e2 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/clustertesttype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/existinginterfaces_client.go b/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/existinginterfaces_client.go index f91869ecb..c05661de5 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/existinginterfaces_client.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/existinginterfaces_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/fake/clustertesttype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/fake/clustertesttype.go index 3db29e205..3c125cef7 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/fake/clustertesttype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/fake/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/fake/existinginterfaces_client.go b/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/fake/existinginterfaces_client.go index 57d89259f..afa27e722 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/fake/existinginterfaces_client.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/fake/existinginterfaces_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/fake/testtype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/fake/testtype.go index 8279dd6a9..d4531706c 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/fake/testtype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/fake/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/testtype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/testtype.go index 3873c0502..fa8068bed 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/testtype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/existinginterfaces/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/clustertesttype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/clustertesttype.go index 28c948133..2f026b3fa 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/clustertesttype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/fake/clustertesttype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/fake/clustertesttype.go index bfa081276..0709c5b90 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/fake/clustertesttype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/fake/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/fake/secondexample_client.go b/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/fake/secondexample_client.go index 92be820b3..a826e6760 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/fake/secondexample_client.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/fake/secondexample_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/fake/testtype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/fake/testtype.go index f820e4c88..6d2fc7f62 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/fake/testtype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/fake/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/secondexample_client.go b/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/secondexample_client.go index f0da7668f..319025e2b 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/secondexample_client.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/secondexample_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/testtype.go b/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/testtype.go index fe04e5e5b..bffaaac14 100644 --- a/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/testtype.go +++ b/examples/pkg/kcp/clients/clientset/versioned/typed/secondexample/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/example/interface.go b/examples/pkg/kcp/clients/informers/externalversions/example/interface.go index 424e1f2b4..6182c4666 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/example/interface.go +++ b/examples/pkg/kcp/clients/informers/externalversions/example/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/example/v1/clustertesttype.go b/examples/pkg/kcp/clients/informers/externalversions/example/v1/clustertesttype.go index 226cb1047..239d4b96b 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/example/v1/clustertesttype.go +++ b/examples/pkg/kcp/clients/informers/externalversions/example/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/example/v1/interface.go b/examples/pkg/kcp/clients/informers/externalversions/example/v1/interface.go index 3034bb594..e692dccde 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/example/v1/interface.go +++ b/examples/pkg/kcp/clients/informers/externalversions/example/v1/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/example/v1/testtype.go b/examples/pkg/kcp/clients/informers/externalversions/example/v1/testtype.go index d4341a5b7..f9582f25a 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/example/v1/testtype.go +++ b/examples/pkg/kcp/clients/informers/externalversions/example/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/example/v1alpha1/clustertesttype.go b/examples/pkg/kcp/clients/informers/externalversions/example/v1alpha1/clustertesttype.go index ecabffe7c..e634ede95 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/example/v1alpha1/clustertesttype.go +++ b/examples/pkg/kcp/clients/informers/externalversions/example/v1alpha1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/example/v1alpha1/interface.go b/examples/pkg/kcp/clients/informers/externalversions/example/v1alpha1/interface.go index c57b8de35..a39705887 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/example/v1alpha1/interface.go +++ b/examples/pkg/kcp/clients/informers/externalversions/example/v1alpha1/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/example/v1alpha1/testtype.go b/examples/pkg/kcp/clients/informers/externalversions/example/v1alpha1/testtype.go index 4fd69274f..82fc872af 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/example/v1alpha1/testtype.go +++ b/examples/pkg/kcp/clients/informers/externalversions/example/v1alpha1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/example/v1beta1/clustertesttype.go b/examples/pkg/kcp/clients/informers/externalversions/example/v1beta1/clustertesttype.go index c3034154a..ba4713aaf 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/example/v1beta1/clustertesttype.go +++ b/examples/pkg/kcp/clients/informers/externalversions/example/v1beta1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/example/v1beta1/interface.go b/examples/pkg/kcp/clients/informers/externalversions/example/v1beta1/interface.go index 610484c07..0693972f1 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/example/v1beta1/interface.go +++ b/examples/pkg/kcp/clients/informers/externalversions/example/v1beta1/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/example/v1beta1/testtype.go b/examples/pkg/kcp/clients/informers/externalversions/example/v1beta1/testtype.go index 757da52cb..08da08521 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/example/v1beta1/testtype.go +++ b/examples/pkg/kcp/clients/informers/externalversions/example/v1beta1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/example/v2/clustertesttype.go b/examples/pkg/kcp/clients/informers/externalversions/example/v2/clustertesttype.go index 90754cc30..2411f841e 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/example/v2/clustertesttype.go +++ b/examples/pkg/kcp/clients/informers/externalversions/example/v2/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/example/v2/interface.go b/examples/pkg/kcp/clients/informers/externalversions/example/v2/interface.go index 6a7bbd3da..1b0b3fa1f 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/example/v2/interface.go +++ b/examples/pkg/kcp/clients/informers/externalversions/example/v2/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/example/v2/testtype.go b/examples/pkg/kcp/clients/informers/externalversions/example/v2/testtype.go index 1502cee98..784880e2b 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/example/v2/testtype.go +++ b/examples/pkg/kcp/clients/informers/externalversions/example/v2/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/example3/interface.go b/examples/pkg/kcp/clients/informers/externalversions/example3/interface.go index b15357f83..3c5eb9990 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/example3/interface.go +++ b/examples/pkg/kcp/clients/informers/externalversions/example3/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/example3/v1/clustertesttype.go b/examples/pkg/kcp/clients/informers/externalversions/example3/v1/clustertesttype.go index 1e7fa3065..da7c49348 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/example3/v1/clustertesttype.go +++ b/examples/pkg/kcp/clients/informers/externalversions/example3/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/example3/v1/interface.go b/examples/pkg/kcp/clients/informers/externalversions/example3/v1/interface.go index 3034bb594..e692dccde 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/example3/v1/interface.go +++ b/examples/pkg/kcp/clients/informers/externalversions/example3/v1/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/example3/v1/testtype.go b/examples/pkg/kcp/clients/informers/externalversions/example3/v1/testtype.go index 4abedd49b..caf44c3f5 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/example3/v1/testtype.go +++ b/examples/pkg/kcp/clients/informers/externalversions/example3/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/exampledashed/interface.go b/examples/pkg/kcp/clients/informers/externalversions/exampledashed/interface.go index 31fab0eab..ca3a4a741 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/exampledashed/interface.go +++ b/examples/pkg/kcp/clients/informers/externalversions/exampledashed/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/exampledashed/v1/clustertesttype.go b/examples/pkg/kcp/clients/informers/externalversions/exampledashed/v1/clustertesttype.go index fa1d5ce7e..d12435046 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/exampledashed/v1/clustertesttype.go +++ b/examples/pkg/kcp/clients/informers/externalversions/exampledashed/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/exampledashed/v1/interface.go b/examples/pkg/kcp/clients/informers/externalversions/exampledashed/v1/interface.go index 3034bb594..e692dccde 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/exampledashed/v1/interface.go +++ b/examples/pkg/kcp/clients/informers/externalversions/exampledashed/v1/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/exampledashed/v1/testtype.go b/examples/pkg/kcp/clients/informers/externalversions/exampledashed/v1/testtype.go index ef617f707..179215651 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/exampledashed/v1/testtype.go +++ b/examples/pkg/kcp/clients/informers/externalversions/exampledashed/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/existinginterfaces/interface.go b/examples/pkg/kcp/clients/informers/externalversions/existinginterfaces/interface.go index c9604e96e..513cb6037 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/existinginterfaces/interface.go +++ b/examples/pkg/kcp/clients/informers/externalversions/existinginterfaces/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/existinginterfaces/v1/clustertesttype.go b/examples/pkg/kcp/clients/informers/externalversions/existinginterfaces/v1/clustertesttype.go index 546b9b6a9..14cc85b5c 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/existinginterfaces/v1/clustertesttype.go +++ b/examples/pkg/kcp/clients/informers/externalversions/existinginterfaces/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/existinginterfaces/v1/interface.go b/examples/pkg/kcp/clients/informers/externalversions/existinginterfaces/v1/interface.go index 3034bb594..e692dccde 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/existinginterfaces/v1/interface.go +++ b/examples/pkg/kcp/clients/informers/externalversions/existinginterfaces/v1/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/existinginterfaces/v1/testtype.go b/examples/pkg/kcp/clients/informers/externalversions/existinginterfaces/v1/testtype.go index 1375195f5..9382e7b21 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/existinginterfaces/v1/testtype.go +++ b/examples/pkg/kcp/clients/informers/externalversions/existinginterfaces/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/factory.go b/examples/pkg/kcp/clients/informers/externalversions/factory.go index 4f70c651f..f9d0c4eed 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/factory.go +++ b/examples/pkg/kcp/clients/informers/externalversions/factory.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/generic.go b/examples/pkg/kcp/clients/informers/externalversions/generic.go index 9ff9079e1..ed2034082 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/generic.go +++ b/examples/pkg/kcp/clients/informers/externalversions/generic.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/internalinterfaces/factory_interfaces.go b/examples/pkg/kcp/clients/informers/externalversions/internalinterfaces/factory_interfaces.go index 692040b2d..173e8bc66 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/internalinterfaces/factory_interfaces.go +++ b/examples/pkg/kcp/clients/informers/externalversions/internalinterfaces/factory_interfaces.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/secondexample/interface.go b/examples/pkg/kcp/clients/informers/externalversions/secondexample/interface.go index e6094563f..4415d70aa 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/secondexample/interface.go +++ b/examples/pkg/kcp/clients/informers/externalversions/secondexample/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/secondexample/v1/clustertesttype.go b/examples/pkg/kcp/clients/informers/externalversions/secondexample/v1/clustertesttype.go index 1ee784424..0a06a6f90 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/secondexample/v1/clustertesttype.go +++ b/examples/pkg/kcp/clients/informers/externalversions/secondexample/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/secondexample/v1/interface.go b/examples/pkg/kcp/clients/informers/externalversions/secondexample/v1/interface.go index 3034bb594..e692dccde 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/secondexample/v1/interface.go +++ b/examples/pkg/kcp/clients/informers/externalversions/secondexample/v1/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/informers/externalversions/secondexample/v1/testtype.go b/examples/pkg/kcp/clients/informers/externalversions/secondexample/v1/testtype.go index 5d2ae2aa0..e9cc42def 100644 --- a/examples/pkg/kcp/clients/informers/externalversions/secondexample/v1/testtype.go +++ b/examples/pkg/kcp/clients/informers/externalversions/secondexample/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/listers/example/v1/clustertesttype.go b/examples/pkg/kcp/clients/listers/example/v1/clustertesttype.go index 9a8e7c172..fd4f5497e 100644 --- a/examples/pkg/kcp/clients/listers/example/v1/clustertesttype.go +++ b/examples/pkg/kcp/clients/listers/example/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/listers/example/v1/testtype.go b/examples/pkg/kcp/clients/listers/example/v1/testtype.go index 54df3a921..cb89ed68d 100644 --- a/examples/pkg/kcp/clients/listers/example/v1/testtype.go +++ b/examples/pkg/kcp/clients/listers/example/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/listers/example/v1alpha1/clustertesttype.go b/examples/pkg/kcp/clients/listers/example/v1alpha1/clustertesttype.go index 96dd19f54..079543cc4 100644 --- a/examples/pkg/kcp/clients/listers/example/v1alpha1/clustertesttype.go +++ b/examples/pkg/kcp/clients/listers/example/v1alpha1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/listers/example/v1alpha1/testtype.go b/examples/pkg/kcp/clients/listers/example/v1alpha1/testtype.go index 092a8d581..f1583f7a8 100644 --- a/examples/pkg/kcp/clients/listers/example/v1alpha1/testtype.go +++ b/examples/pkg/kcp/clients/listers/example/v1alpha1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/listers/example/v1beta1/clustertesttype.go b/examples/pkg/kcp/clients/listers/example/v1beta1/clustertesttype.go index b67b7f9ee..eedd8df08 100644 --- a/examples/pkg/kcp/clients/listers/example/v1beta1/clustertesttype.go +++ b/examples/pkg/kcp/clients/listers/example/v1beta1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/listers/example/v1beta1/testtype.go b/examples/pkg/kcp/clients/listers/example/v1beta1/testtype.go index a0673c705..3ed76b8f1 100644 --- a/examples/pkg/kcp/clients/listers/example/v1beta1/testtype.go +++ b/examples/pkg/kcp/clients/listers/example/v1beta1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/listers/example/v2/clustertesttype.go b/examples/pkg/kcp/clients/listers/example/v2/clustertesttype.go index 157fbe856..1c63f1ea2 100644 --- a/examples/pkg/kcp/clients/listers/example/v2/clustertesttype.go +++ b/examples/pkg/kcp/clients/listers/example/v2/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/listers/example/v2/testtype.go b/examples/pkg/kcp/clients/listers/example/v2/testtype.go index 069ad8082..98dec3974 100644 --- a/examples/pkg/kcp/clients/listers/example/v2/testtype.go +++ b/examples/pkg/kcp/clients/listers/example/v2/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/listers/example3/v1/clustertesttype.go b/examples/pkg/kcp/clients/listers/example3/v1/clustertesttype.go index dd32331b4..7cf8c8263 100644 --- a/examples/pkg/kcp/clients/listers/example3/v1/clustertesttype.go +++ b/examples/pkg/kcp/clients/listers/example3/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/listers/example3/v1/testtype.go b/examples/pkg/kcp/clients/listers/example3/v1/testtype.go index c21ef2849..ed843279d 100644 --- a/examples/pkg/kcp/clients/listers/example3/v1/testtype.go +++ b/examples/pkg/kcp/clients/listers/example3/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/listers/exampledashed/v1/clustertesttype.go b/examples/pkg/kcp/clients/listers/exampledashed/v1/clustertesttype.go index 943a047e7..070a00094 100644 --- a/examples/pkg/kcp/clients/listers/exampledashed/v1/clustertesttype.go +++ b/examples/pkg/kcp/clients/listers/exampledashed/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/listers/exampledashed/v1/testtype.go b/examples/pkg/kcp/clients/listers/exampledashed/v1/testtype.go index 30453a7d2..1d4234672 100644 --- a/examples/pkg/kcp/clients/listers/exampledashed/v1/testtype.go +++ b/examples/pkg/kcp/clients/listers/exampledashed/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/listers/existinginterfaces/v1/clustertesttype.go b/examples/pkg/kcp/clients/listers/existinginterfaces/v1/clustertesttype.go index 86084abc8..a473319bd 100644 --- a/examples/pkg/kcp/clients/listers/existinginterfaces/v1/clustertesttype.go +++ b/examples/pkg/kcp/clients/listers/existinginterfaces/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/listers/existinginterfaces/v1/testtype.go b/examples/pkg/kcp/clients/listers/existinginterfaces/v1/testtype.go index 06787be9e..db394a73d 100644 --- a/examples/pkg/kcp/clients/listers/existinginterfaces/v1/testtype.go +++ b/examples/pkg/kcp/clients/listers/existinginterfaces/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/listers/secondexample/v1/clustertesttype.go b/examples/pkg/kcp/clients/listers/secondexample/v1/clustertesttype.go index 98552b722..eb4837a0b 100644 --- a/examples/pkg/kcp/clients/listers/secondexample/v1/clustertesttype.go +++ b/examples/pkg/kcp/clients/listers/secondexample/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcp/clients/listers/secondexample/v1/testtype.go b/examples/pkg/kcp/clients/listers/secondexample/v1/testtype.go index 96f29577d..9798efac4 100644 --- a/examples/pkg/kcp/clients/listers/secondexample/v1/testtype.go +++ b/examples/pkg/kcp/clients/listers/secondexample/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/clientset.go b/examples/pkg/kcpexisting/clients/clientset/versioned/clientset.go index 7e9030b3f..b561b4175 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/clientset.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/clientset.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/fake/clientset.go b/examples/pkg/kcpexisting/clients/clientset/versioned/fake/clientset.go index 19382ce62..43311c533 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/fake/clientset.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/fake/clientset.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/scheme/register.go b/examples/pkg/kcpexisting/clients/clientset/versioned/scheme/register.go index 9761d7ec8..aac661550 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/scheme/register.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/scheme/register.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/clustertesttype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/clustertesttype.go index e11f623f4..3a96d500b 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/example_client.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/example_client.go index e1ef8111c..1e7e36fa4 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/example_client.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/example_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/fake/clustertesttype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/fake/clustertesttype.go index 225988045..61133c33b 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/fake/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/fake/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/fake/example_client.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/fake/example_client.go index 8df712207..5de53ccde 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/fake/example_client.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/fake/example_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/fake/testtype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/fake/testtype.go index 3d59c5df3..7122e601d 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/fake/testtype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/fake/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/fake/withoutverbtype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/fake/withoutverbtype.go index 831e4f564..0d5edd979 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/fake/withoutverbtype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/fake/withoutverbtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/testtype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/testtype.go index c8776540b..637798366 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/testtype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/withoutverbtype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/withoutverbtype.go index b4d4329bd..e937342af 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/withoutverbtype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1/withoutverbtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/clustertesttype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/clustertesttype.go index c0f2bba07..41aa31422 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/example_client.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/example_client.go index e45f76c49..b235912f4 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/example_client.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/example_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/fake/clustertesttype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/fake/clustertesttype.go index e28612369..c1bbe02d1 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/fake/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/fake/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/fake/example_client.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/fake/example_client.go index 7f11d0bab..54fb3f6de 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/fake/example_client.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/fake/example_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/fake/testtype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/fake/testtype.go index ca5bbb7d9..090b873ff 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/fake/testtype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/fake/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/testtype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/testtype.go index f181d3aab..97f8fae70 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/testtype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1alpha1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/clustertesttype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/clustertesttype.go index ac21c7549..c76c30cb3 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/example_client.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/example_client.go index 9d720f2bd..6b59d7eff 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/example_client.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/example_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/fake/clustertesttype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/fake/clustertesttype.go index 898b28710..1fc2574d0 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/fake/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/fake/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/fake/example_client.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/fake/example_client.go index 4ead5bb77..659a5b853 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/fake/example_client.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/fake/example_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/fake/testtype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/fake/testtype.go index f08cef981..90c28be49 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/fake/testtype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/fake/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/testtype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/testtype.go index 5c84ea007..05f7f02a1 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/testtype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v1beta1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/clustertesttype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/clustertesttype.go index c2bc48817..5c4e06335 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/example_client.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/example_client.go index 5096e3628..f6e4c4282 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/example_client.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/example_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/fake/clustertesttype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/fake/clustertesttype.go index 50ed201a6..6079c9744 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/fake/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/fake/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/fake/example_client.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/fake/example_client.go index b84f4b22d..f71b23156 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/fake/example_client.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/fake/example_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/fake/testtype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/fake/testtype.go index 58af8e051..e757239fc 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/fake/testtype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/fake/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/testtype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/testtype.go index d140c37d5..37a3eca68 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/testtype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example/v2/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/clustertesttype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/clustertesttype.go index adde1fd08..455302a58 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/example3_client.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/example3_client.go index 2285f2cf5..a78e00fb2 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/example3_client.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/example3_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/fake/clustertesttype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/fake/clustertesttype.go index 5905b6d77..df053b400 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/fake/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/fake/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/fake/example3_client.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/fake/example3_client.go index 3443f9898..3d9ad3b01 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/fake/example3_client.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/fake/example3_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/fake/testtype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/fake/testtype.go index 4c24bdd12..172633fd5 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/fake/testtype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/fake/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/testtype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/testtype.go index bee57419e..839e05a87 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/testtype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/example3/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/clustertesttype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/clustertesttype.go index 85031ddd1..0a3121c6d 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/exampledashed_client.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/exampledashed_client.go index 6030bf227..1ef27fd52 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/exampledashed_client.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/exampledashed_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/fake/clustertesttype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/fake/clustertesttype.go index 58dbc19e9..e42c093b9 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/fake/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/fake/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/fake/exampledashed_client.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/fake/exampledashed_client.go index 2ddf83e98..955c35e55 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/fake/exampledashed_client.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/fake/exampledashed_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/fake/testtype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/fake/testtype.go index 73f0976d3..098e1afff 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/fake/testtype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/fake/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/testtype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/testtype.go index eb9eacdd1..ce4377c53 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/testtype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/exampledashed/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/clustertesttype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/clustertesttype.go index c9f0833ce..d693778e2 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/existinginterfaces_client.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/existinginterfaces_client.go index f91869ecb..c05661de5 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/existinginterfaces_client.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/existinginterfaces_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/fake/clustertesttype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/fake/clustertesttype.go index 3db29e205..3c125cef7 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/fake/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/fake/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/fake/existinginterfaces_client.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/fake/existinginterfaces_client.go index 4b909c615..5f529c058 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/fake/existinginterfaces_client.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/fake/existinginterfaces_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/fake/testtype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/fake/testtype.go index b0e7bc947..369220e2b 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/fake/testtype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/fake/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/testtype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/testtype.go index 3873c0502..fa8068bed 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/testtype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/existinginterfaces/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/clustertesttype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/clustertesttype.go index 28c948133..2f026b3fa 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/fake/clustertesttype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/fake/clustertesttype.go index bfa081276..0709c5b90 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/fake/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/fake/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/fake/secondexample_client.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/fake/secondexample_client.go index b4ce6cdd9..c6621b5e6 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/fake/secondexample_client.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/fake/secondexample_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/fake/testtype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/fake/testtype.go index 4346645f7..72b7192c3 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/fake/testtype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/fake/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/secondexample_client.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/secondexample_client.go index f0da7668f..319025e2b 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/secondexample_client.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/secondexample_client.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/testtype.go b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/testtype.go index fe04e5e5b..bffaaac14 100644 --- a/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/testtype.go +++ b/examples/pkg/kcpexisting/clients/clientset/versioned/typed/secondexample/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/example/interface.go b/examples/pkg/kcpexisting/clients/informers/externalversions/example/interface.go index f742ac81c..78fc12331 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/example/interface.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/example/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1/clustertesttype.go b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1/clustertesttype.go index 2f2c418a1..dab7403ea 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1/interface.go b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1/interface.go index ebae731bf..aaa482a25 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1/interface.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1/testtype.go b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1/testtype.go index a589c3f16..d48722d28 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1/testtype.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1alpha1/clustertesttype.go b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1alpha1/clustertesttype.go index ffa241ef2..6b2d21aa2 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1alpha1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1alpha1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1alpha1/interface.go b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1alpha1/interface.go index 563ec11a4..3cd93a453 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1alpha1/interface.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1alpha1/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1alpha1/testtype.go b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1alpha1/testtype.go index 828c34fa6..f543be7c3 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1alpha1/testtype.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1alpha1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1beta1/clustertesttype.go b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1beta1/clustertesttype.go index 1156aa6ee..965f28056 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1beta1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1beta1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1beta1/interface.go b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1beta1/interface.go index 557112ccb..5bdbd4034 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1beta1/interface.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1beta1/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1beta1/testtype.go b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1beta1/testtype.go index 471f4ea41..f0e926c49 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1beta1/testtype.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v1beta1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v2/clustertesttype.go b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v2/clustertesttype.go index 2747d4060..481393bca 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v2/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v2/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v2/interface.go b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v2/interface.go index 83daf27bd..a167ca714 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v2/interface.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v2/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v2/testtype.go b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v2/testtype.go index 3e15daee1..3d26b6d83 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/example/v2/testtype.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/example/v2/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/example3/interface.go b/examples/pkg/kcpexisting/clients/informers/externalversions/example3/interface.go index 5dd78f30f..188984b3f 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/example3/interface.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/example3/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/example3/v1/clustertesttype.go b/examples/pkg/kcpexisting/clients/informers/externalversions/example3/v1/clustertesttype.go index abb8a3e24..2b3bb7411 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/example3/v1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/example3/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/example3/v1/interface.go b/examples/pkg/kcpexisting/clients/informers/externalversions/example3/v1/interface.go index ebae731bf..aaa482a25 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/example3/v1/interface.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/example3/v1/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/example3/v1/testtype.go b/examples/pkg/kcpexisting/clients/informers/externalversions/example3/v1/testtype.go index e20bb2f7b..fd4da045a 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/example3/v1/testtype.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/example3/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/exampledashed/interface.go b/examples/pkg/kcpexisting/clients/informers/externalversions/exampledashed/interface.go index 8d96762d0..8de0750b1 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/exampledashed/interface.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/exampledashed/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/exampledashed/v1/clustertesttype.go b/examples/pkg/kcpexisting/clients/informers/externalversions/exampledashed/v1/clustertesttype.go index 9352b82d5..f1145ffb7 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/exampledashed/v1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/exampledashed/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/exampledashed/v1/interface.go b/examples/pkg/kcpexisting/clients/informers/externalversions/exampledashed/v1/interface.go index ebae731bf..aaa482a25 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/exampledashed/v1/interface.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/exampledashed/v1/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/exampledashed/v1/testtype.go b/examples/pkg/kcpexisting/clients/informers/externalversions/exampledashed/v1/testtype.go index 063961533..aec1b8aee 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/exampledashed/v1/testtype.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/exampledashed/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/existinginterfaces/interface.go b/examples/pkg/kcpexisting/clients/informers/externalversions/existinginterfaces/interface.go index cb7106362..7cde0bd8c 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/existinginterfaces/interface.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/existinginterfaces/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/existinginterfaces/v1/clustertesttype.go b/examples/pkg/kcpexisting/clients/informers/externalversions/existinginterfaces/v1/clustertesttype.go index 46736b5c8..f5d1b148d 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/existinginterfaces/v1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/existinginterfaces/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/existinginterfaces/v1/interface.go b/examples/pkg/kcpexisting/clients/informers/externalversions/existinginterfaces/v1/interface.go index ebae731bf..aaa482a25 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/existinginterfaces/v1/interface.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/existinginterfaces/v1/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/existinginterfaces/v1/testtype.go b/examples/pkg/kcpexisting/clients/informers/externalversions/existinginterfaces/v1/testtype.go index 0d8baaa5b..d19fc2bcb 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/existinginterfaces/v1/testtype.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/existinginterfaces/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/factory.go b/examples/pkg/kcpexisting/clients/informers/externalversions/factory.go index c17b9e5c0..70025f626 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/factory.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/factory.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/generic.go b/examples/pkg/kcpexisting/clients/informers/externalversions/generic.go index f3b0f2c01..611135eca 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/generic.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/generic.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/internalinterfaces/factory_interfaces.go b/examples/pkg/kcpexisting/clients/informers/externalversions/internalinterfaces/factory_interfaces.go index 6db808f71..4c2d99732 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/internalinterfaces/factory_interfaces.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/internalinterfaces/factory_interfaces.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/secondexample/interface.go b/examples/pkg/kcpexisting/clients/informers/externalversions/secondexample/interface.go index c69429356..448e8271f 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/secondexample/interface.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/secondexample/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/secondexample/v1/clustertesttype.go b/examples/pkg/kcpexisting/clients/informers/externalversions/secondexample/v1/clustertesttype.go index 53656664d..b491026cd 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/secondexample/v1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/secondexample/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/secondexample/v1/interface.go b/examples/pkg/kcpexisting/clients/informers/externalversions/secondexample/v1/interface.go index ebae731bf..aaa482a25 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/secondexample/v1/interface.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/secondexample/v1/interface.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/informers/externalversions/secondexample/v1/testtype.go b/examples/pkg/kcpexisting/clients/informers/externalversions/secondexample/v1/testtype.go index aa01847e4..c286f92a6 100644 --- a/examples/pkg/kcpexisting/clients/informers/externalversions/secondexample/v1/testtype.go +++ b/examples/pkg/kcpexisting/clients/informers/externalversions/secondexample/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/listers/example/v1/clustertesttype.go b/examples/pkg/kcpexisting/clients/listers/example/v1/clustertesttype.go index c289b01a1..c5e427c8b 100644 --- a/examples/pkg/kcpexisting/clients/listers/example/v1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/listers/example/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/listers/example/v1/testtype.go b/examples/pkg/kcpexisting/clients/listers/example/v1/testtype.go index 028a87771..b659ca391 100644 --- a/examples/pkg/kcpexisting/clients/listers/example/v1/testtype.go +++ b/examples/pkg/kcpexisting/clients/listers/example/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/listers/example/v1alpha1/clustertesttype.go b/examples/pkg/kcpexisting/clients/listers/example/v1alpha1/clustertesttype.go index 44ab6bff9..2bc0b82aa 100644 --- a/examples/pkg/kcpexisting/clients/listers/example/v1alpha1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/listers/example/v1alpha1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/listers/example/v1alpha1/testtype.go b/examples/pkg/kcpexisting/clients/listers/example/v1alpha1/testtype.go index 74468b758..beb2e24f1 100644 --- a/examples/pkg/kcpexisting/clients/listers/example/v1alpha1/testtype.go +++ b/examples/pkg/kcpexisting/clients/listers/example/v1alpha1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/listers/example/v1beta1/clustertesttype.go b/examples/pkg/kcpexisting/clients/listers/example/v1beta1/clustertesttype.go index f28f04c76..8d7c55241 100644 --- a/examples/pkg/kcpexisting/clients/listers/example/v1beta1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/listers/example/v1beta1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/listers/example/v1beta1/testtype.go b/examples/pkg/kcpexisting/clients/listers/example/v1beta1/testtype.go index 7adb0d197..3974cfd9a 100644 --- a/examples/pkg/kcpexisting/clients/listers/example/v1beta1/testtype.go +++ b/examples/pkg/kcpexisting/clients/listers/example/v1beta1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/listers/example/v2/clustertesttype.go b/examples/pkg/kcpexisting/clients/listers/example/v2/clustertesttype.go index d587dcc46..9ca7aaa60 100644 --- a/examples/pkg/kcpexisting/clients/listers/example/v2/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/listers/example/v2/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/listers/example/v2/testtype.go b/examples/pkg/kcpexisting/clients/listers/example/v2/testtype.go index b94a32c92..f2b4c1d99 100644 --- a/examples/pkg/kcpexisting/clients/listers/example/v2/testtype.go +++ b/examples/pkg/kcpexisting/clients/listers/example/v2/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/listers/example3/v1/clustertesttype.go b/examples/pkg/kcpexisting/clients/listers/example3/v1/clustertesttype.go index 13b06d11e..1177c2500 100644 --- a/examples/pkg/kcpexisting/clients/listers/example3/v1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/listers/example3/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/listers/example3/v1/testtype.go b/examples/pkg/kcpexisting/clients/listers/example3/v1/testtype.go index e7dd12058..ce0c87f6f 100644 --- a/examples/pkg/kcpexisting/clients/listers/example3/v1/testtype.go +++ b/examples/pkg/kcpexisting/clients/listers/example3/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/listers/exampledashed/v1/clustertesttype.go b/examples/pkg/kcpexisting/clients/listers/exampledashed/v1/clustertesttype.go index ed5630a23..0d672b27c 100644 --- a/examples/pkg/kcpexisting/clients/listers/exampledashed/v1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/listers/exampledashed/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/listers/exampledashed/v1/testtype.go b/examples/pkg/kcpexisting/clients/listers/exampledashed/v1/testtype.go index 07d6dc46d..780638988 100644 --- a/examples/pkg/kcpexisting/clients/listers/exampledashed/v1/testtype.go +++ b/examples/pkg/kcpexisting/clients/listers/exampledashed/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/listers/existinginterfaces/v1/clustertesttype.go b/examples/pkg/kcpexisting/clients/listers/existinginterfaces/v1/clustertesttype.go index 01298dafb..8537a1130 100644 --- a/examples/pkg/kcpexisting/clients/listers/existinginterfaces/v1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/listers/existinginterfaces/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/listers/existinginterfaces/v1/testtype.go b/examples/pkg/kcpexisting/clients/listers/existinginterfaces/v1/testtype.go index 12b3eeb50..b5543523f 100644 --- a/examples/pkg/kcpexisting/clients/listers/existinginterfaces/v1/testtype.go +++ b/examples/pkg/kcpexisting/clients/listers/existinginterfaces/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/listers/secondexample/v1/clustertesttype.go b/examples/pkg/kcpexisting/clients/listers/secondexample/v1/clustertesttype.go index 107514938..4fea9fb4d 100644 --- a/examples/pkg/kcpexisting/clients/listers/secondexample/v1/clustertesttype.go +++ b/examples/pkg/kcpexisting/clients/listers/secondexample/v1/clustertesttype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors. diff --git a/examples/pkg/kcpexisting/clients/listers/secondexample/v1/testtype.go b/examples/pkg/kcpexisting/clients/listers/secondexample/v1/testtype.go index 699c26089..2f60b5aa3 100644 --- a/examples/pkg/kcpexisting/clients/listers/secondexample/v1/testtype.go +++ b/examples/pkg/kcpexisting/clients/listers/secondexample/v1/testtype.go @@ -1,6 +1,3 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - /* Copyright The KCP Authors.