From 6d7f19688ac5bd03f2178d7d874109617d6448e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Mon, 24 Apr 2023 18:23:26 +0200 Subject: [PATCH] feat: bump k8s deps to 1.27 (#6868) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: bump k8s deps to 1.27 Signed-off-by: Charles-Edouard Brétéché * bump k8s 1.27.1 Signed-off-by: ShutingZhao --------- Signed-off-by: Charles-Edouard Brétéché Signed-off-by: ShutingZhao Co-authored-by: ShutingZhao --- charts/kyverno/templates/crds/crds.yaml | 8 +- config/crds/kyverno.io_admissionreports.yaml | 4 +- .../kyverno.io_clusteradmissionreports.yaml | 4 +- config/install-latest-testing.yaml | 8 +- go.mod | 22 +- go.sum | 48 +-- .../resource.generated.go | 72 ++++ .../authenticationv1beta1/client.generated.go | 11 + .../selfsubjectreviews/resource.generated.go | 83 ++++ .../certificatesv1alpha1/client.generated.go | 59 +++ .../clustertrustbundles/resource.generated.go | 374 ++++++++++++++++++ pkg/clients/kube/clientset.generated.go | 25 +- .../extensionsv1beta1/client.generated.go | 11 - .../networkingv1alpha1/client.generated.go | 11 + .../ipaddresses}/resource.generated.go | 54 +-- .../client.generated.go | 54 +-- .../resource.generated.go | 66 ++-- .../resourceclaims/resource.generated.go | 66 ++-- .../resource.generated.go | 54 +-- .../resourceclasses/resource.generated.go | 54 +-- 20 files changed, 848 insertions(+), 240 deletions(-) create mode 100644 pkg/clients/kube/authenticationv1beta1/selfsubjectreviews/resource.generated.go create mode 100644 pkg/clients/kube/certificatesv1alpha1/client.generated.go create mode 100644 pkg/clients/kube/certificatesv1alpha1/clustertrustbundles/resource.generated.go rename pkg/clients/kube/{extensionsv1beta1/podsecuritypolicies => networkingv1alpha1/ipaddresses}/resource.generated.go (78%) rename pkg/clients/kube/{resourcev1alpha1 => resourcev1alpha2}/client.generated.go (57%) rename pkg/clients/kube/{resourcev1alpha1/podschedulings => resourcev1alpha2/podschedulingcontexts}/resource.generated.go (78%) rename pkg/clients/kube/{resourcev1alpha1 => resourcev1alpha2}/resourceclaims/resource.generated.go (83%) rename pkg/clients/kube/{resourcev1alpha1 => resourcev1alpha2}/resourceclaimtemplates/resource.generated.go (85%) rename pkg/clients/kube/{resourcev1alpha1 => resourcev1alpha2}/resourceclasses/resource.generated.go (84%) diff --git a/charts/kyverno/templates/crds/crds.yaml b/charts/kyverno/templates/crds/crds.yaml index 6933952a5f..1dece0859c 100644 --- a/charts/kyverno/templates/crds/crds.yaml +++ b/charts/kyverno/templates/crds/crds.yaml @@ -97,10 +97,10 @@ spec: description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string name: - description: 'Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names' type: string uid: - description: 'UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids' + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids' type: string required: - apiVersion @@ -1967,10 +1967,10 @@ spec: description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string name: - description: 'Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names' type: string uid: - description: 'UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids' + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids' type: string required: - apiVersion diff --git a/config/crds/kyverno.io_admissionreports.yaml b/config/crds/kyverno.io_admissionreports.yaml index 22f7b61af4..a284250301 100644 --- a/config/crds/kyverno.io_admissionreports.yaml +++ b/config/crds/kyverno.io_admissionreports.yaml @@ -92,10 +92,10 @@ spec: description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string name: - description: 'Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names' type: string uid: - description: 'UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids' + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids' type: string required: - apiVersion diff --git a/config/crds/kyverno.io_clusteradmissionreports.yaml b/config/crds/kyverno.io_clusteradmissionreports.yaml index 83ef9471fe..dc19faa07d 100644 --- a/config/crds/kyverno.io_clusteradmissionreports.yaml +++ b/config/crds/kyverno.io_clusteradmissionreports.yaml @@ -93,10 +93,10 @@ spec: description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string name: - description: 'Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names' type: string uid: - description: 'UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids' + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids' type: string required: - apiVersion diff --git a/config/install-latest-testing.yaml b/config/install-latest-testing.yaml index ac6c9bda04..b157a464c5 100644 --- a/config/install-latest-testing.yaml +++ b/config/install-latest-testing.yaml @@ -290,10 +290,10 @@ spec: description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string name: - description: 'Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names' type: string uid: - description: 'UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids' + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids' type: string required: - apiVersion @@ -2160,10 +2160,10 @@ spec: description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string name: - description: 'Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names' type: string uid: - description: 'UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids' + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids' type: string required: - apiVersion diff --git a/go.mod b/go.mod index f787e0f399..63a0dad282 100644 --- a/go.mod +++ b/go.mod @@ -65,20 +65,20 @@ require ( gopkg.in/yaml.v2 v2.4.0 gopkg.in/yaml.v3 v3.0.1 gotest.tools v2.2.0+incompatible - k8s.io/api v0.26.3 - k8s.io/apiextensions-apiserver v0.26.3 - k8s.io/apimachinery v0.26.3 - k8s.io/cli-runtime v0.26.3 - k8s.io/client-go v0.26.3 + k8s.io/api v0.27.1 + k8s.io/apiextensions-apiserver v0.27.1 + k8s.io/apimachinery v0.27.1 + k8s.io/cli-runtime v0.27.1 + k8s.io/client-go v0.27.1 k8s.io/klog/v2 v2.90.1 - k8s.io/kube-aggregator v0.26.3 + k8s.io/kube-aggregator v0.27.1 k8s.io/kube-openapi v0.0.0-20230327201221-f5883ff37f0c - k8s.io/pod-security-admission v0.26.3 - k8s.io/utils v0.0.0-20230313181309-38a27ef9d749 + k8s.io/pod-security-admission v0.27.1 + k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 oras.land/oras-go/v2 v2.0.2 sigs.k8s.io/controller-runtime v0.14.6 - sigs.k8s.io/kustomize/api v0.12.1 - sigs.k8s.io/kustomize/kyaml v0.13.9 + sigs.k8s.io/kustomize/api v0.13.2 + sigs.k8s.io/kustomize/kyaml v0.14.1 sigs.k8s.io/yaml v1.3.0 ) @@ -321,7 +321,7 @@ require ( gopkg.in/square/go-jose.v2 v2.6.0 // indirect gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect - k8s.io/component-base v0.26.3 // indirect + k8s.io/component-base v0.27.1 // indirect k8s.io/kubectl v0.26.3 // indirect sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect sigs.k8s.io/release-utils v0.7.3 // indirect diff --git a/go.sum b/go.sum index 44c2f5aa01..38552516a1 100644 --- a/go.sum +++ b/go.sum @@ -698,8 +698,8 @@ github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hf github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38 h1:yAJXTCF9TqKcTiHJAE8dj7HMvPfh66eeA2JYW7eFpSE= github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +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/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= @@ -1218,7 +1218,7 @@ github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR github.com/rogpeppe/go-internal v1.2.2/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.6.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= -github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= +github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= @@ -2140,30 +2140,30 @@ honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9 honnef.co/go/tools v0.1.4/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= k8s.io/api v0.20.1/go.mod h1:KqwcCVogGxQY3nBlRpwt+wpAMF/KjaCc7RpywacvqUo= k8s.io/api v0.20.2/go.mod h1:d7n6Ehyzx+S+cE3VhTGfVNNqtGc/oL9DCdYYahlurV8= -k8s.io/api v0.26.3 h1:emf74GIQMTik01Aum9dPP0gAypL8JTLl/lHa4V9RFSU= -k8s.io/api v0.26.3/go.mod h1:PXsqwPMXBSBcL1lJ9CYDKy7kIReUydukS5JiRlxC3qE= +k8s.io/api v0.27.1 h1:Z6zUGQ1Vd10tJ+gHcNNNgkV5emCyW+v2XTmn+CLjSd0= +k8s.io/api v0.27.1/go.mod h1:z5g/BpAiD+f6AArpqNjkY+cji8ueZDU/WV1jcj5Jk4E= k8s.io/apiextensions-apiserver v0.20.1/go.mod h1:ntnrZV+6a3dB504qwC5PN/Yg9PBiDNt1EVqbW2kORVk= k8s.io/apiextensions-apiserver v0.20.2/go.mod h1:F6TXp389Xntt+LUq3vw6HFOLttPa0V8821ogLGwb6Zs= -k8s.io/apiextensions-apiserver v0.26.3 h1:5PGMm3oEzdB1W/FTMgGIDmm100vn7IaUP5er36dB+YE= -k8s.io/apiextensions-apiserver v0.26.3/go.mod h1:jdA5MdjNWGP+njw1EKMZc64xAT5fIhN6VJrElV3sfpQ= +k8s.io/apiextensions-apiserver v0.27.1 h1:Hp7B3KxKHBZ/FxmVFVpaDiXI6CCSr49P1OJjxKO6o4g= +k8s.io/apiextensions-apiserver v0.27.1/go.mod h1:8jEvRDtKjVtWmdkhOqE84EcNWJt/uwF8PC4627UZghY= k8s.io/apimachinery v0.20.1/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU= k8s.io/apimachinery v0.20.2/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU= -k8s.io/apimachinery v0.26.3 h1:dQx6PNETJ7nODU3XPtrwkfuubs6w7sX0M8n61zHIV/k= -k8s.io/apimachinery v0.26.3/go.mod h1:ats7nN1LExKHvJ9TmwootT00Yz05MuYqPXEXaVeOy5I= +k8s.io/apimachinery v0.27.1 h1:EGuZiLI95UQQcClhanryclaQE6xjg1Bts6/L3cD7zyc= +k8s.io/apimachinery v0.27.1/go.mod h1:5ikh59fK3AJ287GUvpUsryoMFtH9zj/ARfWCo3AyXTM= k8s.io/apiserver v0.20.1/go.mod h1:ro5QHeQkgMS7ZGpvf4tSMx6bBOgPfE+f52KwvXfScaU= k8s.io/apiserver v0.20.2/go.mod h1:2nKd93WyMhZx4Hp3RfgH2K5PhwyTrprrkWYnI7id7jA= -k8s.io/cli-runtime v0.26.3 h1:3ULe0oI28xmgeLMVXIstB+ZL5CTGvWSMVMLeHxitIuc= -k8s.io/cli-runtime v0.26.3/go.mod h1:5YEhXLV4kLt/OSy9yQwtSSNZU2Z7aTEYta1A+Jg4VC4= +k8s.io/cli-runtime v0.27.1 h1:MMzp5Q/Xmr5L1Lrowuc+Y/r95XINC6c6/fE3aN7JDRM= +k8s.io/cli-runtime v0.27.1/go.mod h1:tEbTB1XP/nTH3wujsi52bw91gWpErtWiS15R6CwYsAI= k8s.io/client-go v0.20.1/go.mod h1:/zcHdt1TeWSd5HoUe6elJmHSQ6uLLgp4bIJHVEuy+/Y= k8s.io/client-go v0.20.2/go.mod h1:kH5brqWqp7HDxUFKoEgiI4v8G1xzbe9giaCenUWJzgE= -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/client-go v0.27.1 h1:oXsfhW/qncM1wDmWBIuDzRHNS2tLhK3BZv512Nc59W8= +k8s.io/client-go v0.27.1/go.mod h1:f8LHMUkVb3b9N8bWturc+EDtVVVwZ7ueTVquFAJb2vA= k8s.io/code-generator v0.20.1/go.mod h1:UsqdF+VX4PU2g46NC2JRs4gc+IfrctnwHb76RNbWHJg= k8s.io/code-generator v0.20.2/go.mod h1:UsqdF+VX4PU2g46NC2JRs4gc+IfrctnwHb76RNbWHJg= k8s.io/component-base v0.20.1/go.mod h1:guxkoJnNoh8LNrbtiQOlyp2Y2XFCZQmrcg2n/DeYNLk= k8s.io/component-base v0.20.2/go.mod h1:pzFtCiwe/ASD0iV7ySMu8SYVJjCapNM9bjvk7ptpKh0= -k8s.io/component-base v0.26.3 h1:oC0WMK/ggcbGDTkdcqefI4wIZRYdK3JySx9/HADpV0g= -k8s.io/component-base v0.26.3/go.mod h1:5kj1kZYwSC6ZstHJN7oHBqcJC6yyn41eR+Sqa/mQc8E= +k8s.io/component-base v0.27.1 h1:kEB8p8lzi4gCs5f2SPU242vOumHJ6EOsOnDM3tTuDTM= +k8s.io/component-base v0.27.1/go.mod h1:UGEd8+gxE4YWoigz5/lb3af3Q24w98pDseXcXZjw+E0= k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= k8s.io/gengo v0.0.0-20201113003025-83324d819ded/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE= @@ -2172,20 +2172,20 @@ k8s.io/klog/v2 v2.4.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= k8s.io/klog/v2 v2.8.0/go.mod h1:hy9LJ/NvuK+iVyP4Ehqva4HxZG/oXyIS3n3Jmire4Ec= 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.3 h1:nc4H5ymGkWPU3c9U9UM468JcmNENY/s/mDYVW3t3uRo= -k8s.io/kube-aggregator v0.26.3/go.mod h1:SgBESB/+PfZAyceTPIanfQ7GtX9G/+mjfUbTHg3Twbo= +k8s.io/kube-aggregator v0.27.1 h1:NYgl5PDV/oX1yqAZIkRnb+KtW+eLykzc6hHg81ECgiI= +k8s.io/kube-aggregator v0.27.1/go.mod h1:S1YUIr4mU0MjKm6kg2fUyIKK5fWgwoHFMgNjlI5JFpM= k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd/go.mod h1:WOJ3KddDSol4tAGcJo0Tvi+dK12EcqSLqcWsryKMpfM= k8s.io/kube-openapi v0.0.0-20210305001622-591a79e4bda7/go.mod h1:wXW5VT87nVfh/iLV8FpR2uDvrFyomxbtb1KivDbvPTE= k8s.io/kube-openapi v0.0.0-20230327201221-f5883ff37f0c h1:EFfsozyzZ/pggw5qNx7ftTVZdp7WZl+3ih89GEjYEK8= k8s.io/kube-openapi v0.0.0-20230327201221-f5883ff37f0c/go.mod h1:byini6yhqGC14c3ebc/QwanvYwhuMWF6yz2F8uwW8eg= k8s.io/kubectl v0.26.3 h1:bZ5SgFyeEXw6XTc1Qji0iNdtqAC76lmeIIQULg2wNXM= k8s.io/kubectl v0.26.3/go.mod h1:02+gv7Qn4dupzN3fi/9OvqqdW+uG/4Zi56vc4Zmsp1g= -k8s.io/pod-security-admission v0.26.3 h1:MvPlB/cZW4x64VgZ3WbgnfPWpgtZY4w6ZllIMWmEy9Y= -k8s.io/pod-security-admission v0.26.3/go.mod h1:9I+AV3O26WYsn4jpCD8WvdJy3xvqBWYz43kz0jwco1k= +k8s.io/pod-security-admission v0.27.1 h1:if4d1zzcpNOZNvljvJ0nTCshFPUmnkIsy7KYJg7FP08= +k8s.io/pod-security-admission v0.27.1/go.mod h1:dICAHAC4DE0q+yrGuPJ8kuJ5dEsWtqNkclzCDckHj/s= k8s.io/utils v0.0.0-20201110183641-67b214c5f920/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= k8s.io/utils v0.0.0-20210111153108-fddb29f9d009/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20230313181309-38a27ef9d749 h1:xMMXJlJbsU8w3V5N2FLDQ8YgU8s1EoULdbQBcAeNJkY= -k8s.io/utils v0.0.0-20230313181309-38a27ef9d749/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= +k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 h1:qY1Ad8PODbnymg2pRbkyMT/ylpTrCM8P2RJ0yroCyIk= +k8s.io/utils v0.0.0-20230406110748-d93618cff8a2/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= mvdan.cc/gofumpt v0.1.1/go.mod h1:yXG1r1WqZVKWbVRtBWKWX9+CxGYfA51nSomhM0woR48= mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc= mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4= @@ -2203,10 +2203,10 @@ sigs.k8s.io/controller-runtime v0.14.6 h1:oxstGVvXGNnMvY7TAESYk+lzr6S3V5VFxQ6d92 sigs.k8s.io/controller-runtime v0.14.6/go.mod h1:WqIdsAY6JBsjfc/CqO0CORmNtoCtE4S6qbPc9s68h+0= 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/kustomize/api v0.12.1 h1:7YM7gW3kYBwtKvoY216ZzY+8hM+lV53LUayghNRJ0vM= -sigs.k8s.io/kustomize/api v0.12.1/go.mod h1:y3JUhimkZkR6sbLNwfJHxvo1TCLwuwm14sCYnkH6S1s= -sigs.k8s.io/kustomize/kyaml v0.13.9 h1:Qz53EAaFFANyNgyOEJbT/yoIHygK40/ZcvU3rgry2Tk= -sigs.k8s.io/kustomize/kyaml v0.13.9/go.mod h1:QsRbD0/KcU+wdk0/L0fIp2KLnohkVzs6fQ85/nOXac4= +sigs.k8s.io/kustomize/api v0.13.2 h1:kejWfLeJhUsTGioDoFNJET5LQe/ajzXhJGYoU+pJsiA= +sigs.k8s.io/kustomize/api v0.13.2/go.mod h1:DUp325VVMFVcQSq+ZxyDisA8wtldwHxLZbr1g94UHsw= +sigs.k8s.io/kustomize/kyaml v0.14.1 h1:c8iibius7l24G2wVAGZn/Va2wNys03GXLjYVIcFVxKA= +sigs.k8s.io/kustomize/kyaml v0.14.1/go.mod h1:AN1/IpawKilWD7V+YvQwRGUvuUOOWpjsHu6uHwonSF4= sigs.k8s.io/release-utils v0.7.3 h1:6pS8x6c5RmdUgR9qcg1LO6hjUzuE4Yo9TGZ3DemrZdM= sigs.k8s.io/release-utils v0.7.3/go.mod h1:n0mVez/1PZYZaZUTJmxewxH3RJ/Lf7JUDh7TG1CASOE= sigs.k8s.io/structured-merge-diff/v4 v4.0.2/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= diff --git a/pkg/clients/kube/admissionregistrationv1alpha1/validatingadmissionpolicies/resource.generated.go b/pkg/clients/kube/admissionregistrationv1alpha1/validatingadmissionpolicies/resource.generated.go index 4d611164b9..9ccee16a2e 100644 --- a/pkg/clients/kube/admissionregistrationv1alpha1/validatingadmissionpolicies/resource.generated.go +++ b/pkg/clients/kube/admissionregistrationv1alpha1/validatingadmissionpolicies/resource.generated.go @@ -46,6 +46,17 @@ func (c *withLogging) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyco } return ret0, ret1 } +func (c *withLogging) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_admissionregistration_v1alpha1.ValidatingAdmissionPolicyApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_admissionregistration_v1alpha1.ValidatingAdmissionPolicy, error) { + start := time.Now() + logger := c.logger.WithValues("operation", "ApplyStatus") + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if err := multierr.Combine(ret1); err != nil { + logger.Error(err, "ApplyStatus failed", "duration", time.Since(start)) + } else { + logger.Info("ApplyStatus done", "duration", time.Since(start)) + } + return ret0, ret1 +} func (c *withLogging) Create(arg0 context.Context, arg1 *k8s_io_api_admissionregistration_v1alpha1.ValidatingAdmissionPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_admissionregistration_v1alpha1.ValidatingAdmissionPolicy, error) { start := time.Now() logger := c.logger.WithValues("operation", "Create") @@ -123,6 +134,17 @@ func (c *withLogging) Update(arg0 context.Context, arg1 *k8s_io_api_admissionreg } return ret0, ret1 } +func (c *withLogging) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_admissionregistration_v1alpha1.ValidatingAdmissionPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_admissionregistration_v1alpha1.ValidatingAdmissionPolicy, error) { + start := time.Now() + logger := c.logger.WithValues("operation", "UpdateStatus") + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if err := multierr.Combine(ret1); err != nil { + logger.Error(err, "UpdateStatus failed", "duration", time.Since(start)) + } else { + logger.Info("UpdateStatus done", "duration", time.Since(start)) + } + return ret0, ret1 +} func (c *withLogging) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { start := time.Now() logger := c.logger.WithValues("operation", "Watch") @@ -144,6 +166,10 @@ func (c *withMetrics) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyco defer c.recorder.RecordWithContext(arg0, "apply") return c.inner.Apply(arg0, arg1, arg2) } +func (c *withMetrics) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_admissionregistration_v1alpha1.ValidatingAdmissionPolicyApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_admissionregistration_v1alpha1.ValidatingAdmissionPolicy, error) { + defer c.recorder.RecordWithContext(arg0, "apply_status") + return c.inner.ApplyStatus(arg0, arg1, arg2) +} func (c *withMetrics) Create(arg0 context.Context, arg1 *k8s_io_api_admissionregistration_v1alpha1.ValidatingAdmissionPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_admissionregistration_v1alpha1.ValidatingAdmissionPolicy, error) { defer c.recorder.RecordWithContext(arg0, "create") return c.inner.Create(arg0, arg1, arg2) @@ -172,6 +198,10 @@ func (c *withMetrics) Update(arg0 context.Context, arg1 *k8s_io_api_admissionreg defer c.recorder.RecordWithContext(arg0, "update") return c.inner.Update(arg0, arg1, arg2) } +func (c *withMetrics) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_admissionregistration_v1alpha1.ValidatingAdmissionPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_admissionregistration_v1alpha1.ValidatingAdmissionPolicy, error) { + defer c.recorder.RecordWithContext(arg0, "update_status") + return c.inner.UpdateStatus(arg0, arg1, arg2) +} func (c *withMetrics) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { defer c.recorder.RecordWithContext(arg0, "watch") return c.inner.Watch(arg0, arg1) @@ -204,6 +234,27 @@ func (c *withTracing) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyco } return ret0, ret1 } +func (c *withTracing) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_admissionregistration_v1alpha1.ValidatingAdmissionPolicyApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_admissionregistration_v1alpha1.ValidatingAdmissionPolicy, error) { + var span trace.Span + if tracing.IsInSpan(arg0) { + arg0, span = tracing.StartChildSpan( + arg0, + "", + fmt.Sprintf("KUBE %s/%s/%s", c.client, c.kind, "ApplyStatus"), + trace.WithAttributes( + tracing.KubeClientGroupKey.String(c.client), + tracing.KubeClientKindKey.String(c.kind), + tracing.KubeClientOperationKey.String("ApplyStatus"), + ), + ) + defer span.End() + } + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if span != nil { + tracing.SetSpanStatus(span, ret1) + } + return ret0, ret1 +} func (c *withTracing) Create(arg0 context.Context, arg1 *k8s_io_api_admissionregistration_v1alpha1.ValidatingAdmissionPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_admissionregistration_v1alpha1.ValidatingAdmissionPolicy, error) { var span trace.Span if tracing.IsInSpan(arg0) { @@ -351,6 +402,27 @@ func (c *withTracing) Update(arg0 context.Context, arg1 *k8s_io_api_admissionreg } return ret0, ret1 } +func (c *withTracing) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_admissionregistration_v1alpha1.ValidatingAdmissionPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_admissionregistration_v1alpha1.ValidatingAdmissionPolicy, error) { + var span trace.Span + if tracing.IsInSpan(arg0) { + arg0, span = tracing.StartChildSpan( + arg0, + "", + fmt.Sprintf("KUBE %s/%s/%s", c.client, c.kind, "UpdateStatus"), + trace.WithAttributes( + tracing.KubeClientGroupKey.String(c.client), + tracing.KubeClientKindKey.String(c.kind), + tracing.KubeClientOperationKey.String("UpdateStatus"), + ), + ) + defer span.End() + } + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if span != nil { + tracing.SetSpanStatus(span, ret1) + } + return ret0, ret1 +} func (c *withTracing) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { var span trace.Span if tracing.IsInSpan(arg0) { diff --git a/pkg/clients/kube/authenticationv1beta1/client.generated.go b/pkg/clients/kube/authenticationv1beta1/client.generated.go index 20ca7b4920..afc8d9b561 100644 --- a/pkg/clients/kube/authenticationv1beta1/client.generated.go +++ b/pkg/clients/kube/authenticationv1beta1/client.generated.go @@ -2,6 +2,7 @@ package client import ( "github.com/go-logr/logr" + selfsubjectreviews "github.com/kyverno/kyverno/pkg/clients/kube/authenticationv1beta1/selfsubjectreviews" tokenreviews "github.com/kyverno/kyverno/pkg/clients/kube/authenticationv1beta1/tokenreviews" "github.com/kyverno/kyverno/pkg/metrics" k8s_io_client_go_kubernetes_typed_authentication_v1beta1 "k8s.io/client-go/kubernetes/typed/authentication/v1beta1" @@ -29,6 +30,10 @@ type withMetrics struct { func (c *withMetrics) RESTClient() rest.Interface { return c.inner.RESTClient() } +func (c *withMetrics) SelfSubjectReviews() k8s_io_client_go_kubernetes_typed_authentication_v1beta1.SelfSubjectReviewInterface { + recorder := metrics.ClusteredClientQueryRecorder(c.metrics, "SelfSubjectReview", c.clientType) + return selfsubjectreviews.WithMetrics(c.inner.SelfSubjectReviews(), recorder) +} func (c *withMetrics) TokenReviews() k8s_io_client_go_kubernetes_typed_authentication_v1beta1.TokenReviewInterface { recorder := metrics.ClusteredClientQueryRecorder(c.metrics, "TokenReview", c.clientType) return tokenreviews.WithMetrics(c.inner.TokenReviews(), recorder) @@ -42,6 +47,9 @@ type withTracing struct { func (c *withTracing) RESTClient() rest.Interface { return c.inner.RESTClient() } +func (c *withTracing) SelfSubjectReviews() k8s_io_client_go_kubernetes_typed_authentication_v1beta1.SelfSubjectReviewInterface { + return selfsubjectreviews.WithTracing(c.inner.SelfSubjectReviews(), c.client, "SelfSubjectReview") +} func (c *withTracing) TokenReviews() k8s_io_client_go_kubernetes_typed_authentication_v1beta1.TokenReviewInterface { return tokenreviews.WithTracing(c.inner.TokenReviews(), c.client, "TokenReview") } @@ -54,6 +62,9 @@ type withLogging struct { func (c *withLogging) RESTClient() rest.Interface { return c.inner.RESTClient() } +func (c *withLogging) SelfSubjectReviews() k8s_io_client_go_kubernetes_typed_authentication_v1beta1.SelfSubjectReviewInterface { + return selfsubjectreviews.WithLogging(c.inner.SelfSubjectReviews(), c.logger.WithValues("resource", "SelfSubjectReviews")) +} func (c *withLogging) TokenReviews() k8s_io_client_go_kubernetes_typed_authentication_v1beta1.TokenReviewInterface { return tokenreviews.WithLogging(c.inner.TokenReviews(), c.logger.WithValues("resource", "TokenReviews")) } diff --git a/pkg/clients/kube/authenticationv1beta1/selfsubjectreviews/resource.generated.go b/pkg/clients/kube/authenticationv1beta1/selfsubjectreviews/resource.generated.go new file mode 100644 index 0000000000..02a71c99cb --- /dev/null +++ b/pkg/clients/kube/authenticationv1beta1/selfsubjectreviews/resource.generated.go @@ -0,0 +1,83 @@ +package resource + +import ( + context "context" + "fmt" + "time" + + "github.com/go-logr/logr" + "github.com/kyverno/kyverno/pkg/metrics" + "github.com/kyverno/kyverno/pkg/tracing" + "go.opentelemetry.io/otel/trace" + "go.uber.org/multierr" + k8s_io_api_authentication_v1beta1 "k8s.io/api/authentication/v1beta1" + k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + k8s_io_client_go_kubernetes_typed_authentication_v1beta1 "k8s.io/client-go/kubernetes/typed/authentication/v1beta1" +) + +func WithLogging(inner k8s_io_client_go_kubernetes_typed_authentication_v1beta1.SelfSubjectReviewInterface, logger logr.Logger) k8s_io_client_go_kubernetes_typed_authentication_v1beta1.SelfSubjectReviewInterface { + return &withLogging{inner, logger} +} + +func WithMetrics(inner k8s_io_client_go_kubernetes_typed_authentication_v1beta1.SelfSubjectReviewInterface, recorder metrics.Recorder) k8s_io_client_go_kubernetes_typed_authentication_v1beta1.SelfSubjectReviewInterface { + return &withMetrics{inner, recorder} +} + +func WithTracing(inner k8s_io_client_go_kubernetes_typed_authentication_v1beta1.SelfSubjectReviewInterface, client, kind string) k8s_io_client_go_kubernetes_typed_authentication_v1beta1.SelfSubjectReviewInterface { + return &withTracing{inner, client, kind} +} + +type withLogging struct { + inner k8s_io_client_go_kubernetes_typed_authentication_v1beta1.SelfSubjectReviewInterface + logger logr.Logger +} + +func (c *withLogging) Create(arg0 context.Context, arg1 *k8s_io_api_authentication_v1beta1.SelfSubjectReview, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_authentication_v1beta1.SelfSubjectReview, error) { + start := time.Now() + logger := c.logger.WithValues("operation", "Create") + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if err := multierr.Combine(ret1); err != nil { + logger.Error(err, "Create failed", "duration", time.Since(start)) + } else { + logger.Info("Create done", "duration", time.Since(start)) + } + return ret0, ret1 +} + +type withMetrics struct { + inner k8s_io_client_go_kubernetes_typed_authentication_v1beta1.SelfSubjectReviewInterface + recorder metrics.Recorder +} + +func (c *withMetrics) Create(arg0 context.Context, arg1 *k8s_io_api_authentication_v1beta1.SelfSubjectReview, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_authentication_v1beta1.SelfSubjectReview, error) { + defer c.recorder.RecordWithContext(arg0, "create") + return c.inner.Create(arg0, arg1, arg2) +} + +type withTracing struct { + inner k8s_io_client_go_kubernetes_typed_authentication_v1beta1.SelfSubjectReviewInterface + client string + kind string +} + +func (c *withTracing) Create(arg0 context.Context, arg1 *k8s_io_api_authentication_v1beta1.SelfSubjectReview, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_authentication_v1beta1.SelfSubjectReview, error) { + var span trace.Span + if tracing.IsInSpan(arg0) { + arg0, span = tracing.StartChildSpan( + arg0, + "", + fmt.Sprintf("KUBE %s/%s/%s", c.client, c.kind, "Create"), + trace.WithAttributes( + tracing.KubeClientGroupKey.String(c.client), + tracing.KubeClientKindKey.String(c.kind), + tracing.KubeClientOperationKey.String("Create"), + ), + ) + defer span.End() + } + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if span != nil { + tracing.SetSpanStatus(span, ret1) + } + return ret0, ret1 +} diff --git a/pkg/clients/kube/certificatesv1alpha1/client.generated.go b/pkg/clients/kube/certificatesv1alpha1/client.generated.go new file mode 100644 index 0000000000..7dcb56d310 --- /dev/null +++ b/pkg/clients/kube/certificatesv1alpha1/client.generated.go @@ -0,0 +1,59 @@ +package client + +import ( + "github.com/go-logr/logr" + clustertrustbundles "github.com/kyverno/kyverno/pkg/clients/kube/certificatesv1alpha1/clustertrustbundles" + "github.com/kyverno/kyverno/pkg/metrics" + k8s_io_client_go_kubernetes_typed_certificates_v1alpha1 "k8s.io/client-go/kubernetes/typed/certificates/v1alpha1" + "k8s.io/client-go/rest" +) + +func WithMetrics(inner k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.CertificatesV1alpha1Interface, metrics metrics.MetricsConfigManager, clientType metrics.ClientType) k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.CertificatesV1alpha1Interface { + return &withMetrics{inner, metrics, clientType} +} + +func WithTracing(inner k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.CertificatesV1alpha1Interface, client string) k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.CertificatesV1alpha1Interface { + return &withTracing{inner, client} +} + +func WithLogging(inner k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.CertificatesV1alpha1Interface, logger logr.Logger) k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.CertificatesV1alpha1Interface { + return &withLogging{inner, logger} +} + +type withMetrics struct { + inner k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.CertificatesV1alpha1Interface + metrics metrics.MetricsConfigManager + clientType metrics.ClientType +} + +func (c *withMetrics) RESTClient() rest.Interface { + return c.inner.RESTClient() +} +func (c *withMetrics) ClusterTrustBundles() k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.ClusterTrustBundleInterface { + recorder := metrics.ClusteredClientQueryRecorder(c.metrics, "ClusterTrustBundle", c.clientType) + return clustertrustbundles.WithMetrics(c.inner.ClusterTrustBundles(), recorder) +} + +type withTracing struct { + inner k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.CertificatesV1alpha1Interface + client string +} + +func (c *withTracing) RESTClient() rest.Interface { + return c.inner.RESTClient() +} +func (c *withTracing) ClusterTrustBundles() k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.ClusterTrustBundleInterface { + return clustertrustbundles.WithTracing(c.inner.ClusterTrustBundles(), c.client, "ClusterTrustBundle") +} + +type withLogging struct { + inner k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.CertificatesV1alpha1Interface + logger logr.Logger +} + +func (c *withLogging) RESTClient() rest.Interface { + return c.inner.RESTClient() +} +func (c *withLogging) ClusterTrustBundles() k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.ClusterTrustBundleInterface { + return clustertrustbundles.WithLogging(c.inner.ClusterTrustBundles(), c.logger.WithValues("resource", "ClusterTrustBundles")) +} diff --git a/pkg/clients/kube/certificatesv1alpha1/clustertrustbundles/resource.generated.go b/pkg/clients/kube/certificatesv1alpha1/clustertrustbundles/resource.generated.go new file mode 100644 index 0000000000..11322e0252 --- /dev/null +++ b/pkg/clients/kube/certificatesv1alpha1/clustertrustbundles/resource.generated.go @@ -0,0 +1,374 @@ +package resource + +import ( + context "context" + "fmt" + "time" + + "github.com/go-logr/logr" + "github.com/kyverno/kyverno/pkg/metrics" + "github.com/kyverno/kyverno/pkg/tracing" + "go.opentelemetry.io/otel/trace" + "go.uber.org/multierr" + k8s_io_api_certificates_v1alpha1 "k8s.io/api/certificates/v1alpha1" + k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + k8s_io_apimachinery_pkg_types "k8s.io/apimachinery/pkg/types" + k8s_io_apimachinery_pkg_watch "k8s.io/apimachinery/pkg/watch" + k8s_io_client_go_applyconfigurations_certificates_v1alpha1 "k8s.io/client-go/applyconfigurations/certificates/v1alpha1" + k8s_io_client_go_kubernetes_typed_certificates_v1alpha1 "k8s.io/client-go/kubernetes/typed/certificates/v1alpha1" +) + +func WithLogging(inner k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.ClusterTrustBundleInterface, logger logr.Logger) k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.ClusterTrustBundleInterface { + return &withLogging{inner, logger} +} + +func WithMetrics(inner k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.ClusterTrustBundleInterface, recorder metrics.Recorder) k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.ClusterTrustBundleInterface { + return &withMetrics{inner, recorder} +} + +func WithTracing(inner k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.ClusterTrustBundleInterface, client, kind string) k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.ClusterTrustBundleInterface { + return &withTracing{inner, client, kind} +} + +type withLogging struct { + inner k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.ClusterTrustBundleInterface + logger logr.Logger +} + +func (c *withLogging) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_certificates_v1alpha1.ClusterTrustBundleApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, error) { + start := time.Now() + logger := c.logger.WithValues("operation", "Apply") + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if err := multierr.Combine(ret1); err != nil { + logger.Error(err, "Apply failed", "duration", time.Since(start)) + } else { + logger.Info("Apply done", "duration", time.Since(start)) + } + return ret0, ret1 +} +func (c *withLogging) Create(arg0 context.Context, arg1 *k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, error) { + start := time.Now() + logger := c.logger.WithValues("operation", "Create") + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if err := multierr.Combine(ret1); err != nil { + logger.Error(err, "Create failed", "duration", time.Since(start)) + } else { + logger.Info("Create done", "duration", time.Since(start)) + } + return ret0, ret1 +} +func (c *withLogging) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { + start := time.Now() + logger := c.logger.WithValues("operation", "Delete") + ret0 := c.inner.Delete(arg0, arg1, arg2) + if err := multierr.Combine(ret0); err != nil { + logger.Error(err, "Delete failed", "duration", time.Since(start)) + } else { + logger.Info("Delete done", "duration", time.Since(start)) + } + return ret0 +} +func (c *withLogging) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { + start := time.Now() + logger := c.logger.WithValues("operation", "DeleteCollection") + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if err := multierr.Combine(ret0); err != nil { + logger.Error(err, "DeleteCollection failed", "duration", time.Since(start)) + } else { + logger.Info("DeleteCollection done", "duration", time.Since(start)) + } + return ret0 +} +func (c *withLogging) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, error) { + start := time.Now() + logger := c.logger.WithValues("operation", "Get") + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if err := multierr.Combine(ret1); err != nil { + logger.Error(err, "Get failed", "duration", time.Since(start)) + } else { + logger.Info("Get done", "duration", time.Since(start)) + } + return ret0, ret1 +} +func (c *withLogging) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_certificates_v1alpha1.ClusterTrustBundleList, error) { + start := time.Now() + logger := c.logger.WithValues("operation", "List") + ret0, ret1 := c.inner.List(arg0, arg1) + if err := multierr.Combine(ret1); err != nil { + logger.Error(err, "List failed", "duration", time.Since(start)) + } else { + logger.Info("List done", "duration", time.Since(start)) + } + return ret0, ret1 +} +func (c *withLogging) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, error) { + start := time.Now() + logger := c.logger.WithValues("operation", "Patch") + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if err := multierr.Combine(ret1); err != nil { + logger.Error(err, "Patch failed", "duration", time.Since(start)) + } else { + logger.Info("Patch done", "duration", time.Since(start)) + } + return ret0, ret1 +} +func (c *withLogging) Update(arg0 context.Context, arg1 *k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, error) { + start := time.Now() + logger := c.logger.WithValues("operation", "Update") + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if err := multierr.Combine(ret1); err != nil { + logger.Error(err, "Update failed", "duration", time.Since(start)) + } else { + logger.Info("Update done", "duration", time.Since(start)) + } + return ret0, ret1 +} +func (c *withLogging) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { + start := time.Now() + logger := c.logger.WithValues("operation", "Watch") + ret0, ret1 := c.inner.Watch(arg0, arg1) + if err := multierr.Combine(ret1); err != nil { + logger.Error(err, "Watch failed", "duration", time.Since(start)) + } else { + logger.Info("Watch done", "duration", time.Since(start)) + } + return ret0, ret1 +} + +type withMetrics struct { + inner k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.ClusterTrustBundleInterface + recorder metrics.Recorder +} + +func (c *withMetrics) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_certificates_v1alpha1.ClusterTrustBundleApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, error) { + defer c.recorder.RecordWithContext(arg0, "apply") + return c.inner.Apply(arg0, arg1, arg2) +} +func (c *withMetrics) Create(arg0 context.Context, arg1 *k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, error) { + defer c.recorder.RecordWithContext(arg0, "create") + return c.inner.Create(arg0, arg1, arg2) +} +func (c *withMetrics) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { + defer c.recorder.RecordWithContext(arg0, "delete") + return c.inner.Delete(arg0, arg1, arg2) +} +func (c *withMetrics) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { + defer c.recorder.RecordWithContext(arg0, "delete_collection") + return c.inner.DeleteCollection(arg0, arg1, arg2) +} +func (c *withMetrics) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, error) { + defer c.recorder.RecordWithContext(arg0, "get") + return c.inner.Get(arg0, arg1, arg2) +} +func (c *withMetrics) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_certificates_v1alpha1.ClusterTrustBundleList, error) { + defer c.recorder.RecordWithContext(arg0, "list") + return c.inner.List(arg0, arg1) +} +func (c *withMetrics) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, error) { + defer c.recorder.RecordWithContext(arg0, "patch") + return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) +} +func (c *withMetrics) Update(arg0 context.Context, arg1 *k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, error) { + defer c.recorder.RecordWithContext(arg0, "update") + return c.inner.Update(arg0, arg1, arg2) +} +func (c *withMetrics) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { + defer c.recorder.RecordWithContext(arg0, "watch") + return c.inner.Watch(arg0, arg1) +} + +type withTracing struct { + inner k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.ClusterTrustBundleInterface + client string + kind string +} + +func (c *withTracing) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_certificates_v1alpha1.ClusterTrustBundleApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, error) { + var span trace.Span + if tracing.IsInSpan(arg0) { + arg0, span = tracing.StartChildSpan( + arg0, + "", + fmt.Sprintf("KUBE %s/%s/%s", c.client, c.kind, "Apply"), + trace.WithAttributes( + tracing.KubeClientGroupKey.String(c.client), + tracing.KubeClientKindKey.String(c.kind), + tracing.KubeClientOperationKey.String("Apply"), + ), + ) + defer span.End() + } + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if span != nil { + tracing.SetSpanStatus(span, ret1) + } + return ret0, ret1 +} +func (c *withTracing) Create(arg0 context.Context, arg1 *k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, error) { + var span trace.Span + if tracing.IsInSpan(arg0) { + arg0, span = tracing.StartChildSpan( + arg0, + "", + fmt.Sprintf("KUBE %s/%s/%s", c.client, c.kind, "Create"), + trace.WithAttributes( + tracing.KubeClientGroupKey.String(c.client), + tracing.KubeClientKindKey.String(c.kind), + tracing.KubeClientOperationKey.String("Create"), + ), + ) + defer span.End() + } + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if span != nil { + tracing.SetSpanStatus(span, ret1) + } + return ret0, ret1 +} +func (c *withTracing) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { + var span trace.Span + if tracing.IsInSpan(arg0) { + arg0, span = tracing.StartChildSpan( + arg0, + "", + fmt.Sprintf("KUBE %s/%s/%s", c.client, c.kind, "Delete"), + trace.WithAttributes( + tracing.KubeClientGroupKey.String(c.client), + tracing.KubeClientKindKey.String(c.kind), + tracing.KubeClientOperationKey.String("Delete"), + ), + ) + defer span.End() + } + ret0 := c.inner.Delete(arg0, arg1, arg2) + if span != nil { + tracing.SetSpanStatus(span, ret0) + } + return ret0 +} +func (c *withTracing) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { + var span trace.Span + if tracing.IsInSpan(arg0) { + arg0, span = tracing.StartChildSpan( + arg0, + "", + fmt.Sprintf("KUBE %s/%s/%s", c.client, c.kind, "DeleteCollection"), + trace.WithAttributes( + tracing.KubeClientGroupKey.String(c.client), + tracing.KubeClientKindKey.String(c.kind), + tracing.KubeClientOperationKey.String("DeleteCollection"), + ), + ) + defer span.End() + } + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if span != nil { + tracing.SetSpanStatus(span, ret0) + } + return ret0 +} +func (c *withTracing) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, error) { + var span trace.Span + if tracing.IsInSpan(arg0) { + arg0, span = tracing.StartChildSpan( + arg0, + "", + fmt.Sprintf("KUBE %s/%s/%s", c.client, c.kind, "Get"), + trace.WithAttributes( + tracing.KubeClientGroupKey.String(c.client), + tracing.KubeClientKindKey.String(c.kind), + tracing.KubeClientOperationKey.String("Get"), + ), + ) + defer span.End() + } + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if span != nil { + tracing.SetSpanStatus(span, ret1) + } + return ret0, ret1 +} +func (c *withTracing) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_certificates_v1alpha1.ClusterTrustBundleList, error) { + var span trace.Span + if tracing.IsInSpan(arg0) { + arg0, span = tracing.StartChildSpan( + arg0, + "", + fmt.Sprintf("KUBE %s/%s/%s", c.client, c.kind, "List"), + trace.WithAttributes( + tracing.KubeClientGroupKey.String(c.client), + tracing.KubeClientKindKey.String(c.kind), + tracing.KubeClientOperationKey.String("List"), + ), + ) + defer span.End() + } + ret0, ret1 := c.inner.List(arg0, arg1) + if span != nil { + tracing.SetSpanStatus(span, ret1) + } + return ret0, ret1 +} +func (c *withTracing) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, error) { + var span trace.Span + if tracing.IsInSpan(arg0) { + arg0, span = tracing.StartChildSpan( + arg0, + "", + fmt.Sprintf("KUBE %s/%s/%s", c.client, c.kind, "Patch"), + trace.WithAttributes( + tracing.KubeClientGroupKey.String(c.client), + tracing.KubeClientKindKey.String(c.kind), + tracing.KubeClientOperationKey.String("Patch"), + ), + ) + defer span.End() + } + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if span != nil { + tracing.SetSpanStatus(span, ret1) + } + return ret0, ret1 +} +func (c *withTracing) Update(arg0 context.Context, arg1 *k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_certificates_v1alpha1.ClusterTrustBundle, error) { + var span trace.Span + if tracing.IsInSpan(arg0) { + arg0, span = tracing.StartChildSpan( + arg0, + "", + fmt.Sprintf("KUBE %s/%s/%s", c.client, c.kind, "Update"), + trace.WithAttributes( + tracing.KubeClientGroupKey.String(c.client), + tracing.KubeClientKindKey.String(c.kind), + tracing.KubeClientOperationKey.String("Update"), + ), + ) + defer span.End() + } + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if span != nil { + tracing.SetSpanStatus(span, ret1) + } + return ret0, ret1 +} +func (c *withTracing) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { + var span trace.Span + if tracing.IsInSpan(arg0) { + arg0, span = tracing.StartChildSpan( + arg0, + "", + fmt.Sprintf("KUBE %s/%s/%s", c.client, c.kind, "Watch"), + trace.WithAttributes( + tracing.KubeClientGroupKey.String(c.client), + tracing.KubeClientKindKey.String(c.kind), + tracing.KubeClientOperationKey.String("Watch"), + ), + ) + defer span.End() + } + ret0, ret1 := c.inner.Watch(arg0, arg1) + if span != nil { + tracing.SetSpanStatus(span, ret1) + } + return ret0, ret1 +} diff --git a/pkg/clients/kube/clientset.generated.go b/pkg/clients/kube/clientset.generated.go index de13fc1345..01d37db939 100644 --- a/pkg/clients/kube/clientset.generated.go +++ b/pkg/clients/kube/clientset.generated.go @@ -20,6 +20,7 @@ import ( batchv1 "github.com/kyverno/kyverno/pkg/clients/kube/batchv1" batchv1beta1 "github.com/kyverno/kyverno/pkg/clients/kube/batchv1beta1" certificatesv1 "github.com/kyverno/kyverno/pkg/clients/kube/certificatesv1" + certificatesv1alpha1 "github.com/kyverno/kyverno/pkg/clients/kube/certificatesv1alpha1" certificatesv1beta1 "github.com/kyverno/kyverno/pkg/clients/kube/certificatesv1beta1" coordinationv1 "github.com/kyverno/kyverno/pkg/clients/kube/coordinationv1" coordinationv1beta1 "github.com/kyverno/kyverno/pkg/clients/kube/coordinationv1beta1" @@ -46,7 +47,7 @@ import ( rbacv1 "github.com/kyverno/kyverno/pkg/clients/kube/rbacv1" rbacv1alpha1 "github.com/kyverno/kyverno/pkg/clients/kube/rbacv1alpha1" rbacv1beta1 "github.com/kyverno/kyverno/pkg/clients/kube/rbacv1beta1" - resourcev1alpha1 "github.com/kyverno/kyverno/pkg/clients/kube/resourcev1alpha1" + resourcev1alpha2 "github.com/kyverno/kyverno/pkg/clients/kube/resourcev1alpha2" schedulingv1 "github.com/kyverno/kyverno/pkg/clients/kube/schedulingv1" schedulingv1alpha1 "github.com/kyverno/kyverno/pkg/clients/kube/schedulingv1alpha1" schedulingv1beta1 "github.com/kyverno/kyverno/pkg/clients/kube/schedulingv1beta1" @@ -75,6 +76,7 @@ import ( k8s_io_client_go_kubernetes_typed_batch_v1 "k8s.io/client-go/kubernetes/typed/batch/v1" k8s_io_client_go_kubernetes_typed_batch_v1beta1 "k8s.io/client-go/kubernetes/typed/batch/v1beta1" k8s_io_client_go_kubernetes_typed_certificates_v1 "k8s.io/client-go/kubernetes/typed/certificates/v1" + k8s_io_client_go_kubernetes_typed_certificates_v1alpha1 "k8s.io/client-go/kubernetes/typed/certificates/v1alpha1" k8s_io_client_go_kubernetes_typed_certificates_v1beta1 "k8s.io/client-go/kubernetes/typed/certificates/v1beta1" k8s_io_client_go_kubernetes_typed_coordination_v1 "k8s.io/client-go/kubernetes/typed/coordination/v1" k8s_io_client_go_kubernetes_typed_coordination_v1beta1 "k8s.io/client-go/kubernetes/typed/coordination/v1beta1" @@ -99,7 +101,7 @@ import ( k8s_io_client_go_kubernetes_typed_rbac_v1 "k8s.io/client-go/kubernetes/typed/rbac/v1" k8s_io_client_go_kubernetes_typed_rbac_v1alpha1 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1" k8s_io_client_go_kubernetes_typed_rbac_v1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1" - k8s_io_client_go_kubernetes_typed_resource_v1alpha1 "k8s.io/client-go/kubernetes/typed/resource/v1alpha1" + k8s_io_client_go_kubernetes_typed_resource_v1alpha2 "k8s.io/client-go/kubernetes/typed/resource/v1alpha2" k8s_io_client_go_kubernetes_typed_scheduling_v1 "k8s.io/client-go/kubernetes/typed/scheduling/v1" k8s_io_client_go_kubernetes_typed_scheduling_v1alpha1 "k8s.io/client-go/kubernetes/typed/scheduling/v1alpha1" k8s_io_client_go_kubernetes_typed_scheduling_v1beta1 "k8s.io/client-go/kubernetes/typed/scheduling/v1beta1" @@ -128,6 +130,7 @@ type clientset struct { batchv1 k8s_io_client_go_kubernetes_typed_batch_v1.BatchV1Interface batchv1beta1 k8s_io_client_go_kubernetes_typed_batch_v1beta1.BatchV1beta1Interface certificatesv1 k8s_io_client_go_kubernetes_typed_certificates_v1.CertificatesV1Interface + certificatesv1alpha1 k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.CertificatesV1alpha1Interface certificatesv1beta1 k8s_io_client_go_kubernetes_typed_certificates_v1beta1.CertificatesV1beta1Interface coordinationv1 k8s_io_client_go_kubernetes_typed_coordination_v1.CoordinationV1Interface coordinationv1beta1 k8s_io_client_go_kubernetes_typed_coordination_v1beta1.CoordinationV1beta1Interface @@ -153,7 +156,7 @@ type clientset struct { rbacv1 k8s_io_client_go_kubernetes_typed_rbac_v1.RbacV1Interface rbacv1alpha1 k8s_io_client_go_kubernetes_typed_rbac_v1alpha1.RbacV1alpha1Interface rbacv1beta1 k8s_io_client_go_kubernetes_typed_rbac_v1beta1.RbacV1beta1Interface - resourcev1alpha1 k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceV1alpha1Interface + resourcev1alpha2 k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceV1alpha2Interface schedulingv1 k8s_io_client_go_kubernetes_typed_scheduling_v1.SchedulingV1Interface schedulingv1alpha1 k8s_io_client_go_kubernetes_typed_scheduling_v1alpha1.SchedulingV1alpha1Interface schedulingv1beta1 k8s_io_client_go_kubernetes_typed_scheduling_v1beta1.SchedulingV1beta1Interface @@ -219,6 +222,9 @@ func (c *clientset) BatchV1beta1() k8s_io_client_go_kubernetes_typed_batch_v1bet func (c *clientset) CertificatesV1() k8s_io_client_go_kubernetes_typed_certificates_v1.CertificatesV1Interface { return c.certificatesv1 } +func (c *clientset) CertificatesV1alpha1() k8s_io_client_go_kubernetes_typed_certificates_v1alpha1.CertificatesV1alpha1Interface { + return c.certificatesv1alpha1 +} func (c *clientset) CertificatesV1beta1() k8s_io_client_go_kubernetes_typed_certificates_v1beta1.CertificatesV1beta1Interface { return c.certificatesv1beta1 } @@ -294,8 +300,8 @@ func (c *clientset) RbacV1alpha1() k8s_io_client_go_kubernetes_typed_rbac_v1alph func (c *clientset) RbacV1beta1() k8s_io_client_go_kubernetes_typed_rbac_v1beta1.RbacV1beta1Interface { return c.rbacv1beta1 } -func (c *clientset) ResourceV1alpha1() k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceV1alpha1Interface { - return c.resourcev1alpha1 +func (c *clientset) ResourceV1alpha2() k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceV1alpha2Interface { + return c.resourcev1alpha2 } func (c *clientset) SchedulingV1() k8s_io_client_go_kubernetes_typed_scheduling_v1.SchedulingV1Interface { return c.schedulingv1 @@ -337,6 +343,7 @@ func WrapWithMetrics(inner k8s_io_client_go_kubernetes.Interface, m metrics.Metr batchv1: batchv1.WithMetrics(inner.BatchV1(), m, clientType), batchv1beta1: batchv1beta1.WithMetrics(inner.BatchV1beta1(), m, clientType), certificatesv1: certificatesv1.WithMetrics(inner.CertificatesV1(), m, clientType), + certificatesv1alpha1: certificatesv1alpha1.WithMetrics(inner.CertificatesV1alpha1(), m, clientType), certificatesv1beta1: certificatesv1beta1.WithMetrics(inner.CertificatesV1beta1(), m, clientType), coordinationv1: coordinationv1.WithMetrics(inner.CoordinationV1(), m, clientType), coordinationv1beta1: coordinationv1beta1.WithMetrics(inner.CoordinationV1beta1(), m, clientType), @@ -362,7 +369,7 @@ func WrapWithMetrics(inner k8s_io_client_go_kubernetes.Interface, m metrics.Metr rbacv1: rbacv1.WithMetrics(inner.RbacV1(), m, clientType), rbacv1alpha1: rbacv1alpha1.WithMetrics(inner.RbacV1alpha1(), m, clientType), rbacv1beta1: rbacv1beta1.WithMetrics(inner.RbacV1beta1(), m, clientType), - resourcev1alpha1: resourcev1alpha1.WithMetrics(inner.ResourceV1alpha1(), m, clientType), + resourcev1alpha2: resourcev1alpha2.WithMetrics(inner.ResourceV1alpha2(), m, clientType), schedulingv1: schedulingv1.WithMetrics(inner.SchedulingV1(), m, clientType), schedulingv1alpha1: schedulingv1alpha1.WithMetrics(inner.SchedulingV1alpha1(), m, clientType), schedulingv1beta1: schedulingv1beta1.WithMetrics(inner.SchedulingV1beta1(), m, clientType), @@ -393,6 +400,7 @@ func WrapWithTracing(inner k8s_io_client_go_kubernetes.Interface) k8s_io_client_ batchv1: batchv1.WithTracing(inner.BatchV1(), "BatchV1"), batchv1beta1: batchv1beta1.WithTracing(inner.BatchV1beta1(), "BatchV1beta1"), certificatesv1: certificatesv1.WithTracing(inner.CertificatesV1(), "CertificatesV1"), + certificatesv1alpha1: certificatesv1alpha1.WithTracing(inner.CertificatesV1alpha1(), "CertificatesV1alpha1"), certificatesv1beta1: certificatesv1beta1.WithTracing(inner.CertificatesV1beta1(), "CertificatesV1beta1"), coordinationv1: coordinationv1.WithTracing(inner.CoordinationV1(), "CoordinationV1"), coordinationv1beta1: coordinationv1beta1.WithTracing(inner.CoordinationV1beta1(), "CoordinationV1beta1"), @@ -418,7 +426,7 @@ func WrapWithTracing(inner k8s_io_client_go_kubernetes.Interface) k8s_io_client_ rbacv1: rbacv1.WithTracing(inner.RbacV1(), "RbacV1"), rbacv1alpha1: rbacv1alpha1.WithTracing(inner.RbacV1alpha1(), "RbacV1alpha1"), rbacv1beta1: rbacv1beta1.WithTracing(inner.RbacV1beta1(), "RbacV1beta1"), - resourcev1alpha1: resourcev1alpha1.WithTracing(inner.ResourceV1alpha1(), "ResourceV1alpha1"), + resourcev1alpha2: resourcev1alpha2.WithTracing(inner.ResourceV1alpha2(), "ResourceV1alpha2"), schedulingv1: schedulingv1.WithTracing(inner.SchedulingV1(), "SchedulingV1"), schedulingv1alpha1: schedulingv1alpha1.WithTracing(inner.SchedulingV1alpha1(), "SchedulingV1alpha1"), schedulingv1beta1: schedulingv1beta1.WithTracing(inner.SchedulingV1beta1(), "SchedulingV1beta1"), @@ -449,6 +457,7 @@ func WrapWithLogging(inner k8s_io_client_go_kubernetes.Interface, logger logr.Lo batchv1: batchv1.WithLogging(inner.BatchV1(), logger.WithValues("group", "BatchV1")), batchv1beta1: batchv1beta1.WithLogging(inner.BatchV1beta1(), logger.WithValues("group", "BatchV1beta1")), certificatesv1: certificatesv1.WithLogging(inner.CertificatesV1(), logger.WithValues("group", "CertificatesV1")), + certificatesv1alpha1: certificatesv1alpha1.WithLogging(inner.CertificatesV1alpha1(), logger.WithValues("group", "CertificatesV1alpha1")), certificatesv1beta1: certificatesv1beta1.WithLogging(inner.CertificatesV1beta1(), logger.WithValues("group", "CertificatesV1beta1")), coordinationv1: coordinationv1.WithLogging(inner.CoordinationV1(), logger.WithValues("group", "CoordinationV1")), coordinationv1beta1: coordinationv1beta1.WithLogging(inner.CoordinationV1beta1(), logger.WithValues("group", "CoordinationV1beta1")), @@ -474,7 +483,7 @@ func WrapWithLogging(inner k8s_io_client_go_kubernetes.Interface, logger logr.Lo rbacv1: rbacv1.WithLogging(inner.RbacV1(), logger.WithValues("group", "RbacV1")), rbacv1alpha1: rbacv1alpha1.WithLogging(inner.RbacV1alpha1(), logger.WithValues("group", "RbacV1alpha1")), rbacv1beta1: rbacv1beta1.WithLogging(inner.RbacV1beta1(), logger.WithValues("group", "RbacV1beta1")), - resourcev1alpha1: resourcev1alpha1.WithLogging(inner.ResourceV1alpha1(), logger.WithValues("group", "ResourceV1alpha1")), + resourcev1alpha2: resourcev1alpha2.WithLogging(inner.ResourceV1alpha2(), logger.WithValues("group", "ResourceV1alpha2")), schedulingv1: schedulingv1.WithLogging(inner.SchedulingV1(), logger.WithValues("group", "SchedulingV1")), schedulingv1alpha1: schedulingv1alpha1.WithLogging(inner.SchedulingV1alpha1(), logger.WithValues("group", "SchedulingV1alpha1")), schedulingv1beta1: schedulingv1beta1.WithLogging(inner.SchedulingV1beta1(), logger.WithValues("group", "SchedulingV1beta1")), diff --git a/pkg/clients/kube/extensionsv1beta1/client.generated.go b/pkg/clients/kube/extensionsv1beta1/client.generated.go index 1c53ccc84d..c9dc373cdb 100644 --- a/pkg/clients/kube/extensionsv1beta1/client.generated.go +++ b/pkg/clients/kube/extensionsv1beta1/client.generated.go @@ -6,7 +6,6 @@ import ( deployments "github.com/kyverno/kyverno/pkg/clients/kube/extensionsv1beta1/deployments" ingresses "github.com/kyverno/kyverno/pkg/clients/kube/extensionsv1beta1/ingresses" networkpolicies "github.com/kyverno/kyverno/pkg/clients/kube/extensionsv1beta1/networkpolicies" - podsecuritypolicies "github.com/kyverno/kyverno/pkg/clients/kube/extensionsv1beta1/podsecuritypolicies" replicasets "github.com/kyverno/kyverno/pkg/clients/kube/extensionsv1beta1/replicasets" "github.com/kyverno/kyverno/pkg/metrics" k8s_io_client_go_kubernetes_typed_extensions_v1beta1 "k8s.io/client-go/kubernetes/typed/extensions/v1beta1" @@ -50,10 +49,6 @@ func (c *withMetrics) NetworkPolicies(namespace string) k8s_io_client_go_kuberne recorder := metrics.NamespacedClientQueryRecorder(c.metrics, namespace, "NetworkPolicy", c.clientType) return networkpolicies.WithMetrics(c.inner.NetworkPolicies(namespace), recorder) } -func (c *withMetrics) PodSecurityPolicies() k8s_io_client_go_kubernetes_typed_extensions_v1beta1.PodSecurityPolicyInterface { - recorder := metrics.ClusteredClientQueryRecorder(c.metrics, "PodSecurityPolicy", c.clientType) - return podsecuritypolicies.WithMetrics(c.inner.PodSecurityPolicies(), recorder) -} func (c *withMetrics) ReplicaSets(namespace string) k8s_io_client_go_kubernetes_typed_extensions_v1beta1.ReplicaSetInterface { recorder := metrics.NamespacedClientQueryRecorder(c.metrics, namespace, "ReplicaSet", c.clientType) return replicasets.WithMetrics(c.inner.ReplicaSets(namespace), recorder) @@ -79,9 +74,6 @@ func (c *withTracing) Ingresses(namespace string) k8s_io_client_go_kubernetes_ty func (c *withTracing) NetworkPolicies(namespace string) k8s_io_client_go_kubernetes_typed_extensions_v1beta1.NetworkPolicyInterface { return networkpolicies.WithTracing(c.inner.NetworkPolicies(namespace), c.client, "NetworkPolicy") } -func (c *withTracing) PodSecurityPolicies() k8s_io_client_go_kubernetes_typed_extensions_v1beta1.PodSecurityPolicyInterface { - return podsecuritypolicies.WithTracing(c.inner.PodSecurityPolicies(), c.client, "PodSecurityPolicy") -} func (c *withTracing) ReplicaSets(namespace string) k8s_io_client_go_kubernetes_typed_extensions_v1beta1.ReplicaSetInterface { return replicasets.WithTracing(c.inner.ReplicaSets(namespace), c.client, "ReplicaSet") } @@ -106,9 +98,6 @@ func (c *withLogging) Ingresses(namespace string) k8s_io_client_go_kubernetes_ty func (c *withLogging) NetworkPolicies(namespace string) k8s_io_client_go_kubernetes_typed_extensions_v1beta1.NetworkPolicyInterface { return networkpolicies.WithLogging(c.inner.NetworkPolicies(namespace), c.logger.WithValues("resource", "NetworkPolicies").WithValues("namespace", namespace)) } -func (c *withLogging) PodSecurityPolicies() k8s_io_client_go_kubernetes_typed_extensions_v1beta1.PodSecurityPolicyInterface { - return podsecuritypolicies.WithLogging(c.inner.PodSecurityPolicies(), c.logger.WithValues("resource", "PodSecurityPolicies")) -} func (c *withLogging) ReplicaSets(namespace string) k8s_io_client_go_kubernetes_typed_extensions_v1beta1.ReplicaSetInterface { return replicasets.WithLogging(c.inner.ReplicaSets(namespace), c.logger.WithValues("resource", "ReplicaSets").WithValues("namespace", namespace)) } diff --git a/pkg/clients/kube/networkingv1alpha1/client.generated.go b/pkg/clients/kube/networkingv1alpha1/client.generated.go index 86680e0929..91d86dc3e9 100644 --- a/pkg/clients/kube/networkingv1alpha1/client.generated.go +++ b/pkg/clients/kube/networkingv1alpha1/client.generated.go @@ -3,6 +3,7 @@ package client import ( "github.com/go-logr/logr" clustercidrs "github.com/kyverno/kyverno/pkg/clients/kube/networkingv1alpha1/clustercidrs" + ipaddresses "github.com/kyverno/kyverno/pkg/clients/kube/networkingv1alpha1/ipaddresses" "github.com/kyverno/kyverno/pkg/metrics" k8s_io_client_go_kubernetes_typed_networking_v1alpha1 "k8s.io/client-go/kubernetes/typed/networking/v1alpha1" "k8s.io/client-go/rest" @@ -33,6 +34,10 @@ func (c *withMetrics) ClusterCIDRs() k8s_io_client_go_kubernetes_typed_networkin recorder := metrics.ClusteredClientQueryRecorder(c.metrics, "ClusterCIDR", c.clientType) return clustercidrs.WithMetrics(c.inner.ClusterCIDRs(), recorder) } +func (c *withMetrics) IPAddresses() k8s_io_client_go_kubernetes_typed_networking_v1alpha1.IPAddressInterface { + recorder := metrics.ClusteredClientQueryRecorder(c.metrics, "IPAddress", c.clientType) + return ipaddresses.WithMetrics(c.inner.IPAddresses(), recorder) +} type withTracing struct { inner k8s_io_client_go_kubernetes_typed_networking_v1alpha1.NetworkingV1alpha1Interface @@ -45,6 +50,9 @@ func (c *withTracing) RESTClient() rest.Interface { func (c *withTracing) ClusterCIDRs() k8s_io_client_go_kubernetes_typed_networking_v1alpha1.ClusterCIDRInterface { return clustercidrs.WithTracing(c.inner.ClusterCIDRs(), c.client, "ClusterCIDR") } +func (c *withTracing) IPAddresses() k8s_io_client_go_kubernetes_typed_networking_v1alpha1.IPAddressInterface { + return ipaddresses.WithTracing(c.inner.IPAddresses(), c.client, "IPAddress") +} type withLogging struct { inner k8s_io_client_go_kubernetes_typed_networking_v1alpha1.NetworkingV1alpha1Interface @@ -57,3 +65,6 @@ func (c *withLogging) RESTClient() rest.Interface { func (c *withLogging) ClusterCIDRs() k8s_io_client_go_kubernetes_typed_networking_v1alpha1.ClusterCIDRInterface { return clustercidrs.WithLogging(c.inner.ClusterCIDRs(), c.logger.WithValues("resource", "ClusterCIDRs")) } +func (c *withLogging) IPAddresses() k8s_io_client_go_kubernetes_typed_networking_v1alpha1.IPAddressInterface { + return ipaddresses.WithLogging(c.inner.IPAddresses(), c.logger.WithValues("resource", "IPAddresses")) +} diff --git a/pkg/clients/kube/extensionsv1beta1/podsecuritypolicies/resource.generated.go b/pkg/clients/kube/networkingv1alpha1/ipaddresses/resource.generated.go similarity index 78% rename from pkg/clients/kube/extensionsv1beta1/podsecuritypolicies/resource.generated.go rename to pkg/clients/kube/networkingv1alpha1/ipaddresses/resource.generated.go index 0ff3f37ded..1489f73bf4 100644 --- a/pkg/clients/kube/extensionsv1beta1/podsecuritypolicies/resource.generated.go +++ b/pkg/clients/kube/networkingv1alpha1/ipaddresses/resource.generated.go @@ -10,32 +10,32 @@ import ( "github.com/kyverno/kyverno/pkg/tracing" "go.opentelemetry.io/otel/trace" "go.uber.org/multierr" - k8s_io_api_extensions_v1beta1 "k8s.io/api/extensions/v1beta1" + k8s_io_api_networking_v1alpha1 "k8s.io/api/networking/v1alpha1" k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" k8s_io_apimachinery_pkg_types "k8s.io/apimachinery/pkg/types" k8s_io_apimachinery_pkg_watch "k8s.io/apimachinery/pkg/watch" - k8s_io_client_go_applyconfigurations_extensions_v1beta1 "k8s.io/client-go/applyconfigurations/extensions/v1beta1" - k8s_io_client_go_kubernetes_typed_extensions_v1beta1 "k8s.io/client-go/kubernetes/typed/extensions/v1beta1" + k8s_io_client_go_applyconfigurations_networking_v1alpha1 "k8s.io/client-go/applyconfigurations/networking/v1alpha1" + k8s_io_client_go_kubernetes_typed_networking_v1alpha1 "k8s.io/client-go/kubernetes/typed/networking/v1alpha1" ) -func WithLogging(inner k8s_io_client_go_kubernetes_typed_extensions_v1beta1.PodSecurityPolicyInterface, logger logr.Logger) k8s_io_client_go_kubernetes_typed_extensions_v1beta1.PodSecurityPolicyInterface { +func WithLogging(inner k8s_io_client_go_kubernetes_typed_networking_v1alpha1.IPAddressInterface, logger logr.Logger) k8s_io_client_go_kubernetes_typed_networking_v1alpha1.IPAddressInterface { return &withLogging{inner, logger} } -func WithMetrics(inner k8s_io_client_go_kubernetes_typed_extensions_v1beta1.PodSecurityPolicyInterface, recorder metrics.Recorder) k8s_io_client_go_kubernetes_typed_extensions_v1beta1.PodSecurityPolicyInterface { +func WithMetrics(inner k8s_io_client_go_kubernetes_typed_networking_v1alpha1.IPAddressInterface, recorder metrics.Recorder) k8s_io_client_go_kubernetes_typed_networking_v1alpha1.IPAddressInterface { return &withMetrics{inner, recorder} } -func WithTracing(inner k8s_io_client_go_kubernetes_typed_extensions_v1beta1.PodSecurityPolicyInterface, client, kind string) k8s_io_client_go_kubernetes_typed_extensions_v1beta1.PodSecurityPolicyInterface { +func WithTracing(inner k8s_io_client_go_kubernetes_typed_networking_v1alpha1.IPAddressInterface, client, kind string) k8s_io_client_go_kubernetes_typed_networking_v1alpha1.IPAddressInterface { return &withTracing{inner, client, kind} } type withLogging struct { - inner k8s_io_client_go_kubernetes_typed_extensions_v1beta1.PodSecurityPolicyInterface + inner k8s_io_client_go_kubernetes_typed_networking_v1alpha1.IPAddressInterface logger logr.Logger } -func (c *withLogging) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_extensions_v1beta1.PodSecurityPolicyApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicy, error) { +func (c *withLogging) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_networking_v1alpha1.IPAddressApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_networking_v1alpha1.IPAddress, error) { start := time.Now() logger := c.logger.WithValues("operation", "Apply") ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) @@ -46,7 +46,7 @@ func (c *withLogging) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyco } return ret0, ret1 } -func (c *withLogging) Create(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.PodSecurityPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicy, error) { +func (c *withLogging) Create(arg0 context.Context, arg1 *k8s_io_api_networking_v1alpha1.IPAddress, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_networking_v1alpha1.IPAddress, error) { start := time.Now() logger := c.logger.WithValues("operation", "Create") ret0, ret1 := c.inner.Create(arg0, arg1, arg2) @@ -79,7 +79,7 @@ func (c *withLogging) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimach } return ret0 } -func (c *withLogging) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicy, error) { +func (c *withLogging) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_networking_v1alpha1.IPAddress, error) { start := time.Now() logger := c.logger.WithValues("operation", "Get") ret0, ret1 := c.inner.Get(arg0, arg1, arg2) @@ -90,7 +90,7 @@ func (c *withLogging) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimach } return ret0, ret1 } -func (c *withLogging) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicyList, error) { +func (c *withLogging) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_networking_v1alpha1.IPAddressList, error) { start := time.Now() logger := c.logger.WithValues("operation", "List") ret0, ret1 := c.inner.List(arg0, arg1) @@ -101,7 +101,7 @@ func (c *withLogging) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_ap } return ret0, ret1 } -func (c *withLogging) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicy, error) { +func (c *withLogging) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_networking_v1alpha1.IPAddress, error) { start := time.Now() logger := c.logger.WithValues("operation", "Patch") ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) @@ -112,7 +112,7 @@ func (c *withLogging) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apima } return ret0, ret1 } -func (c *withLogging) Update(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.PodSecurityPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicy, error) { +func (c *withLogging) Update(arg0 context.Context, arg1 *k8s_io_api_networking_v1alpha1.IPAddress, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_networking_v1alpha1.IPAddress, error) { start := time.Now() logger := c.logger.WithValues("operation", "Update") ret0, ret1 := c.inner.Update(arg0, arg1, arg2) @@ -136,15 +136,15 @@ func (c *withLogging) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_a } type withMetrics struct { - inner k8s_io_client_go_kubernetes_typed_extensions_v1beta1.PodSecurityPolicyInterface + inner k8s_io_client_go_kubernetes_typed_networking_v1alpha1.IPAddressInterface recorder metrics.Recorder } -func (c *withMetrics) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_extensions_v1beta1.PodSecurityPolicyApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicy, error) { +func (c *withMetrics) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_networking_v1alpha1.IPAddressApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_networking_v1alpha1.IPAddress, error) { defer c.recorder.RecordWithContext(arg0, "apply") return c.inner.Apply(arg0, arg1, arg2) } -func (c *withMetrics) Create(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.PodSecurityPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicy, error) { +func (c *withMetrics) Create(arg0 context.Context, arg1 *k8s_io_api_networking_v1alpha1.IPAddress, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_networking_v1alpha1.IPAddress, error) { defer c.recorder.RecordWithContext(arg0, "create") return c.inner.Create(arg0, arg1, arg2) } @@ -156,19 +156,19 @@ func (c *withMetrics) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimach defer c.recorder.RecordWithContext(arg0, "delete_collection") return c.inner.DeleteCollection(arg0, arg1, arg2) } -func (c *withMetrics) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicy, error) { +func (c *withMetrics) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_networking_v1alpha1.IPAddress, error) { defer c.recorder.RecordWithContext(arg0, "get") return c.inner.Get(arg0, arg1, arg2) } -func (c *withMetrics) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicyList, error) { +func (c *withMetrics) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_networking_v1alpha1.IPAddressList, error) { defer c.recorder.RecordWithContext(arg0, "list") return c.inner.List(arg0, arg1) } -func (c *withMetrics) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicy, error) { +func (c *withMetrics) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_networking_v1alpha1.IPAddress, error) { defer c.recorder.RecordWithContext(arg0, "patch") return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) } -func (c *withMetrics) Update(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.PodSecurityPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicy, error) { +func (c *withMetrics) Update(arg0 context.Context, arg1 *k8s_io_api_networking_v1alpha1.IPAddress, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_networking_v1alpha1.IPAddress, error) { defer c.recorder.RecordWithContext(arg0, "update") return c.inner.Update(arg0, arg1, arg2) } @@ -178,12 +178,12 @@ func (c *withMetrics) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_a } type withTracing struct { - inner k8s_io_client_go_kubernetes_typed_extensions_v1beta1.PodSecurityPolicyInterface + inner k8s_io_client_go_kubernetes_typed_networking_v1alpha1.IPAddressInterface client string kind string } -func (c *withTracing) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_extensions_v1beta1.PodSecurityPolicyApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicy, error) { +func (c *withTracing) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_networking_v1alpha1.IPAddressApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_networking_v1alpha1.IPAddress, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -204,7 +204,7 @@ func (c *withTracing) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyco } return ret0, ret1 } -func (c *withTracing) Create(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.PodSecurityPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicy, error) { +func (c *withTracing) Create(arg0 context.Context, arg1 *k8s_io_api_networking_v1alpha1.IPAddress, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_networking_v1alpha1.IPAddress, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -267,7 +267,7 @@ func (c *withTracing) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimach } return ret0 } -func (c *withTracing) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicy, error) { +func (c *withTracing) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_networking_v1alpha1.IPAddress, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -288,7 +288,7 @@ func (c *withTracing) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimach } return ret0, ret1 } -func (c *withTracing) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicyList, error) { +func (c *withTracing) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_networking_v1alpha1.IPAddressList, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -309,7 +309,7 @@ func (c *withTracing) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_ap } return ret0, ret1 } -func (c *withTracing) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicy, error) { +func (c *withTracing) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_networking_v1alpha1.IPAddress, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -330,7 +330,7 @@ func (c *withTracing) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apima } return ret0, ret1 } -func (c *withTracing) Update(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.PodSecurityPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicy, error) { +func (c *withTracing) Update(arg0 context.Context, arg1 *k8s_io_api_networking_v1alpha1.IPAddress, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_networking_v1alpha1.IPAddress, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( diff --git a/pkg/clients/kube/resourcev1alpha1/client.generated.go b/pkg/clients/kube/resourcev1alpha2/client.generated.go similarity index 57% rename from pkg/clients/kube/resourcev1alpha1/client.generated.go rename to pkg/clients/kube/resourcev1alpha2/client.generated.go index 7d960e169b..7001a6b0c4 100644 --- a/pkg/clients/kube/resourcev1alpha1/client.generated.go +++ b/pkg/clients/kube/resourcev1alpha2/client.generated.go @@ -2,29 +2,29 @@ package client import ( "github.com/go-logr/logr" - podschedulings "github.com/kyverno/kyverno/pkg/clients/kube/resourcev1alpha1/podschedulings" - resourceclaims "github.com/kyverno/kyverno/pkg/clients/kube/resourcev1alpha1/resourceclaims" - resourceclaimtemplates "github.com/kyverno/kyverno/pkg/clients/kube/resourcev1alpha1/resourceclaimtemplates" - resourceclasses "github.com/kyverno/kyverno/pkg/clients/kube/resourcev1alpha1/resourceclasses" + podschedulingcontexts "github.com/kyverno/kyverno/pkg/clients/kube/resourcev1alpha2/podschedulingcontexts" + resourceclaims "github.com/kyverno/kyverno/pkg/clients/kube/resourcev1alpha2/resourceclaims" + resourceclaimtemplates "github.com/kyverno/kyverno/pkg/clients/kube/resourcev1alpha2/resourceclaimtemplates" + resourceclasses "github.com/kyverno/kyverno/pkg/clients/kube/resourcev1alpha2/resourceclasses" "github.com/kyverno/kyverno/pkg/metrics" - k8s_io_client_go_kubernetes_typed_resource_v1alpha1 "k8s.io/client-go/kubernetes/typed/resource/v1alpha1" + k8s_io_client_go_kubernetes_typed_resource_v1alpha2 "k8s.io/client-go/kubernetes/typed/resource/v1alpha2" "k8s.io/client-go/rest" ) -func WithMetrics(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceV1alpha1Interface, metrics metrics.MetricsConfigManager, clientType metrics.ClientType) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceV1alpha1Interface { +func WithMetrics(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceV1alpha2Interface, metrics metrics.MetricsConfigManager, clientType metrics.ClientType) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceV1alpha2Interface { return &withMetrics{inner, metrics, clientType} } -func WithTracing(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceV1alpha1Interface, client string) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceV1alpha1Interface { +func WithTracing(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceV1alpha2Interface, client string) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceV1alpha2Interface { return &withTracing{inner, client} } -func WithLogging(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceV1alpha1Interface, logger logr.Logger) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceV1alpha1Interface { +func WithLogging(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceV1alpha2Interface, logger logr.Logger) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceV1alpha2Interface { return &withLogging{inner, logger} } type withMetrics struct { - inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceV1alpha1Interface + inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceV1alpha2Interface metrics metrics.MetricsConfigManager clientType metrics.ClientType } @@ -32,61 +32,61 @@ type withMetrics struct { func (c *withMetrics) RESTClient() rest.Interface { return c.inner.RESTClient() } -func (c *withMetrics) PodSchedulings(namespace string) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.PodSchedulingInterface { - recorder := metrics.NamespacedClientQueryRecorder(c.metrics, namespace, "PodScheduling", c.clientType) - return podschedulings.WithMetrics(c.inner.PodSchedulings(namespace), recorder) +func (c *withMetrics) PodSchedulingContexts(namespace string) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.PodSchedulingContextInterface { + recorder := metrics.NamespacedClientQueryRecorder(c.metrics, namespace, "PodSchedulingContext", c.clientType) + return podschedulingcontexts.WithMetrics(c.inner.PodSchedulingContexts(namespace), recorder) } -func (c *withMetrics) ResourceClaimTemplates(namespace string) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimTemplateInterface { +func (c *withMetrics) ResourceClaimTemplates(namespace string) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimTemplateInterface { recorder := metrics.NamespacedClientQueryRecorder(c.metrics, namespace, "ResourceClaimTemplate", c.clientType) return resourceclaimtemplates.WithMetrics(c.inner.ResourceClaimTemplates(namespace), recorder) } -func (c *withMetrics) ResourceClaims(namespace string) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimInterface { +func (c *withMetrics) ResourceClaims(namespace string) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimInterface { recorder := metrics.NamespacedClientQueryRecorder(c.metrics, namespace, "ResourceClaim", c.clientType) return resourceclaims.WithMetrics(c.inner.ResourceClaims(namespace), recorder) } -func (c *withMetrics) ResourceClasses() k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClassInterface { +func (c *withMetrics) ResourceClasses() k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClassInterface { recorder := metrics.ClusteredClientQueryRecorder(c.metrics, "ResourceClass", c.clientType) return resourceclasses.WithMetrics(c.inner.ResourceClasses(), recorder) } type withTracing struct { - inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceV1alpha1Interface + inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceV1alpha2Interface client string } func (c *withTracing) RESTClient() rest.Interface { return c.inner.RESTClient() } -func (c *withTracing) PodSchedulings(namespace string) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.PodSchedulingInterface { - return podschedulings.WithTracing(c.inner.PodSchedulings(namespace), c.client, "PodScheduling") +func (c *withTracing) PodSchedulingContexts(namespace string) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.PodSchedulingContextInterface { + return podschedulingcontexts.WithTracing(c.inner.PodSchedulingContexts(namespace), c.client, "PodSchedulingContext") } -func (c *withTracing) ResourceClaimTemplates(namespace string) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimTemplateInterface { +func (c *withTracing) ResourceClaimTemplates(namespace string) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimTemplateInterface { return resourceclaimtemplates.WithTracing(c.inner.ResourceClaimTemplates(namespace), c.client, "ResourceClaimTemplate") } -func (c *withTracing) ResourceClaims(namespace string) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimInterface { +func (c *withTracing) ResourceClaims(namespace string) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimInterface { return resourceclaims.WithTracing(c.inner.ResourceClaims(namespace), c.client, "ResourceClaim") } -func (c *withTracing) ResourceClasses() k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClassInterface { +func (c *withTracing) ResourceClasses() k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClassInterface { return resourceclasses.WithTracing(c.inner.ResourceClasses(), c.client, "ResourceClass") } type withLogging struct { - inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceV1alpha1Interface + inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceV1alpha2Interface logger logr.Logger } func (c *withLogging) RESTClient() rest.Interface { return c.inner.RESTClient() } -func (c *withLogging) PodSchedulings(namespace string) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.PodSchedulingInterface { - return podschedulings.WithLogging(c.inner.PodSchedulings(namespace), c.logger.WithValues("resource", "PodSchedulings").WithValues("namespace", namespace)) +func (c *withLogging) PodSchedulingContexts(namespace string) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.PodSchedulingContextInterface { + return podschedulingcontexts.WithLogging(c.inner.PodSchedulingContexts(namespace), c.logger.WithValues("resource", "PodSchedulingContexts").WithValues("namespace", namespace)) } -func (c *withLogging) ResourceClaimTemplates(namespace string) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimTemplateInterface { +func (c *withLogging) ResourceClaimTemplates(namespace string) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimTemplateInterface { return resourceclaimtemplates.WithLogging(c.inner.ResourceClaimTemplates(namespace), c.logger.WithValues("resource", "ResourceClaimTemplates").WithValues("namespace", namespace)) } -func (c *withLogging) ResourceClaims(namespace string) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimInterface { +func (c *withLogging) ResourceClaims(namespace string) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimInterface { return resourceclaims.WithLogging(c.inner.ResourceClaims(namespace), c.logger.WithValues("resource", "ResourceClaims").WithValues("namespace", namespace)) } -func (c *withLogging) ResourceClasses() k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClassInterface { +func (c *withLogging) ResourceClasses() k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClassInterface { return resourceclasses.WithLogging(c.inner.ResourceClasses(), c.logger.WithValues("resource", "ResourceClasses")) } diff --git a/pkg/clients/kube/resourcev1alpha1/podschedulings/resource.generated.go b/pkg/clients/kube/resourcev1alpha2/podschedulingcontexts/resource.generated.go similarity index 78% rename from pkg/clients/kube/resourcev1alpha1/podschedulings/resource.generated.go rename to pkg/clients/kube/resourcev1alpha2/podschedulingcontexts/resource.generated.go index e88e33c034..51fa6a4b5f 100644 --- a/pkg/clients/kube/resourcev1alpha1/podschedulings/resource.generated.go +++ b/pkg/clients/kube/resourcev1alpha2/podschedulingcontexts/resource.generated.go @@ -10,32 +10,32 @@ import ( "github.com/kyverno/kyverno/pkg/tracing" "go.opentelemetry.io/otel/trace" "go.uber.org/multierr" - k8s_io_api_resource_v1alpha1 "k8s.io/api/resource/v1alpha1" + k8s_io_api_resource_v1alpha2 "k8s.io/api/resource/v1alpha2" k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" k8s_io_apimachinery_pkg_types "k8s.io/apimachinery/pkg/types" k8s_io_apimachinery_pkg_watch "k8s.io/apimachinery/pkg/watch" - k8s_io_client_go_applyconfigurations_resource_v1alpha1 "k8s.io/client-go/applyconfigurations/resource/v1alpha1" - k8s_io_client_go_kubernetes_typed_resource_v1alpha1 "k8s.io/client-go/kubernetes/typed/resource/v1alpha1" + k8s_io_client_go_applyconfigurations_resource_v1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" + k8s_io_client_go_kubernetes_typed_resource_v1alpha2 "k8s.io/client-go/kubernetes/typed/resource/v1alpha2" ) -func WithLogging(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.PodSchedulingInterface, logger logr.Logger) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.PodSchedulingInterface { +func WithLogging(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.PodSchedulingContextInterface, logger logr.Logger) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.PodSchedulingContextInterface { return &withLogging{inner, logger} } -func WithMetrics(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.PodSchedulingInterface, recorder metrics.Recorder) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.PodSchedulingInterface { +func WithMetrics(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.PodSchedulingContextInterface, recorder metrics.Recorder) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.PodSchedulingContextInterface { return &withMetrics{inner, recorder} } -func WithTracing(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.PodSchedulingInterface, client, kind string) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.PodSchedulingInterface { +func WithTracing(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.PodSchedulingContextInterface, client, kind string) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.PodSchedulingContextInterface { return &withTracing{inner, client, kind} } type withLogging struct { - inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.PodSchedulingInterface + inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.PodSchedulingContextInterface logger logr.Logger } -func (c *withLogging) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha1.PodSchedulingApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withLogging) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha2.PodSchedulingContextApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { start := time.Now() logger := c.logger.WithValues("operation", "Apply") ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) @@ -46,7 +46,7 @@ func (c *withLogging) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyco } return ret0, ret1 } -func (c *withLogging) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha1.PodSchedulingApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withLogging) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha2.PodSchedulingContextApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { start := time.Now() logger := c.logger.WithValues("operation", "ApplyStatus") ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) @@ -57,7 +57,7 @@ func (c *withLogging) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_a } return ret0, ret1 } -func (c *withLogging) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.PodScheduling, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withLogging) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.PodSchedulingContext, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { start := time.Now() logger := c.logger.WithValues("operation", "Create") ret0, ret1 := c.inner.Create(arg0, arg1, arg2) @@ -90,7 +90,7 @@ func (c *withLogging) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimach } return ret0 } -func (c *withLogging) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withLogging) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { start := time.Now() logger := c.logger.WithValues("operation", "Get") ret0, ret1 := c.inner.Get(arg0, arg1, arg2) @@ -101,7 +101,7 @@ func (c *withLogging) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimach } return ret0, ret1 } -func (c *withLogging) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha1.PodSchedulingList, error) { +func (c *withLogging) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContextList, error) { start := time.Now() logger := c.logger.WithValues("operation", "List") ret0, ret1 := c.inner.List(arg0, arg1) @@ -112,7 +112,7 @@ func (c *withLogging) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_ap } return ret0, ret1 } -func (c *withLogging) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withLogging) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { start := time.Now() logger := c.logger.WithValues("operation", "Patch") ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) @@ -123,7 +123,7 @@ func (c *withLogging) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apima } return ret0, ret1 } -func (c *withLogging) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.PodScheduling, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withLogging) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.PodSchedulingContext, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { start := time.Now() logger := c.logger.WithValues("operation", "Update") ret0, ret1 := c.inner.Update(arg0, arg1, arg2) @@ -134,7 +134,7 @@ func (c *withLogging) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1a } return ret0, ret1 } -func (c *withLogging) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.PodScheduling, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withLogging) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.PodSchedulingContext, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { start := time.Now() logger := c.logger.WithValues("operation", "UpdateStatus") ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) @@ -158,19 +158,19 @@ func (c *withLogging) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_a } type withMetrics struct { - inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.PodSchedulingInterface + inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.PodSchedulingContextInterface recorder metrics.Recorder } -func (c *withMetrics) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha1.PodSchedulingApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withMetrics) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha2.PodSchedulingContextApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { defer c.recorder.RecordWithContext(arg0, "apply") return c.inner.Apply(arg0, arg1, arg2) } -func (c *withMetrics) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha1.PodSchedulingApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withMetrics) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha2.PodSchedulingContextApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { defer c.recorder.RecordWithContext(arg0, "apply_status") return c.inner.ApplyStatus(arg0, arg1, arg2) } -func (c *withMetrics) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.PodScheduling, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withMetrics) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.PodSchedulingContext, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { defer c.recorder.RecordWithContext(arg0, "create") return c.inner.Create(arg0, arg1, arg2) } @@ -182,23 +182,23 @@ func (c *withMetrics) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimach defer c.recorder.RecordWithContext(arg0, "delete_collection") return c.inner.DeleteCollection(arg0, arg1, arg2) } -func (c *withMetrics) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withMetrics) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { defer c.recorder.RecordWithContext(arg0, "get") return c.inner.Get(arg0, arg1, arg2) } -func (c *withMetrics) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha1.PodSchedulingList, error) { +func (c *withMetrics) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContextList, error) { defer c.recorder.RecordWithContext(arg0, "list") return c.inner.List(arg0, arg1) } -func (c *withMetrics) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withMetrics) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { defer c.recorder.RecordWithContext(arg0, "patch") return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) } -func (c *withMetrics) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.PodScheduling, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withMetrics) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.PodSchedulingContext, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { defer c.recorder.RecordWithContext(arg0, "update") return c.inner.Update(arg0, arg1, arg2) } -func (c *withMetrics) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.PodScheduling, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withMetrics) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.PodSchedulingContext, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { defer c.recorder.RecordWithContext(arg0, "update_status") return c.inner.UpdateStatus(arg0, arg1, arg2) } @@ -208,12 +208,12 @@ func (c *withMetrics) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_a } type withTracing struct { - inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.PodSchedulingInterface + inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.PodSchedulingContextInterface client string kind string } -func (c *withTracing) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha1.PodSchedulingApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withTracing) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha2.PodSchedulingContextApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -234,7 +234,7 @@ func (c *withTracing) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyco } return ret0, ret1 } -func (c *withTracing) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha1.PodSchedulingApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withTracing) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha2.PodSchedulingContextApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -255,7 +255,7 @@ func (c *withTracing) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_a } return ret0, ret1 } -func (c *withTracing) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.PodScheduling, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withTracing) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.PodSchedulingContext, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -318,7 +318,7 @@ func (c *withTracing) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimach } return ret0 } -func (c *withTracing) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withTracing) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -339,7 +339,7 @@ func (c *withTracing) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimach } return ret0, ret1 } -func (c *withTracing) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha1.PodSchedulingList, error) { +func (c *withTracing) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContextList, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -360,7 +360,7 @@ func (c *withTracing) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_ap } return ret0, ret1 } -func (c *withTracing) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withTracing) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -381,7 +381,7 @@ func (c *withTracing) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apima } return ret0, ret1 } -func (c *withTracing) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.PodScheduling, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withTracing) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.PodSchedulingContext, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -402,7 +402,7 @@ func (c *withTracing) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1a } return ret0, ret1 } -func (c *withTracing) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.PodScheduling, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha1.PodScheduling, error) { +func (c *withTracing) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.PodSchedulingContext, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha2.PodSchedulingContext, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( diff --git a/pkg/clients/kube/resourcev1alpha1/resourceclaims/resource.generated.go b/pkg/clients/kube/resourcev1alpha2/resourceclaims/resource.generated.go similarity index 83% rename from pkg/clients/kube/resourcev1alpha1/resourceclaims/resource.generated.go rename to pkg/clients/kube/resourcev1alpha2/resourceclaims/resource.generated.go index 31d1dfcf30..c387f506d4 100644 --- a/pkg/clients/kube/resourcev1alpha1/resourceclaims/resource.generated.go +++ b/pkg/clients/kube/resourcev1alpha2/resourceclaims/resource.generated.go @@ -10,32 +10,32 @@ import ( "github.com/kyverno/kyverno/pkg/tracing" "go.opentelemetry.io/otel/trace" "go.uber.org/multierr" - k8s_io_api_resource_v1alpha1 "k8s.io/api/resource/v1alpha1" + k8s_io_api_resource_v1alpha2 "k8s.io/api/resource/v1alpha2" k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" k8s_io_apimachinery_pkg_types "k8s.io/apimachinery/pkg/types" k8s_io_apimachinery_pkg_watch "k8s.io/apimachinery/pkg/watch" - k8s_io_client_go_applyconfigurations_resource_v1alpha1 "k8s.io/client-go/applyconfigurations/resource/v1alpha1" - k8s_io_client_go_kubernetes_typed_resource_v1alpha1 "k8s.io/client-go/kubernetes/typed/resource/v1alpha1" + k8s_io_client_go_applyconfigurations_resource_v1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" + k8s_io_client_go_kubernetes_typed_resource_v1alpha2 "k8s.io/client-go/kubernetes/typed/resource/v1alpha2" ) -func WithLogging(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimInterface, logger logr.Logger) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimInterface { +func WithLogging(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimInterface, logger logr.Logger) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimInterface { return &withLogging{inner, logger} } -func WithMetrics(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimInterface, recorder metrics.Recorder) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimInterface { +func WithMetrics(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimInterface, recorder metrics.Recorder) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimInterface { return &withMetrics{inner, recorder} } -func WithTracing(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimInterface, client, kind string) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimInterface { +func WithTracing(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimInterface, client, kind string) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimInterface { return &withTracing{inner, client, kind} } type withLogging struct { - inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimInterface + inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimInterface logger logr.Logger } -func (c *withLogging) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha1.ResourceClaimApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withLogging) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha2.ResourceClaimApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { start := time.Now() logger := c.logger.WithValues("operation", "Apply") ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) @@ -46,7 +46,7 @@ func (c *withLogging) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyco } return ret0, ret1 } -func (c *withLogging) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha1.ResourceClaimApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withLogging) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha2.ResourceClaimApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { start := time.Now() logger := c.logger.WithValues("operation", "ApplyStatus") ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) @@ -57,7 +57,7 @@ func (c *withLogging) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_a } return ret0, ret1 } -func (c *withLogging) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withLogging) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { start := time.Now() logger := c.logger.WithValues("operation", "Create") ret0, ret1 := c.inner.Create(arg0, arg1, arg2) @@ -90,7 +90,7 @@ func (c *withLogging) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimach } return ret0 } -func (c *withLogging) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withLogging) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { start := time.Now() logger := c.logger.WithValues("operation", "Get") ret0, ret1 := c.inner.Get(arg0, arg1, arg2) @@ -101,7 +101,7 @@ func (c *withLogging) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimach } return ret0, ret1 } -func (c *withLogging) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaimList, error) { +func (c *withLogging) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaimList, error) { start := time.Now() logger := c.logger.WithValues("operation", "List") ret0, ret1 := c.inner.List(arg0, arg1) @@ -112,7 +112,7 @@ func (c *withLogging) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_ap } return ret0, ret1 } -func (c *withLogging) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withLogging) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { start := time.Now() logger := c.logger.WithValues("operation", "Patch") ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) @@ -123,7 +123,7 @@ func (c *withLogging) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apima } return ret0, ret1 } -func (c *withLogging) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withLogging) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { start := time.Now() logger := c.logger.WithValues("operation", "Update") ret0, ret1 := c.inner.Update(arg0, arg1, arg2) @@ -134,7 +134,7 @@ func (c *withLogging) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1a } return ret0, ret1 } -func (c *withLogging) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withLogging) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { start := time.Now() logger := c.logger.WithValues("operation", "UpdateStatus") ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) @@ -158,19 +158,19 @@ func (c *withLogging) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_a } type withMetrics struct { - inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimInterface + inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimInterface recorder metrics.Recorder } -func (c *withMetrics) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha1.ResourceClaimApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withMetrics) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha2.ResourceClaimApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { defer c.recorder.RecordWithContext(arg0, "apply") return c.inner.Apply(arg0, arg1, arg2) } -func (c *withMetrics) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha1.ResourceClaimApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withMetrics) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha2.ResourceClaimApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { defer c.recorder.RecordWithContext(arg0, "apply_status") return c.inner.ApplyStatus(arg0, arg1, arg2) } -func (c *withMetrics) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withMetrics) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { defer c.recorder.RecordWithContext(arg0, "create") return c.inner.Create(arg0, arg1, arg2) } @@ -182,23 +182,23 @@ func (c *withMetrics) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimach defer c.recorder.RecordWithContext(arg0, "delete_collection") return c.inner.DeleteCollection(arg0, arg1, arg2) } -func (c *withMetrics) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withMetrics) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { defer c.recorder.RecordWithContext(arg0, "get") return c.inner.Get(arg0, arg1, arg2) } -func (c *withMetrics) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaimList, error) { +func (c *withMetrics) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaimList, error) { defer c.recorder.RecordWithContext(arg0, "list") return c.inner.List(arg0, arg1) } -func (c *withMetrics) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withMetrics) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { defer c.recorder.RecordWithContext(arg0, "patch") return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) } -func (c *withMetrics) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withMetrics) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { defer c.recorder.RecordWithContext(arg0, "update") return c.inner.Update(arg0, arg1, arg2) } -func (c *withMetrics) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withMetrics) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { defer c.recorder.RecordWithContext(arg0, "update_status") return c.inner.UpdateStatus(arg0, arg1, arg2) } @@ -208,12 +208,12 @@ func (c *withMetrics) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_a } type withTracing struct { - inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimInterface + inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimInterface client string kind string } -func (c *withTracing) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha1.ResourceClaimApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withTracing) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha2.ResourceClaimApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -234,7 +234,7 @@ func (c *withTracing) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyco } return ret0, ret1 } -func (c *withTracing) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha1.ResourceClaimApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withTracing) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha2.ResourceClaimApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -255,7 +255,7 @@ func (c *withTracing) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_a } return ret0, ret1 } -func (c *withTracing) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withTracing) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -318,7 +318,7 @@ func (c *withTracing) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimach } return ret0 } -func (c *withTracing) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withTracing) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -339,7 +339,7 @@ func (c *withTracing) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimach } return ret0, ret1 } -func (c *withTracing) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaimList, error) { +func (c *withTracing) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaimList, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -360,7 +360,7 @@ func (c *withTracing) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_ap } return ret0, ret1 } -func (c *withTracing) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withTracing) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -381,7 +381,7 @@ func (c *withTracing) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apima } return ret0, ret1 } -func (c *withTracing) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withTracing) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -402,7 +402,7 @@ func (c *withTracing) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1a } return ret0, ret1 } -func (c *withTracing) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaim, error) { +func (c *withTracing) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaim, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( diff --git a/pkg/clients/kube/resourcev1alpha1/resourceclaimtemplates/resource.generated.go b/pkg/clients/kube/resourcev1alpha2/resourceclaimtemplates/resource.generated.go similarity index 85% rename from pkg/clients/kube/resourcev1alpha1/resourceclaimtemplates/resource.generated.go rename to pkg/clients/kube/resourcev1alpha2/resourceclaimtemplates/resource.generated.go index 1b9c6d573a..692cb71159 100644 --- a/pkg/clients/kube/resourcev1alpha1/resourceclaimtemplates/resource.generated.go +++ b/pkg/clients/kube/resourcev1alpha2/resourceclaimtemplates/resource.generated.go @@ -10,32 +10,32 @@ import ( "github.com/kyverno/kyverno/pkg/tracing" "go.opentelemetry.io/otel/trace" "go.uber.org/multierr" - k8s_io_api_resource_v1alpha1 "k8s.io/api/resource/v1alpha1" + k8s_io_api_resource_v1alpha2 "k8s.io/api/resource/v1alpha2" k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" k8s_io_apimachinery_pkg_types "k8s.io/apimachinery/pkg/types" k8s_io_apimachinery_pkg_watch "k8s.io/apimachinery/pkg/watch" - k8s_io_client_go_applyconfigurations_resource_v1alpha1 "k8s.io/client-go/applyconfigurations/resource/v1alpha1" - k8s_io_client_go_kubernetes_typed_resource_v1alpha1 "k8s.io/client-go/kubernetes/typed/resource/v1alpha1" + k8s_io_client_go_applyconfigurations_resource_v1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" + k8s_io_client_go_kubernetes_typed_resource_v1alpha2 "k8s.io/client-go/kubernetes/typed/resource/v1alpha2" ) -func WithLogging(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimTemplateInterface, logger logr.Logger) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimTemplateInterface { +func WithLogging(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimTemplateInterface, logger logr.Logger) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimTemplateInterface { return &withLogging{inner, logger} } -func WithMetrics(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimTemplateInterface, recorder metrics.Recorder) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimTemplateInterface { +func WithMetrics(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimTemplateInterface, recorder metrics.Recorder) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimTemplateInterface { return &withMetrics{inner, recorder} } -func WithTracing(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimTemplateInterface, client, kind string) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimTemplateInterface { +func WithTracing(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimTemplateInterface, client, kind string) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimTemplateInterface { return &withTracing{inner, client, kind} } type withLogging struct { - inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimTemplateInterface + inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimTemplateInterface logger logr.Logger } -func (c *withLogging) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha1.ResourceClaimTemplateApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, error) { +func (c *withLogging) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha2.ResourceClaimTemplateApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, error) { start := time.Now() logger := c.logger.WithValues("operation", "Apply") ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) @@ -46,7 +46,7 @@ func (c *withLogging) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyco } return ret0, ret1 } -func (c *withLogging) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, error) { +func (c *withLogging) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, error) { start := time.Now() logger := c.logger.WithValues("operation", "Create") ret0, ret1 := c.inner.Create(arg0, arg1, arg2) @@ -79,7 +79,7 @@ func (c *withLogging) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimach } return ret0 } -func (c *withLogging) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, error) { +func (c *withLogging) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, error) { start := time.Now() logger := c.logger.WithValues("operation", "Get") ret0, ret1 := c.inner.Get(arg0, arg1, arg2) @@ -90,7 +90,7 @@ func (c *withLogging) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimach } return ret0, ret1 } -func (c *withLogging) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaimTemplateList, error) { +func (c *withLogging) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaimTemplateList, error) { start := time.Now() logger := c.logger.WithValues("operation", "List") ret0, ret1 := c.inner.List(arg0, arg1) @@ -101,7 +101,7 @@ func (c *withLogging) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_ap } return ret0, ret1 } -func (c *withLogging) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, error) { +func (c *withLogging) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, error) { start := time.Now() logger := c.logger.WithValues("operation", "Patch") ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) @@ -112,7 +112,7 @@ func (c *withLogging) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apima } return ret0, ret1 } -func (c *withLogging) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, error) { +func (c *withLogging) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, error) { start := time.Now() logger := c.logger.WithValues("operation", "Update") ret0, ret1 := c.inner.Update(arg0, arg1, arg2) @@ -136,15 +136,15 @@ func (c *withLogging) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_a } type withMetrics struct { - inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimTemplateInterface + inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimTemplateInterface recorder metrics.Recorder } -func (c *withMetrics) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha1.ResourceClaimTemplateApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, error) { +func (c *withMetrics) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha2.ResourceClaimTemplateApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, error) { defer c.recorder.RecordWithContext(arg0, "apply") return c.inner.Apply(arg0, arg1, arg2) } -func (c *withMetrics) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, error) { +func (c *withMetrics) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, error) { defer c.recorder.RecordWithContext(arg0, "create") return c.inner.Create(arg0, arg1, arg2) } @@ -156,19 +156,19 @@ func (c *withMetrics) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimach defer c.recorder.RecordWithContext(arg0, "delete_collection") return c.inner.DeleteCollection(arg0, arg1, arg2) } -func (c *withMetrics) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, error) { +func (c *withMetrics) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, error) { defer c.recorder.RecordWithContext(arg0, "get") return c.inner.Get(arg0, arg1, arg2) } -func (c *withMetrics) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaimTemplateList, error) { +func (c *withMetrics) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaimTemplateList, error) { defer c.recorder.RecordWithContext(arg0, "list") return c.inner.List(arg0, arg1) } -func (c *withMetrics) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, error) { +func (c *withMetrics) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, error) { defer c.recorder.RecordWithContext(arg0, "patch") return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) } -func (c *withMetrics) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, error) { +func (c *withMetrics) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, error) { defer c.recorder.RecordWithContext(arg0, "update") return c.inner.Update(arg0, arg1, arg2) } @@ -178,12 +178,12 @@ func (c *withMetrics) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_a } type withTracing struct { - inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClaimTemplateInterface + inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClaimTemplateInterface client string kind string } -func (c *withTracing) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha1.ResourceClaimTemplateApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, error) { +func (c *withTracing) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha2.ResourceClaimTemplateApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -204,7 +204,7 @@ func (c *withTracing) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyco } return ret0, ret1 } -func (c *withTracing) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, error) { +func (c *withTracing) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -267,7 +267,7 @@ func (c *withTracing) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimach } return ret0 } -func (c *withTracing) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, error) { +func (c *withTracing) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -288,7 +288,7 @@ func (c *withTracing) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimach } return ret0, ret1 } -func (c *withTracing) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaimTemplateList, error) { +func (c *withTracing) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaimTemplateList, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -309,7 +309,7 @@ func (c *withTracing) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_ap } return ret0, ret1 } -func (c *withTracing) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, error) { +func (c *withTracing) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -330,7 +330,7 @@ func (c *withTracing) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apima } return ret0, ret1 } -func (c *withTracing) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClaimTemplate, error) { +func (c *withTracing) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClaimTemplate, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( diff --git a/pkg/clients/kube/resourcev1alpha1/resourceclasses/resource.generated.go b/pkg/clients/kube/resourcev1alpha2/resourceclasses/resource.generated.go similarity index 84% rename from pkg/clients/kube/resourcev1alpha1/resourceclasses/resource.generated.go rename to pkg/clients/kube/resourcev1alpha2/resourceclasses/resource.generated.go index b7ee295d26..3f464209fb 100644 --- a/pkg/clients/kube/resourcev1alpha1/resourceclasses/resource.generated.go +++ b/pkg/clients/kube/resourcev1alpha2/resourceclasses/resource.generated.go @@ -10,32 +10,32 @@ import ( "github.com/kyverno/kyverno/pkg/tracing" "go.opentelemetry.io/otel/trace" "go.uber.org/multierr" - k8s_io_api_resource_v1alpha1 "k8s.io/api/resource/v1alpha1" + k8s_io_api_resource_v1alpha2 "k8s.io/api/resource/v1alpha2" k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" k8s_io_apimachinery_pkg_types "k8s.io/apimachinery/pkg/types" k8s_io_apimachinery_pkg_watch "k8s.io/apimachinery/pkg/watch" - k8s_io_client_go_applyconfigurations_resource_v1alpha1 "k8s.io/client-go/applyconfigurations/resource/v1alpha1" - k8s_io_client_go_kubernetes_typed_resource_v1alpha1 "k8s.io/client-go/kubernetes/typed/resource/v1alpha1" + k8s_io_client_go_applyconfigurations_resource_v1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" + k8s_io_client_go_kubernetes_typed_resource_v1alpha2 "k8s.io/client-go/kubernetes/typed/resource/v1alpha2" ) -func WithLogging(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClassInterface, logger logr.Logger) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClassInterface { +func WithLogging(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClassInterface, logger logr.Logger) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClassInterface { return &withLogging{inner, logger} } -func WithMetrics(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClassInterface, recorder metrics.Recorder) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClassInterface { +func WithMetrics(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClassInterface, recorder metrics.Recorder) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClassInterface { return &withMetrics{inner, recorder} } -func WithTracing(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClassInterface, client, kind string) k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClassInterface { +func WithTracing(inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClassInterface, client, kind string) k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClassInterface { return &withTracing{inner, client, kind} } type withLogging struct { - inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClassInterface + inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClassInterface logger logr.Logger } -func (c *withLogging) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha1.ResourceClassApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha1.ResourceClass, error) { +func (c *withLogging) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha2.ResourceClassApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha2.ResourceClass, error) { start := time.Now() logger := c.logger.WithValues("operation", "Apply") ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) @@ -46,7 +46,7 @@ func (c *withLogging) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyco } return ret0, ret1 } -func (c *withLogging) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClass, error) { +func (c *withLogging) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClass, error) { start := time.Now() logger := c.logger.WithValues("operation", "Create") ret0, ret1 := c.inner.Create(arg0, arg1, arg2) @@ -79,7 +79,7 @@ func (c *withLogging) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimach } return ret0 } -func (c *withLogging) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha1.ResourceClass, error) { +func (c *withLogging) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha2.ResourceClass, error) { start := time.Now() logger := c.logger.WithValues("operation", "Get") ret0, ret1 := c.inner.Get(arg0, arg1, arg2) @@ -90,7 +90,7 @@ func (c *withLogging) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimach } return ret0, ret1 } -func (c *withLogging) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha1.ResourceClassList, error) { +func (c *withLogging) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha2.ResourceClassList, error) { start := time.Now() logger := c.logger.WithValues("operation", "List") ret0, ret1 := c.inner.List(arg0, arg1) @@ -101,7 +101,7 @@ func (c *withLogging) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_ap } return ret0, ret1 } -func (c *withLogging) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha1.ResourceClass, error) { +func (c *withLogging) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha2.ResourceClass, error) { start := time.Now() logger := c.logger.WithValues("operation", "Patch") ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) @@ -112,7 +112,7 @@ func (c *withLogging) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apima } return ret0, ret1 } -func (c *withLogging) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClass, error) { +func (c *withLogging) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClass, error) { start := time.Now() logger := c.logger.WithValues("operation", "Update") ret0, ret1 := c.inner.Update(arg0, arg1, arg2) @@ -136,15 +136,15 @@ func (c *withLogging) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_a } type withMetrics struct { - inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClassInterface + inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClassInterface recorder metrics.Recorder } -func (c *withMetrics) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha1.ResourceClassApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha1.ResourceClass, error) { +func (c *withMetrics) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha2.ResourceClassApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha2.ResourceClass, error) { defer c.recorder.RecordWithContext(arg0, "apply") return c.inner.Apply(arg0, arg1, arg2) } -func (c *withMetrics) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClass, error) { +func (c *withMetrics) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClass, error) { defer c.recorder.RecordWithContext(arg0, "create") return c.inner.Create(arg0, arg1, arg2) } @@ -156,19 +156,19 @@ func (c *withMetrics) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimach defer c.recorder.RecordWithContext(arg0, "delete_collection") return c.inner.DeleteCollection(arg0, arg1, arg2) } -func (c *withMetrics) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha1.ResourceClass, error) { +func (c *withMetrics) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha2.ResourceClass, error) { defer c.recorder.RecordWithContext(arg0, "get") return c.inner.Get(arg0, arg1, arg2) } -func (c *withMetrics) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha1.ResourceClassList, error) { +func (c *withMetrics) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha2.ResourceClassList, error) { defer c.recorder.RecordWithContext(arg0, "list") return c.inner.List(arg0, arg1) } -func (c *withMetrics) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha1.ResourceClass, error) { +func (c *withMetrics) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha2.ResourceClass, error) { defer c.recorder.RecordWithContext(arg0, "patch") return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) } -func (c *withMetrics) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClass, error) { +func (c *withMetrics) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClass, error) { defer c.recorder.RecordWithContext(arg0, "update") return c.inner.Update(arg0, arg1, arg2) } @@ -178,12 +178,12 @@ func (c *withMetrics) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_a } type withTracing struct { - inner k8s_io_client_go_kubernetes_typed_resource_v1alpha1.ResourceClassInterface + inner k8s_io_client_go_kubernetes_typed_resource_v1alpha2.ResourceClassInterface client string kind string } -func (c *withTracing) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha1.ResourceClassApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha1.ResourceClass, error) { +func (c *withTracing) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_resource_v1alpha2.ResourceClassApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_resource_v1alpha2.ResourceClass, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -204,7 +204,7 @@ func (c *withTracing) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyco } return ret0, ret1 } -func (c *withTracing) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClass, error) { +func (c *withTracing) Create(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClass, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -267,7 +267,7 @@ func (c *withTracing) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimach } return ret0 } -func (c *withTracing) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha1.ResourceClass, error) { +func (c *withTracing) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_resource_v1alpha2.ResourceClass, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -288,7 +288,7 @@ func (c *withTracing) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimach } return ret0, ret1 } -func (c *withTracing) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha1.ResourceClassList, error) { +func (c *withTracing) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_resource_v1alpha2.ResourceClassList, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -309,7 +309,7 @@ func (c *withTracing) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_ap } return ret0, ret1 } -func (c *withTracing) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha1.ResourceClass, error) { +func (c *withTracing) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_resource_v1alpha2.ResourceClass, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan( @@ -330,7 +330,7 @@ func (c *withTracing) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apima } return ret0, ret1 } -func (c *withTracing) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha1.ResourceClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha1.ResourceClass, error) { +func (c *withTracing) Update(arg0 context.Context, arg1 *k8s_io_api_resource_v1alpha2.ResourceClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_resource_v1alpha2.ResourceClass, error) { var span trace.Span if tracing.IsInSpan(arg0) { arg0, span = tracing.StartChildSpan(