Skip to content

Latest commit

 

History

History
590 lines (311 loc) · 29.6 KB

CHANGELOG.md

File metadata and controls

590 lines (311 loc) · 29.6 KB

TODO: This document was manually maintained so might be incomplete. The automation effort is tracked in kubernetes/test-infra#5843.

Changes in k8s.io/api and k8s.io/apimachinery are mentioned here because k8s.io/client-go depends on them.

v8.0.0

Breaking Changes:

New Features:

  • A new easy-to-use dynamic client is added and the old dynamic client is now deprecated.

  • client-go and kubectl now detect and report an error on duplicated name for user, cluster and context, while loading the kubeconfig.

  • The informer code-generator now allows specifying a custom resync period for certain informer types and uses the default resync period if none is specified.

  • Exec authenticator plugin now supports TLS client certificates.

  • The discovery client now has a default request timeout of 32 seconds.

  • The OpenStack auth config from is now read from the client config. If the client config is not available, it falls back to reading from the environment variables.

  • The in-tree support for openstack credentials is now deprecated. Please use the client-keystone-auth from the cloud-provider-openstack repository. Details on how to use this new capability is documented here

Bug fixes and Improvements:

API changes

Breaking Changes:

  • Support for alpha.kubernetes.io/nvidia-gpu resource which was deprecated in 1.10 is removed. Please use the resource exposed by DevicePlugins instead (nvidia.com/gpu).

  • Alpha annotation for PersistentVolume node affinity has been removed. Update your PersistentVolumes to use the beta PersistentVolume.nodeAffinity field before upgrading.

  • ObjectMeta ListOptions DeleteOptions are removed from the core api group. Please use the ones in meta/v1 instead.

  • ExternalID in NodeSpec is deprecated. The externalID of the node is no longer set in the Node spec.

  • PSP-related types in the extensions/v1beta1 API group are now deprecated. It is suggested to use the policy/v1beta1 API group instead.

New Features:

  • PodSecurityPolicy now supports restricting hostPath volume mounts to be readOnly and under specific path prefixes.

  • Node.Spec.ConfigSource.ConfigMap.KubeletConfigKey must be specified when using dynamic Kubelet config to tell the Kubelet which key of the ConfigMap identifies its config file.

  • serverAddressByClientCIDRs in meta/v1 APIGroup is now optional.

  • A new field MatchFields is added to NodeSelectorTerm. Currently, it only supports metadata.name.

  • The PriorityClass API is promoted to scheduling.k8s.io/v1beta1.

  • The status of dynamic Kubelet config is now reported via Node.Status.Config, rather than the KubeletConfigOk node condition.

  • The GitRepo volume type is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.

  • The Sysctls experimental feature has been promoted to beta (enabled by default via the Sysctls feature flag). PodSecurityPolicy and Pod objects now have fields for specifying and controlling sysctls. Alpha sysctl annotations will be ignored by 1.11+ kubelets. All alpha sysctl annotations in existing deployments must be converted to API fields to be effective.

  • The annotation service.alpha.kubernetes.io/tolerate-unready-endpoints is deprecated. Users should use Service.spec.publishNotReadyAddresses instead.

  • VerticalPodAutoscaler has been added to autoscaling/v1 API group.

  • Alpha support is added for dynamic volume limits based on node type.

  • ContainersReady condition is added to the Pod status.

Bug fixes and Improvements:

  • Default mount propagation has changed from HostToContainer (rslave in Linux terminology) to None (private) to match the behavior in 1.9 and earlier releases. HostToContainer as a default caused regressions in some pods.

v7.0.0

Breaking Changes:

  • Google Cloud Service Account email addresses can now be used in RBAC Role bindings since the default scopes now include the userinfo.email scope. This is a breaking change if the numeric uniqueIDs of the Google service accounts were being used in RBAC role bindings. The behavior can be overridden by explicitly specifying the scope values as comma-separated string in the users[*].config.scopes field in the KUBECONFIG file.

  • [k8s.io/api] The ConfigOK node condition has been renamed to KubeletConfigOk.

