Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

v0.2.0

Compare
Choose a tag to compare
@ericchiang ericchiang released this 01 Mar 18:11
· 83 commits to master since this release

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.