From 386f601ae0de732d23c877ad257ae70096585c7a Mon Sep 17 00:00:00 2001 From: Bianca Henderson Date: Tue, 3 Feb 2026 10:14:10 -0600 Subject: [PATCH] Prep 5.4.2 release (#1083) SUMMARY Prep kubernetes.core 5.4.2 release COMPONENT NAME Multiple Reviewed-by: Bianca Henderson Reviewed-by: Bikouo Aubin Reviewed-by: Alina Buzachis Reviewed-by: Mike Graves --- CHANGELOG.rst | 37 +++++++++++++- Makefile | 2 +- README.md | 2 +- changelogs/changelog.yaml | 51 +++++++++++++++++-- .../fragments/1033-warnings-deprecations.yaml | 2 - .../20251002-fix-k8s-actiongroup.yaml | 2 - ...251007-selective-kubeconfig-redaction.yaml | 2 - .../20251115-limit-versions-of-helm.yaml | 2 - ...RIFY_SSL-in-kubectl-connecton-plugion.yaml | 2 - ...0260107-add-idempodency-for-helm-pull.yaml | 2 - .../20260108-fix-sanity-failures.yml | 11 ---- galaxy.yml | 2 +- 12 files changed, 87 insertions(+), 30 deletions(-) delete mode 100644 changelogs/fragments/1033-warnings-deprecations.yaml delete mode 100644 changelogs/fragments/20251002-fix-k8s-actiongroup.yaml delete mode 100644 changelogs/fragments/20251007-selective-kubeconfig-redaction.yaml delete mode 100644 changelogs/fragments/20251115-limit-versions-of-helm.yaml delete mode 100644 changelogs/fragments/20251220-fix-K8S_AUTH_VERIFY_SSL-in-kubectl-connecton-plugion.yaml delete mode 100644 changelogs/fragments/20260107-add-idempodency-for-helm-pull.yaml delete mode 100644 changelogs/fragments/20260108-fix-sanity-failures.yml diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 46f16134..a98f7fdf 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,41 @@ Kubernetes Collection Release Notes .. contents:: Topics +v5.4.2 +====== + +Release Summary +--------------- + +This release includes bugfixes such as replacing the passing of ``warnings`` to ``exit_json`` with ``AnsibleModule.warn`` as well as a security update for selectively redacting sensitive information from kubeconfig. + +Minor Changes +------------- + +- helm - add ``release_values`` key to ``status`` return value that can be accessed using Jinja2 dot notation (https://github.com/ansible-collections/kubernetes.core/pull/1056). +- helm_info - add ``release_values`` key to ``status`` return value that can be accessed using Jinja2 dot notation (https://github.com/ansible-collections/kubernetes.core/pull/1056). + +Deprecated Features +------------------- + +- helm - the ``status.values`` return value has been deprecated and will be removed in a release after 2027-01-08. Use ``status.release_values`` instead (https://github.com/ansible-collections/kubernetes.core/pull/1056). +- helm_info - the ``status.values`` return value has been deprecated and will be removed in a release after 2027-01-08. Use ``status.release_values`` instead (https://github.com/ansible-collections/kubernetes.core/pull/1056). + +Security Fixes +-------------- + +- Selectively redact sensitive info from kubeconfig instead of applying blanket ``no_log=True`` (https://github.com/ansible-collections/kubernetes.core/pull/1014). + +Bugfixes +-------- + +- Add idempotency for ``helm_pull`` module (https://github.com/ansible-collections/kubernetes.core/pull/1055). +- Fixed a bug where setting ``K8S_AUTH_VERIFY_SSL=true`` (or any string value) caused the value to be treated as a separate ``kubectl`` command argument (https://github.com/ansible-collections/kubernetes.core/pull/1049). +- Limit supported versions of Helm to <4.0.0 (https://github.com/ansible-collections/kubernetes.core/pull/1039). +- Replace passing ``warnings`` to ``exit_json`` with ``AnsibleModule.warn`` in the ``k8s_drain``, ``k8s_rollback.py`` and ``k8s_scale.py`` modules as it deprecated in ``ansible-core>=2.19.0`` and will be removed in ``ansible-core>=2.23.0`` (https://github.com/ansible-collections/kubernetes.core/pull/1033). +- k8s - Fix return block from the module documentation (https://github.com/ansible-collections/kubernetes.core/pull/1056). +- meta - Add ``k8s_cluster_info``, ``k8s_json_patch`` and ``k8s_rollback`` to k8s action group (https://github.com/ansible-collections/kubernetes.core/pull/992). + v5.4.1 ====== @@ -79,7 +114,7 @@ This release came with new module ``helm_registry_auth``, improvements to the er Minor Changes ------------- -- Bump version of ansible-lint to minimum 24.7.0 (https://github.com/ansible-collections/kubernetes.core/pull/765). +- Bump version of ``ansible-lint`` to minimum 24.7.0 (https://github.com/ansible-collections/kubernetes.core/pull/765). - Parameter insecure_registry added to helm_template as equivalent of insecure-skip-tls-verify (https://github.com/ansible-collections/kubernetes.core/pull/805). - k8s_drain - Improve error message for pod disruption budget when draining a node (https://github.com/ansible-collections/kubernetes.core/issues/797). diff --git a/Makefile b/Makefile index 7bfa80e9..2690fee8 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # Also needs to be updated in galaxy.yml -VERSION = 5.4.1 +VERSION = 5.4.2 TEST_ARGS ?= "" PYTHON_VERSION ?= `python -c 'import platform; print(".".join(platform.python_version_tuple()[0:2]))'` diff --git a/README.md b/README.md index 00456252..4b81e44f 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ You can also include it in a `requirements.yml` file and install it via `ansible --- collections: - name: kubernetes.core - version: 5.4.1 + version: 5.4.2 ``` ### Installing the Kubernetes Python Library diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index b381b5da..f8f79891 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -1047,9 +1047,11 @@ releases: 5.4.0: changes: minor_changes: - - Module ``helm_registry_auth`` does not support idempotency with ``helm >= 3.18.0`` - (https://github.com/ansible-collections/kubernetes.core/pull/946). - release_summary: This release updates the ``helm_registry_auth`` module to match the behavior of ``helm >= 3.18.0`` which reports a successful logout regardless of the current state (i.e., no idempotency). + - Module ``helm_registry_auth`` does not support idempotency with ``helm >= + 3.18.0`` (https://github.com/ansible-collections/kubernetes.core/pull/946). + release_summary: This release updates the ``helm_registry_auth`` module to match + the behavior of ``helm >= 3.18.0`` which reports a successful logout regardless + of the current state (i.e., no idempotency). fragments: - 20250411-kubeconfig-no_log-revert.yaml - 20250503-fix-unit-tests.yml @@ -1071,3 +1073,46 @@ releases: - 20250922-remove-ansible-six-imports.yaml - 5.4.1.yml release_date: '2025-10-07' + 5.4.2: + changes: + bugfixes: + - Add idempotency for ``helm_pull`` module (https://github.com/ansible-collections/kubernetes.core/pull/1055). + - Fixed a bug where setting ``K8S_AUTH_VERIFY_SSL=true`` (or any string value) + caused the value to be treated as a separate ``kubectl`` command argument + (https://github.com/ansible-collections/kubernetes.core/pull/1049). + - Limit supported versions of Helm to <4.0.0 (https://github.com/ansible-collections/kubernetes.core/pull/1039). + - Replace passing ``warnings`` to ``exit_json`` with ``AnsibleModule.warn`` + in the ``k8s_drain``, ``k8s_rollback.py`` and ``k8s_scale.py`` modules as + it deprecated in ``ansible-core>=2.19.0`` and will be removed in ``ansible-core>=2.23.0`` + (https://github.com/ansible-collections/kubernetes.core/pull/1033). + - k8s - Fix return block from the module documentation (https://github.com/ansible-collections/kubernetes.core/pull/1056). + - meta - Add ``k8s_cluster_info``, ``k8s_json_patch`` and ``k8s_rollback`` to + k8s action group (https://github.com/ansible-collections/kubernetes.core/pull/992). + deprecated_features: + - helm - the ``status.values`` return value has been deprecated and will be + removed in a release after 2027-01-08. Use ``status.release_values`` instead + (https://github.com/ansible-collections/kubernetes.core/pull/1056). + - helm_info - the ``status.values`` return value has been deprecated and will + be removed in a release after 2027-01-08. Use ``status.release_values`` instead + (https://github.com/ansible-collections/kubernetes.core/pull/1056). + minor_changes: + - helm - added ``release_values`` key to ``status`` return value that can be + accessed using Jinja2 dot notation (https://github.com/ansible-collections/kubernetes.core/pull/1056). + - helm_info - added ``release_values`` key to ``status`` return value that can + be accessed using Jinja2 dot notation (https://github.com/ansible-collections/kubernetes.core/pull/1056). + release_summary: This release includes various bugfixes such as replacing the + passing of ``warnings`` to ``exit_json`` with ``AnsibleModule.warn`` as well + as security updates for selectively redacting sensitive information from kubeconfig. + security_fixes: + - Selectively redact sensitive info from kubeconfig instead of applying blanket + ``no_log=True`` (https://github.com/ansible-collections/kubernetes.core/pull/1014). + fragments: + - 1033-warnings-deprecations.yaml + - 20251002-fix-k8s-actiongroup.yaml + - 20251007-selective-kubeconfig-redaction.yaml + - 20251115-limit-versions-of-helm.yaml + - 20251220-fix-K8S_AUTH_VERIFY_SSL-in-kubectl-connecton-plugion.yaml + - 20260107-add-idempodency-for-helm-pull.yaml + - 20260108-fix-sanity-failures.yml + - 5-4-2.yaml + release_date: '2026-02-03' diff --git a/changelogs/fragments/1033-warnings-deprecations.yaml b/changelogs/fragments/1033-warnings-deprecations.yaml deleted file mode 100644 index 729cdcee..00000000 --- a/changelogs/fragments/1033-warnings-deprecations.yaml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: - - Replace passing ``warnings`` to ``exit_json`` with ``AnsibleModule.warn`` in the ``k8s_drain``, ``k8s_rollback.py`` and ``k8s_scale.py`` modules as it deprecated in ``ansible-core>=2.19.0`` and will be removed in ``ansible-core>=2.23.0`` (https://github.com/ansible-collections/kubernetes.core/pull/1033). diff --git a/changelogs/fragments/20251002-fix-k8s-actiongroup.yaml b/changelogs/fragments/20251002-fix-k8s-actiongroup.yaml deleted file mode 100644 index 6bd965b7..00000000 --- a/changelogs/fragments/20251002-fix-k8s-actiongroup.yaml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: -- meta - Add ``k8s_cluster_info``, ``k8s_json_patch`` and ``k8s_rollback`` to k8s action group (https://github.com/ansible-collections/kubernetes.core/pull/992). diff --git a/changelogs/fragments/20251007-selective-kubeconfig-redaction.yaml b/changelogs/fragments/20251007-selective-kubeconfig-redaction.yaml deleted file mode 100644 index 06d6b572..00000000 --- a/changelogs/fragments/20251007-selective-kubeconfig-redaction.yaml +++ /dev/null @@ -1,2 +0,0 @@ -security_fixes: - - Selectively redact sensitive info from kubeconfig instead of applying blanket ``no_log=True`` (https://github.com/ansible-collections/kubernetes.core/pull/1014). diff --git a/changelogs/fragments/20251115-limit-versions-of-helm.yaml b/changelogs/fragments/20251115-limit-versions-of-helm.yaml deleted file mode 100644 index 0677f823..00000000 --- a/changelogs/fragments/20251115-limit-versions-of-helm.yaml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: - - Limit supported versions of Helm to <4.0.0 (https://github.com/ansible-collections/kubernetes.core/pull/1039). diff --git a/changelogs/fragments/20251220-fix-K8S_AUTH_VERIFY_SSL-in-kubectl-connecton-plugion.yaml b/changelogs/fragments/20251220-fix-K8S_AUTH_VERIFY_SSL-in-kubectl-connecton-plugion.yaml deleted file mode 100644 index 9313ea4f..00000000 --- a/changelogs/fragments/20251220-fix-K8S_AUTH_VERIFY_SSL-in-kubectl-connecton-plugion.yaml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: - - Fixed a bug where setting K8S_AUTH_VERIFY_SSL=true (or any string value) caused the value to be treated as a separate kubectl command argument. (https://github.com/ansible-collections/kubernetes.core/pull/1049). diff --git a/changelogs/fragments/20260107-add-idempodency-for-helm-pull.yaml b/changelogs/fragments/20260107-add-idempodency-for-helm-pull.yaml deleted file mode 100644 index 37058d51..00000000 --- a/changelogs/fragments/20260107-add-idempodency-for-helm-pull.yaml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: - - Add idempotency for ``helm_pull`` module (https://github.com/ansible-collections/kubernetes.core/pull/1055). diff --git a/changelogs/fragments/20260108-fix-sanity-failures.yml b/changelogs/fragments/20260108-fix-sanity-failures.yml deleted file mode 100644 index b7d0361d..00000000 --- a/changelogs/fragments/20260108-fix-sanity-failures.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -bugfixes: - - k8s - Fix return block from the module documentation (https://github.com/ansible-collections/kubernetes.core/pull/1056). -deprecated_features: - - helm - the ``status.values`` return value has been deprecated and will be removed in a release after 2027-01-08. - Use ``status.release_values`` instead (https://github.com/ansible-collections/kubernetes.core/pull/1056). - - helm_info - the ``status.values`` return value has been deprecated and will be removed in a release after 2027-01-08. - Use ``status.release_values`` instead (https://github.com/ansible-collections/kubernetes.core/pull/1056). -minor_changes: - - helm - added ``release_values`` key to ``status`` return value that can be accessed using Jinja2 dot notation (https://github.com/ansible-collections/kubernetes.core/pull/1056). - - helm_info - added ``release_values`` key to ``status`` return value that can be accessed using Jinja2 dot notation (https://github.com/ansible-collections/kubernetes.core/pull/1056). diff --git a/galaxy.yml b/galaxy.yml index 144d0ede..2f87498c 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -25,7 +25,7 @@ tags: - openshift - okd - cluster -version: 5.4.1 +version: 5.4.2 build_ignore: - .DS_Store - "*.tar.gz"