This repository has been archived by the owner on Nov 19, 2020. It is now read-only.
v0.2.0
Updates:
- Fixes endpoint operations (#28)
- Generated code now passes gofmt (#33)
- List and watch support for all namespaces (#32)
Breaking changes:
List and watch operations now no longer default to the client's namespace. For example, the following invocation:
c, err := k8s.NewInClusterClient()
if err != nil {
// handle error
}
c.CoreV1().ListPods(ctx, "") // Now invalid.
must be modified to:
c, err := k8s.NewInClusterClient()
if err != nil {
// handle error
}
c.CoreV1().ListPods(ctx, c.Namespace)
A special value k8s.AllNamespaces
has been added to signify listing or watching resources in all namespaces:
c, err := k8s.NewInClusterClient()
if err != nil {
// handle error
}
c.CoreV1().ListPods(ctx, k8s.AllNamespaces) // List pods in all namespaces.