| 1 |
=================================== |
| 2 |
Kubernetes Collection Release Notes |
| 3 |
=================================== |
| 4 |
|
| 5 |
.. contents:: Topics |
| 6 |
|
| 7 |
v6.4.0 |
| 8 |
====== |
| 9 |
|
| 10 |
Release Summary |
| 11 |
--------------- |
| 12 |
|
| 13 |
This release adds Helm v4 compatibility across the Helm modules and improves ``k8s_drain`` with check mode. When you explicitly allow evicting unmanaged pods, pods with local storage, or pods managed by a ``DaemonSet``, those cases are reported as informational output instead of module warnings. |
| 14 |
|
| 15 |
Minor Changes |
| 16 |
------------- |
| 17 |
|
| 18 |
- helm_info - Ensure compatibility with Helm v4 (https://github.com/ansible-collections/kubernetes.core/issues/1038). |
| 19 |
- helm_plugin - Ensure compatibility with Helm v4 (https://github.com/ansible-collections/kubernetes.core/issues/1038). |
| 20 |
- helm_plugin_info - Ensure compatibility with Helm v4 (https://github.com/ansible-collections/kubernetes.core/issues/1038). |
| 21 |
- helm_pull - Ensure compatibility with Helm v4 (https://github.com/ansible-collections/kubernetes.core/issues/1038). |
| 22 |
- helm_registry_auth - Ensure compatibility with Helm v4 (https://github.com/ansible-collections/kubernetes.core/issues/1038). |
| 23 |
- helm_registry_auth - add new option plain_http to allow insecure http connection when running ``helm registry login`` (https://github.com/ansible-collections/kubernetes.core/pull/1090). |
| 24 |
- helm_repository - Ensure compatibility with Helm v4 (https://github.com/ansible-collections/kubernetes.core/issues/1038). |
| 25 |
- k8s_drain - Add support for ``check_mode`` (https://github.com/ansible-collections/kubernetes.core/pull/1086). |
| 26 |
- k8s_drain - Convert module warnings into informational displays when users explicitly request the deletion of unmanaged pods, pods with local storage, or those managed by a `DaemonSet` (https://github.com/ansible-collections/kubernetes.core/issues/1037). |
| 27 |
|
| 28 |
Bugfixes |
| 29 |
-------- |
| 30 |
|
| 31 |
- Helm - Allow taking ownership of existing Kubernetes resources on the first installation of a Helm release. Previously, the ``take_ownership`` parameter was always disabled during the initial install, preventing resource adoption (https://github.com/ansible-collections/kubernetes.core/pull/1034). |
| 32 |
|
| 33 |
v6.3.0 |
| 34 |
====== |
| 35 |
|
| 36 |
Release Summary |
| 37 |
--------------- |
| 38 |
|
| 39 |
This release includes bugfixes such as implementing idempotency for the ``helm_pull`` module as well as a security update for selectively redacting sensitive information from kubeconfig. |
| 40 |
|
| 41 |
Minor Changes |
| 42 |
------------- |
| 43 |
|
| 44 |
- Remove deprecated import from ``ansible.module_utils._text`` (https://github.com/ansible-collections/kubernetes.core/pull/1053). |
| 45 |
- 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). |
| 46 |
- 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). |
| 47 |
|
| 48 |
Deprecated Features |
| 49 |
------------------- |
| 50 |
|
| 51 |
- 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). |
| 52 |
- 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). |
| 53 |
|
| 54 |
Security Fixes |
| 55 |
-------------- |
| 56 |
|
| 57 |
- Selectively redact sensitive info from kubeconfig instead of applying blanket ``no_log=True`` (https://github.com/ansible-collections/kubernetes.core/pull/1014). |
| 58 |
|
| 59 |
Bugfixes |
| 60 |
-------- |
| 61 |
|
| 62 |
- Add idempotency for ``helm_pull`` module (https://github.com/ansible-collections/kubernetes.core/pull/1055). |
| 63 |
- 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). |
| 64 |
- Limit supported versions of Helm to <4.0.0 (https://github.com/ansible-collections/kubernetes.core/pull/1039). |
| 65 |
- 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). |
| 66 |
- k8s - Fix return block from the module documentation (https://github.com/ansible-collections/kubernetes.core/pull/1056). |
| 67 |
- meta - Add ``k8s_cluster_info``, ``k8s_json_patch`` and ``k8s_rollback`` to k8s action group (https://github.com/ansible-collections/kubernetes.core/pull/992). |
| 68 |
|
| 69 |
v6.2.0 |
| 70 |
====== |
| 71 |
|
| 72 |
Release Summary |
| 73 |
--------------- |
| 74 |
|
| 75 |
This release adds minor changes and bugfixes, including support of skip-schema-validation in ``helm`` module and removing deprecated ``ansible.module_utils.six`` imports. |
| 76 |
|
| 77 |
Minor Changes |
| 78 |
------------- |
| 79 |
|
| 80 |
- Add support of skip-schema-validation in ``helm`` module (https://github.com/ansible-collections/kubernetes.core/pull/995) |
| 81 |
- kustomize - Add support of local environ (https://github.com/ansible-collections/kubernetes.core/pull/786). |
| 82 |
|
| 83 |
Bugfixes |
| 84 |
-------- |
| 85 |
|
| 86 |
- Remove ``ansible.module_utils.six`` imports to avoid warnings (https://github.com/ansible-collections/kubernetes.core/pull/998). |
| 87 |
- Update the ``k8s_cp`` module to also work for init containers (https://github.com/ansible-collections/kubernetes.core/pull/971). |
| 88 |
|
| 89 |
v6.1.0 |
| 90 |
====== |
| 91 |
|
| 92 |
Release Summary |
| 93 |
--------------- |
| 94 |
|
| 95 |
This release adds ``plain_http`` and ``take_ownership`` parameters for helm modules, support for ``hidden_fields`` in ``k8s_json_patch``, documented lack of idempotency support in ``helm_registry_auth`` with ``helm ≥ 3.18.0``, and improved ``k8s_rollback`` test coverage. |
| 96 |
|
| 97 |
Minor Changes |
| 98 |
------------- |
| 99 |
|
| 100 |
- Module helm_registry_auth do not support idempotency with `helm >= 3.18.0` (https://github.com/ansible-collections/kubernetes.core/pull/946) |
| 101 |
- Module k8s_json_patch - Add support for `hidden_fields` (https://github.com/ansible-collections/kubernetes.core/pull/964). |
| 102 |
- helm - Parameter plain_http added for working with insecure OCI registries (https://github.com/ansible-collections/kubernetes.core/pull/934). |
| 103 |
- helm - Parameter take_ownership added (https://github.com/ansible-collections/kubernetes.core/pull/957). |
| 104 |
- helm_pull - Parameter plain_http added for working with insecure OCI registries (https://github.com/ansible-collections/kubernetes.core/pull/934). |
| 105 |
- helm_template - Parameter plain_http added for working with insecure OCI registries (https://github.com/ansible-collections/kubernetes.core/pull/934). |
| 106 |
|
| 107 |
Bugfixes |
| 108 |
-------- |
| 109 |
|
| 110 |
- module_utils/k8s/service - hide fields first before creating diffs (https://github.com/ansible-collections/kubernetes.core/pull/915). |
| 111 |
|
| 112 |
v6.0.0 |
| 113 |
====== |
| 114 |
|
| 115 |
Breaking Changes / Porting Guide |
| 116 |
-------------------------------- |
| 117 |
|
| 118 |
- Remove deprecated ``k8s`` invetory plugin (https://github.com/ansible-collections/kubernetes.core/pull/867). |
| 119 |
- Remove support for ``ansible-core<2.16`` (https://github.com/ansible-collections/kubernetes.core/pull/867). |
| 120 |
|
| 121 |
v5.4.1 |
| 122 |
====== |
| 123 |
|
| 124 |
Release Summary |
| 125 |
--------------- |
| 126 |
|
| 127 |
This release includes bugfixes for k8s service field handling, k8s_cp init containers support, and removes deprecated ansible.module_utils.six imports. |
| 128 |
|
| 129 |
Bugfixes |
| 130 |
-------- |
| 131 |
|
| 132 |
- Remove ``ansible.module_utils.six`` imports to avoid warnings (https://github.com/ansible-collections/kubernetes.core/pull/998). |
| 133 |
- Update the `k8s_cp` module to also work for init containers (https://github.com/ansible-collections/kubernetes.core/pull/971). |
| 134 |
- module_utils/k8s/service - hide fields first before creating diffs (https://github.com/ansible-collections/kubernetes.core/pull/915). |
| 135 |
|
| 136 |
v5.4.0 |
| 137 |
====== |
| 138 |
|
| 139 |
Release Summary |
| 140 |
--------------- |
| 141 |
|
| 142 |
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). |
| 143 |
|
| 144 |
Minor Changes |
| 145 |
------------- |
| 146 |
|
| 147 |
- Module ``helm_registry_auth`` does not support idempotency with ``helm >= 3.18.0`` (https://github.com/ansible-collections/kubernetes.core/pull/946). |
| 148 |
|
| 149 |
v5.3.0 |
| 150 |
====== |
| 151 |
|
| 152 |
Release Summary |
| 153 |
--------------- |
| 154 |
|
| 155 |
This release includes minor changes, bug fixes and also bumps ``ansible-lint`` version to ``25.1.2``. |
| 156 |
|
| 157 |
Minor Changes |
| 158 |
------------- |
| 159 |
|
| 160 |
- Bump version of ``ansible-lint`` to 25.1.2 (https://github.com/ansible-collections/kubernetes.core/pull/919). |
| 161 |
- action/k8s_info - update templating mechanism with changes from ``ansible-core 2.19`` (https://github.com/ansible-collections/kubernetes.core/pull/888). |
| 162 |
- helm - add ``reset_then_reuse_values`` support to helm module (https://github.com/ansible-collections/kubernetes.core/issues/803). |
| 163 |
- helm - add support for ``insecure_skip_tls_verify`` option to helm and helm_repository(https://github.com/ansible-collections/kubernetes.core/issues/694). |
| 164 |
|
| 165 |
Bugfixes |
| 166 |
-------- |
| 167 |
|
| 168 |
- module_utils/k8s/service - fix issue when trying to delete resource using ``delete_options`` and ``check_mode=true`` (https://github.com/ansible-collections/kubernetes.core/issues/892). |
| 169 |
|
| 170 |
v5.2.0 |
| 171 |
====== |
| 172 |
|
| 173 |
Release Summary |
| 174 |
--------------- |
| 175 |
|
| 176 |
This release adds more functionality to the hidden_fields option and support for waiting on ClusterOperators to reach a ready state. |
| 177 |
|
| 178 |
Minor Changes |
| 179 |
------------- |
| 180 |
|
| 181 |
- k8s - Extend hidden_fields to allow the expression of more complex field types to be hidden (https://github.com/ansible-collections/kubernetes.core/pull/872) |
| 182 |
- k8s_info - Extend hidden_fields to allow the expression of more complex field types to be hidden (https://github.com/ansible-collections/kubernetes.core/pull/872) |
| 183 |
- waiter.py - add ClusterOperator support. The module can now check OpenShift cluster health by verifying ClusterOperator status requiring 'Available: True', 'Degraded: False', and 'Progressing: False' for success. (https://github.com/ansible-collections/kubernetes.core/issues/869) |
| 184 |
|
| 185 |
v5.1.0 |
| 186 |
====== |
| 187 |
|
| 188 |
Release Summary |
| 189 |
--------------- |
| 190 |
|
| 191 |
This release came with new module ``helm_registry_auth``, improvements to the error messages in the k8s_drain module, new parameter ``insecure_registry`` for ``helm_template`` module and several bug fixes. |
| 192 |
|
| 193 |
Minor Changes |
| 194 |
------------- |
| 195 |
|
| 196 |
- Bump version of ``ansible-lint`` to minimum 24.7.0 (https://github.com/ansible-collections/kubernetes.core/pull/765). |
| 197 |
- Parameter insecure_registry added to helm_template as equivalent of insecure-skip-tls-verify (https://github.com/ansible-collections/kubernetes.core/pull/805). |
| 198 |
- k8s_drain - Improve error message for pod disruption budget when draining a node (https://github.com/ansible-collections/kubernetes.core/issues/797). |
| 199 |
|
| 200 |
Bugfixes |
| 201 |
-------- |
| 202 |
|
| 203 |
- helm - Helm version checks did not support RC versions. They now accept any version tags. (https://github.com/ansible-collections/kubernetes.core/pull/745). |
| 204 |
- helm_pull - Apply no_log=True to pass_credentials to silence false positive warning. (https://github.com/ansible-collections/kubernetes.core/pull/796). |
| 205 |
- k8s_drain - Fix k8s_drain does not wait for single pod (https://github.com/ansible-collections/kubernetes.core/issues/769). |
| 206 |
- k8s_drain - Fix k8s_drain runs into a timeout when evicting a pod which is part of a stateful set (https://github.com/ansible-collections/kubernetes.core/issues/792). |
| 207 |
- kubeconfig option should not appear in module invocation log (https://github.com/ansible-collections/kubernetes.core/issues/782). |
| 208 |
- kustomize - kustomize plugin fails with deprecation warnings (https://github.com/ansible-collections/kubernetes.core/issues/639). |
| 209 |
- waiter - Fix waiting for daemonset when desired number of pods is 0. (https://github.com/ansible-collections/kubernetes.core/pull/756). |
| 210 |
|
| 211 |
New Modules |
| 212 |
----------- |
| 213 |
|
| 214 |
- helm_registry_auth - Helm registry authentication module |
| 215 |
|
| 216 |
v5.0.0 |
| 217 |
====== |
| 218 |
|
| 219 |
Release Summary |
| 220 |
--------------- |
| 221 |
|
| 222 |
This major release drops support for ``ansible-core<2.15``. |
| 223 |
|
| 224 |
Minor Changes |
| 225 |
------------- |
| 226 |
|
| 227 |
- connection/kubectl.py - Added an example of using the kubectl connection plugin to the documentation (https://github.com/ansible-collections/kubernetes.core/pull/741). |
| 228 |
- inventory/k8s.py - Defer removal of k8s inventory plugin to version 6.0.0 (https://github.com/ansible-collections/kubernetes.core/pull/734). |
| 229 |
|
| 230 |
Breaking Changes / Porting Guide |
| 231 |
-------------------------------- |
| 232 |
|
| 233 |
- Remove support for ``ansible-core<2.15`` (https://github.com/ansible-collections/kubernetes.core/pull/737). |
| 234 |
|
| 235 |
v4.0.0 |
| 236 |
====== |
| 237 |
|
| 238 |
Release Summary |
| 239 |
--------------- |
| 240 |
|
| 241 |
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``. |
| 242 |
|
| 243 |
Minor Changes |
| 244 |
------------- |
| 245 |
|
| 246 |
- inventory/k8s.py - Defer removal of k8s inventory plugin to version 5.0 (https://github.com/ansible-collections/kubernetes.core/pull/723). |
| 247 |
- k8s - The module and K8sService were changed so warnings returned by the K8S API are now displayed to the user. |
| 248 |
|
| 249 |
Removed Features (previously deprecated) |
| 250 |
---------------------------------------- |
| 251 |
|
| 252 |
- k8s - Support for ``merge_type=json`` has been removed in version 4.0.0. Please use ``kubernetes.core.k8s_json_patch`` instead (https://github.com/ansible-collections/kubernetes.core/pull/722). |
| 253 |
- k8s_exec - the previously deprecated ``result.return_code`` return value has been removed, consider using ``result.rc`` instead (https://github.com/ansible-collections/kubernetes.core/pull/726). |
| 254 |
- module_utils/common.py - the previously deprecated ``K8sAnsibleMixin`` class has been removed (https://github.com/ansible-collections/kubernetes.core/pull/726). |
| 255 |
- module_utils/common.py - the previously deprecated ``configuration_digest()`` function has been removed (https://github.com/ansible-collections/kubernetes.core/pull/726). |
| 256 |
- module_utils/common.py - the previously deprecated ``get_api_client()`` function has been removed (https://github.com/ansible-collections/kubernetes.core/pull/726). |
| 257 |
- module_utils/common.py - the previously deprecated ``unique_string()`` function has been removed (https://github.com/ansible-collections/kubernetes.core/pull/726). |
| 258 |
|
| 259 |
Bugfixes |
| 260 |
-------- |
| 261 |
|
| 262 |
- Resolve Collections util resource discovery fails when complex subresources present (https://github.com/ansible-collections/kubernetes.core/pull/676). |
| 263 |
- align `helmdiff_check()` function commandline rendering with the `deploy()` function (https://github.com/ansible-collections/kubernetes.core/pull/670). |
| 264 |
- avoid unsafe conditions in integration tests (https://github.com/ansible-collections/kubernetes.core/pull/665). |
| 265 |
- helm - use ``reuse-values`` when running ``helm diff`` command (https://github.com/ansible-collections/kubernetes.core/issues/680). |
| 266 |
- integrations test helm_kubeconfig - set helm version to v3.10.3 to avoid incompatability with new bitnami charts (https://github.com/ansible-collections/kubernetes.core/pull/670). |
| 267 |
|
| 268 |
v3.3.1 |
| 269 |
====== |
| 270 |
|
| 271 |
Release Summary |
| 272 |
--------------- |
| 273 |
|
| 274 |
This release fixes the CI issues with the ``linters`` workflow. |
| 275 |
|
| 276 |
v3.3.0 |
| 277 |
====== |
| 278 |
|
| 279 |
Release Summary |
| 280 |
--------------- |
| 281 |
|
| 282 |
This release comes with improvements to the error messages in the k8s_drain module and several bug fixes. |
| 283 |
|
| 284 |
Minor Changes |
| 285 |
------------- |
| 286 |
|
| 287 |
- k8s_drain - Improve error message for pod disruption budget when draining a node (https://github.com/ansible-collections/kubernetes.core/issues/797). |
| 288 |
|
| 289 |
Bugfixes |
| 290 |
-------- |
| 291 |
|
| 292 |
- helm - Helm version checks did not support RC versions. They now accept any version tags. (https://github.com/ansible-collections/kubernetes.core/pull/745). |
| 293 |
- helm_pull - Apply no_log=True to pass_credentials to silence false positive warning. (https://github.com/ansible-collections/kubernetes.core/pull/796). |
| 294 |
- k8s_drain - Fix k8s_drain does not wait for single pod (https://github.com/ansible-collections/kubernetes.core/issues/769). |
| 295 |
- k8s_drain - Fix k8s_drain runs into a timeout when evicting a pod which is part of a stateful set (https://github.com/ansible-collections/kubernetes.core/issues/792). |
| 296 |
- kubeconfig option should not appear in module invocation log (https://github.com/ansible-collections/kubernetes.core/issues/782). |
| 297 |
- kustomize - kustomize plugin fails with deprecation warnings (https://github.com/ansible-collections/kubernetes.core/issues/639). |
| 298 |
- waiter - Fix waiting for daemonset when desired number of pods is 0. (https://github.com/ansible-collections/kubernetes.core/pull/756). |
| 299 |
|
| 300 |
v3.2.0 |
| 301 |
====== |
| 302 |
|
| 303 |
Release Summary |
| 304 |
--------------- |
| 305 |
|
| 306 |
This release comes with documentation updates. |
| 307 |
|
| 308 |
Minor Changes |
| 309 |
------------- |
| 310 |
|
| 311 |
- connection/kubectl.py - Added an example of using the kubectl connection plugin to the documentation (https://github.com/ansible-collections/kubernetes.core/pull/741). |
| 312 |
- inventory/k8s.py - Defer removal of k8s inventory plugin to version 5.0 (https://github.com/ansible-collections/kubernetes.core/pull/723). |
| 313 |
- inventory/k8s.py - Defer removal of k8s inventory plugin to version 6.0.0 (https://github.com/ansible-collections/kubernetes.core/pull/734). |
| 314 |
|
| 315 |
v3.1.0 |
| 316 |
====== |
| 317 |
|
| 318 |
Release Summary |
| 319 |
--------------- |
| 320 |
|
| 321 |
This release comes with some bugfixes and documentation updates. It also adds new features to the kubectl connection plugin and the kustomize lookup plugin. |
| 322 |
|
| 323 |
Minor Changes |
| 324 |
------------- |
| 325 |
|
| 326 |
- kubectl - added support of local enviroment variable that will be used for kubectl and may be requried for establishing connections ifself (https://github.com/ansible-collections/kubernetes.core/pull/702) |
| 327 |
- kustomize - new parameter added to --enable-helm (https://github.com/ansible-collections/kubernetes.core/issues/568) |
| 328 |
|
| 329 |
Bugfixes |
| 330 |
-------- |
| 331 |
|
| 332 |
- helm - expand kubeconfig path with user's home directory for consistency with k8s |
| 333 |
- k8s_json_patch - rename action symlink to ensure k8s action plugin is used (https://github.com/ansible-collections/kubernetes.core/pull/652). |
| 334 |
|
| 335 |
v3.0.1 |
| 336 |
====== |
| 337 |
|
| 338 |
Release Summary |
| 339 |
--------------- |
| 340 |
|
| 341 |
This release fixes issue with resources discovery when complex subresources are present, and fixes issues with `reuse-values` parameter for helm module. |
| 342 |
|
| 343 |
Bugfixes |
| 344 |
-------- |
| 345 |
|
| 346 |
- Resolve Collections util resource discovery fails when complex subresources present (https://github.com/ansible-collections/kubernetes.core/pull/676). |
| 347 |
- align `helmdiff_check()` function commandline rendering with the `deploy()` function (https://github.com/ansible-collections/kubernetes.core/pull/670). |
| 348 |
- helm - use ``reuse-values`` when running ``helm diff`` command (https://github.com/ansible-collections/kubernetes.core/issues/680). |
| 349 |
- integrations test helm_kubeconfig - set helm version to v3.10.3 to avoid incompatability with new bitnami charts (https://github.com/ansible-collections/kubernetes.core/pull/670). |
| 350 |
|
| 351 |
v3.0.0 |
| 352 |
====== |
| 353 |
|
| 354 |
Release Summary |
| 355 |
--------------- |
| 356 |
|
| 357 |
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. |
| 358 |
|
| 359 |
Minor Changes |
| 360 |
------------- |
| 361 |
|
| 362 |
- helm - add ``reuse_values`` and ``reset_values`` support to helm module (https://github.com/ansible-collections/kubernetes.core/issues/394). |
| 363 |
- k8s - add new option ``delete_all`` to support deletion of all resources when state is set to ``absent``. (https://github.com/ansible-collections/kubernetes.core/issues/504) |
| 364 |
- k8s, k8s_info - add a hidden_fields option to allow fields to be hidden in the results of k8s and k8s_info |
| 365 |
- k8s_drain - add ability to filter the list of pods to be drained by a pod label selector (https://github.com/ansible-collections/kubernetes.core/issues/474). |
| 366 |
|
| 367 |
Breaking Changes / Porting Guide |
| 368 |
-------------------------------- |
| 369 |
|
| 370 |
- Remove support for ansible-core < 2.14 |
| 371 |
- Update python kubernetes library to 24.2.0, helm/kind-action to 1.8.0, kubernetes >= 1.24. |
| 372 |
|
| 373 |
Deprecated Features |
| 374 |
------------------- |
| 375 |
|
| 376 |
- k8s - the ``k8s`` inventory plugin has been deprecated and will be removed in release 4.0.0 (https://github.com/ansible-collections/kubernetes.core/issues/31). |
| 377 |
|
| 378 |
Bugfixes |
| 379 |
-------- |
| 380 |
|
| 381 |
- helm - Put the chart_ref into quotes when running ``helm show chart``, ``helm upgrade`` and ``helm dependency update`` commands (https://github.com/ansible-collections/kubernetes.core/issues/653). |
| 382 |
- helm - delete temporary file created when deploying chart with option ``release_values`` set (https://github.com/ansible-collections/kubernetes.core/issues/530). |
| 383 |
- helm - fix issue occurring when uninstalling chart with statues others than ``deployed`` (https://github.com/ansible-collections/kubernetes.core/issues/319). |
| 384 |
- helm - fix post_renderer argument breaking the helm deploy_command (https://github.com/ansible-collections/kubernetes.core/pull/586). |
| 385 |
- helm - use post_renderer when checking ``changed`` status for a helm release (https://github.com/ansible-collections/kubernetes.core/pull/588). |
| 386 |
- k8s_scale - clean handling of ResourceTimeout exception (https://github.com/ansible-collections/kubernetes.core/issues/583). |
| 387 |
- k8s_scale - fix issue when scaling StatefulSets with ``updateStrategy=OnDelete`` (https://github.com/ansible-collections/kubernetes.core/issues/579). |
| 388 |
|
| 389 |
v2.4.0 |
| 390 |
====== |
| 391 |
|
| 392 |
Major Changes |
| 393 |
------------- |
| 394 |
|
| 395 |
- refactor K8sAnsibleMixin into module_utils/k8s/ (https://github.com/ansible-collections/kubernetes.core/pull/481). |
| 396 |
|
| 397 |
Minor Changes |
| 398 |
------------- |
| 399 |
|
| 400 |
- Adjust k8s_user_impersonation tests to be compatible with Kubernetes 1.24 (https://github.com/ansible-collections/kubernetes.core/pull/520). |
| 401 |
- add support for dry run with kubernetes client version >=18.20 (https://github.com/ansible-collections/kubernetes.core/pull/245). |
| 402 |
- added ignore.txt for Ansible 2.14 devel branch. |
| 403 |
- fixed module_defaults by removing routing hacks from runtime.yml (https://github.com/ansible-collections/kubernetes.core/pull/347). |
| 404 |
- helm - add support for -set-file, -set-json, -set and -set-string options when running helm install (https://github.com/ansible-collections/kubernetes.core/issues/533). |
| 405 |
- helm - add support for helm dependency update (https://github.com/ansible-collections/kubernetes.core/pull/208). |
| 406 |
- helm - add support for post-renderer flag (https://github.com/ansible-collections/kubernetes.core/issues/30). |
| 407 |
- helm - add support for timeout cli parameter to allow setting Helm timeout independent of wait (https://github.com/ansible-collections/kubernetes.core/issues/67). |
| 408 |
- helm - add support for wait parameter for helm uninstall command. (https://github.com/ansible-collections/kubernetes/core/issues/33). |
| 409 |
- helm - support repo location for helm diff (https://github.com/ansible-collections/kubernetes.core/issues/174). |
| 410 |
- helm - when ansible is executed in check mode, return the diff between what's deployed and what will be deployed. |
| 411 |
- helm, helm_plugin, helm_info, helm_plugin_info, kubectl - add support for in-memory kubeconfig. (https://github.com/ansible-collections/kubernetes.core/issues/492). |
| 412 |
- helm_info - add hooks, notes and manifest as part of returned information (https://github.com/ansible-collections/kubernetes.core/pull/546). |
| 413 |
- helm_info - add release state as a module argument (https://github.com/ansible-collections/kubernetes.core/issues/377). |
| 414 |
- helm_info - added possibility to get all values by adding get_all_values parameter (https://github.com/ansible-collections/kubernetes.core/pull/531). |
| 415 |
- helm_plugin - Add plugin_version parameter to the helm_plugin module (https://github.com/ansible-collections/kubernetes.core/issues/157). |
| 416 |
- helm_plugin - Add support for helm plugin update using state=update. |
| 417 |
- helm_repository - Ability to replace (overwrite) the repo if it already exists by forcing (https://github.com/ansible-collections/kubernetes.core/issues/491). |
| 418 |
- helm_repository - add support for pass-credentials cli parameter (https://github.com/ansible-collections/kubernetes.core/pull/282). |
| 419 |
- helm_repository - added support for ``host``, ``api_key``, ``validate_certs``, and ``ca_cert``. |
| 420 |
- helm_repository - mark `pass_credentials` as no_log=True to silence false warning (https://github.com/ansible-collections/kubernetes.core/issues/412). |
| 421 |
- helm_template - add name (NAME of release) and disable_hook as optional module arguments (https://github.com/ansible-collections/kubernetes.core/issues/313). |
| 422 |
- helm_template - add show_only and release_namespace as module arguments (https://github.com/ansible-collections/kubernetes.core/issues/313). |
| 423 |
- helm_template - add support for -set-file, -set-json, -set and -set-string options when running helm template (https://github.com/ansible-collections/kubernetes.core/pull/546). |
| 424 |
- k8s - add no_proxy support to k8s* (https://github.com/ansible-collections/kubernetes.core/pull/272). |
| 425 |
- k8s - add support for server_side_apply. (https://github.com/ansible-collections/kubernetes.core/issues/87). |
| 426 |
- k8s - add support for user impersonation. (https://github.com/ansible-collections/kubernetes/core/issues/40). |
| 427 |
- k8s - allow resource definition using metadata.generateName (https://github.com/ansible-collections/kubernetes.core/issues/35). |
| 428 |
- k8s lookup plugin - Enable turbo mode via environment variable (https://github.com/ansible-collections/kubernetes.core/issues/291). |
| 429 |
- k8s, k8s_scale, k8s_service - add support for resource definition as manifest via. (https://github.com/ansible-collections/kubernetes.core/issues/451). |
| 430 |
- k8s_cp - remove dependency with 'find' executable on remote pod when state=from_pod (https://github.com/ansible-collections/kubernetes.core/issues/486). |
| 431 |
- k8s_drain - Adds ``delete_emptydir_data`` option to ``k8s_drain.delete_options`` to evict pods with an ``emptyDir`` volume attached (https://github.com/ansible-collections/kubernetes.core/pull/322). |
| 432 |
- k8s_exec - select first container from the pod if none specified (https://github.com/ansible-collections/kubernetes.core/issues/358). |
| 433 |
- k8s_exec - update deprecation warning for `return_code` (https://github.com/ansible-collections/kubernetes.core/issues/417). |
| 434 |
- k8s_json_patch - minor typo fix in the example section (https://github.com/ansible-collections/kubernetes.core/issues/411). |
| 435 |
- k8s_log - add the ``all_containers`` for retrieving all containers' logs in the pod(s). |
| 436 |
- k8s_log - added the `previous` parameter for retrieving the previously terminated pod logs (https://github.com/ansible-collections/kubernetes.core/issues/437). |
| 437 |
- k8s_log - added the `tail_lines` parameter to limit the number of lines to be retrieved from the end of the logs (https://github.com/ansible-collections/kubernetes.core/issues/488). |
| 438 |
- k8s_rollback - add support for check_mode. (https://github.com/ansible-collections/kubernetes/core/issues/243). |
| 439 |
- k8s_scale - add support for check_mode. (https://github.com/ansible-collections/kubernetes/core/issues/244). |
| 440 |
- kubectl - wait for dd command to complete before proceeding (https://github.com/ansible-collections/kubernetes.core/pull/321). |
| 441 |
- kubectl.py - replace distutils.spawn.find_executable with shutil.which in the kubectl connection plugin (https://github.com/ansible-collections/kubernetes.core/pull/456). |
| 442 |
|
| 443 |
Bugfixes |
| 444 |
-------- |
| 445 |
|
| 446 |
- 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 (https://github.com/ansible-collections/kubernetes.core/pull/561). |
| 447 |
- Fix kubeconfig parameter when multiple config files are provided (https://github.com/ansible-collections/kubernetes.core/issues/435). |
| 448 |
- Helm - Fix issue with alternative kubeconfig provided with validate_certs=False (https://github.com/ansible-collections/kubernetes.core/issues/538). |
| 449 |
- Various modules and plugins - use vendored version of ``distutils.version`` instead of the deprecated Python standard library ``distutils`` (https://github.com/ansible-collections/kubernetes.core/pull/314). |
| 450 |
- add missing documentation for filter plugin kubernetes.core.k8s_config_resource_name (https://github.com/ansible-collections/kubernetes.core/issues/558). |
| 451 |
- common - Ensure the label_selectors parameter of _wait_for method is optional. |
| 452 |
- common - handle ``aliases`` passed from inventory and lookup plugins. |
| 453 |
- helm_template - evaluate release_values after values_files, insuring highest precedence (now same behavior as in helm module). (https://github.com/ansible-collections/kubernetes.core/pull/348) |
| 454 |
- import exception from ``kubernetes.client.rest``. |
| 455 |
- k8s - Fix issue with check_mode when using server side apply (https://github.com/ansible-collections/kubernetes.core/issues/547). |
| 456 |
- k8s - Fix issue with server side apply with kubernetes release '25.3.0' (https://github.com/ansible-collections/kubernetes.core/issues/548). |
| 457 |
- k8s_cp - add support for check_mode (https://github.com/ansible-collections/kubernetes.core/issues/380). |
| 458 |
- k8s_drain - fix error caused by accessing an undefined variable when pods have local storage (https://github.com/ansible-collections/kubernetes.core/issues/292). |
| 459 |
- k8s_info - don't wait on empty List resources (https://github.com/ansible-collections/kubernetes.core/pull/253). |
| 460 |
- 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 (https://github.com/ansible-collections/kubernetes.core/issues/508). |
| 461 |
- k8s_log - Fix module traceback when no resource found (https://github.com/ansible-collections/kubernetes.core/issues/479). |
| 462 |
- k8s_log - fix exception raised when the name is not provided for resources requiring. (https://github.com/ansible-collections/kubernetes.core/issues/514) |
| 463 |
- k8s_scale - fix waiting on statefulset when scaled down to 0 replicas (https://github.com/ansible-collections/kubernetes.core/issues/203). |
| 464 |
- 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. |
| 465 |
- module_utils/k8s/client.py - fix issue when trying to authenticate with host, client_cert and client_key parameters only. |
| 466 |
- remove binary file from k8s_cp test suite (https://github.com/ansible-collections/kubernetes.core/pull/298). |
| 467 |
- use resource prefix when finding resource and apiVersion is v1 (https://github.com/ansible-collections/kubernetes.core/issues/351). |
| 468 |
|
| 469 |
New Modules |
| 470 |
----------- |
| 471 |
|
| 472 |
- helm_pull - download a chart from a repository and (optionally) unpack it in local directory. |
| 473 |
|
| 474 |
v2.3.1 |
| 475 |
====== |
| 476 |
|
| 477 |
Bugfixes |
| 478 |
-------- |
| 479 |
|
| 480 |
- Catch expectation raised when the process is waiting for resources (https://github.com/ansible-collections/kubernetes.core/issues/407). |
| 481 |
- Remove `omit` placeholder when defining resource using template parameter (https://github.com/ansible-collections/kubernetes.core/issues/431). |
| 482 |
- k8s - fix the issue when trying to delete resources using label_selectors options (https://github.com/ansible-collections/kubernetes.core/issues/433). |
| 483 |
- k8s_cp - fix issue when using parameter local_path with file on managed node. (https://github.com/ansible-collections/kubernetes.core/issues/421). |
| 484 |
- k8s_drain - fix error occurring when trying to drain node with disable_eviction set to yes (https://github.com/ansible-collections/kubernetes.core/issues/416). |
| 485 |
|
| 486 |
v2.3.0 |
| 487 |
====== |
| 488 |
|
| 489 |
Minor Changes |
| 490 |
------------- |
| 491 |
|
| 492 |
- add support for dry run with kubernetes client version >=18.20 (https://github.com/ansible-collections/kubernetes.core/pull/245). |
| 493 |
- fixed module_defaults by removing routing hacks from runtime.yml (https://github.com/ansible-collections/kubernetes.core/pull/347). |
| 494 |
- helm - add support for timeout cli parameter to allow setting Helm timeout independent of wait (https://github.com/ansible-collections/kubernetes.core/issues/67). |
| 495 |
- helm - add support for wait parameter for helm uninstall command. (https://github.com/ansible-collections/kubernetes/core/issues/33). |
| 496 |
- helm - support repo location for helm diff (https://github.com/ansible-collections/kubernetes.core/issues/174). |
| 497 |
- helm - when ansible is executed in check mode, return the diff between what's deployed and what will be deployed. |
| 498 |
- helm_info - add release state as a module argument (https://github.com/ansible-collections/kubernetes.core/issues/377). |
| 499 |
- helm_plugin - Add plugin_version parameter to the helm_plugin module (https://github.com/ansible-collections/kubernetes.core/issues/157). |
| 500 |
- helm_plugin - Add support for helm plugin update using state=update. |
| 501 |
- helm_repository - add support for pass-credentials cli parameter (https://github.com/ansible-collections/kubernetes.core/pull/282). |
| 502 |
- helm_repository - added support for ``host``, ``api_key``, ``validate_certs``, and ``ca_cert``. |
| 503 |
- helm_template - add show_only and release_namespace as module arguments (https://github.com/ansible-collections/kubernetes.core/issues/313). |
| 504 |
- k8s - add no_proxy support to k8s* (https://github.com/ansible-collections/kubernetes.core/pull/272). |
| 505 |
- k8s - add support for server_side_apply. (https://github.com/ansible-collections/kubernetes.core/issues/87). |
| 506 |
- k8s - add support for user impersonation. (https://github.com/ansible-collections/kubernetes/core/issues/40). |
| 507 |
- k8s - allow resource definition using metadata.generateName (https://github.com/ansible-collections/kubernetes.core/issues/35). |
| 508 |
- k8s lookup plugin - Enable turbo mode via environment variable (https://github.com/ansible-collections/kubernetes.core/issues/291). |
| 509 |
- k8s_drain - Adds ``delete_emptydir_data`` option to ``k8s_drain.delete_options`` to evict pods with an ``emptyDir`` volume attached (https://github.com/ansible-collections/kubernetes.core/pull/322). |
| 510 |
- k8s_exec - select first container from the pod if none specified (https://github.com/ansible-collections/kubernetes.core/issues/358). |
| 511 |
- k8s_rollback - add support for check_mode. (https://github.com/ansible-collections/kubernetes/core/issues/243). |
| 512 |
- k8s_scale - add support for check_mode. (https://github.com/ansible-collections/kubernetes/core/issues/244). |
| 513 |
- kubectl - wait for dd command to complete before proceeding (https://github.com/ansible-collections/kubernetes.core/pull/321). |
| 514 |
|
| 515 |
Bugfixes |
| 516 |
-------- |
| 517 |
|
| 518 |
- Various modules and plugins - use vendored version of ``distutils.version`` instead of the deprecated Python standard library ``distutils`` (https://github.com/ansible-collections/kubernetes.core/pull/314). |
| 519 |
- common - Ensure the label_selectors parameter of _wait_for method is optional. |
| 520 |
- helm_template - evaluate release_values after values_files, insuring highest precedence (now same behavior as in helm module). (https://github.com/ansible-collections/kubernetes.core/pull/348) |
| 521 |
- import exception from ``kubernetes.client.rest``. |
| 522 |
- k8s_drain - fix error caused by accessing an undefined variable when pods have local storage (https://github.com/ansible-collections/kubernetes.core/issues/292). |
| 523 |
- k8s_info - don't wait on empty List resources (https://github.com/ansible-collections/kubernetes.core/pull/253). |
| 524 |
- k8s_scale - fix waiting on statefulset when scaled down to 0 replicas (https://github.com/ansible-collections/kubernetes.core/issues/203). |
| 525 |
- 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. |
| 526 |
- remove binary file from k8s_cp test suite (https://github.com/ansible-collections/kubernetes.core/pull/298). |
| 527 |
- use resource prefix when finding resource and apiVersion is v1 (https://github.com/ansible-collections/kubernetes.core/issues/351). |
| 528 |
|
| 529 |
New Modules |
| 530 |
----------- |
| 531 |
|
| 532 |
- k8s_taint - Taint a node in a Kubernetes/OpenShift cluster |
| 533 |
|
| 534 |
v2.2.0 |
| 535 |
====== |
| 536 |
|
| 537 |
Minor Changes |
| 538 |
------------- |
| 539 |
|
| 540 |
- add support for in-memory kubeconfig in addition to file for k8s modules. (https://github.com/ansible-collections/kubernetes.core/pull/212). |
| 541 |
- helm - add support for history_max cli parameter (https://github.com/ansible-collections/kubernetes.core/pull/164). |
| 542 |
- k8s - add support for label_selectors options (https://github.com/ansible-collections/kubernetes.core/issues/43). |
| 543 |
- k8s - add support for waiting on statefulsets (https://github.com/ansible-collections/kubernetes.core/pull/195). |
| 544 |
- k8s_log - Add since-seconds parameter to the k8s_log module (https://github.com/ansible-collections/kubernetes.core/pull/142). |
| 545 |
- new lookup plugin to support kubernetes kustomize feature. (https://github.com/ansible-collections/kubernetes.core/issues/39). |
| 546 |
- re-enable turbo mode for collection. The default is initially set to off (https://github.com/ansible-collections/kubernetes.core/pull/169). |
| 547 |
|
| 548 |
Bugfixes |
| 549 |
-------- |
| 550 |
|
| 551 |
- common - import k8sdynamicclient directly to workaround Ansible upstream bug (https://github.com/ansible-collections/kubernetes.core/issues/162). |
| 552 |
- connection plugin - add arguments information into censored command (https://github.com/ansible-collections/kubernetes.core/pull/196). |
| 553 |
- fix resource cache not being used (https://github.com/ansible-collections/kubernetes.core/pull/228). |
| 554 |
- k8s - Fixes a bug where diff was always returned when using apply or modifying an existing object, even when diff=no was specified. The module no longer returns diff unless requested and will now honor diff=no (https://github.com/ansible-collections/kubernetes.core/pull/146). |
| 555 |
- k8s_cp - fix k8s_cp uploading when target container's WORKDIR is not '/' (https://github.com/ansible-collections/kubernetes.core/issues/222). |
| 556 |
- k8s_exec - add missing deprecation notice to return_code for k8s_exec (https://github.com/ansible-collections/kubernetes.core/pull/233). |
| 557 |
- k8s_exec - fix k8s_exec returning rc attribute, to follow ansible's common return values (https://github.com/ansible-collections/kubernetes.core/pull/230). |
| 558 |
- lookup - recommend query instead of lookup (https://github.com/ansible-collections/kubernetes.core/issues/147). |
| 559 |
- support the ``template`` param in all collections depending on kubernetes.core (https://github.com/ansible-collections/kubernetes.core/pull/154). |
| 560 |
|
| 561 |
New Plugins |
| 562 |
----------- |
| 563 |
|
| 564 |
Lookup |
| 565 |
~~~~~~ |
| 566 |
|
| 567 |
- kustomize - Build a set of kubernetes resources using a 'kustomization.yaml' file. |
| 568 |
|
| 569 |
New Modules |
| 570 |
----------- |
| 571 |
|
| 572 |
- k8s_cp - Copy files and directories to and from pod. |
| 573 |
- k8s_drain - Drain, Cordon, or Uncordon node in k8s cluster |
| 574 |
|
| 575 |
v2.1.1 |
| 576 |
====== |
| 577 |
|
| 578 |
Bugfixes |
| 579 |
-------- |
| 580 |
|
| 581 |
- check auth params for existence, not whether they are true (https://github.com/ansible-collections/kubernetes.core/pull/151). |
| 582 |
|
| 583 |
v2.1.0 |
| 584 |
====== |
| 585 |
|
| 586 |
Minor Changes |
| 587 |
------------- |
| 588 |
|
| 589 |
- remove cloud.common as default dependency (https://github.com/ansible-collections/kubernetes.core/pull/148). |
| 590 |
- temporarily disable turbo mode (https://github.com/ansible-collections/kubernetes.core/pull/149). |
| 591 |
|
| 592 |
v2.0.2 |
| 593 |
====== |
| 594 |
|
| 595 |
Bugfixes |
| 596 |
-------- |
| 597 |
|
| 598 |
- Fix apply for k8s module when an array attribute from definition contains empty dict (https://github.com/ansible-collections/kubernetes.core/issues/113). |
| 599 |
- rename the apply function to fix broken imports in Ansible 2.9 (https://github.com/ansible-collections/kubernetes.core/pull/135). |
| 600 |
|
| 601 |
v2.0.1 |
| 602 |
====== |
| 603 |
|
| 604 |
Bugfixes |
| 605 |
-------- |
| 606 |
|
| 607 |
- inventory - add community.kubernetes to list of plugin choices in k8s inventory (https://github.com/ansible-collections/kubernetes.core/pull/128). |
| 608 |
|
| 609 |
v2.0.0 |
| 610 |
====== |
| 611 |
|
| 612 |
Major Changes |
| 613 |
------------- |
| 614 |
|
| 615 |
- k8s - deprecate merge_type=json. The JSON patch functionality has never worked (https://github.com/ansible-collections/kubernetes.core/pull/99). |
| 616 |
- k8s_json_patch - split JSON patch functionality out into a separate module (https://github.com/ansible-collections/kubernetes.core/pull/99). |
| 617 |
- replaces the openshift client with the official kubernetes client (https://github.com/ansible-collections/kubernetes.core/issues/34). |
| 618 |
|
| 619 |
Minor Changes |
| 620 |
------------- |
| 621 |
|
| 622 |
- Add cache_file when DynamicClient is created (https://github.com/ansible-collections/kubernetes.core/pull/46). |
| 623 |
- Add configmap and secret hash functionality (https://github.com/ansible-collections/kubernetes.core/pull/48). |
| 624 |
- Add logic for cache file name generation (https://github.com/ansible-collections/kubernetes.core/pull/46). |
| 625 |
- Replicate apply method in the DynamicClient (https://github.com/ansible-collections/kubernetes.core/pull/45). |
| 626 |
- add ``proxy_headers`` option for authentication on k8s_xxx modules (https://github.com/ansible-collections/kubernetes.core/pull/58). |
| 627 |
- add support for using tags when running molecule test suite (https://github.com/ansible-collections/kubernetes.core/pull/62). |
| 628 |
- added documentation for ``kubernetes.core`` collection (https://github.com/ansible-collections/kubernetes.core/pull/50). |
| 629 |
- common - removed ``KubernetesAnsibleModule``, use ``K8sAnsibleMixin`` instead (https://github.com/ansible-collections/kubernetes.core/pull/70). |
| 630 |
- helm - add example for complex values in ``helm`` module (https://github.com/ansible-collections/kubernetes.core/issues/109). |
| 631 |
- k8s - Handle list of definition for option `template` (https://github.com/ansible-collections/kubernetes.core/pull/49). |
| 632 |
- k8s - `continue_on_error` option added (whether to continue on creation/deletion errors) (https://github.com/ansible-collections/kubernetes.core/pull/49). |
| 633 |
- k8s - support ``patched`` value for ``state`` option. patched state is an existing resource that has a given patch applied (https://github.com/ansible-collections/kubernetes.core/pull/90). |
| 634 |
- k8s - wait for all pods to update when rolling out daemonset changes (https://github.com/ansible-collections/kubernetes.core/pull/102). |
| 635 |
- k8s_scale - ability to scale multiple resource using ``label_selectors`` (https://github.com/ansible-collections/kubernetes.core/pull/114). |
| 636 |
- k8s_scale - new parameter to determine whether to continue or not on error when scaling multiple resources (https://github.com/ansible-collections/kubernetes.core/pull/114). |
| 637 |
- kubeconfig - update ``kubeconfig`` file location in the documentation (https://github.com/ansible-collections/kubernetes.core/issues/53). |
| 638 |
- remove old change log fragment files. |
| 639 |
- remove the deprecated ``KubernetesRawModule`` class (https://github.com/ansible-collections/community.kubernetes/issues/232). |
| 640 |
- replicate base resource for lists functionality (https://github.com/ansible-collections/kubernetes.core/pull/89). |
| 641 |
|
| 642 |
Breaking Changes / Porting Guide |
| 643 |
-------------------------------- |
| 644 |
|
| 645 |
- Drop python 2 support (https://github.com/ansible-collections/kubernetes.core/pull/86). |
| 646 |
- helm_plugin - remove unused ``release_namespace`` parameter (https://github.com/ansible-collections/kubernetes.core/pull/85). |
| 647 |
- helm_plugin_info - remove unused ``release_namespace`` parameter (https://github.com/ansible-collections/kubernetes.core/pull/85). |
| 648 |
- k8s_cluster_info - returned apis as list to avoid being overwritten in case of multiple version (https://github.com/ansible-collections/kubernetes.core/pull/41). |
| 649 |
- k8s_facts - remove the deprecated alias from k8s_facts to k8s_info (https://github.com/ansible-collections/kubernetes.core/pull/125). |
| 650 |
|
| 651 |
Bugfixes |
| 652 |
-------- |
| 653 |
|
| 654 |
- enable unit tests in CI (https://github.com/ansible-collections/community.kubernetes/pull/407). |
| 655 |
- helm - Accept ``validate_certs`` with a ``context`` (https://github.com/ansible-collections/kubernetes.core/pull/74). |
| 656 |
- helm - fix helm ignoring the kubeconfig context when passed through the ``context`` param or the ``K8S_AUTH_CONTEXT`` environment variable (https://github.com/ansible-collections/community.kubernetes/issues/385). |
| 657 |
- helm - handle multiline output of ``helm plugin list`` command (https://github.com/ansible-collections/community.kubernetes/issues/399). |
| 658 |
- k8s - fix merge_type option when set to json (https://github.com/ansible-collections/kubernetes.core/issues/54). |
| 659 |
- k8s - lookup should return list even if single item is found (https://github.com/ansible-collections/kubernetes.core/issues/9). |
| 660 |
- k8s inventory - remove extra trailing slashes from the hostname (https://github.com/ansible-collections/kubernetes.core/issues/52). |
| 661 |
|
| 662 |
New Modules |
| 663 |
----------- |
| 664 |
|
| 665 |
- k8s_json_patch - Apply JSON patch operations to existing objects |
| 666 |
|
| 667 |
v1.2.0 |
| 668 |
====== |
| 669 |
|
| 670 |
Minor Changes |
| 671 |
------------- |
| 672 |
|
| 673 |
- Adjust the documentation to clarify the fact ``wait_condition.status`` is a string. |
| 674 |
- Adjust the name of parameters of ``helm`` and ``helm_info`` to match the documentation. No playbook change required. |
| 675 |
- The Helm modules (``helm``, ``helm_info``, ``helm_plugin``, ``helm_plugin_info``, ``helm_plugin_repository``) accept the K8S environment variables like the other modules of the collections. |
| 676 |
- helm - add a ``skip_crds`` option to skip the installation of CRDs when installing or upgrading a chart (https://github.com/ansible-collections/community.kubernetes/issues/296). |
| 677 |
- helm - add optional support for helm diff (https://github.com/ansible-collections/community.kubernetes/issues/248). |
| 678 |
- helm_template - add helm_template module to support template functionality (https://github.com/ansible-collections/community.kubernetes/issues/367). |
| 679 |
- k8s - add a ``delete_options`` parameter to control garbage collection behavior when deleting a resource (https://github.com/ansible-collections/community.kubernetes/issues/253). |
| 680 |
- k8s - add an example for downloading manifest file and applying (https://github.com/ansible-collections/community.kubernetes/issues/352). |
| 681 |
- k8s - check if kubeconfig file is located on remote node or on Ansible Controller (https://github.com/ansible-collections/community.kubernetes/issues/307). |
| 682 |
- k8s - check if src file is located on remote node or on Ansible Controller (https://github.com/ansible-collections/community.kubernetes/issues/307). |
| 683 |
- k8s_exec - add a note about required permissions for the module (https://github.com/ansible-collections/community.kubernetes/issues/339). |
| 684 |
- k8s_info - add information about api_version while returning facts (https://github.com/ansible-collections/community.kubernetes/pull/308). |
| 685 |
- runtime.yml - update minimum Ansible version required for Kubernetes collection (https://github.com/ansible-collections/community.kubernetes/issues/314). |
| 686 |
|
| 687 |
Bugfixes |
| 688 |
-------- |
| 689 |
|
| 690 |
- helm - ``release_values`` makes ansible always show changed state (https://github.com/ansible-collections/community.kubernetes/issues/274) |
| 691 |
- helm - make helm-diff plugin detection more reliable by splitting by any whitespace instead of explicit whitespace (``\s``) (https://github.com/ansible-collections/community.kubernetes/pull/362). |
| 692 |
- helm - return values in check mode when release is not present (https://github.com/ansible-collections/community.kubernetes/issues/280). |
| 693 |
- helm_plugin - make unused ``release_namespace`` parameter as optional (https://github.com/ansible-collections/community.kubernetes/issues/357). |
| 694 |
- helm_plugin_info - make unused ``release_namespace`` parameter as optional (https://github.com/ansible-collections/community.kubernetes/issues/357). |
| 695 |
- k8s - fix check_mode always showing changes when using stringData on Secrets (https://github.com/ansible-collections/community.kubernetes/issues/282). |
| 696 |
- k8s - handle ValueError when namespace is not provided (https://github.com/ansible-collections/community.kubernetes/pull/330). |
| 697 |
- respect the ``wait_timeout`` parameter in the ``k8s`` and ``k8s_info`` modules when a resource does not exist (https://github.com/ansible-collections/community.kubernetes/issues/344). |
| 698 |
|
| 699 |
v1.1.1 |
| 700 |
====== |
| 701 |
|
| 702 |
Bugfixes |
| 703 |
-------- |
| 704 |
|
| 705 |
- k8s - Fix sanity test 'compile' failing because of positional args (https://github.com/ansible-collections/community.kubernetes/issues/260). |
| 706 |
|
| 707 |
v1.1.0 |
| 708 |
====== |
| 709 |
|
| 710 |
Major Changes |
| 711 |
------------- |
| 712 |
|
| 713 |
- k8s - Add support for template parameter (https://github.com/ansible-collections/community.kubernetes/pull/230). |
| 714 |
- k8s_* - Add support for vaulted kubeconfig and src (https://github.com/ansible-collections/community.kubernetes/pull/193). |
| 715 |
|
| 716 |
Minor Changes |
| 717 |
------------- |
| 718 |
|
| 719 |
- Add Makefile and downstream build script for kubernetes.core (https://github.com/ansible-collections/community.kubernetes/pull/197). |
| 720 |
- Add execution environment metadata (https://github.com/ansible-collections/community.kubernetes/pull/211). |
| 721 |
- Add probot stale bot configuration to autoclose issues (https://github.com/ansible-collections/community.kubernetes/pull/196). |
| 722 |
- Added a contribution guide (https://github.com/ansible-collections/community.kubernetes/pull/192). |
| 723 |
- Refactor module_utils (https://github.com/ansible-collections/community.kubernetes/pull/223). |
| 724 |
- Replace KubernetesAnsibleModule class with dummy class (https://github.com/ansible-collections/community.kubernetes/pull/227). |
| 725 |
- Replace KubernetesRawModule class with K8sAnsibleMixin (https://github.com/ansible-collections/community.kubernetes/pull/231). |
| 726 |
- common - Do not mark task as changed when diff is irrelevant (https://github.com/ansible-collections/community.kubernetes/pull/228). |
| 727 |
- helm - Add appVersion idempotence check to Helm (https://github.com/ansible-collections/community.kubernetes/pull/246). |
| 728 |
- helm - Return status in check mode (https://github.com/ansible-collections/community.kubernetes/pull/192). |
| 729 |
- helm - Support for single or multiple values files (https://github.com/ansible-collections/community.kubernetes/pull/93). |
| 730 |
- helm_* - Support vaulted kubeconfig (https://github.com/ansible-collections/community.kubernetes/pull/229). |
| 731 |
- k8s - SelfSubjectAccessReviews supported when 405 response received (https://github.com/ansible-collections/community.kubernetes/pull/237). |
| 732 |
- k8s - add testcase for adding multiple resources using template parameter (https://github.com/ansible-collections/community.kubernetes/issues/243). |
| 733 |
- k8s_info - Add support for wait (https://github.com/ansible-collections/community.kubernetes/pull/235). |
| 734 |
- k8s_info - update custom resource example (https://github.com/ansible-collections/community.kubernetes/issues/202). |
| 735 |
- kubectl plugin - correct console log (https://github.com/ansible-collections/community.kubernetes/issues/200). |
| 736 |
- raw - Handle exception raised by underlying APIs (https://github.com/ansible-collections/community.kubernetes/pull/180). |
| 737 |
|
| 738 |
Bugfixes |
| 739 |
-------- |
| 740 |
|
| 741 |
- common - handle exception raised due to DynamicClient (https://github.com/ansible-collections/community.kubernetes/pull/224). |
| 742 |
- helm - add replace parameter (https://github.com/ansible-collections/community.kubernetes/issues/106). |
| 743 |
- k8s (inventory) - Set the connection plugin and transport separately (https://github.com/ansible-collections/community.kubernetes/pull/208). |
| 744 |
- k8s (inventory) - Specify FQCN for k8s inventory plugin to fix use with Ansible 2.9 (https://github.com/ansible-collections/community.kubernetes/pull/250). |
| 745 |
- k8s_info - add wait functionality (https://github.com/ansible-collections/community.kubernetes/issues/18). |
| 746 |
|
| 747 |
v1.0.0 |
| 748 |
====== |
| 749 |
|
| 750 |
Major Changes |
| 751 |
------------- |
| 752 |
|
| 753 |
- helm_plugin - new module to manage Helm plugins (https://github.com/ansible-collections/community.kubernetes/pull/154). |
| 754 |
- helm_plugin_info - new modules to gather information about Helm plugins (https://github.com/ansible-collections/community.kubernetes/pull/154). |
| 755 |
- k8s_exec - Return rc for the command executed (https://github.com/ansible-collections/community.kubernetes/pull/158). |
| 756 |
|
| 757 |
Minor Changes |
| 758 |
------------- |
| 759 |
|
| 760 |
- Ensure check mode results are as expected (https://github.com/ansible-collections/community.kubernetes/pull/155). |
| 761 |
- Update base branch to 'main' (https://github.com/ansible-collections/community.kubernetes/issues/148). |
| 762 |
- helm - Add support for K8S_AUTH_CONTEXT, K8S_AUTH_KUBECONFIG env (https://github.com/ansible-collections/community.kubernetes/pull/141). |
| 763 |
- helm - Allow creating namespaces with Helm (https://github.com/ansible-collections/community.kubernetes/pull/157). |
| 764 |
- helm - add aliases context for kube_context (https://github.com/ansible-collections/community.kubernetes/pull/152). |
| 765 |
- helm - add support for K8S_AUTH_KUBECONFIG and K8S_AUTH_CONTEXT environment variable (https://github.com/ansible-collections/community.kubernetes/issues/140). |
| 766 |
- helm_info - add aliases context for kube_context (https://github.com/ansible-collections/community.kubernetes/pull/152). |
| 767 |
- helm_info - add support for K8S_AUTH_KUBECONFIG and K8S_AUTH_CONTEXT environment variable (https://github.com/ansible-collections/community.kubernetes/issues/140). |
| 768 |
- k8s_exec - return RC for the command executed (https://github.com/ansible-collections/community.kubernetes/issues/122). |
| 769 |
- k8s_info - Update example using vars (https://github.com/ansible-collections/community.kubernetes/pull/156). |
| 770 |
|
| 771 |
Security Fixes |
| 772 |
-------------- |
| 773 |
|
| 774 |
- kubectl - connection plugin now redact kubectl_token and kubectl_password in console log (https://github.com/ansible-collections/community.kubernetes/issues/65). |
| 775 |
- kubectl - redacted token and password from console log (https://github.com/ansible-collections/community.kubernetes/pull/159). |
| 776 |
|
| 777 |
Bugfixes |
| 778 |
-------- |
| 779 |
|
| 780 |
- Test against stable ansible branch so molecule tests work (https://github.com/ansible-collections/community.kubernetes/pull/168). |
| 781 |
- Update openshift requirements in k8s module doc (https://github.com/ansible-collections/community.kubernetes/pull/153). |
| 782 |
|
| 783 |
New Modules |
| 784 |
----------- |
| 785 |
|
| 786 |
- helm_plugin - Manage Helm plugins |
| 787 |
- helm_plugin_info - Gather information about Helm plugins |
| 788 |
|
| 789 |
v0.11.1 |
| 790 |
======= |
| 791 |
|
| 792 |
Major Changes |
| 793 |
------------- |
| 794 |
|
| 795 |
- Add changelog and fragments and document changelog process (https://github.com/ansible-collections/community.kubernetes/pull/131). |
| 796 |
|
| 797 |
Minor Changes |
| 798 |
------------- |
| 799 |
|
| 800 |
- Add action groups for playbooks with module_defaults (https://github.com/ansible-collections/community.kubernetes/pull/107). |
| 801 |
- Add requires_ansible version constraints to runtime.yml (https://github.com/ansible-collections/community.kubernetes/pull/126). |
| 802 |
- Add sanity test ignore file for Ansible 2.11 (https://github.com/ansible-collections/community.kubernetes/pull/130). |
| 803 |
- Add test for openshift apply bug (https://github.com/ansible-collections/community.kubernetes/pull/94). |
| 804 |
- Add version_added to each new collection module (https://github.com/ansible-collections/community.kubernetes/pull/98). |
| 805 |
- Check Python code using flake8 (https://github.com/ansible-collections/community.kubernetes/pull/123). |
| 806 |
- Don't require project coverage check on PRs (https://github.com/ansible-collections/community.kubernetes/pull/102). |
| 807 |
- Improve k8s Deployment and Daemonset wait conditions (https://github.com/ansible-collections/community.kubernetes/pull/35). |
| 808 |
- Minor documentation fixes and use of FQCN in some examples (https://github.com/ansible-collections/community.kubernetes/pull/114). |
| 809 |
- Remove action_groups_redirection entry from meta/runtime.yml (https://github.com/ansible-collections/community.kubernetes/pull/127). |
| 810 |
- Remove deprecated ANSIBLE_METADATA field (https://github.com/ansible-collections/community.kubernetes/pull/95). |
| 811 |
- Use FQCN in module docs and plugin examples (https://github.com/ansible-collections/community.kubernetes/pull/146). |
| 812 |
- Use improved kubernetes diffs where possible (https://github.com/ansible-collections/community.kubernetes/pull/105). |
| 813 |
- helm - add 'atomic' option (https://github.com/ansible-collections/community.kubernetes/pull/115). |
| 814 |
- helm - minor code refactoring (https://github.com/ansible-collections/community.kubernetes/pull/110). |
| 815 |
- helm_info and helm_repository - minor code refactor (https://github.com/ansible-collections/community.kubernetes/pull/117). |
| 816 |
- k8s - Handle set object retrieved from lookup plugin (https://github.com/ansible-collections/community.kubernetes/pull/118). |
| 817 |
|
| 818 |
Bugfixes |
| 819 |
-------- |
| 820 |
|
| 821 |
- Fix suboption docs structure for inventory plugins (https://github.com/ansible-collections/community.kubernetes/pull/103). |
| 822 |
- Handle invalid kubeconfig parsing error (https://github.com/ansible-collections/community.kubernetes/pull/119). |
| 823 |
- Make sure Service changes run correctly in check_mode (https://github.com/ansible-collections/community.kubernetes/pull/84). |
| 824 |
- k8s_info - remove unneccessary k8s_facts deprecation notice (https://github.com/ansible-collections/community.kubernetes/pull/97). |
| 825 |
- k8s_scale - Fix scale wait and add tests (https://github.com/ansible-collections/community.kubernetes/pull/100). |
| 826 |
- raw - handle condition when definition is none (https://github.com/ansible-collections/community.kubernetes/pull/139). |
| 827 |
|
| 828 |
v0.11.0 |
| 829 |
======= |
| 830 |
|
| 831 |
Major Changes |
| 832 |
------------- |
| 833 |
|
| 834 |
- helm - New module for managing Helm charts (https://github.com/ansible-collections/community.kubernetes/pull/61). |
| 835 |
- helm_info - New module for retrieving Helm chart information (https://github.com/ansible-collections/community.kubernetes/pull/61). |
| 836 |
- helm_repository - New module for managing Helm repositories (https://github.com/ansible-collections/community.kubernetes/pull/61). |
| 837 |
|
| 838 |
Minor Changes |
| 839 |
------------- |
| 840 |
|
| 841 |
- Rename repository to ``community.kubernetes`` (https://github.com/ansible-collections/community.kubernetes/pull/81). |
| 842 |
|
| 843 |
Bugfixes |
| 844 |
-------- |
| 845 |
|
| 846 |
- Make sure extra files are not included in built collection (https://github.com/ansible-collections/community.kubernetes/pull/85). |
| 847 |
- Update GitHub Actions workflow for better CI stability (https://github.com/ansible-collections/community.kubernetes/pull/78). |
| 848 |
- k8s_log - Module no longer attempts to parse log as JSON (https://github.com/ansible-collections/community.kubernetes/pull/69). |
| 849 |
|
| 850 |
New Modules |
| 851 |
----------- |
| 852 |
|
| 853 |
- helm - Manages Kubernetes packages with the Helm package manager |
| 854 |
- helm_info - Get information from Helm package deployed inside the cluster |
| 855 |
- helm_repository - Add and remove Helm repository |
| 856 |
|
| 857 |
v0.10.0 |
| 858 |
======= |
| 859 |
|
| 860 |
Major Changes |
| 861 |
------------- |
| 862 |
|
| 863 |
- k8s_exec - New module for executing commands on pods via Kubernetes API (https://github.com/ansible-collections/community.kubernetes/pull/14). |
| 864 |
- k8s_log - New module for retrieving pod logs (https://github.com/ansible-collections/community.kubernetes/pull/16). |
| 865 |
|
| 866 |
Minor Changes |
| 867 |
------------- |
| 868 |
|
| 869 |
- k8s - Added ``persist_config`` option for persisting refreshed tokens (https://github.com/ansible-collections/community.kubernetes/issues/49). |
| 870 |
|
| 871 |
Security Fixes |
| 872 |
-------------- |
| 873 |
|
| 874 |
- 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 (https://github.com/ansible-collections/community.kubernetes/pull/51). |
| 875 |
|
| 876 |
Bugfixes |
| 877 |
-------- |
| 878 |
|
| 879 |
- k8s - Add exception handling when retrieving k8s client (https://github.com/ansible-collections/community.kubernetes/pull/54). |
| 880 |
- k8s - Fix argspec for 'elements' (https://github.com/ansible-collections/community.kubernetes/issues/13). |
| 881 |
- k8s - Use ``from_yaml`` filter with lookup examples in ``k8s`` module documentation examples (https://github.com/ansible-collections/community.kubernetes/pull/56). |
| 882 |
- k8s_service - Fix argspec (https://github.com/ansible-collections/community.kubernetes/issues/33). |
| 883 |
- kubectl - Fix documentation in kubectl connection plugin (https://github.com/ansible-collections/community.kubernetes/pull/52). |
| 884 |
|
| 885 |
New Modules |
| 886 |
----------- |
| 887 |
|
| 888 |
- k8s_exec - Execute command in Pod |
| 889 |
- k8s_log - Fetch logs from Kubernetes resources |
| 890 |
|
| 891 |
v0.9.0 |
| 892 |
====== |
| 893 |
|
| 894 |
Major Changes |
| 895 |
------------- |
| 896 |
|
| 897 |
- k8s - Inventory source migrated from Ansible 2.9 to Kubernetes collection. |
| 898 |
- k8s - Lookup plugin migrated from Ansible 2.9 to Kubernetes collection. |
| 899 |
- k8s - Module migrated from Ansible 2.9 to Kubernetes collection. |
| 900 |
- k8s_auth - Module migrated from Ansible 2.9 to Kubernetes collection. |
| 901 |
- k8s_config_resource_name - Filter plugin migrated from Ansible 2.9 to Kubernetes collection. |
| 902 |
- k8s_info - Module migrated from Ansible 2.9 to Kubernetes collection. |
| 903 |
- k8s_scale - Module migrated from Ansible 2.9 to Kubernetes collection. |
| 904 |
- k8s_service - Module migrated from Ansible 2.9 to Kubernetes collection. |
| 905 |
- kubectl - Connection plugin migrated from Ansible 2.9 to Kubernetes collection. |
| 906 |
- openshift - Inventory source migrated from Ansible 2.9 to Kubernetes collection. |