Skip to content
Go client libraries for the Istio API.
Go Makefile Shell Ruby
Branch: master
Clone or download
skaslev and istio-testing 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] https://github.com/istio/client-go/blob/21751e6cf0fea131872230940d95c40508aa0a4f/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_gateway.gen.go#L21

* Run `make update-common`

* Regenerated k8s client
Latest commit 1aefa51 Nov 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd/example Added example package to verify generated code (#16) Nov 4, 2019
common Don't rename doc.go since it's expected by k8s code generator (#22) Nov 19, 2019
licenses Don't rename doc.go since it's expected by k8s code generator (#22) Nov 19, 2019
pkg Don't rename doc.go since it's expected by k8s code generator (#22) Nov 19, 2019
.gitattributes Update common files. (#2) Sep 30, 2019
BUGS-AND-FEATURE-REQUESTS.md
CODEOWNERS Update CODEOWNERS Sep 1, 2019
CONTRIBUTING.md Seed this repository Aug 28, 2019
LICENSE Seed this repository Aug 28, 2019
Makefile
Makefile.core.mk Don't rename doc.go since it's expected by k8s code generator (#22) Nov 19, 2019
Makefile.overrides.mk Seed this repository Aug 28, 2019
README.md add an initial readme and update the common files (#7) Oct 12, 2019
SUPPORT.md Seed this repository Aug 28, 2019
go.mod update api version (#19) Nov 11, 2019
go.sum update api version (#19) Nov 11, 2019
header.go.txt Don't rename doc.go since it's expected by k8s code generator (#22) Nov 19, 2019

README.md

Go Report Card GolangCI GoDoc

Golang Client Library for Istio APIs

This go library contains clients that talk to Istio resources in a Kubernetes cluster.

How to get it?

If you are using go1.11+, you can simply use the following command to get the lastest client code:

go get istio.io/client-go@master

Or if you need to use a specific version of the client code, you can specify a specific version number. For example:

go get istio.io/client-go@release-1.4

The version number matches with official Istio versions for releases 1.4+.

You can’t perform that action at this time.