diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8984ddab..212e77f0 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,64 @@ Kubernetes Collection Release Notes .. contents:: Topics +v2.0.0 +====== + +Major Changes +------------- + +- k8s - deprecate merge_type=json. The JSON patch functionality has never worked (https://github.com/ansible-collections/kubernetes.core/pull/99). +- k8s_json_patch - split JSON patch functionality out into a separate module (https://github.com/ansible-collections/kubernetes.core/pull/99). +- replaces the openshift client with the official kubernetes client (https://github.com/ansible-collections/kubernetes.core/issues/34). + +Minor Changes +------------- + +- Add cache_file when DynamicClient is created (https://github.com/ansible-collections/kubernetes.core/pull/46). +- Add configmap and secret hash functionality (https://github.com/ansible-collections/kubernetes.core/pull/48). +- Add logic for cache file name generation (https://github.com/ansible-collections/kubernetes.core/pull/46). +- Replicate apply method in the DynamicClient (https://github.com/ansible-collections/kubernetes.core/pull/45). +- add ``proxy_headers`` option for authentication on k8s_xxx modules (https://github.com/ansible-collections/kubernetes.core/pull/58). +- add support for using tags when running molecule test suite (https://github.com/ansible-collections/kubernetes.core/pull/62). +- added documentation for ``kubernetes.core`` collection (https://github.com/ansible-collections/kubernetes.core/pull/50). +- common - removed ``KubernetesAnsibleModule``, use ``K8sAnsibleMixin`` instead (https://github.com/ansible-collections/kubernetes.core/pull/70). +- helm - add example for complex values in ``helm`` module (https://github.com/ansible-collections/kubernetes.core/issues/109). +- k8s - Handle list of definition for option `template` (https://github.com/ansible-collections/kubernetes.core/pull/49). +- k8s - `continue_on_error` option added (whether to continue on creation/deletion errors) (https://github.com/ansible-collections/kubernetes.core/pull/49). +- 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). +- k8s - wait for all pods to update when rolling out daemonset changes (https://github.com/ansible-collections/kubernetes.core/pull/102). +- k8s_scale - ability to scale multiple resource using ``label_selectors`` (https://github.com/ansible-collections/kubernetes.core/pull/114). +- 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). +- kubeconfig - update ``kubeconfig`` file location in the documentation (https://github.com/ansible-collections/kubernetes.core/issues/53). +- remove old change log fragment files. +- remove the deprecated ``KubernetesRawModule`` class (https://github.com/ansible-collections/community.kubernetes/issues/232). +- replicate base resource for lists functionality (https://github.com/ansible-collections/kubernetes.core/pull/89). + +Breaking Changes / Porting Guide +-------------------------------- + +- Drop python 2 support (https://github.com/ansible-collections/kubernetes.core/pull/86). +- helm_plugin - remove unused ``release_namespace`` parameter (https://github.com/ansible-collections/kubernetes.core/pull/85). +- helm_plugin_info - remove unused ``release_namespace`` parameter (https://github.com/ansible-collections/kubernetes.core/pull/85). +- 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). +- k8s_facts - remove the deprecated alias from k8s_facts to k8s_info (https://github.com/ansible-collections/kubernetes.core/pull/125). + +Bugfixes +-------- + +- enable unit tests in CI (https://github.com/ansible-collections/community.kubernetes/pull/407). +- helm - Accept ``validate_certs`` with a ``context`` (https://github.com/ansible-collections/kubernetes.core/pull/74). +- 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). +- helm - handle multiline output of ``helm plugin list`` command (https://github.com/ansible-collections/community.kubernetes/issues/399). +- k8s - fix merge_type option when set to json (https://github.com/ansible-collections/kubernetes.core/issues/54). +- k8s - lookup should return list even if single item is found (https://github.com/ansible-collections/kubernetes.core/issues/9). +- k8s inventory - remove extra trailing slashes from the hostname (https://github.com/ansible-collections/kubernetes.core/issues/52). + +New Modules +----------- + +- k8s_json_patch - Apply JSON patch operations to existing objects + v1.2.0 ====== diff --git a/Makefile b/Makefile index 5bd6613e..9c084ff0 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # Also needs to be updated in galaxy.yml -VERSION = 1.2.0 +VERSION = 2.0.0 TEST_ARGS ?= "" PYTHON_VERSION ?= `python -c 'import platform; print("{0}.{1}".format(platform.python_version_tuple()[0], platform.python_version_tuple()[1]))'` diff --git a/README.md b/README.md index 503f5b6a..e10574eb 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,7 @@ Name | Description [kubernetes.core.k8s_cluster_info](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_cluster_info_module.rst)|Describe Kubernetes (K8s) cluster, APIs available and their respective versions [kubernetes.core.k8s_exec](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_exec_module.rst)|Execute command in Pod [kubernetes.core.k8s_info](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_info_module.rst)|Describe Kubernetes (K8s) objects +[kubernetes.core.k8s_json_patch](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_json_patch_module.rst)|Apply JSON patch operations to existing objects [kubernetes.core.k8s_log](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_log_module.rst)|Fetch logs from Kubernetes resources [kubernetes.core.k8s_rollback](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_rollback_module.rst)|Rollback Kubernetes (K8S) Deployments and DaemonSets [kubernetes.core.k8s_scale](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_scale_module.rst)|Set a new size for a Deployment, ReplicaSet, Replication Controller, or Job. @@ -81,7 +82,7 @@ You can also include it in a `requirements.yml` file and install it via `ansible --- collections: - name: kubernetes.core - version: 1.2.0 + version: 2.0.0 ``` ### Installing the Kubernetes Python Library diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 6ed156d2..373879d8 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -312,3 +312,86 @@ releases: - 368-helm_template.yaml - handle_valueerror.yml release_date: '2021-02-17' + 2.0.0: + changes: + breaking_changes: + - Drop python 2 support (https://github.com/ansible-collections/kubernetes.core/pull/86). + - helm_plugin - remove unused ``release_namespace`` parameter (https://github.com/ansible-collections/kubernetes.core/pull/85). + - helm_plugin_info - remove unused ``release_namespace`` parameter (https://github.com/ansible-collections/kubernetes.core/pull/85). + - 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). + - k8s_facts - remove the deprecated alias from k8s_facts to k8s_info (https://github.com/ansible-collections/kubernetes.core/pull/125). + bugfixes: + - enable unit tests in CI (https://github.com/ansible-collections/community.kubernetes/pull/407). + - helm - Accept ``validate_certs`` with a ``context`` (https://github.com/ansible-collections/kubernetes.core/pull/74). + - 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). + - helm - handle multiline output of ``helm plugin list`` command (https://github.com/ansible-collections/community.kubernetes/issues/399). + - k8s - fix merge_type option when set to json (https://github.com/ansible-collections/kubernetes.core/issues/54). + - k8s - lookup should return list even if single item is found (https://github.com/ansible-collections/kubernetes.core/issues/9). + - k8s inventory - remove extra trailing slashes from the hostname (https://github.com/ansible-collections/kubernetes.core/issues/52). + major_changes: + - k8s - deprecate merge_type=json. The JSON patch functionality has never worked + (https://github.com/ansible-collections/kubernetes.core/pull/99). + - k8s_json_patch - split JSON patch functionality out into a separate module + (https://github.com/ansible-collections/kubernetes.core/pull/99). + - replaces the openshift client with the official kubernetes client (https://github.com/ansible-collections/kubernetes.core/issues/34). + minor_changes: + - Add cache_file when DynamicClient is created (https://github.com/ansible-collections/kubernetes.core/pull/46). + - Add configmap and secret hash functionality (https://github.com/ansible-collections/kubernetes.core/pull/48). + - Add logic for cache file name generation (https://github.com/ansible-collections/kubernetes.core/pull/46). + - Replicate apply method in the DynamicClient (https://github.com/ansible-collections/kubernetes.core/pull/45). + - add ``proxy_headers`` option for authentication on k8s_xxx modules (https://github.com/ansible-collections/kubernetes.core/pull/58). + - add support for using tags when running molecule test suite (https://github.com/ansible-collections/kubernetes.core/pull/62). + - added documentation for ``kubernetes.core`` collection (https://github.com/ansible-collections/kubernetes.core/pull/50). + - common - removed ``KubernetesAnsibleModule``, use ``K8sAnsibleMixin`` instead + (https://github.com/ansible-collections/kubernetes.core/pull/70). + - helm - add example for complex values in ``helm`` module (https://github.com/ansible-collections/kubernetes.core/issues/109). + - k8s - Handle list of definition for option `template` (https://github.com/ansible-collections/kubernetes.core/pull/49). + - k8s - `continue_on_error` option added (whether to continue on creation/deletion + errors) (https://github.com/ansible-collections/kubernetes.core/pull/49). + - 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). + - k8s - wait for all pods to update when rolling out daemonset changes (https://github.com/ansible-collections/kubernetes.core/pull/102). + - k8s_scale - ability to scale multiple resource using ``label_selectors`` (https://github.com/ansible-collections/kubernetes.core/pull/114). + - 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). + - kubeconfig - update ``kubeconfig`` file location in the documentation (https://github.com/ansible-collections/kubernetes.core/issues/53). + - remove old change log fragment files. + - remove the deprecated ``KubernetesRawModule`` class (https://github.com/ansible-collections/community.kubernetes/issues/232). + - replicate base resource for lists functionality (https://github.com/ansible-collections/kubernetes.core/pull/89). + fragments: + - 102-wait-updated-daemonset-pods.yaml + - 114-k8s_scale-add-label-selectors-and-continue-on-error.yaml + - 125-remove-k8s-facts-alias.yaml + - 379-remove-kubernetesrawmodule.yaml + - 387-fix-helm-ignoring-context.yaml + - 399-helm_multiline.yml + - 407-enable-unit-tests.yaml + - 41-fix-apis-being-overwritten-in-k8s_cluster_info.yaml + - 45-add-apply-method.yml + - 46-cachefile_dynamic_client.yml + - 48_hash-configmap-secret.yml + - 49-k8s-loop-flattening-and-continue_on_error.yaml + - 52_inventory.yml + - 53_kubeconfig_docs.yml + - 58-add-support-for-proxy_headers-on-authentication.yaml + - 62-molecule-tags.yaml + - 83-k8s-fix-merge_type-json.yaml + - 85_helm_plugin.yaml + - 86_drop_python2_support.yaml + - 89-replicate-base-resource.yaml + - 90-k8s-add-parameter-patch_only.yml + - 96-replace-openshift-client.yaml + - 99-json-patch-module.yaml + - 9_lookup_k8s.yml + - add_docs.yml + - helm_example.yml + - helm_validate_certs_not_exclusive.yaml + - remove_KubernetesAnsibleModule.yml + - remove_fragment.yml + modules: + - description: Apply JSON patch operations to existing objects + name: k8s_json_patch + namespace: '' + release_date: '2021-06-09' diff --git a/changelogs/fragments/100-k8s_scale-fix-wait.yaml b/changelogs/fragments/100-k8s_scale-fix-wait.yaml deleted file mode 100644 index 9dc860fa..00000000 --- a/changelogs/fragments/100-k8s_scale-fix-wait.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - k8s_scale - Fix scale wait and add tests (https://github.com/ansible-collections/community.kubernetes/pull/100). diff --git a/changelogs/fragments/102-dont-require-codecov-check-prs.yaml b/changelogs/fragments/102-dont-require-codecov-check-prs.yaml deleted file mode 100644 index 829caf09..00000000 --- a/changelogs/fragments/102-dont-require-codecov-check-prs.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - Don't require project coverage check on PRs (https://github.com/ansible-collections/community.kubernetes/pull/102). diff --git a/changelogs/fragments/102-wait-updated-daemonset-pods.yaml b/changelogs/fragments/102-wait-updated-daemonset-pods.yaml deleted file mode 100644 index 2fc981de..00000000 --- a/changelogs/fragments/102-wait-updated-daemonset-pods.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - k8s - wait for all pods to update when rolling out daemonset changes (https://github.com/ansible-collections/kubernetes.core/pull/102). diff --git a/changelogs/fragments/103-fix-inventory-docs-structure.yaml b/changelogs/fragments/103-fix-inventory-docs-structure.yaml deleted file mode 100644 index d26d99c1..00000000 --- a/changelogs/fragments/103-fix-inventory-docs-structure.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - Fix suboption docs structure for inventory plugins (https://github.com/ansible-collections/community.kubernetes/pull/103). diff --git a/changelogs/fragments/105-improved-k8s-diffs.yaml b/changelogs/fragments/105-improved-k8s-diffs.yaml deleted file mode 100644 index 5e1f74ea..00000000 --- a/changelogs/fragments/105-improved-k8s-diffs.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - Use improved kubernetes diffs where possible (https://github.com/ansible-collections/community.kubernetes/pull/105). diff --git a/changelogs/fragments/107-action-groups-module_defaults.yaml b/changelogs/fragments/107-action-groups-module_defaults.yaml deleted file mode 100644 index 06672d98..00000000 --- a/changelogs/fragments/107-action-groups-module_defaults.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - Add action groups for playbooks with module_defaults (https://github.com/ansible-collections/community.kubernetes/pull/107). diff --git a/changelogs/fragments/110-helm-minor-refactor.yaml b/changelogs/fragments/110-helm-minor-refactor.yaml deleted file mode 100644 index 4e929176..00000000 --- a/changelogs/fragments/110-helm-minor-refactor.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - helm - minor code refactoring (https://github.com/ansible-collections/community.kubernetes/pull/110). diff --git a/changelogs/fragments/114-k8s_scale-add-label-selectors-and-continue-on-error.yaml b/changelogs/fragments/114-k8s_scale-add-label-selectors-and-continue-on-error.yaml deleted file mode 100644 index c0fee8e7..00000000 --- a/changelogs/fragments/114-k8s_scale-add-label-selectors-and-continue-on-error.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -minor_changes: - - k8s_scale - ability to scale multiple resource using ``label_selectors`` (https://github.com/ansible-collections/community.kubernetes/pull/114). - - k8s_scale - new parameter to determine whether to continue or not on error when scaling multiple resources (https://github.com/ansible-collections/community.kubernetes/pull/114). diff --git a/changelogs/fragments/114-minor-docs-fixes.yaml b/changelogs/fragments/114-minor-docs-fixes.yaml deleted file mode 100644 index 106841a9..00000000 --- a/changelogs/fragments/114-minor-docs-fixes.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - Minor documentation fixes and use of FQCN in some examples (https://github.com/ansible-collections/community.kubernetes/pull/114). diff --git a/changelogs/fragments/115-helm-add-atomic.yaml b/changelogs/fragments/115-helm-add-atomic.yaml deleted file mode 100644 index 68f5bab3..00000000 --- a/changelogs/fragments/115-helm-add-atomic.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - helm - add 'atomic' option (https://github.com/ansible-collections/community.kubernetes/pull/115). diff --git a/changelogs/fragments/117-helm-minor-refactor.yaml b/changelogs/fragments/117-helm-minor-refactor.yaml deleted file mode 100644 index 391932fe..00000000 --- a/changelogs/fragments/117-helm-minor-refactor.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - helm_info and helm_repository - minor code refactor (https://github.com/ansible-collections/community.kubernetes/pull/117). diff --git a/changelogs/fragments/118-k8s-lookup-handle-set-object.yaml b/changelogs/fragments/118-k8s-lookup-handle-set-object.yaml deleted file mode 100644 index 6580f873..00000000 --- a/changelogs/fragments/118-k8s-lookup-handle-set-object.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - k8s - Handle set object retrieved from lookup plugin (https://github.com/ansible-collections/community.kubernetes/pull/118). diff --git a/changelogs/fragments/119-handle-kubeconfig-error.yaml b/changelogs/fragments/119-handle-kubeconfig-error.yaml deleted file mode 100644 index 97c2201f..00000000 --- a/changelogs/fragments/119-handle-kubeconfig-error.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - Handle invalid kubeconfig parsing error (https://github.com/ansible-collections/community.kubernetes/pull/119). diff --git a/changelogs/fragments/123-flake8.yaml b/changelogs/fragments/123-flake8.yaml deleted file mode 100644 index 3f9abc20..00000000 --- a/changelogs/fragments/123-flake8.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - Check Python code using flake8 (https://github.com/ansible-collections/community.kubernetes/pull/123). diff --git a/changelogs/fragments/125-remove-k8s-facts-alias.yaml b/changelogs/fragments/125-remove-k8s-facts-alias.yaml deleted file mode 100644 index 3b2631a9..00000000 --- a/changelogs/fragments/125-remove-k8s-facts-alias.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -breaking_changes: - - k8s_facts - remove the deprecated alias from k8s_facts to k8s_info (https://github.com/ansible-collections/kubernetes.core/pull/125). diff --git a/changelogs/fragments/126-requires_ansible-version-constraints.yaml b/changelogs/fragments/126-requires_ansible-version-constraints.yaml deleted file mode 100644 index 3ff31dfa..00000000 --- a/changelogs/fragments/126-requires_ansible-version-constraints.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - Add requires_ansible version constraints to runtime.yml (https://github.com/ansible-collections/community.kubernetes/pull/126). diff --git a/changelogs/fragments/127-remove-action_groups_redirection.yaml b/changelogs/fragments/127-remove-action_groups_redirection.yaml deleted file mode 100644 index 1827457c..00000000 --- a/changelogs/fragments/127-remove-action_groups_redirection.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - Remove action_groups_redirection entry from meta/runtime.yml (https://github.com/ansible-collections/community.kubernetes/pull/127). diff --git a/changelogs/fragments/13-fix-elements-argspec.yaml b/changelogs/fragments/13-fix-elements-argspec.yaml deleted file mode 100644 index a9e7ef89..00000000 --- a/changelogs/fragments/13-fix-elements-argspec.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - k8s - Fix argspec for 'elements' (https://github.com/ansible-collections/community.kubernetes/issues/13). diff --git a/changelogs/fragments/130-add-sanity-ignore-211.yaml b/changelogs/fragments/130-add-sanity-ignore-211.yaml deleted file mode 100644 index ad7af68a..00000000 --- a/changelogs/fragments/130-add-sanity-ignore-211.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - Add sanity test ignore file for Ansible 2.11 (https://github.com/ansible-collections/community.kubernetes/pull/130). diff --git a/changelogs/fragments/131-changelog-fragments.yaml b/changelogs/fragments/131-changelog-fragments.yaml deleted file mode 100644 index 3b3d0397..00000000 --- a/changelogs/fragments/131-changelog-fragments.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -major_changes: - - Add changelog and fragments and document changelog process (https://github.com/ansible-collections/community.kubernetes/pull/131). diff --git a/changelogs/fragments/14-k8s_exec-new-module.yaml b/changelogs/fragments/14-k8s_exec-new-module.yaml deleted file mode 100644 index 40594b80..00000000 --- a/changelogs/fragments/14-k8s_exec-new-module.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -major_changes: - - k8s_exec - New module for executing commands on pods via Kubernetes API (https://github.com/ansible-collections/community.kubernetes/pull/14). diff --git a/changelogs/fragments/140-kubeconfig-env.yaml b/changelogs/fragments/140-kubeconfig-env.yaml deleted file mode 100644 index 0d00dd7b..00000000 --- a/changelogs/fragments/140-kubeconfig-env.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -minor_changes: - - helm - add support for K8S_AUTH_KUBECONFIG and K8S_AUTH_CONTEXT environment variable (https://github.com/ansible-collections/community.kubernetes/issues/140). - - helm_info - add support for K8S_AUTH_KUBECONFIG and K8S_AUTH_CONTEXT environment variable (https://github.com/ansible-collections/community.kubernetes/issues/140). diff --git a/changelogs/fragments/141-helm-add-k8s-env-vars.yaml b/changelogs/fragments/141-helm-add-k8s-env-vars.yaml deleted file mode 100644 index e6518d49..00000000 --- a/changelogs/fragments/141-helm-add-k8s-env-vars.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - helm - Add support for K8S_AUTH_CONTEXT, K8S_AUTH_KUBECONFIG env (https://github.com/ansible-collections/community.kubernetes/pull/141). diff --git a/changelogs/fragments/146-fqcn-in-docs.yaml b/changelogs/fragments/146-fqcn-in-docs.yaml deleted file mode 100644 index 0ff70860..00000000 --- a/changelogs/fragments/146-fqcn-in-docs.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - Use FQCN in module docs and plugin examples (https://github.com/ansible-collections/community.kubernetes/pull/146). diff --git a/changelogs/fragments/148-update-base-branch-main.yaml b/changelogs/fragments/148-update-base-branch-main.yaml deleted file mode 100644 index 268200c5..00000000 --- a/changelogs/fragments/148-update-base-branch-main.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - Update base branch to 'main' (https://github.com/ansible-collections/community.kubernetes/issues/148). diff --git a/changelogs/fragments/153-update-openshift-requirements.yaml b/changelogs/fragments/153-update-openshift-requirements.yaml deleted file mode 100644 index 502449b0..00000000 --- a/changelogs/fragments/153-update-openshift-requirements.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - Update openshift requirements in k8s module doc (https://github.com/ansible-collections/community.kubernetes/pull/153). diff --git a/changelogs/fragments/154-helm_plugin-helm_plugin_info-new-modules.yaml b/changelogs/fragments/154-helm_plugin-helm_plugin_info-new-modules.yaml deleted file mode 100644 index 33a550f8..00000000 --- a/changelogs/fragments/154-helm_plugin-helm_plugin_info-new-modules.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -major_changes: - - helm_plugin - new module to manage Helm plugins (https://github.com/ansible-collections/community.kubernetes/pull/154). - - helm_plugin_info - new modules to gather information about Helm plugins (https://github.com/ansible-collections/community.kubernetes/pull/154). diff --git a/changelogs/fragments/155-ensure-check-mode-waits.yaml b/changelogs/fragments/155-ensure-check-mode-waits.yaml deleted file mode 100644 index 5a68c343..00000000 --- a/changelogs/fragments/155-ensure-check-mode-waits.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - Ensure check mode results are as expected (https://github.com/ansible-collections/community.kubernetes/pull/155). diff --git a/changelogs/fragments/156-k8s_info-vars-example.yaml b/changelogs/fragments/156-k8s_info-vars-example.yaml deleted file mode 100644 index 0ebe4318..00000000 --- a/changelogs/fragments/156-k8s_info-vars-example.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - k8s_info - Update example using vars (https://github.com/ansible-collections/community.kubernetes/pull/156). diff --git a/changelogs/fragments/157-helm-create-namespace.yaml b/changelogs/fragments/157-helm-create-namespace.yaml deleted file mode 100644 index 8e3ace60..00000000 --- a/changelogs/fragments/157-helm-create-namespace.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - helm - Allow creating namespaces with Helm (https://github.com/ansible-collections/community.kubernetes/pull/157). diff --git a/changelogs/fragments/158-k8s_exec-return-rc.yaml b/changelogs/fragments/158-k8s_exec-return-rc.yaml deleted file mode 100644 index f8a10fb7..00000000 --- a/changelogs/fragments/158-k8s_exec-return-rc.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -major_changes: - - k8s_exec - Return rc for the command executed (https://github.com/ansible-collections/community.kubernetes/pull/158). diff --git a/changelogs/fragments/159-kubectl-redact-token-and-password.yaml b/changelogs/fragments/159-kubectl-redact-token-and-password.yaml deleted file mode 100644 index b58ffd97..00000000 --- a/changelogs/fragments/159-kubectl-redact-token-and-password.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -security_fixes: - - kubectl - redacted token and password from console log (https://github.com/ansible-collections/community.kubernetes/pull/159). diff --git a/changelogs/fragments/16-k8s_log-new-module.yaml b/changelogs/fragments/16-k8s_log-new-module.yaml deleted file mode 100644 index e6ae7335..00000000 --- a/changelogs/fragments/16-k8s_log-new-module.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -major_changes: - - k8s_log - New module for retrieving pod logs (https://github.com/ansible-collections/community.kubernetes/pull/16). diff --git a/changelogs/fragments/168-test-stable-ansible.yaml b/changelogs/fragments/168-test-stable-ansible.yaml deleted file mode 100644 index d05a4b0a..00000000 --- a/changelogs/fragments/168-test-stable-ansible.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - Test against stable ansible branch so molecule tests work (https://github.com/ansible-collections/community.kubernetes/pull/168). diff --git a/changelogs/fragments/310-wait_condition.status_is_a_str.yaml b/changelogs/fragments/310-wait_condition.status_is_a_str.yaml deleted file mode 100644 index 6d204d5f..00000000 --- a/changelogs/fragments/310-wait_condition.status_is_a_str.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: -- Adjust the documentation to clarify the fact ``wait_condition.status`` is a string. diff --git a/changelogs/fragments/319-helm-honors-HELM_-environment-variables.yaml b/changelogs/fragments/319-helm-honors-HELM_-environment-variables.yaml deleted file mode 100644 index 114c2683..00000000 --- a/changelogs/fragments/319-helm-honors-HELM_-environment-variables.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -minor_changes: -- 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. diff --git a/changelogs/fragments/324-adjust-helm-and-helm_info-parameters-names.yaml b/changelogs/fragments/324-adjust-helm-and-helm_info-parameters-names.yaml deleted file mode 100644 index 1af3f573..00000000 --- a/changelogs/fragments/324-adjust-helm-and-helm_info-parameters-names.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: -- Adjust the name of parameters of ``helm`` and ``helm_info`` to match the documentation. No playbook change required. diff --git a/changelogs/fragments/33-k8s_service-fix-argspec.yaml b/changelogs/fragments/33-k8s_service-fix-argspec.yaml deleted file mode 100644 index 91daa0d6..00000000 --- a/changelogs/fragments/33-k8s_service-fix-argspec.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - k8s_service - Fix argspec (https://github.com/ansible-collections/community.kubernetes/issues/33). diff --git a/changelogs/fragments/332_helm_changed_flag_takes_values_in_consideration.yaml b/changelogs/fragments/332_helm_changed_flag_takes_values_in_consideration.yaml deleted file mode 100644 index edf35b81..00000000 --- a/changelogs/fragments/332_helm_changed_flag_takes_values_in_consideration.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: -- helm - ``release_values`` makes ansible always show changed state (https://github.com/ansible-collections/community.kubernetes/issues/274) diff --git a/changelogs/fragments/334-delete-options.yaml b/changelogs/fragments/334-delete-options.yaml deleted file mode 100644 index b6c146aa..00000000 --- a/changelogs/fragments/334-delete-options.yaml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - k8s - add a ``delete_options`` parameter to control garbage collection behavior when deleting a resource (https://github.com/ansible-collections/community.kubernetes/issues/253). diff --git a/changelogs/fragments/343-secret-check-mode.yaml b/changelogs/fragments/343-secret-check-mode.yaml deleted file mode 100644 index 6351a888..00000000 --- a/changelogs/fragments/343-secret-check-mode.yaml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: - - k8s - fix check_mode always showing changes when using stringData on Secrets (https://github.com/ansible-collections/community.kubernetes/issues/282). diff --git a/changelogs/fragments/349-skip-crds.yaml b/changelogs/fragments/349-skip-crds.yaml deleted file mode 100644 index 37ea0b55..00000000 --- a/changelogs/fragments/349-skip-crds.yaml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - 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). diff --git a/changelogs/fragments/35-wait-conditions.yaml b/changelogs/fragments/35-wait-conditions.yaml deleted file mode 100644 index 2f6dd67c..00000000 --- a/changelogs/fragments/35-wait-conditions.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - Improve k8s Deployment and Daemonset wait conditions (https://github.com/ansible-collections/community.kubernetes/pull/35). diff --git a/changelogs/fragments/355-helm-diff.yaml b/changelogs/fragments/355-helm-diff.yaml deleted file mode 100644 index 40919f56..00000000 --- a/changelogs/fragments/355-helm-diff.yaml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - helm - add optional support for helm diff (https://github.com/ansible-collections/community.kubernetes/issues/248). diff --git a/changelogs/fragments/360-k8s_info-wait-timeout.yaml b/changelogs/fragments/360-k8s_info-wait-timeout.yaml deleted file mode 100644 index a26a78ac..00000000 --- a/changelogs/fragments/360-k8s_info-wait-timeout.yaml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: - - 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). diff --git a/changelogs/fragments/361-k8s_exec-permission-hint.yaml b/changelogs/fragments/361-k8s_exec-permission-hint.yaml deleted file mode 100644 index 08263ae2..00000000 --- a/changelogs/fragments/361-k8s_exec-permission-hint.yaml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - k8s_exec - add a note about required permissions for the module (https://github.com/ansible-collections/community.kubernetes/issues/339). diff --git a/changelogs/fragments/362-helm-has_plugin-fix.yaml b/changelogs/fragments/362-helm-has_plugin-fix.yaml deleted file mode 100644 index 1794f220..00000000 --- a/changelogs/fragments/362-helm-has_plugin-fix.yaml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: - - 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). diff --git a/changelogs/fragments/368-helm_template.yaml b/changelogs/fragments/368-helm_template.yaml deleted file mode 100644 index 32ddb313..00000000 --- a/changelogs/fragments/368-helm_template.yaml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - helm_template - add helm_template module to support template functionality (https://github.com/ansible-collections/community.kubernetes/issues/367). diff --git a/changelogs/fragments/379-remove-kubernetesrawmodule.yaml b/changelogs/fragments/379-remove-kubernetesrawmodule.yaml deleted file mode 100644 index 680f544a..00000000 --- a/changelogs/fragments/379-remove-kubernetesrawmodule.yaml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - remove the deprecated ``KubernetesRawModule`` class (https://github.com/ansible-collections/community.kubernetes/issues/232). diff --git a/changelogs/fragments/387-fix-helm-ignoring-context.yaml b/changelogs/fragments/387-fix-helm-ignoring-context.yaml deleted file mode 100644 index 8e696b06..00000000 --- a/changelogs/fragments/387-fix-helm-ignoring-context.yaml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: - - 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). diff --git a/changelogs/fragments/399-helm_multiline.yml b/changelogs/fragments/399-helm_multiline.yml deleted file mode 100644 index c4b8b4d0..00000000 --- a/changelogs/fragments/399-helm_multiline.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: -- helm - handle multiline output of ``helm plugin list`` command (https://github.com/ansible-collections/community.kubernetes/issues/399). diff --git a/changelogs/fragments/4-k8s-prepare-collection-for-release.yaml b/changelogs/fragments/4-k8s-prepare-collection-for-release.yaml deleted file mode 100644 index 4f9a7bcd..00000000 --- a/changelogs/fragments/4-k8s-prepare-collection-for-release.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -major_changes: - - k8s - Inventory source migrated from Ansible 2.9 to Kubernetes collection. - - k8s - Module migrated from Ansible 2.9 to Kubernetes collection. - - k8s - Lookup plugin migrated from Ansible 2.9 to Kubernetes collection. - - k8s_auth - Module 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. - - k8s_config_resource_name - Filter plugin 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. diff --git a/changelogs/fragments/407-enable-unit-tests.yaml b/changelogs/fragments/407-enable-unit-tests.yaml deleted file mode 100644 index fda8694b..00000000 --- a/changelogs/fragments/407-enable-unit-tests.yaml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: - - enable unit tests in CI (https://github.com/ansible-collections/community.kubernetes/pull/407). diff --git a/changelogs/fragments/41-fix-apis-being-overwritten-in-k8s_cluster_info.yaml b/changelogs/fragments/41-fix-apis-being-overwritten-in-k8s_cluster_info.yaml deleted file mode 100644 index 7a71a66d..00000000 --- a/changelogs/fragments/41-fix-apis-being-overwritten-in-k8s_cluster_info.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -breaking_changes: - - 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). diff --git a/changelogs/fragments/45-add-apply-method.yml b/changelogs/fragments/45-add-apply-method.yml deleted file mode 100644 index 2c35d543..00000000 --- a/changelogs/fragments/45-add-apply-method.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: -- Replicate apply method in the DynamicClient (https://github.com/ansible-collections/kubernetes.core/pull/45). diff --git a/changelogs/fragments/46-cachefile_dynamic_client.yml b/changelogs/fragments/46-cachefile_dynamic_client.yml deleted file mode 100644 index c32af4f5..00000000 --- a/changelogs/fragments/46-cachefile_dynamic_client.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -minor_changes: -- Add logic for cache file name generation (https://github.com/ansible-collections/kubernetes.core/pull/46). -- Add cache_file when DynamicClient is created (https://github.com/ansible-collections/kubernetes.core/pull/46). diff --git a/changelogs/fragments/48_hash-configmap-secret.yml b/changelogs/fragments/48_hash-configmap-secret.yml deleted file mode 100644 index 8ccb8af6..00000000 --- a/changelogs/fragments/48_hash-configmap-secret.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: -- Add configmap and secret hash functionality (https://github.com/ansible-collections/kubernetes.core/pull/48). diff --git a/changelogs/fragments/49-k8s-add-persist_config-option.yaml b/changelogs/fragments/49-k8s-add-persist_config-option.yaml deleted file mode 100644 index ef4c3f4d..00000000 --- a/changelogs/fragments/49-k8s-add-persist_config-option.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - k8s - Added ``persist_config`` option for persisting refreshed tokens (https://github.com/ansible-collections/community.kubernetes/issues/49). diff --git a/changelogs/fragments/49-k8s-loop-flattening-and-continue_on_error.yaml b/changelogs/fragments/49-k8s-loop-flattening-and-continue_on_error.yaml deleted file mode 100644 index 73c8d3dd..00000000 --- a/changelogs/fragments/49-k8s-loop-flattening-and-continue_on_error.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -minor_changes: - - k8s - Handle list of definition for option `template` (https://github.com/ansible-collections/kubernetes.core/pull/49). - - k8s - `continue_on_error` option added (whether to continue on creation/deletion errors) (https://github.com/ansible-collections/kubernetes.core/pull/49). diff --git a/changelogs/fragments/51-kubectl-security-disclosure.yaml b/changelogs/fragments/51-kubectl-security-disclosure.yaml deleted file mode 100644 index 0d2fd915..00000000 --- a/changelogs/fragments/51-kubectl-security-disclosure.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -security_fixes: - - 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). diff --git a/changelogs/fragments/52-kubectl-connection-docsfix.yaml b/changelogs/fragments/52-kubectl-connection-docsfix.yaml deleted file mode 100644 index ff71021c..00000000 --- a/changelogs/fragments/52-kubectl-connection-docsfix.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - kubectl - Fix documentation in kubectl connection plugin (https://github.com/ansible-collections/community.kubernetes/pull/52). diff --git a/changelogs/fragments/52_inventory.yml b/changelogs/fragments/52_inventory.yml deleted file mode 100644 index dd71eaee..00000000 --- a/changelogs/fragments/52_inventory.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: -- k8s inventory - remove extra trailing slashes from the hostname (https://github.com/ansible-collections/kubernetes.core/issues/52). diff --git a/changelogs/fragments/53_kubeconfig_docs.yml b/changelogs/fragments/53_kubeconfig_docs.yml deleted file mode 100644 index 755b6a21..00000000 --- a/changelogs/fragments/53_kubeconfig_docs.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- kubeconfig - update ``kubeconfig`` file location in the documentation (https://github.com/ansible-collections/kubernetes.core/issues/53). diff --git a/changelogs/fragments/54-k8s-add-exception-handling.yaml b/changelogs/fragments/54-k8s-add-exception-handling.yaml deleted file mode 100644 index 73fd6c54..00000000 --- a/changelogs/fragments/54-k8s-add-exception-handling.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - k8s - Add exception handling when retrieving k8s client (https://github.com/ansible-collections/community.kubernetes/pull/54). diff --git a/changelogs/fragments/56-k8s-from_yaml-docs-examples.yaml b/changelogs/fragments/56-k8s-from_yaml-docs-examples.yaml deleted file mode 100644 index 399b1ef8..00000000 --- a/changelogs/fragments/56-k8s-from_yaml-docs-examples.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - k8s - Use ``from_yaml`` filter with lookup examples in ``k8s`` module documentation examples (https://github.com/ansible-collections/community.kubernetes/pull/56). diff --git a/changelogs/fragments/58-add-support-for-proxy_headers-on-authentication.yaml b/changelogs/fragments/58-add-support-for-proxy_headers-on-authentication.yaml deleted file mode 100644 index a887cb1d..00000000 --- a/changelogs/fragments/58-add-support-for-proxy_headers-on-authentication.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - add ``proxy_headers`` option for authentication on k8s_xxx modules (https://github.com/ansible-collections/kubernetes.core/pull/58). diff --git a/changelogs/fragments/61-helm-new-modules.yaml b/changelogs/fragments/61-helm-new-modules.yaml deleted file mode 100644 index d741500d..00000000 --- a/changelogs/fragments/61-helm-new-modules.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -major_changes: - - helm - New module for managing Helm charts (https://github.com/ansible-collections/community.kubernetes/pull/61). - - helm_info - New module for retrieving Helm chart information (https://github.com/ansible-collections/community.kubernetes/pull/61). - - helm_repository - New module for managing Helm repositories (https://github.com/ansible-collections/community.kubernetes/pull/61). diff --git a/changelogs/fragments/62-molecule-tags.yaml b/changelogs/fragments/62-molecule-tags.yaml deleted file mode 100644 index ba75ce97..00000000 --- a/changelogs/fragments/62-molecule-tags.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - add support for using tags when running molecule test suite (https://github.com/ansible-collections/kubernetes.core/pull/62). diff --git a/changelogs/fragments/69-k8s_log-dont-parse-as-json.yaml b/changelogs/fragments/69-k8s_log-dont-parse-as-json.yaml deleted file mode 100644 index bf34a741..00000000 --- a/changelogs/fragments/69-k8s_log-dont-parse-as-json.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - k8s_log - Module no longer attempts to parse log as JSON (https://github.com/ansible-collections/community.kubernetes/pull/69). diff --git a/changelogs/fragments/78-github-actions-workflow.yaml b/changelogs/fragments/78-github-actions-workflow.yaml deleted file mode 100644 index 7985746e..00000000 --- a/changelogs/fragments/78-github-actions-workflow.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - Update GitHub Actions workflow for better CI stability (https://github.com/ansible-collections/community.kubernetes/pull/78). diff --git a/changelogs/fragments/81-rename-repository.yaml b/changelogs/fragments/81-rename-repository.yaml deleted file mode 100644 index dd77b24e..00000000 --- a/changelogs/fragments/81-rename-repository.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - Rename repository to ``community.kubernetes`` (https://github.com/ansible-collections/community.kubernetes/pull/81). diff --git a/changelogs/fragments/83-k8s-fix-merge_type-json.yaml b/changelogs/fragments/83-k8s-fix-merge_type-json.yaml deleted file mode 100644 index b7f7cd8a..00000000 --- a/changelogs/fragments/83-k8s-fix-merge_type-json.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - k8s - fix merge_type option when set to json (https://github.com/ansible-collections/kubernetes.core/issues/54). diff --git a/changelogs/fragments/84-check_mode-service-change.yaml b/changelogs/fragments/84-check_mode-service-change.yaml deleted file mode 100644 index 974b2ace..00000000 --- a/changelogs/fragments/84-check_mode-service-change.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - Make sure Service changes run correctly in check_mode (https://github.com/ansible-collections/community.kubernetes/pull/84). diff --git a/changelogs/fragments/85-exclude-unnecessary-files-when-building.yaml b/changelogs/fragments/85-exclude-unnecessary-files-when-building.yaml deleted file mode 100644 index f7f4be75..00000000 --- a/changelogs/fragments/85-exclude-unnecessary-files-when-building.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - Make sure extra files are not included in built collection (https://github.com/ansible-collections/community.kubernetes/pull/85). diff --git a/changelogs/fragments/85_helm_plugin.yaml b/changelogs/fragments/85_helm_plugin.yaml deleted file mode 100644 index bfe54558..00000000 --- a/changelogs/fragments/85_helm_plugin.yaml +++ /dev/null @@ -1,3 +0,0 @@ -breaking_changes: -- helm_plugin - remove unused ``release_namespace`` parameter. -- helm_plugin_info - remove unused ``release_namespace`` parameter. diff --git a/changelogs/fragments/86_drop_python2_support.yaml b/changelogs/fragments/86_drop_python2_support.yaml deleted file mode 100644 index b381c2d4..00000000 --- a/changelogs/fragments/86_drop_python2_support.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -breaking_changes: - - Drop python 2 support. diff --git a/changelogs/fragments/89-replicate-base-resource.yaml b/changelogs/fragments/89-replicate-base-resource.yaml deleted file mode 100644 index cf81e081..00000000 --- a/changelogs/fragments/89-replicate-base-resource.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - replicate base resource for lists functionality (https://github.com/ansible-collections/kubernetes.core/pull/89). diff --git a/changelogs/fragments/90-k8s-add-parameter-patch_only.yml b/changelogs/fragments/90-k8s-add-parameter-patch_only.yml deleted file mode 100644 index ed58b20b..00000000 --- a/changelogs/fragments/90-k8s-add-parameter-patch_only.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - 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). diff --git a/changelogs/fragments/94-openshift-apply-test.yaml b/changelogs/fragments/94-openshift-apply-test.yaml deleted file mode 100644 index e5a53376..00000000 --- a/changelogs/fragments/94-openshift-apply-test.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - Add test for openshift apply bug (https://github.com/ansible-collections/community.kubernetes/pull/94). diff --git a/changelogs/fragments/95-remove-ANSIBLE_METADATA.yaml b/changelogs/fragments/95-remove-ANSIBLE_METADATA.yaml deleted file mode 100644 index e0370031..00000000 --- a/changelogs/fragments/95-remove-ANSIBLE_METADATA.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - Remove deprecated ANSIBLE_METADATA field (https://github.com/ansible-collections/community.kubernetes/pull/95). diff --git a/changelogs/fragments/96-replace-openshift-client.yaml b/changelogs/fragments/96-replace-openshift-client.yaml deleted file mode 100644 index 136adace..00000000 --- a/changelogs/fragments/96-replace-openshift-client.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -major_changes: - - replaces the openshift client with the official kubernetes client (https://github.com/ansible-collections/kubernetes.core/issues/34). diff --git a/changelogs/fragments/97-remove-k8s_facts-deprecation.yaml b/changelogs/fragments/97-remove-k8s_facts-deprecation.yaml deleted file mode 100644 index 5fa7abcb..00000000 --- a/changelogs/fragments/97-remove-k8s_facts-deprecation.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - k8s_info - remove unneccessary k8s_facts deprecation notice (https://github.com/ansible-collections/community.kubernetes/pull/97). diff --git a/changelogs/fragments/98-add-version_added.yaml b/changelogs/fragments/98-add-version_added.yaml deleted file mode 100644 index 1c82b0e9..00000000 --- a/changelogs/fragments/98-add-version_added.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: - - Add version_added to each new collection module (https://github.com/ansible-collections/community.kubernetes/pull/98). diff --git a/changelogs/fragments/99-json-patch-module.yaml b/changelogs/fragments/99-json-patch-module.yaml deleted file mode 100644 index ec1b5595..00000000 --- a/changelogs/fragments/99-json-patch-module.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -major_changes: - - k8s - deprecate merge_type=json. The JSON patch functionality has never worked (https://github.com/ansible-collections/kubernetes.core/pull/99). - - k8s_json_patch - split JSON patch functionality out into a separate module (https://github.com/ansible-collections/kubernetes.core/pull/99). diff --git a/changelogs/fragments/9_lookup_k8s.yml b/changelogs/fragments/9_lookup_k8s.yml deleted file mode 100644 index 9e370f3b..00000000 --- a/changelogs/fragments/9_lookup_k8s.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: -- k8s - lookup should return list even if single item is found (https://github.com/ansible-collections/kubernetes.core/issues/9). diff --git a/changelogs/fragments/add_docs.yml b/changelogs/fragments/add_docs.yml deleted file mode 100644 index e661318e..00000000 --- a/changelogs/fragments/add_docs.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: -- added documentation for ``kubernetes.core`` collection. diff --git a/changelogs/fragments/helm_example.yml b/changelogs/fragments/helm_example.yml deleted file mode 100644 index 14f9e6a8..00000000 --- a/changelogs/fragments/helm_example.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- helm - add example for complex values in ``helm`` module (https://github.com/ansible-collections/kubernetes.core/issues/109). diff --git a/changelogs/fragments/helm_validate_certs_not_exclusive.yaml b/changelogs/fragments/helm_validate_certs_not_exclusive.yaml deleted file mode 100644 index a3eed341..00000000 --- a/changelogs/fragments/helm_validate_certs_not_exclusive.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: -- "helm - Accept ``validate_certs`` with a ``context`` (https://github.com/ansible-collections/kubernetes.core/pull/74)." diff --git a/changelogs/fragments/remove_KubernetesAnsibleModule.yml b/changelogs/fragments/remove_KubernetesAnsibleModule.yml deleted file mode 100644 index 139aee3c..00000000 --- a/changelogs/fragments/remove_KubernetesAnsibleModule.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: -- common - removed ``KubernetesAnsibleModule``, use ``K8sAnsibleMixin`` instead (https://github.com/ansible-collections/kubernetes.core/pull/70). diff --git a/changelogs/fragments/remove_fragment.yml b/changelogs/fragments/remove_fragment.yml deleted file mode 100644 index 5a28dfbe..00000000 --- a/changelogs/fragments/remove_fragment.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -minor_changes: -- remove old change log fragment files. diff --git a/docs/kubernetes.core.helm_module.rst b/docs/kubernetes.core.helm_module.rst index 81867183..9921c144 100644 --- a/docs/kubernetes.core.helm_module.rst +++ b/docs/kubernetes.core.helm_module.rst @@ -562,6 +562,32 @@ Examples chart_ref: "https://github.com/grafana/helm-charts/releases/download/grafana-5.6.0/grafana-5.6.0.tgz" release_namespace: monitoring + # Using complex Values + - name: Deploy new-relic client chart + kubernetes.core.helm: + name: newrelic-bundle + chart_ref: newrelic/nri-bundle + release_namespace: default + force: True + wait: True + replace: True + update_repo_cache: True + disable_hook: True + values: + global: + licenseKey: "{{ nr_license_key }}" + cluster: "{{ site_name }}" + newrelic-infrastructure: + privileged: True + ksm: + enabled: True + prometheus: + enabled: True + kubeEvents: + enabled: True + logging: + enabled: True + Return Values diff --git a/docs/kubernetes.core.k8s_json_patch_module.rst b/docs/kubernetes.core.k8s_json_patch_module.rst new file mode 100644 index 00000000..45ad392d --- /dev/null +++ b/docs/kubernetes.core.k8s_json_patch_module.rst @@ -0,0 +1,719 @@ +.. _kubernetes.core.k8s_json_patch_module: + + +****************************** +kubernetes.core.k8s_json_patch +****************************** + +**Apply JSON patch operations to existing objects** + + +Version added: 2.0.0 + +.. contents:: + :local: + :depth: 1 + + +Synopsis +-------- +- This module is used to apply RFC 6902 JSON patch operations only. +- Use the :ref:`k8s ` module for strategic merge or JSON merge operations. +- The jsonpatch library is required for check mode. + + + +Requirements +------------ +The below requirements are needed on the host that executes this module. + +- python >= 3.6 +- kubernetes >= 12.0.0 +- PyYAML >= 3.11 +- jsonpatch + + +Parameters +---------- + +.. raw:: html + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterChoices/DefaultsComments
+
+ api_key + +
+ string +
+
+ +
Token used to authenticate with the API. Can also be specified via K8S_AUTH_API_KEY environment variable.
+
+
+ api_version + +
+ string +
+
+ Default:
"v1"
+
+
Use to specify the API version.
+
Use in conjunction with kind, name, and namespace to identify a specific object.
+

aliases: api, version
+
+
+ ca_cert + +
+ path +
+
+ +
Path to a CA certificate used to authenticate with the API. The full certificate chain must be provided to avoid certificate validation errors. Can also be specified via K8S_AUTH_SSL_CA_CERT environment variable.
+

aliases: ssl_ca_cert
+
+
+ client_cert + +
+ path +
+
+ +
Path to a certificate used to authenticate with the API. Can also be specified via K8S_AUTH_CERT_FILE environment variable.
+

aliases: cert_file
+
+
+ client_key + +
+ path +
+
+ +
Path to a key file used to authenticate with the API. Can also be specified via K8S_AUTH_KEY_FILE environment variable.
+

aliases: key_file
+
+
+ context + +
+ string +
+
+ +
The name of a context found in the config file. Can also be specified via K8S_AUTH_CONTEXT environment variable.
+
+
+ host + +
+ string +
+
+ +
Provide a URL for accessing the API. Can also be specified via K8S_AUTH_HOST environment variable.
+
+
+ kind + +
+ string + / required +
+
+ +
Use to specify an object model.
+
Use in conjunction with api_version, name, and namespace to identify a specific object.
+
+
+ kubeconfig + +
+ path +
+
+ +
Path to an existing Kubernetes config file. If not provided, and no other connection options are provided, the Kubernetes client will attempt to load the default configuration file from ~/.kube/config. Can also be specified via K8S_AUTH_KUBECONFIG environment variable.
+
+
+ name + +
+ string + / required +
+
+ +
Use to specify an object name.
+
Use in conjunction with api_version, kind, and namespace to identify a specific object.
+
+
+ namespace + +
+ string +
+
+ +
Use to specify an object namespace.
+
Use in conjunction with api_version, kind, and name to identify a specific object.
+
+
+ password + +
+ string +
+
+ +
Provide a password for authenticating with the API. Can also be specified via K8S_AUTH_PASSWORD environment variable.
+
Please read the description of the username option for a discussion of when this option is applicable.
+
+
+ patch + +
+ list + / elements=dictionary + / required +
+
+ +
List of JSON patch operations.
+
+
+ persist_config + +
+ boolean +
+
+
    Choices: +
  • no
  • +
  • yes
  • +
+
+
Whether or not to save the kube config refresh tokens. Can also be specified via K8S_AUTH_PERSIST_CONFIG environment variable.
+
When the k8s context is using a user credentials with refresh tokens (like oidc or gke/gcloud auth), the token is refreshed by the k8s python client library but not saved by default. So the old refresh token can expire and the next auth might fail. Setting this flag to true will tell the k8s python client to save the new refresh token to the kube config file.
+
Default to false.
+
Please note that the current version of the k8s python client library does not support setting this flag to True yet.
+
The fix for this k8s python library is here: https://github.com/kubernetes-client/python-base/pull/169
+
+
+ proxy + +
+ string +
+
+ +
The URL of an HTTP proxy to use for the connection. Can also be specified via K8S_AUTH_PROXY environment variable.
+
Please note that this module does not pick up typical proxy settings from the environment (e.g. HTTP_PROXY).
+
+
+ proxy_headers + +
+ dictionary +
+
added in 2.0.0
+
+ +
The Header used for the HTTP proxy.
+ +
+
+ basic_auth + +
+ string +
+
+ +
Colon-separated username:password for basic authentication header.
+
Can also be specified via K8S_AUTH_PROXY_HEADERS_BASIC_AUTH environment.
+
+
+ proxy_basic_auth + +
+ string +
+
+ +
Colon-separated username:password for proxy basic authentication header.
+
Can also be specified via K8S_AUTH_PROXY_HEADERS_PROXY_BASIC_AUTH environment.
+
+
+ user_agent + +
+ string +
+
+ +
String representing the user-agent you want, such as foo/1.0.
+
Can also be specified via K8S_AUTH_PROXY_HEADERS_USER_AGENT environment.
+
+
+ username + +
+ string +
+
+ +
Provide a username for authenticating with the API. Can also be specified via K8S_AUTH_USERNAME environment variable.
+
Please note that this only works with clusters configured to use HTTP Basic Auth. If your cluster has a different form of authentication (e.g. OAuth2 in OpenShift), this option will not work as expected and you should look into the community.okd.k8s_auth module, as that might do what you need.
+
+
+ validate_certs + +
+ boolean +
+
+
    Choices: +
  • no
  • +
  • yes
  • +
+
+
Whether or not to verify the API server's SSL certificates. Can also be specified via K8S_AUTH_VERIFY_SSL environment variable.
+

aliases: verify_ssl
+
+
+ wait + +
+ boolean +
+
+
    Choices: +
  • no ←
  • +
  • yes
  • +
+
+
Whether to wait for certain resource kinds to end up in the desired state.
+
By default the module exits once Kubernetes has received the request.
+
Implemented for state=present for Deployment, DaemonSet and Pod, and for state=absent for all resource kinds.
+
For resource kinds without an implementation, wait returns immediately unless wait_condition is set.
+
+
+ wait_condition + +
+ dictionary +
+
+ +
Specifies a custom condition on the status to wait for.
+
Ignored if wait is not set or is set to False.
+
+
+ reason + +
+ string +
+
+ +
The value of the reason field in your desired condition
+
For example, if a Deployment is paused, The Progressing type will have the DeploymentPaused reason.
+
The possible reasons in a condition are specific to each resource type in Kubernetes.
+
See the API documentation of the status field for a given resource to see possible choices.
+
+
+ status + +
+ string +
+
+
    Choices: +
  • True ←
  • +
  • False
  • +
  • Unknown
  • +
+
+
The value of the status field in your desired condition.
+
For example, if a Deployment is paused, the Progressing type will have the Unknown status.
+
+
+ type + +
+ string +
+
+ +
The type of condition to wait for.
+
For example, the Pod resource will set the Ready condition (among others).
+
Required if you are specifying a wait_condition.
+
If left empty, the wait_condition field will be ignored.
+
The possible types for a condition are specific to each resource type in Kubernetes.
+
See the API documentation of the status field for a given resource to see possible choices.
+
+
+ wait_sleep + +
+ integer +
+
+ Default:
5
+
+
Number of seconds to sleep between checks.
+
+
+ wait_timeout + +
+ integer +
+
+ Default:
120
+
+
How long in seconds to wait for the resource to end up in the desired state.
+
Ignored if wait is not set.
+
+
+ + +Notes +----- + +.. note:: + - To avoid SSL certificate validation errors when ``validate_certs`` is *True*, the full certificate chain for the API server must be provided via ``ca_cert`` or in the kubeconfig file. + + + +Examples +-------- + +.. code-block:: yaml + + - name: Apply multiple patch operations to an existing Pod + kubernetes.core.k8s_json_patch: + kind: Pod + namespace: testing + name: mypod + patch: + - op: add + path: /metadata/labels/app + value: myapp + - op: replace + patch: /spec/containers/0/image + value: nginx + + + +Return Values +------------- +Common return values are documented `here `_, the following are the fields unique to this module: + +.. raw:: html + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
KeyReturnedDescription
+
+ duration + +
+ integer +
+
when wait is true +
Elapsed time of task in seconds.
+
+
Sample:
+
48
+
+
+ error + +
+ dictionary +
+
error +
The error when patching the object.
+
+
Sample:
+
{'msg': 'Failed to import the required Python library (jsonpatch) ...', 'exception': 'Traceback (most recent call last): ...'}
+
+
+ result + +
+ dictionary +
+
success +
The modified object.
+
+
  +
+ api_version + +
+ string +
+
success +
The versioned schema of this representation of an object.
+
+
  +
+ kind + +
+ string +
+
success +
The REST resource this object represents.
+
+
  +
+ metadata + +
+ dictionary +
+
success +
Standard object metadata. Includes name, namespace, annotations, labels, etc.
+
+
  +
+ spec + +
+ dictionary +
+
success +
Specific attributes of the object. Will vary based on the api_version and kind.
+
+
  +
+ status + +
+ dictionary +
+
success +
Current status details for the object.
+
+
+

+ + +Status +------ + + +Authors +~~~~~~~ + +- Mike Graves (@gravesm) diff --git a/docs/kubernetes.core.k8s_module.rst b/docs/kubernetes.core.k8s_module.rst index 92af21a9..acec37d3 100644 --- a/docs/kubernetes.core.k8s_module.rst +++ b/docs/kubernetes.core.k8s_module.rst @@ -407,6 +407,7 @@ Parameters
See https://kubernetes.io/docs/tasks/run-application/update-api-object-kubectl-patch/#use-a-json-merge-patch-to-update-a-deployment
If more than one merge_type is given, the merge_types will be tried in order. This defaults to ['strategic-merge', 'merge'], which is ideal for using the same parameters on resource kinds that combine Custom Resources and built-in resources.
mutually exclusive with apply
+
merge_type=json is deprecated and will be removed in version 3.0.0. Please use kubernetes.core.k8s_json_patch instead.
@@ -616,10 +617,12 @@ Parameters
Determines if an object should be created, patched, or deleted. When set to present, an object will be created, if it does not already exist. If set to absent, an existing object will be deleted. If set to present, an existing object will be patched, if its attributes differ from those specified using resource_definition or src.
+
patched state is an existing resource that has a given patch applied. If the resource doesn't exist, silently skip it (do not raise an error).
@@ -1016,6 +1019,17 @@ Examples status: Unknown reason: DeploymentPaused + # Patch existing namespace : add label + - name: add label to existing namespace + kubernetes.core.k8s: + state: patched + kind: Namespace + name: patch_namespace + definition: + metadata: + labels: + support: patch + Return Values diff --git a/docs/kubernetes.core.k8s_scale_module.rst b/docs/kubernetes.core.k8s_scale_module.rst index 29aadd5b..07483f9d 100644 --- a/docs/kubernetes.core.k8s_scale_module.rst +++ b/docs/kubernetes.core.k8s_scale_module.rst @@ -17,6 +17,7 @@ kubernetes.core.k8s_scale Synopsis -------- - Similar to the kubectl scale command. Use to set the number of replicas for a Deployment, ReplicaSet, or Replication Controller, or the parallelism attribute of a Job. Supports check mode. +- ``wait`` parameter is not supported for Jobs. @@ -138,6 +139,26 @@ Parameters
The name of a context found in the config file. Can also be specified via K8S_AUTH_CONTEXT environment variable.
+ + +
+ continue_on_error + +
+ boolean +
+
added in 2.0.0
+ + + + + +
Whether to continue on errors when multiple resources are defined.
+ +
@@ -201,6 +222,23 @@ Parameters
Path to an existing Kubernetes config file. If not provided, and no other connection options are provided, the Kubernetes client will attempt to load the default configuration file from ~/.kube/config. Can also be specified via K8S_AUTH_KUBECONFIG environment variable.
+ + +
+ label_selectors + +
+ list + / elements=string +
+
added in 2.0.0
+ + + + +
List of label selectors to use to filter results.
+ +
@@ -481,6 +519,23 @@ Parameters
For Deployment, ReplicaSet, Replication Controller, wait for the status value of ready_replicas to change to the number of replicas. In the case of a Job, this option is ignored.
+ + +
+ wait_sleep + +
+ integer +
+
added in 2.0.0
+ + + Default:
5
+ + +
Number of seconds to sleep between checks.
+ +
@@ -560,6 +615,15 @@ Examples replicas: 3 wait: no + - name: Scale deployment using label selectors (continue operation in case error occured on one resource) + kubernetes.core.k8s_scale: + replicas: 3 + kind: Deployment + namespace: test + label_selectors: + - app=test + continue_on_error: true + Return Values diff --git a/galaxy.yml b/galaxy.yml index 13735618..36eb7aa1 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -27,7 +27,7 @@ tags: - openshift - okd - cluster -version: 1.2.0 +version: 2.0.0 build_ignore: - .DS_Store - '*.tar.gz'