TODO: This document was manually maintained so might be incomplete. The automation effort is tracked in kubernetes#234.
** Breaking changes**
pkg/api and pkg/apis are moved to k8s.io/api. Other kubernetes repositories also import types from there, so they are composable with client-go.
Helper functions in pkg/api and pkg/apis are also removed. They are planned to be exported in other repos. The issue is tracked here. During the transition, you'll have to copy the helper functions to your projects.
No significant changes since v4.0.0-beta.0.
New features:
-
Added OpenAPISchema support in the discovery client
-
Added mutation cache filter: MutationCache is able to take the result of update operations and stores them in an LRU that can be used to provide a more current view of a requested object.
-
Moved the remotecommand package (used by
kubectl exec/attach
) to client-go -
Added support for following redirects to the SpdyRoundTripper
-
Added Azure Active Directory plugin
Usability improvements:
-
Added several new examples and reorganized client-go/examples
API changes:
-
Added networking.k8s.io/v1 API
-
ControllerRevision type added for StatefulSet and DaemonSet history.
-
Added support for initializers
-
Added admissionregistration.k8s.io/v1alpha1 API
Breaking changes:
-
Moved client-go/util/clock to apimachinery/pkg/util/clock
-
Some API helpers were removed.
-
Dynamic client takes GetOptions as an input parameter
Bug fixes:
-
PortForwarder: don't log an error if net.Listen fails. kubernetes/kubernetes#44636
-
oidc auth plugin not to override the Auth header if it's already exits. kubernetes/kubernetes#45529
-
The --namespace flag is now honored for in-cluster clients that have an empty configuration. kubernetes/kubernetes#46299
-
GCP auth plugin no longer overwrites existing Authorization headers. kubernetes/kubernetes#45575
Bug fixes:
- Use OS-specific libs when computing client User-Agent in kubectl, etc. (kubernetes/kubernetes#44423)
- kubectl commands run inside a pod using a kubeconfig file now use the namespace specified in the kubeconfig file, instead of using the pod namespace. If no kubeconfig file is used, or the kubeconfig does not specify a namespace, the pod namespace is still used as a fallback. (kubernetes/kubernetes#44570)
- Restored the ability of kubectl running inside a pod to consume resource files specifying a different namespace than the one the pod is running in. (kubernetes/kubernetes#44862)
- Added dependency on k8s.io/apimachinery. The impacts include changing import path of API objects like
ListOptions
fromk8s.io/client-go/pkg/api/v1
tok8s.io/apimachinery/pkg/apis/meta/v1
. - Added generated listers (listers/) and informers (informers/)
- Kubernetes API changes:
- Added client support for:
- authentication/v1
- authorization/v1
- autoscaling/v2alpha1
- rbac/v1beta1
- settings/v1alpha1
- storage/v1
- Changed client support for:
- certificates from v1alpha1 to v1beta1
- policy from v1alpha1 to v1beta1
- Deleted client support for:
- extensions/v1beta1#Job
- Added client support for:
- CHANGED: pass typed options to dynamic client (kubernetes/kubernetes#41887)
- Included bug fixes in k8s.io/kuberentes release-1.5 branch, up to commit bde8578d9675129b7a2aa08f1b825ec6cc0f3420
- Removed top-level version folder (e.g., 1.4 and 1.5), switching to maintaining separate versions in separate branches.
- Clientset supported multiple versions per API group
- Added ThirdPartyResources example
- Kubernetes API changes
- Apps API group graduated to v1beta1
- Policy API group graduated to v1beta1
- Added support for batch/v2alpha1/cronjob
- Renamed PetSet to StatefulSet
- Included the auth plugin (kubernetes/kubernetes#33334)
- Added timeout field to RESTClient config (kubernetes/kubernetes#33958)