New Features:

  • Subresource support is added to the dynamic client.

  • A watch method is added to the Fake Client.

  • ListOptions can be modified when creating a ListWatch.

  • A /token subresource for ServiceAccount is added.

  • If an informer delivery fails, the particular notification is skipped and continued the next time.

  • Certificate manager will no longer wait until the initial rotation succeeds or fails before returning from Start().

  • [k8s.io/api] VolumeScheduling and LocalPersistentVolume features are beta and enabled by default. The PersistentVolume NodeAffinity alpha annotation is deprecated and will be removed in a future release.

  • [k8s.io/api] The PodSecurityPolicy API has been moved to the policy/v1beta1 API group. The PodSecurityPolicy API in the extensions/v1beta1 API group is deprecated and will be removed in a future release.

  • [k8s.io/api] ConfigMap objects now support binary data via a new binaryData field.

  • [k8s.io/api] Service account TokenRequest API is added.

  • [k8s.io/api] FSType is added in CSI volume source to specify filesystems.

  • [k8s.io/api] v1beta1 VolumeAttachment API is added.

  • [k8s.io/api] v1.Pod now has a field ShareProcessNamespace to configure whether a single process namespace should be shared between all containers in a pod. This feature is in alpha preview.

  • [k8s.io/api] Add NominatedNodeName field to PodStatus. This field is set when a pod preempts other pods on the node.

  • [k8s.io/api] Promote CSIPersistentVolumeSource to beta.

  • [k8s.io/api] Promote DNSPolicy and DNSConfig in PodSpec to beta.

  • [k8s.io/api] External metric types are added to the HPA API.

  • [k8s.io/apimachinery] The meta.k8s.io/v1alpha1 objects for retrieving tabular responses from the server (Table) or fetching just the ObjectMeta for an object (as PartialObjectMetadata) are now beta as part of meta.k8s.io/v1beta1. Clients may request alternate representations of normal Kubernetes objects by passing an Accept header like application/json;as=Table;g=meta.k8s.io;v=v1beta1 or application/json;as=PartialObjectMetadata;g=meta.k8s.io;v1=v1beta1. Older servers will ignore this representation or return an error if it is not available. Clients may request fallback to the normal object by adding a non-qualified mime-type to their Accept header like application/json - the server will then respond with either the alternate representation if it is supported or the fallback mime-type which is the normal object response.

Bug fixes and Improvements:

v6.0.0

Breaking Changes:

New Features:

Bug fixes and Improvements:

v5.0.1

Bug fix: picked up a security fix kubernetes/kubernetes#53443 for PodSecurityPolicy.

v5.0.0

New features:

API changes:

Breaking changes:

  • Moved pkg/api and pkg/apis to k8s.io/api. Other kubernetes repositories also import types from there, so they are composable with client-go.

  • Removed helper functions in pkg/api and pkg/apis. 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.

  • The discovery client now fetches the protobuf encoded OpenAPI schema and returns openapi_v2.Document

  • Enforced explicit references to API group client interfaces in clientsets to avoid ambiguity.

  • The generic RESTClient type (k8s.io/client-go/rest) no longer exposes LabelSelectorParam or FieldSelectorParam methods - use VersionedParams with metav1.ListOptions instead. The UintParam method has been removed. The timeout parameter will no longer cause an error when using Param().

v4.0.0

No significant changes since v4.0.0-beta.0.

v4.0.0-beta.0

New features:

Usability improvements:

  • Added several new examples and reorganized client-go/examples

API changes:

Breaking changes:

Bug fixes:

v3.0.0

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)

v3.0.0-beta.0

  • Added dependency on k8s.io/apimachinery. The impacts include changing import path of API objects like ListOptions from k8s.io/client-go/pkg/api/v1 to k8s.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
  • CHANGED: pass typed options to dynamic client (kubernetes/kubernetes#41887)

v2.0.0

  • Included bug fixes in k8s.io/kuberentes release-1.5 branch, up to commit bde8578d9675129b7a2aa08f1b825ec6cc0f3420

v2.0.0-alpha.1

  • 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

v1.5.0