From a8507c4d3caee959c302a9b30b330e20cd20471d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Apr 2023 23:18:02 -0700 Subject: [PATCH] Bump k8s.io/code-generator from 0.26.3 to 0.27.1 (#3782) * Bump k8s.io/code-generator from 0.26.3 to 0.27.1 Bumps [k8s.io/code-generator](https://github.com/kubernetes/code-generator) from 0.26.3 to 0.27.1. - [Release notes](https://github.com/kubernetes/code-generator/releases) - [Commits](https://github.com/kubernetes/code-generator/compare/v0.26.3...v0.27.1) --- updated-dependencies: - dependency-name: k8s.io/code-generator dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Run make update-codegen --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Luca Comellini --- go.mod | 20 +++---- go.sum | 53 ++++++++--------- .../configuration/v1/fake/fake_policy.go | 57 +++++++++---------- .../v1/fake/fake_virtualserver.go | 57 +++++++++---------- .../v1/fake/fake_virtualserverroute.go | 57 +++++++++---------- .../v1alpha1/fake/fake_globalconfiguration.go | 5 +- .../v1alpha1/fake/fake_policy.go | 5 +- .../v1alpha1/fake/fake_transportserver.go | 5 +- .../v1beta1/fake/fake_dosprotectedresource.go | 5 +- .../externaldns/v1/fake/fake_dnsendpoint.go | 57 +++++++++---------- 10 files changed, 157 insertions(+), 164 deletions(-) diff --git a/go.mod b/go.mod index 8950fea83d..871f20b810 100644 --- a/go.mod +++ b/go.mod @@ -21,7 +21,7 @@ require ( k8s.io/api v0.26.3 k8s.io/apimachinery v0.26.3 k8s.io/client-go v0.26.3 - k8s.io/code-generator v0.26.3 + k8s.io/code-generator v0.27.1 k8s.io/utils v0.0.0-20230115233650-391b47cb4029 sigs.k8s.io/controller-tools v0.11.3 ) @@ -56,8 +56,8 @@ require ( github.com/go-ldap/ldap/v3 v3.4.4 // indirect github.com/go-logr/logr v1.2.3 // indirect github.com/go-logr/stdr v1.2.2 // indirect - github.com/go-openapi/jsonpointer v0.19.5 // indirect - github.com/go-openapi/jsonreference v0.20.0 // indirect + github.com/go-openapi/jsonpointer v0.19.6 // indirect + github.com/go-openapi/jsonreference v0.20.1 // indirect github.com/go-openapi/swag v0.22.3 // indirect github.com/gobuffalo/flect v0.3.0 // indirect github.com/gogo/protobuf v1.3.2 // indirect @@ -106,14 +106,14 @@ require ( go.uber.org/multierr v1.8.0 // indirect go.uber.org/zap v1.24.0 // indirect golang.org/x/crypto v0.6.0 // indirect - golang.org/x/mod v0.8.0 // indirect - golang.org/x/net v0.7.0 // indirect + golang.org/x/mod v0.9.0 // indirect + golang.org/x/net v0.8.0 // indirect golang.org/x/oauth2 v0.5.0 // indirect golang.org/x/sys v0.6.0 // indirect - golang.org/x/term v0.5.0 // indirect - golang.org/x/text v0.7.0 // indirect + golang.org/x/term v0.6.0 // indirect + golang.org/x/text v0.8.0 // indirect golang.org/x/time v0.3.0 // indirect - golang.org/x/tools v0.6.0 // indirect + golang.org/x/tools v0.7.0 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/genproto v0.0.0-20230223222841-637eb2293923 // indirect google.golang.org/grpc v1.53.0 // indirect @@ -125,9 +125,9 @@ require ( k8s.io/apiserver v0.26.1 // indirect k8s.io/component-base v0.26.1 // indirect k8s.io/gengo v0.0.0-20220902162205-c0856e24416d // indirect - k8s.io/klog/v2 v2.80.1 // indirect + k8s.io/klog/v2 v2.90.1 // indirect k8s.io/kube-aggregator v0.26.1 // indirect - k8s.io/kube-openapi v0.0.0-20221207184640-f3cff1453715 // indirect + k8s.io/kube-openapi v0.0.0-20230308215209-15aac26d736a // indirect sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.35 // indirect sigs.k8s.io/gateway-api v0.6.0 // indirect sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect diff --git a/go.sum b/go.sum index e0bc31d3be..5a5e9133f3 100644 --- a/go.sum +++ b/go.sum @@ -157,15 +157,14 @@ github.com/go-logr/logr v1.2.3 h1:2DntVwHkVopvECVRSlL5PSo9eG+cAkDCuckLubN+rq0= github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= -github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/jsonreference v0.20.0 h1:MYlu0sBgChmCfJxxUKZ8g1cPWFOB37YSZqewK7OKeyA= -github.com/go-openapi/jsonreference v0.20.0/go.mod h1:Ag74Ico3lPc+zR+qjn4XBUmXymS4zJbYVCZmcgkasdo= -github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= +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/jsonreference v0.20.1 h1:FBLnyygC4/IZZr893oiomc9XaghoveYTrLC1F86HID8= +github.com/go-openapi/jsonreference v0.20.1/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k= github.com/go-openapi/swag v0.22.3 h1:yMBqmnQ0gyZvEb/+KzuWZOXgllrXT4SADYbvDaXHv/g= github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 h1:p104kn46Q8WdvHunIJ9dAyjPVtrBPhSr3KT2yUst43I= github.com/gobuffalo/flect v0.3.0 h1:erfPWM+K1rFNIQeRPdeEXxo8yFr/PO17lhRnS8FUrtk= github.com/gobuffalo/flect v0.3.0/go.mod h1:5pf3aGnsvqvCj50AVni7mJJF8ICxGZ8HomberC3pXLE= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= @@ -235,6 +234,7 @@ github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hf github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 h1:K6RDEckDVWvDI9JAJYCmNdQXq6neHJOYx3V6jnqNEec= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= @@ -278,14 +278,13 @@ github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxv github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= @@ -319,8 +318,8 @@ github.com/nginxinc/nginx-service-mesh v1.7.0 h1:oxKr+Jdbxkos10VTy5xF2UHCcmfIhqW github.com/nginxinc/nginx-service-mesh v1.7.0/go.mod h1:8tREM3kSEUGyk8JT8hdCf/9ol2kEo7hLR8b+m5Yd8Fs= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= -github.com/onsi/ginkgo/v2 v2.8.0 h1:pAM+oBNPrpXRs+E/8spkeGx9QgekbRVyr74EUvRVOUI= -github.com/onsi/gomega v1.26.0 h1:03cDLK28U6hWvCAns6NeydX3zIm4SF3ci69ulidS32Q= +github.com/onsi/ginkgo/v2 v2.9.1 h1:zie5Ly042PD3bsCvsSOPvRnFwyo3rKe64TJlD6nu0mk= +github.com/onsi/gomega v1.27.4 h1:Z2AnStgsdSayCMDiCU42qIz+HLqEPcgiOCXjAU/w+8E= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -382,6 +381,7 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802 h1:uruHq4dN7GR16kFc5fp3d1RIYzJW5onx8Ybykw2YQFA= @@ -487,8 +487,8 @@ golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzB golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8= -golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= +golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -521,8 +521,8 @@ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwY golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= -golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -589,8 +589,8 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.5.0 h1:n2a8QNdAb0sZNpU9R1ALUXBbY+w51fCQDN+7EdxNBsY= -golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw= +golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -598,8 +598,8 @@ golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= -golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -649,8 +649,8 @@ golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM= -golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= +golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4= +golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= 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= @@ -754,6 +754,7 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/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= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= @@ -791,19 +792,19 @@ k8s.io/apiserver v0.26.1 h1:6vmnAqCDO194SVCPU3MU8NcDgSqsUA62tBUSWrFXhsc= k8s.io/apiserver v0.26.1/go.mod h1:wr75z634Cv+sifswE9HlAo5FQ7UoUauIICRlOE+5dCg= k8s.io/client-go v0.26.3 h1:k1UY+KXfkxV2ScEL3gilKcF7761xkYsSD6BC9szIu8s= k8s.io/client-go v0.26.3/go.mod h1:ZPNu9lm8/dbRIPAgteN30RSXea6vrCpFvq+MateTUuQ= -k8s.io/code-generator v0.26.3 h1:DNYPsWoeFwmg4qFg97Z1cHSSv7KSG10mAEIFoZGTQM8= -k8s.io/code-generator v0.26.3/go.mod h1:ryaiIKwfxEJEaywEzx3dhWOydpVctKYbqLajJf0O8dI= +k8s.io/code-generator v0.27.1 h1:GrfUeUrJ/RtPskIsnChcXOW6h0EGNqty0VxxQ9qYKlM= +k8s.io/code-generator v0.27.1/go.mod h1:iWtpm0ZMG6Gc4daWfITDSIu+WFhFJArYDhj242zcbnY= k8s.io/component-base v0.26.1 h1:4ahudpeQXHZL5kko+iDHqLj/FSGAEUnSVO0EBbgDd+4= k8s.io/component-base v0.26.1/go.mod h1:VHrLR0b58oC035w6YQiBSbtsf0ThuSwXP+p5dD/kAWU= k8s.io/gengo v0.0.0-20220902162205-c0856e24416d h1:U9tB195lKdzwqicbJvyJeOXV7Klv+wNAWENRnXEGi08= k8s.io/gengo v0.0.0-20220902162205-c0856e24416d/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= k8s.io/klog/v2 v2.2.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= -k8s.io/klog/v2 v2.80.1 h1:atnLQ121W371wYYFawwYx1aEY2eUfs4l3J72wtgAwV4= -k8s.io/klog/v2 v2.80.1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0= +k8s.io/klog/v2 v2.90.1 h1:m4bYOKall2MmOiRaR1J+We67Do7vm9KiQVlT96lnHUw= +k8s.io/klog/v2 v2.90.1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0= k8s.io/kube-aggregator v0.26.1 h1:TqDWwuaUJpyhWGWw4JrXR8ZAAaHa9qrsXxR41aR3igw= k8s.io/kube-aggregator v0.26.1/go.mod h1:E6dnKoQ6f4eFl8QQXHxTASZKXBX6+XcjROWl7GRltl4= -k8s.io/kube-openapi v0.0.0-20221207184640-f3cff1453715 h1:tBEbstoM+K0FiBV5KGAKQ0kuvf54v/hwpldiJt69w1s= -k8s.io/kube-openapi v0.0.0-20221207184640-f3cff1453715/go.mod h1:+Axhij7bCpeqhklhUTe3xmOn6bWxolyZEeyaFpjGtl4= +k8s.io/kube-openapi v0.0.0-20230308215209-15aac26d736a h1:gmovKNur38vgoWfGtP5QOGNOA7ki4n6qNYoFAgMlNvg= +k8s.io/kube-openapi v0.0.0-20230308215209-15aac26d736a/go.mod h1:y5VtZWM9sHHc2ZodIH/6SHzXj+TPU5USoA8lcIeKEKY= k8s.io/utils v0.0.0-20230115233650-391b47cb4029 h1:L8zDtT4jrxj+TaQYD0k8KNlr556WaVQylDXswKmX+dE= k8s.io/utils v0.0.0-20230115233650-391b47cb4029/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= diff --git a/pkg/client/clientset/versioned/typed/configuration/v1/fake/fake_policy.go b/pkg/client/clientset/versioned/typed/configuration/v1/fake/fake_policy.go index fd64b3c7db..9d2b079243 100644 --- a/pkg/client/clientset/versioned/typed/configuration/v1/fake/fake_policy.go +++ b/pkg/client/clientset/versioned/typed/configuration/v1/fake/fake_policy.go @@ -5,10 +5,9 @@ package fake import ( "context" - configurationv1 "github.com/nginxinc/kubernetes-ingress/pkg/apis/configuration/v1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + v1 "github.com/nginxinc/kubernetes-ingress/pkg/apis/configuration/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -20,25 +19,25 @@ type FakePolicies struct { ns string } -var policiesResource = schema.GroupVersionResource{Group: "k8s.nginx.org", Version: "v1", Resource: "policies"} +var policiesResource = v1.SchemeGroupVersion.WithResource("policies") -var policiesKind = schema.GroupVersionKind{Group: "k8s.nginx.org", Version: "v1", Kind: "Policy"} +var policiesKind = v1.SchemeGroupVersion.WithKind("Policy") // Get takes name of the policy, and returns the corresponding policy object, and an error if there is any. -func (c *FakePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *configurationv1.Policy, err error) { +func (c *FakePolicies) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Policy, err error) { obj, err := c.Fake. - Invokes(testing.NewGetAction(policiesResource, c.ns, name), &configurationv1.Policy{}) + Invokes(testing.NewGetAction(policiesResource, c.ns, name), &v1.Policy{}) if obj == nil { return nil, err } - return obj.(*configurationv1.Policy), err + return obj.(*v1.Policy), err } // List takes label and field selectors, and returns the list of Policies that match those selectors. -func (c *FakePolicies) List(ctx context.Context, opts v1.ListOptions) (result *configurationv1.PolicyList, err error) { +func (c *FakePolicies) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PolicyList, err error) { obj, err := c.Fake. - Invokes(testing.NewListAction(policiesResource, policiesKind, c.ns, opts), &configurationv1.PolicyList{}) + Invokes(testing.NewListAction(policiesResource, policiesKind, c.ns, opts), &v1.PolicyList{}) if obj == nil { return nil, err @@ -48,8 +47,8 @@ func (c *FakePolicies) List(ctx context.Context, opts v1.ListOptions) (result *c if label == nil { label = labels.Everything() } - list := &configurationv1.PolicyList{ListMeta: obj.(*configurationv1.PolicyList).ListMeta} - for _, item := range obj.(*configurationv1.PolicyList).Items { + list := &v1.PolicyList{ListMeta: obj.(*v1.PolicyList).ListMeta} + for _, item := range obj.(*v1.PolicyList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } @@ -58,69 +57,69 @@ func (c *FakePolicies) List(ctx context.Context, opts v1.ListOptions) (result *c } // Watch returns a watch.Interface that watches the requested policies. -func (c *FakePolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { +func (c *FakePolicies) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { return c.Fake. InvokesWatch(testing.NewWatchAction(policiesResource, c.ns, opts)) } // Create takes the representation of a policy and creates it. Returns the server's representation of the policy, and an error, if there is any. -func (c *FakePolicies) Create(ctx context.Context, policy *configurationv1.Policy, opts v1.CreateOptions) (result *configurationv1.Policy, err error) { +func (c *FakePolicies) Create(ctx context.Context, policy *v1.Policy, opts metav1.CreateOptions) (result *v1.Policy, err error) { obj, err := c.Fake. - Invokes(testing.NewCreateAction(policiesResource, c.ns, policy), &configurationv1.Policy{}) + Invokes(testing.NewCreateAction(policiesResource, c.ns, policy), &v1.Policy{}) if obj == nil { return nil, err } - return obj.(*configurationv1.Policy), err + return obj.(*v1.Policy), err } // Update takes the representation of a policy and updates it. Returns the server's representation of the policy, and an error, if there is any. -func (c *FakePolicies) Update(ctx context.Context, policy *configurationv1.Policy, opts v1.UpdateOptions) (result *configurationv1.Policy, err error) { +func (c *FakePolicies) Update(ctx context.Context, policy *v1.Policy, opts metav1.UpdateOptions) (result *v1.Policy, err error) { obj, err := c.Fake. - Invokes(testing.NewUpdateAction(policiesResource, c.ns, policy), &configurationv1.Policy{}) + Invokes(testing.NewUpdateAction(policiesResource, c.ns, policy), &v1.Policy{}) if obj == nil { return nil, err } - return obj.(*configurationv1.Policy), err + return obj.(*v1.Policy), 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 *FakePolicies) UpdateStatus(ctx context.Context, policy *configurationv1.Policy, opts v1.UpdateOptions) (*configurationv1.Policy, error) { +func (c *FakePolicies) UpdateStatus(ctx context.Context, policy *v1.Policy, opts metav1.UpdateOptions) (*v1.Policy, error) { obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(policiesResource, "status", c.ns, policy), &configurationv1.Policy{}) + Invokes(testing.NewUpdateSubresourceAction(policiesResource, "status", c.ns, policy), &v1.Policy{}) if obj == nil { return nil, err } - return obj.(*configurationv1.Policy), err + return obj.(*v1.Policy), err } // Delete takes name of the policy and deletes it. Returns an error if one occurs. -func (c *FakePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { +func (c *FakePolicies) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(policiesResource, c.ns, name, opts), &configurationv1.Policy{}) + Invokes(testing.NewDeleteActionWithOptions(policiesResource, c.ns, name, opts), &v1.Policy{}) return err } // DeleteCollection deletes a collection of objects. -func (c *FakePolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { +func (c *FakePolicies) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { action := testing.NewDeleteCollectionAction(policiesResource, c.ns, listOpts) - _, err := c.Fake.Invokes(action, &configurationv1.PolicyList{}) + _, err := c.Fake.Invokes(action, &v1.PolicyList{}) return err } // Patch applies the patch and returns the patched policy. -func (c *FakePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *configurationv1.Policy, err error) { +func (c *FakePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Policy, err error) { obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(policiesResource, c.ns, name, pt, data, subresources...), &configurationv1.Policy{}) + Invokes(testing.NewPatchSubresourceAction(policiesResource, c.ns, name, pt, data, subresources...), &v1.Policy{}) if obj == nil { return nil, err } - return obj.(*configurationv1.Policy), err + return obj.(*v1.Policy), err } diff --git a/pkg/client/clientset/versioned/typed/configuration/v1/fake/fake_virtualserver.go b/pkg/client/clientset/versioned/typed/configuration/v1/fake/fake_virtualserver.go index 86aff05d74..9d3eade2b7 100644 --- a/pkg/client/clientset/versioned/typed/configuration/v1/fake/fake_virtualserver.go +++ b/pkg/client/clientset/versioned/typed/configuration/v1/fake/fake_virtualserver.go @@ -5,10 +5,9 @@ package fake import ( "context" - configurationv1 "github.com/nginxinc/kubernetes-ingress/pkg/apis/configuration/v1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + v1 "github.com/nginxinc/kubernetes-ingress/pkg/apis/configuration/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -20,25 +19,25 @@ type FakeVirtualServers struct { ns string } -var virtualserversResource = schema.GroupVersionResource{Group: "k8s.nginx.org", Version: "v1", Resource: "virtualservers"} +var virtualserversResource = v1.SchemeGroupVersion.WithResource("virtualservers") -var virtualserversKind = schema.GroupVersionKind{Group: "k8s.nginx.org", Version: "v1", Kind: "VirtualServer"} +var virtualserversKind = v1.SchemeGroupVersion.WithKind("VirtualServer") // Get takes name of the virtualServer, and returns the corresponding virtualServer object, and an error if there is any. -func (c *FakeVirtualServers) Get(ctx context.Context, name string, options v1.GetOptions) (result *configurationv1.VirtualServer, err error) { +func (c *FakeVirtualServers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VirtualServer, err error) { obj, err := c.Fake. - Invokes(testing.NewGetAction(virtualserversResource, c.ns, name), &configurationv1.VirtualServer{}) + Invokes(testing.NewGetAction(virtualserversResource, c.ns, name), &v1.VirtualServer{}) if obj == nil { return nil, err } - return obj.(*configurationv1.VirtualServer), err + return obj.(*v1.VirtualServer), err } // List takes label and field selectors, and returns the list of VirtualServers that match those selectors. -func (c *FakeVirtualServers) List(ctx context.Context, opts v1.ListOptions) (result *configurationv1.VirtualServerList, err error) { +func (c *FakeVirtualServers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VirtualServerList, err error) { obj, err := c.Fake. - Invokes(testing.NewListAction(virtualserversResource, virtualserversKind, c.ns, opts), &configurationv1.VirtualServerList{}) + Invokes(testing.NewListAction(virtualserversResource, virtualserversKind, c.ns, opts), &v1.VirtualServerList{}) if obj == nil { return nil, err @@ -48,8 +47,8 @@ func (c *FakeVirtualServers) List(ctx context.Context, opts v1.ListOptions) (res if label == nil { label = labels.Everything() } - list := &configurationv1.VirtualServerList{ListMeta: obj.(*configurationv1.VirtualServerList).ListMeta} - for _, item := range obj.(*configurationv1.VirtualServerList).Items { + list := &v1.VirtualServerList{ListMeta: obj.(*v1.VirtualServerList).ListMeta} + for _, item := range obj.(*v1.VirtualServerList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } @@ -58,69 +57,69 @@ func (c *FakeVirtualServers) List(ctx context.Context, opts v1.ListOptions) (res } // Watch returns a watch.Interface that watches the requested virtualServers. -func (c *FakeVirtualServers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { +func (c *FakeVirtualServers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { return c.Fake. InvokesWatch(testing.NewWatchAction(virtualserversResource, c.ns, opts)) } // Create takes the representation of a virtualServer and creates it. Returns the server's representation of the virtualServer, and an error, if there is any. -func (c *FakeVirtualServers) Create(ctx context.Context, virtualServer *configurationv1.VirtualServer, opts v1.CreateOptions) (result *configurationv1.VirtualServer, err error) { +func (c *FakeVirtualServers) Create(ctx context.Context, virtualServer *v1.VirtualServer, opts metav1.CreateOptions) (result *v1.VirtualServer, err error) { obj, err := c.Fake. - Invokes(testing.NewCreateAction(virtualserversResource, c.ns, virtualServer), &configurationv1.VirtualServer{}) + Invokes(testing.NewCreateAction(virtualserversResource, c.ns, virtualServer), &v1.VirtualServer{}) if obj == nil { return nil, err } - return obj.(*configurationv1.VirtualServer), err + return obj.(*v1.VirtualServer), err } // Update takes the representation of a virtualServer and updates it. Returns the server's representation of the virtualServer, and an error, if there is any. -func (c *FakeVirtualServers) Update(ctx context.Context, virtualServer *configurationv1.VirtualServer, opts v1.UpdateOptions) (result *configurationv1.VirtualServer, err error) { +func (c *FakeVirtualServers) Update(ctx context.Context, virtualServer *v1.VirtualServer, opts metav1.UpdateOptions) (result *v1.VirtualServer, err error) { obj, err := c.Fake. - Invokes(testing.NewUpdateAction(virtualserversResource, c.ns, virtualServer), &configurationv1.VirtualServer{}) + Invokes(testing.NewUpdateAction(virtualserversResource, c.ns, virtualServer), &v1.VirtualServer{}) if obj == nil { return nil, err } - return obj.(*configurationv1.VirtualServer), err + return obj.(*v1.VirtualServer), 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 *FakeVirtualServers) UpdateStatus(ctx context.Context, virtualServer *configurationv1.VirtualServer, opts v1.UpdateOptions) (*configurationv1.VirtualServer, error) { +func (c *FakeVirtualServers) UpdateStatus(ctx context.Context, virtualServer *v1.VirtualServer, opts metav1.UpdateOptions) (*v1.VirtualServer, error) { obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(virtualserversResource, "status", c.ns, virtualServer), &configurationv1.VirtualServer{}) + Invokes(testing.NewUpdateSubresourceAction(virtualserversResource, "status", c.ns, virtualServer), &v1.VirtualServer{}) if obj == nil { return nil, err } - return obj.(*configurationv1.VirtualServer), err + return obj.(*v1.VirtualServer), err } // Delete takes name of the virtualServer and deletes it. Returns an error if one occurs. -func (c *FakeVirtualServers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { +func (c *FakeVirtualServers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(virtualserversResource, c.ns, name, opts), &configurationv1.VirtualServer{}) + Invokes(testing.NewDeleteActionWithOptions(virtualserversResource, c.ns, name, opts), &v1.VirtualServer{}) return err } // DeleteCollection deletes a collection of objects. -func (c *FakeVirtualServers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { +func (c *FakeVirtualServers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { action := testing.NewDeleteCollectionAction(virtualserversResource, c.ns, listOpts) - _, err := c.Fake.Invokes(action, &configurationv1.VirtualServerList{}) + _, err := c.Fake.Invokes(action, &v1.VirtualServerList{}) return err } // Patch applies the patch and returns the patched virtualServer. -func (c *FakeVirtualServers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *configurationv1.VirtualServer, err error) { +func (c *FakeVirtualServers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VirtualServer, err error) { obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(virtualserversResource, c.ns, name, pt, data, subresources...), &configurationv1.VirtualServer{}) + Invokes(testing.NewPatchSubresourceAction(virtualserversResource, c.ns, name, pt, data, subresources...), &v1.VirtualServer{}) if obj == nil { return nil, err } - return obj.(*configurationv1.VirtualServer), err + return obj.(*v1.VirtualServer), err } diff --git a/pkg/client/clientset/versioned/typed/configuration/v1/fake/fake_virtualserverroute.go b/pkg/client/clientset/versioned/typed/configuration/v1/fake/fake_virtualserverroute.go index 60890f4be3..b4c644c5f6 100644 --- a/pkg/client/clientset/versioned/typed/configuration/v1/fake/fake_virtualserverroute.go +++ b/pkg/client/clientset/versioned/typed/configuration/v1/fake/fake_virtualserverroute.go @@ -5,10 +5,9 @@ package fake import ( "context" - configurationv1 "github.com/nginxinc/kubernetes-ingress/pkg/apis/configuration/v1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + v1 "github.com/nginxinc/kubernetes-ingress/pkg/apis/configuration/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -20,25 +19,25 @@ type FakeVirtualServerRoutes struct { ns string } -var virtualserverroutesResource = schema.GroupVersionResource{Group: "k8s.nginx.org", Version: "v1", Resource: "virtualserverroutes"} +var virtualserverroutesResource = v1.SchemeGroupVersion.WithResource("virtualserverroutes") -var virtualserverroutesKind = schema.GroupVersionKind{Group: "k8s.nginx.org", Version: "v1", Kind: "VirtualServerRoute"} +var virtualserverroutesKind = v1.SchemeGroupVersion.WithKind("VirtualServerRoute") // Get takes name of the virtualServerRoute, and returns the corresponding virtualServerRoute object, and an error if there is any. -func (c *FakeVirtualServerRoutes) Get(ctx context.Context, name string, options v1.GetOptions) (result *configurationv1.VirtualServerRoute, err error) { +func (c *FakeVirtualServerRoutes) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VirtualServerRoute, err error) { obj, err := c.Fake. - Invokes(testing.NewGetAction(virtualserverroutesResource, c.ns, name), &configurationv1.VirtualServerRoute{}) + Invokes(testing.NewGetAction(virtualserverroutesResource, c.ns, name), &v1.VirtualServerRoute{}) if obj == nil { return nil, err } - return obj.(*configurationv1.VirtualServerRoute), err + return obj.(*v1.VirtualServerRoute), err } // List takes label and field selectors, and returns the list of VirtualServerRoutes that match those selectors. -func (c *FakeVirtualServerRoutes) List(ctx context.Context, opts v1.ListOptions) (result *configurationv1.VirtualServerRouteList, err error) { +func (c *FakeVirtualServerRoutes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VirtualServerRouteList, err error) { obj, err := c.Fake. - Invokes(testing.NewListAction(virtualserverroutesResource, virtualserverroutesKind, c.ns, opts), &configurationv1.VirtualServerRouteList{}) + Invokes(testing.NewListAction(virtualserverroutesResource, virtualserverroutesKind, c.ns, opts), &v1.VirtualServerRouteList{}) if obj == nil { return nil, err @@ -48,8 +47,8 @@ func (c *FakeVirtualServerRoutes) List(ctx context.Context, opts v1.ListOptions) if label == nil { label = labels.Everything() } - list := &configurationv1.VirtualServerRouteList{ListMeta: obj.(*configurationv1.VirtualServerRouteList).ListMeta} - for _, item := range obj.(*configurationv1.VirtualServerRouteList).Items { + list := &v1.VirtualServerRouteList{ListMeta: obj.(*v1.VirtualServerRouteList).ListMeta} + for _, item := range obj.(*v1.VirtualServerRouteList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } @@ -58,69 +57,69 @@ func (c *FakeVirtualServerRoutes) List(ctx context.Context, opts v1.ListOptions) } // Watch returns a watch.Interface that watches the requested virtualServerRoutes. -func (c *FakeVirtualServerRoutes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { +func (c *FakeVirtualServerRoutes) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { return c.Fake. InvokesWatch(testing.NewWatchAction(virtualserverroutesResource, c.ns, opts)) } // Create takes the representation of a virtualServerRoute and creates it. Returns the server's representation of the virtualServerRoute, and an error, if there is any. -func (c *FakeVirtualServerRoutes) Create(ctx context.Context, virtualServerRoute *configurationv1.VirtualServerRoute, opts v1.CreateOptions) (result *configurationv1.VirtualServerRoute, err error) { +func (c *FakeVirtualServerRoutes) Create(ctx context.Context, virtualServerRoute *v1.VirtualServerRoute, opts metav1.CreateOptions) (result *v1.VirtualServerRoute, err error) { obj, err := c.Fake. - Invokes(testing.NewCreateAction(virtualserverroutesResource, c.ns, virtualServerRoute), &configurationv1.VirtualServerRoute{}) + Invokes(testing.NewCreateAction(virtualserverroutesResource, c.ns, virtualServerRoute), &v1.VirtualServerRoute{}) if obj == nil { return nil, err } - return obj.(*configurationv1.VirtualServerRoute), err + return obj.(*v1.VirtualServerRoute), err } // Update takes the representation of a virtualServerRoute and updates it. Returns the server's representation of the virtualServerRoute, and an error, if there is any. -func (c *FakeVirtualServerRoutes) Update(ctx context.Context, virtualServerRoute *configurationv1.VirtualServerRoute, opts v1.UpdateOptions) (result *configurationv1.VirtualServerRoute, err error) { +func (c *FakeVirtualServerRoutes) Update(ctx context.Context, virtualServerRoute *v1.VirtualServerRoute, opts metav1.UpdateOptions) (result *v1.VirtualServerRoute, err error) { obj, err := c.Fake. - Invokes(testing.NewUpdateAction(virtualserverroutesResource, c.ns, virtualServerRoute), &configurationv1.VirtualServerRoute{}) + Invokes(testing.NewUpdateAction(virtualserverroutesResource, c.ns, virtualServerRoute), &v1.VirtualServerRoute{}) if obj == nil { return nil, err } - return obj.(*configurationv1.VirtualServerRoute), err + return obj.(*v1.VirtualServerRoute), 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 *FakeVirtualServerRoutes) UpdateStatus(ctx context.Context, virtualServerRoute *configurationv1.VirtualServerRoute, opts v1.UpdateOptions) (*configurationv1.VirtualServerRoute, error) { +func (c *FakeVirtualServerRoutes) UpdateStatus(ctx context.Context, virtualServerRoute *v1.VirtualServerRoute, opts metav1.UpdateOptions) (*v1.VirtualServerRoute, error) { obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(virtualserverroutesResource, "status", c.ns, virtualServerRoute), &configurationv1.VirtualServerRoute{}) + Invokes(testing.NewUpdateSubresourceAction(virtualserverroutesResource, "status", c.ns, virtualServerRoute), &v1.VirtualServerRoute{}) if obj == nil { return nil, err } - return obj.(*configurationv1.VirtualServerRoute), err + return obj.(*v1.VirtualServerRoute), err } // Delete takes name of the virtualServerRoute and deletes it. Returns an error if one occurs. -func (c *FakeVirtualServerRoutes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { +func (c *FakeVirtualServerRoutes) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(virtualserverroutesResource, c.ns, name, opts), &configurationv1.VirtualServerRoute{}) + Invokes(testing.NewDeleteActionWithOptions(virtualserverroutesResource, c.ns, name, opts), &v1.VirtualServerRoute{}) return err } // DeleteCollection deletes a collection of objects. -func (c *FakeVirtualServerRoutes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { +func (c *FakeVirtualServerRoutes) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { action := testing.NewDeleteCollectionAction(virtualserverroutesResource, c.ns, listOpts) - _, err := c.Fake.Invokes(action, &configurationv1.VirtualServerRouteList{}) + _, err := c.Fake.Invokes(action, &v1.VirtualServerRouteList{}) return err } // Patch applies the patch and returns the patched virtualServerRoute. -func (c *FakeVirtualServerRoutes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *configurationv1.VirtualServerRoute, err error) { +func (c *FakeVirtualServerRoutes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VirtualServerRoute, err error) { obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(virtualserverroutesResource, c.ns, name, pt, data, subresources...), &configurationv1.VirtualServerRoute{}) + Invokes(testing.NewPatchSubresourceAction(virtualserverroutesResource, c.ns, name, pt, data, subresources...), &v1.VirtualServerRoute{}) if obj == nil { return nil, err } - return obj.(*configurationv1.VirtualServerRoute), err + return obj.(*v1.VirtualServerRoute), err } diff --git a/pkg/client/clientset/versioned/typed/configuration/v1alpha1/fake/fake_globalconfiguration.go b/pkg/client/clientset/versioned/typed/configuration/v1alpha1/fake/fake_globalconfiguration.go index 91bcc40e88..e2aba966d1 100644 --- a/pkg/client/clientset/versioned/typed/configuration/v1alpha1/fake/fake_globalconfiguration.go +++ b/pkg/client/clientset/versioned/typed/configuration/v1alpha1/fake/fake_globalconfiguration.go @@ -8,7 +8,6 @@ import ( v1alpha1 "github.com/nginxinc/kubernetes-ingress/pkg/apis/configuration/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -20,9 +19,9 @@ type FakeGlobalConfigurations struct { ns string } -var globalconfigurationsResource = schema.GroupVersionResource{Group: "k8s.nginx.org", Version: "v1alpha1", Resource: "globalconfigurations"} +var globalconfigurationsResource = v1alpha1.SchemeGroupVersion.WithResource("globalconfigurations") -var globalconfigurationsKind = schema.GroupVersionKind{Group: "k8s.nginx.org", Version: "v1alpha1", Kind: "GlobalConfiguration"} +var globalconfigurationsKind = v1alpha1.SchemeGroupVersion.WithKind("GlobalConfiguration") // Get takes name of the globalConfiguration, and returns the corresponding globalConfiguration object, and an error if there is any. func (c *FakeGlobalConfigurations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.GlobalConfiguration, err error) { diff --git a/pkg/client/clientset/versioned/typed/configuration/v1alpha1/fake/fake_policy.go b/pkg/client/clientset/versioned/typed/configuration/v1alpha1/fake/fake_policy.go index 20b14d9cf4..9f9d0356a5 100644 --- a/pkg/client/clientset/versioned/typed/configuration/v1alpha1/fake/fake_policy.go +++ b/pkg/client/clientset/versioned/typed/configuration/v1alpha1/fake/fake_policy.go @@ -8,7 +8,6 @@ import ( v1alpha1 "github.com/nginxinc/kubernetes-ingress/pkg/apis/configuration/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -20,9 +19,9 @@ type FakePolicies struct { ns string } -var policiesResource = schema.GroupVersionResource{Group: "k8s.nginx.org", Version: "v1alpha1", Resource: "policies"} +var policiesResource = v1alpha1.SchemeGroupVersion.WithResource("policies") -var policiesKind = schema.GroupVersionKind{Group: "k8s.nginx.org", Version: "v1alpha1", Kind: "Policy"} +var policiesKind = v1alpha1.SchemeGroupVersion.WithKind("Policy") // Get takes name of the policy, and returns the corresponding policy object, and an error if there is any. func (c *FakePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Policy, err error) { diff --git a/pkg/client/clientset/versioned/typed/configuration/v1alpha1/fake/fake_transportserver.go b/pkg/client/clientset/versioned/typed/configuration/v1alpha1/fake/fake_transportserver.go index 0d2d2eba51..982dbe531f 100644 --- a/pkg/client/clientset/versioned/typed/configuration/v1alpha1/fake/fake_transportserver.go +++ b/pkg/client/clientset/versioned/typed/configuration/v1alpha1/fake/fake_transportserver.go @@ -8,7 +8,6 @@ import ( v1alpha1 "github.com/nginxinc/kubernetes-ingress/pkg/apis/configuration/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -20,9 +19,9 @@ type FakeTransportServers struct { ns string } -var transportserversResource = schema.GroupVersionResource{Group: "k8s.nginx.org", Version: "v1alpha1", Resource: "transportservers"} +var transportserversResource = v1alpha1.SchemeGroupVersion.WithResource("transportservers") -var transportserversKind = schema.GroupVersionKind{Group: "k8s.nginx.org", Version: "v1alpha1", Kind: "TransportServer"} +var transportserversKind = v1alpha1.SchemeGroupVersion.WithKind("TransportServer") // Get takes name of the transportServer, and returns the corresponding transportServer object, and an error if there is any. func (c *FakeTransportServers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.TransportServer, err error) { diff --git a/pkg/client/clientset/versioned/typed/dos/v1beta1/fake/fake_dosprotectedresource.go b/pkg/client/clientset/versioned/typed/dos/v1beta1/fake/fake_dosprotectedresource.go index c3f609bd03..6c76137c15 100644 --- a/pkg/client/clientset/versioned/typed/dos/v1beta1/fake/fake_dosprotectedresource.go +++ b/pkg/client/clientset/versioned/typed/dos/v1beta1/fake/fake_dosprotectedresource.go @@ -8,7 +8,6 @@ import ( v1beta1 "github.com/nginxinc/kubernetes-ingress/pkg/apis/dos/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -20,9 +19,9 @@ type FakeDosProtectedResources struct { ns string } -var dosprotectedresourcesResource = schema.GroupVersionResource{Group: "appprotectdos.f5.com", Version: "v1beta1", Resource: "dosprotectedresources"} +var dosprotectedresourcesResource = v1beta1.SchemeGroupVersion.WithResource("dosprotectedresources") -var dosprotectedresourcesKind = schema.GroupVersionKind{Group: "appprotectdos.f5.com", Version: "v1beta1", Kind: "DosProtectedResource"} +var dosprotectedresourcesKind = v1beta1.SchemeGroupVersion.WithKind("DosProtectedResource") // Get takes name of the dosProtectedResource, and returns the corresponding dosProtectedResource object, and an error if there is any. func (c *FakeDosProtectedResources) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.DosProtectedResource, err error) { diff --git a/pkg/client/clientset/versioned/typed/externaldns/v1/fake/fake_dnsendpoint.go b/pkg/client/clientset/versioned/typed/externaldns/v1/fake/fake_dnsendpoint.go index 24590c7ce5..702442c079 100644 --- a/pkg/client/clientset/versioned/typed/externaldns/v1/fake/fake_dnsendpoint.go +++ b/pkg/client/clientset/versioned/typed/externaldns/v1/fake/fake_dnsendpoint.go @@ -5,10 +5,9 @@ package fake import ( "context" - externaldnsv1 "github.com/nginxinc/kubernetes-ingress/pkg/apis/externaldns/v1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + v1 "github.com/nginxinc/kubernetes-ingress/pkg/apis/externaldns/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -20,25 +19,25 @@ type FakeDNSEndpoints struct { ns string } -var dnsendpointsResource = schema.GroupVersionResource{Group: "externaldns.nginx.org", Version: "v1", Resource: "dnsendpoints"} +var dnsendpointsResource = v1.SchemeGroupVersion.WithResource("dnsendpoints") -var dnsendpointsKind = schema.GroupVersionKind{Group: "externaldns.nginx.org", Version: "v1", Kind: "DNSEndpoint"} +var dnsendpointsKind = v1.SchemeGroupVersion.WithKind("DNSEndpoint") // Get takes name of the dNSEndpoint, and returns the corresponding dNSEndpoint object, and an error if there is any. -func (c *FakeDNSEndpoints) Get(ctx context.Context, name string, options v1.GetOptions) (result *externaldnsv1.DNSEndpoint, err error) { +func (c *FakeDNSEndpoints) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DNSEndpoint, err error) { obj, err := c.Fake. - Invokes(testing.NewGetAction(dnsendpointsResource, c.ns, name), &externaldnsv1.DNSEndpoint{}) + Invokes(testing.NewGetAction(dnsendpointsResource, c.ns, name), &v1.DNSEndpoint{}) if obj == nil { return nil, err } - return obj.(*externaldnsv1.DNSEndpoint), err + return obj.(*v1.DNSEndpoint), err } // List takes label and field selectors, and returns the list of DNSEndpoints that match those selectors. -func (c *FakeDNSEndpoints) List(ctx context.Context, opts v1.ListOptions) (result *externaldnsv1.DNSEndpointList, err error) { +func (c *FakeDNSEndpoints) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DNSEndpointList, err error) { obj, err := c.Fake. - Invokes(testing.NewListAction(dnsendpointsResource, dnsendpointsKind, c.ns, opts), &externaldnsv1.DNSEndpointList{}) + Invokes(testing.NewListAction(dnsendpointsResource, dnsendpointsKind, c.ns, opts), &v1.DNSEndpointList{}) if obj == nil { return nil, err @@ -48,8 +47,8 @@ func (c *FakeDNSEndpoints) List(ctx context.Context, opts v1.ListOptions) (resul if label == nil { label = labels.Everything() } - list := &externaldnsv1.DNSEndpointList{ListMeta: obj.(*externaldnsv1.DNSEndpointList).ListMeta} - for _, item := range obj.(*externaldnsv1.DNSEndpointList).Items { + list := &v1.DNSEndpointList{ListMeta: obj.(*v1.DNSEndpointList).ListMeta} + for _, item := range obj.(*v1.DNSEndpointList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } @@ -58,69 +57,69 @@ func (c *FakeDNSEndpoints) List(ctx context.Context, opts v1.ListOptions) (resul } // Watch returns a watch.Interface that watches the requested dNSEndpoints. -func (c *FakeDNSEndpoints) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { +func (c *FakeDNSEndpoints) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { return c.Fake. InvokesWatch(testing.NewWatchAction(dnsendpointsResource, c.ns, opts)) } // Create takes the representation of a dNSEndpoint and creates it. Returns the server's representation of the dNSEndpoint, and an error, if there is any. -func (c *FakeDNSEndpoints) Create(ctx context.Context, dNSEndpoint *externaldnsv1.DNSEndpoint, opts v1.CreateOptions) (result *externaldnsv1.DNSEndpoint, err error) { +func (c *FakeDNSEndpoints) Create(ctx context.Context, dNSEndpoint *v1.DNSEndpoint, opts metav1.CreateOptions) (result *v1.DNSEndpoint, err error) { obj, err := c.Fake. - Invokes(testing.NewCreateAction(dnsendpointsResource, c.ns, dNSEndpoint), &externaldnsv1.DNSEndpoint{}) + Invokes(testing.NewCreateAction(dnsendpointsResource, c.ns, dNSEndpoint), &v1.DNSEndpoint{}) if obj == nil { return nil, err } - return obj.(*externaldnsv1.DNSEndpoint), err + return obj.(*v1.DNSEndpoint), err } // Update takes the representation of a dNSEndpoint and updates it. Returns the server's representation of the dNSEndpoint, and an error, if there is any. -func (c *FakeDNSEndpoints) Update(ctx context.Context, dNSEndpoint *externaldnsv1.DNSEndpoint, opts v1.UpdateOptions) (result *externaldnsv1.DNSEndpoint, err error) { +func (c *FakeDNSEndpoints) Update(ctx context.Context, dNSEndpoint *v1.DNSEndpoint, opts metav1.UpdateOptions) (result *v1.DNSEndpoint, err error) { obj, err := c.Fake. - Invokes(testing.NewUpdateAction(dnsendpointsResource, c.ns, dNSEndpoint), &externaldnsv1.DNSEndpoint{}) + Invokes(testing.NewUpdateAction(dnsendpointsResource, c.ns, dNSEndpoint), &v1.DNSEndpoint{}) if obj == nil { return nil, err } - return obj.(*externaldnsv1.DNSEndpoint), err + return obj.(*v1.DNSEndpoint), 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 *FakeDNSEndpoints) UpdateStatus(ctx context.Context, dNSEndpoint *externaldnsv1.DNSEndpoint, opts v1.UpdateOptions) (*externaldnsv1.DNSEndpoint, error) { +func (c *FakeDNSEndpoints) UpdateStatus(ctx context.Context, dNSEndpoint *v1.DNSEndpoint, opts metav1.UpdateOptions) (*v1.DNSEndpoint, error) { obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(dnsendpointsResource, "status", c.ns, dNSEndpoint), &externaldnsv1.DNSEndpoint{}) + Invokes(testing.NewUpdateSubresourceAction(dnsendpointsResource, "status", c.ns, dNSEndpoint), &v1.DNSEndpoint{}) if obj == nil { return nil, err } - return obj.(*externaldnsv1.DNSEndpoint), err + return obj.(*v1.DNSEndpoint), err } // Delete takes name of the dNSEndpoint and deletes it. Returns an error if one occurs. -func (c *FakeDNSEndpoints) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { +func (c *FakeDNSEndpoints) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(dnsendpointsResource, c.ns, name, opts), &externaldnsv1.DNSEndpoint{}) + Invokes(testing.NewDeleteActionWithOptions(dnsendpointsResource, c.ns, name, opts), &v1.DNSEndpoint{}) return err } // DeleteCollection deletes a collection of objects. -func (c *FakeDNSEndpoints) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { +func (c *FakeDNSEndpoints) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { action := testing.NewDeleteCollectionAction(dnsendpointsResource, c.ns, listOpts) - _, err := c.Fake.Invokes(action, &externaldnsv1.DNSEndpointList{}) + _, err := c.Fake.Invokes(action, &v1.DNSEndpointList{}) return err } // Patch applies the patch and returns the patched dNSEndpoint. -func (c *FakeDNSEndpoints) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *externaldnsv1.DNSEndpoint, err error) { +func (c *FakeDNSEndpoints) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DNSEndpoint, err error) { obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(dnsendpointsResource, c.ns, name, pt, data, subresources...), &externaldnsv1.DNSEndpoint{}) + Invokes(testing.NewPatchSubresourceAction(dnsendpointsResource, c.ns, name, pt, data, subresources...), &v1.DNSEndpoint{}) if obj == nil { return nil, err } - return obj.(*externaldnsv1.DNSEndpoint), err + return obj.(*v1.DNSEndpoint), err }