Commit Graph

7 Commits

Author SHA1 Message Date
Istio Automation ff2d685ecc
Automator: update common-files@master in istio/client-go@master (#2147) 2024-06-26 21:18:15 -04:00
Istio Automation 2e69390597
Automator: update common-files@master in istio/client-go@master (#1335) 2023-01-11 14:14:18 -08:00
Istio Automation 9ffc8f562f
Automator: update common-files@master in istio/client-go@master (#1106) 2022-08-16 15:47:10 -07:00
Istio Automation e02bbc0ea5
Automator: update common-files@master in istio/client-go@master (#835) 2022-03-14 14:07:24 -07:00
Slavomir Kaslev 1aefa51f75 Don't rename doc.go since it's expected by k8s code generator (#22)
* Don't rename doc.go since it's expected by k8s code generator

Currently fake client-go client sets are broken, e.g. we have[1]

  var gatewaysResource = schema.GroupVersionResource{Group: "networking", Version: "v1alpha3", Resource: "gateways"}

which should really be

  var gatewaysResource = schema.GroupVersionResource{Group: "networking.istio.io", Version: "v1alpha3", Resource: "gateways"}

This is because
 1. kubetype-gen generated apis are missing groupName comment tag (addressed by istio/tools#549)
 2. k8s code generator expects groupName comment tag to be in doc.go but it is currently getting renamed to doc.gen.go

This change fixes 2.

[1] 21751e6cf0/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_gateway.gen.go (L21)

* Run `make update-common`

* Regenerated k8s client
2019-11-19 09:56:47 -08:00
Martin Taillefer 13a7366c1c Update common files. (#13) 2019-10-24 13:46:24 -07:00
Martin Taillefer 1dab092da7
Add a gen-check target. (#3) 2019-10-02 10:15:19 -07:00