Merge pull request #122892 from danwinship/codegen-nil

Fix generated fake clients to have same semantics as real clients on error

Kubernetes-commit: 573832a42f03af912a5611eb4e81a0e812a5ddf2
This commit is contained in:
Kubernetes Publisher 2024-04-18 07:48:14 -07:00
parent 9f76e9e638
commit b66b03fd2d
2 changed files with 12 additions and 12 deletions

8
go.mod
View File

@ -6,10 +6,10 @@ go 1.22.0
require (
golang.org/x/time v0.3.0
k8s.io/api v0.0.0-20240404035423-5e7d566356d1
k8s.io/apimachinery v0.0.0-20240404035254-e696ec55a32e
k8s.io/client-go v0.0.0-20240404035629-aa7909e7d7c0
k8s.io/code-generator v0.0.0-20240404040154-670586590c45
k8s.io/api v0.0.0-20240418133400-98d0c7a1b77e
k8s.io/apimachinery v0.0.0-20240418133208-0ee3e6150890
k8s.io/client-go v0.0.0-20240418173639-b1c1c0345d1d
k8s.io/code-generator v0.0.0-20240418174133-2a5cd15965ea
k8s.io/klog/v2 v2.120.1
)

16
go.sum
View File

@ -142,14 +142,14 @@ gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
k8s.io/api v0.0.0-20240404035423-5e7d566356d1 h1:tUkP151p85IMjkPt1+gdSJ4a7HTp6atyw0BPaOl43AI=
k8s.io/api v0.0.0-20240404035423-5e7d566356d1/go.mod h1:hpltBotDO81r+TzqESp+1COe04YlRTmdCzAysBBM8CU=
k8s.io/apimachinery v0.0.0-20240404035254-e696ec55a32e h1:QDMqQVyH8eAEDzaa0HcUsmoJE2goz2xNXb2SKkcU3Lw=
k8s.io/apimachinery v0.0.0-20240404035254-e696ec55a32e/go.mod h1:iexa2somDaxdnj7bha06bhb43Zpa6eWH8N8dbqVjTUc=
k8s.io/client-go v0.0.0-20240404035629-aa7909e7d7c0 h1:BV0JmMEQlllu+Rbl7x4I8kU4xYXhQU+3oJZ5/qaxm00=
k8s.io/client-go v0.0.0-20240404035629-aa7909e7d7c0/go.mod h1:mh7MzKBEAtbd54Buuax0oCTgloi2aCVw67aL9cyVM/o=
k8s.io/code-generator v0.0.0-20240404040154-670586590c45 h1:wzlS4rQ4t/4pMKCw0H1Ni7SExDnp8oqQ0ejg+toOl8o=
k8s.io/code-generator v0.0.0-20240404040154-670586590c45/go.mod h1:+wPm1NhC5mwgajsnJYKe55h4ZnpHBaXOv/0wKGT2DT4=
k8s.io/api v0.0.0-20240418133400-98d0c7a1b77e h1:aMC4qrBMfXPVWNvK5a9JWrPqAYF7IqaEil4veyTpq14=
k8s.io/api v0.0.0-20240418133400-98d0c7a1b77e/go.mod h1:aiyYpZwHjPqNTHVIbcUReEDsDv1bLzwNhSENZpETJiA=
k8s.io/apimachinery v0.0.0-20240418133208-0ee3e6150890 h1:QnCWgLriYnSGYNYeDsMidsvvh4zidzUylhjQeKRajk4=
k8s.io/apimachinery v0.0.0-20240418133208-0ee3e6150890/go.mod h1:iexa2somDaxdnj7bha06bhb43Zpa6eWH8N8dbqVjTUc=
k8s.io/client-go v0.0.0-20240418173639-b1c1c0345d1d h1:FZAH79p0pGyUcq/HV/wJZWh9P4IoGV+oC09Mn7qAj/I=
k8s.io/client-go v0.0.0-20240418173639-b1c1c0345d1d/go.mod h1:d+DhvLYByKBJBwanqBYpznH6zR4aeyALOnos5TJnNQA=
k8s.io/code-generator v0.0.0-20240418174133-2a5cd15965ea h1:qgoVOm5qE5OgydJnfEwAawkdoC2skhqeXogLqBq2n4w=
k8s.io/code-generator v0.0.0-20240418174133-2a5cd15965ea/go.mod h1:GUrN9h+CrE0UDmfJRpLRhtXkJG0pDQQMmADL64N+kfQ=
k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70 h1:NGrVE502P0s0/1hudf8zjgwki1X/TByhmAoILTarmzo=
k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70/go.mod h1:VH3AT8AaQOqiGjMF9p0/IM1Dj+82ZwjfxUP1IxaHE+8=
k8s.io/klog/v2 v2.120.1 h1:QXU6cPEOIslTGvZaXvFWiP9VKyeet3sawzTOvdXb4Vw=