Skip to content

Latest commit

 

History

History
662 lines (510 loc) · 44.6 KB

CHANGELOG.rst

File metadata and controls

662 lines (510 loc) · 44.6 KB

Kubernetes Collection Release Notes

This major release drops support for ansible-core<2.15.

This major release brings several bug fixes. We have also removed support for ansible-core<2.15 and deprecated functions and class from module_utils/common.py.

  • inventory/k8s.py - Defer removal of k8s inventory plugin to version 5.0 (ansible-collections#723).
  • k8s - The module and K8sService were changed so warnings returned by the K8S API are now displayed to the user.
  • k8s - Support for merge_type=json has been removed in version 4.0.0. Please use kubernetes.core.k8s_json_patch instead (ansible-collections#722).
  • k8s_exec - the previously deprecated result.return_code return value has been removed, consider using result.rc instead (ansible-collections#726).
  • module_utils/common.py - the previously deprecated K8sAnsibleMixin class has been removed (ansible-collections#726).
  • module_utils/common.py - the previously deprecated configuration_digest() function has been removed (ansible-collections#726).
  • module_utils/common.py - the previously deprecated get_api_client() function has been removed (ansible-collections#726).
  • module_utils/common.py - the previously deprecated unique_string() function has been removed (ansible-collections#726).

This release comes with documentation updates.

  • inventory/k8s.py - Defer removal of k8s inventory plugin to version 6.0.0 (ansible-collections#734).
  • connection/kubectl.py - Added an example of using the kubectl connection plugin to the documentation (ansible-collections#741).

This release comes with some bugfixes and documentation updates. It also adds new features to the kubectl connection plugin and the kustomize lookup plugin.

  • kubectl - added support of local enviroment variable that will be used for kubectl and may be requried for establishing connections ifself (ansible-collections#702)
  • kustomize - new parameter added to --enable-helm (ansible-collections#568)
  • helm - expand kubeconfig path with user's home directory for consistency with k8s
  • k8s_json_patch - rename action symlink to ensure k8s action plugin is used (ansible-collections#652).

This release fixes issue with resources discovery when complex subresources are present, and fixes issues with reuse-values parameter for helm module.

This major release drops support for ansible-core versions lower than 2.14, Python versions lower than 3.9 and updates python kubernetes library to 24.2.0, helm/kind-action to 1.8.0, kubernetes >= 1.24, along with bug fixes and minor changes.

  • helm - add reuse_values and reset_values support to helm module (ansible-collections#394).
  • k8s - add new option delete_all to support deletion of all resources when state is set to absent. (ansible-collections#504)
  • k8s, k8s_info - add a hidden_fields option to allow fields to be hidden in the results of k8s and k8s_info
  • k8s_drain - add ability to filter the list of pods to be drained by a pod label selector (ansible-collections#474).
  • Remove support for ansible-core < 2.14
  • Update python kubernetes library to 24.2.0, helm/kind-action to 1.8.0, kubernetes >= 1.24.
  • k8s - the k8s inventory plugin has been deprecated and will be removed in release 4.0.0 (ansible-collections#31).
  • Fix dry_run logic - Pass the value dry_run=All instead of dry_run=True to the client, add conditional check on kubernetes client version as this feature is supported only for kubernetes >= 18.20.0 (ansible-collections#561).
  • Fix kubeconfig parameter when multiple config files are provided (ansible-collections#435).
  • Helm - Fix issue with alternative kubeconfig provided with validate_certs=False (ansible-collections#538).
  • Various modules and plugins - use vendored version of distutils.version instead of the deprecated Python standard library distutils (ansible-collections#314).
  • add missing documentation for filter plugin kubernetes.core.k8s_config_resource_name (ansible-collections#558).
  • common - Ensure the label_selectors parameter of _wait_for method is optional.
  • common - handle aliases passed from inventory and lookup plugins.
  • helm_template - evaluate release_values after values_files, insuring highest precedence (now same behavior as in helm module). (ansible-collections#348)
  • import exception from kubernetes.client.rest.
  • k8s - Fix issue with check_mode when using server side apply (ansible-collections#547).
  • k8s - Fix issue with server side apply with kubernetes release '25.3.0' (ansible-collections#548).
  • k8s_cp - add support for check_mode (ansible-collections#380).
  • k8s_drain - fix error caused by accessing an undefined variable when pods have local storage (ansible-collections#292).
  • k8s_info - don't wait on empty List resources (ansible-collections#253).
  • k8s_info - fix issue when module returns successful true after the resource cache has been established during periods where communication to the api-server is not possible (ansible-collections#508).
  • k8s_log - Fix module traceback when no resource found (ansible-collections#479).
  • k8s_log - fix exception raised when the name is not provided for resources requiring. (ansible-collections#514)
  • k8s_scale - fix waiting on statefulset when scaled down to 0 replicas (ansible-collections#203).
  • module_utils.common - change default opening mode to read-bytes to avoid bad interpretation of non ascii characters and strings, often present in 3rd party manifests.
  • module_utils/k8s/client.py - fix issue when trying to authenticate with host, client_cert and client_key parameters only.
  • remove binary file from k8s_cp test suite (ansible-collections#298).
  • use resource prefix when finding resource and apiVersion is v1 (ansible-collections#351).
  • helm_pull - download a chart from a repository and (optionally) unpack it in local directory.
  • Various modules and plugins - use vendored version of distutils.version instead of the deprecated Python standard library distutils (ansible-collections#314).
  • common - Ensure the label_selectors parameter of _wait_for method is optional.
  • helm_template - evaluate release_values after values_files, insuring highest precedence (now same behavior as in helm module). (ansible-collections#348)
  • import exception from kubernetes.client.rest.
  • k8s_drain - fix error caused by accessing an undefined variable when pods have local storage (ansible-collections#292).
  • k8s_info - don't wait on empty List resources (ansible-collections#253).
  • k8s_scale - fix waiting on statefulset when scaled down to 0 replicas (ansible-collections#203).
  • module_utils.common - change default opening mode to read-bytes to avoid bad interpretation of non ascii characters and strings, often present in 3rd party manifests.
  • remove binary file from k8s_cp test suite (ansible-collections#298).
  • use resource prefix when finding resource and apiVersion is v1 (ansible-collections#351).
  • k8s_taint - Taint a node in a Kubernetes/OpenShift cluster
  • kustomize - Build a set of kubernetes resources using a 'kustomization.yaml' file.
  • k8s_cp - Copy files and directories to and from pod.
  • k8s_drain - Drain, Cordon, or Uncordon node in k8s cluster
  • k8s_json_patch - Apply JSON patch operations to existing objects
  • helm_plugin - Manage Helm plugins
  • helm_plugin_info - Gather information about Helm plugins
  • helm - Manages Kubernetes packages with the Helm package manager
  • helm_info - Get information from Helm package deployed inside the cluster
  • helm_repository - Add and remove Helm repository
  • kubectl - Warn about information disclosure when using options like kubectl_password, kubectl_extra_args, and kubectl_token to pass data through to the command line using the kubectl connection plugin (ansible-collections/community.kubernetes#51).
  • k8s_exec - Execute command in Pod
  • k8s_log - Fetch logs from Kubernetes resources
  • k8s - Inventory source migrated from Ansible 2.9 to Kubernetes collection.
  • k8s - Lookup plugin migrated from Ansible 2.9 to Kubernetes collection.
  • k8s - Module migrated from Ansible 2.9 to Kubernetes collection.
  • k8s_auth - Module migrated from Ansible 2.9 to Kubernetes collection.
  • k8s_config_resource_name - Filter plugin migrated from Ansible 2.9 to Kubernetes collection.
  • k8s_info - Module migrated from Ansible 2.9 to Kubernetes collection.
  • k8s_scale - Module migrated from Ansible 2.9 to Kubernetes collection.
  • k8s_service - Module migrated from Ansible 2.9 to Kubernetes collection.
  • kubectl - Connection plugin migrated from Ansible 2.9 to Kubernetes collection.
  • openshift - Inventory source migrated from Ansible 2.9 to Kubernetes collection.