diff --git a/CHANGELOG.rst b/CHANGELOG.rst index f14d8624..8a9bd301 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,48 @@ Kubernetes Collection Release Notes .. contents:: Topics +v1.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). +- k8s_exec - Return rc for the command executed (https://github.com/ansible-collections/community.kubernetes/pull/158). + +Minor Changes +------------- + +- Ensure check mode results are as expected (https://github.com/ansible-collections/community.kubernetes/pull/155). +- Update base branch to 'main' (https://github.com/ansible-collections/community.kubernetes/issues/148). +- helm - Add support for K8S_AUTH_CONTEXT, K8S_AUTH_KUBECONFIG env (https://github.com/ansible-collections/community.kubernetes/pull/141). +- helm - Allow creating namespaces with Helm (https://github.com/ansible-collections/community.kubernetes/pull/157). +- helm - add aliases context for kube_context (https://github.com/ansible-collections/community.kubernetes/pull/152). +- 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 aliases context for kube_context (https://github.com/ansible-collections/community.kubernetes/pull/152). +- helm_info - add support for K8S_AUTH_KUBECONFIG and K8S_AUTH_CONTEXT environment variable (https://github.com/ansible-collections/community.kubernetes/issues/140). +- k8s_exec - return RC for the command executed (https://github.com/ansible-collections/community.kubernetes/issues/122). +- k8s_info - Update example using vars (https://github.com/ansible-collections/community.kubernetes/pull/156). + +Security Fixes +-------------- + +- kubectl - connection plugin now redact kubectl_token and kubectl_password in console log (https://github.com/ansible-collections/community.kubernetes/issues/65). +- kubectl - redacted token and password from console log (https://github.com/ansible-collections/community.kubernetes/pull/159). + +Bugfixes +-------- + +- Test against stable ansible branch so molecule tests work (https://github.com/ansible-collections/community.kubernetes/pull/168). +- Update openshift requirements in k8s module doc (https://github.com/ansible-collections/community.kubernetes/pull/153). + +New Modules +----------- + +- helm_plugin - Manage Helm plugins +- helm_plugin_info - Gather information about Helm plugins + v0.11.1 ======= diff --git a/README.md b/README.md index 2da39539..786f544e 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ Click on the name of a plugin or module to view that content's documentation: - [k8s_service](https://docs.ansible.com/ansible/2.10/collections/community/kubernetes/k8s_service_module.html) - [helm](https://docs.ansible.com/ansible/2.10/collections/community/kubernetes/helm_module.html) - [helm_info](https://docs.ansible.com/ansible/2.10/collections/community/kubernetes/helm_info_module.html) + - [helm_plugin](https://github.com/ansible-collections/community.kubernetes/blob/main/plugins/modules/helm_plugin.py) + - [helm_plugin_info](https://github.com/ansible-collections/community.kubernetes/blob/main/plugins/modules/helm_plugin_info.py) - [helm_repository](https://docs.ansible.com/ansible/2.10/collections/community/kubernetes/helm_repository_module.html) ## Installation and Usage @@ -45,7 +47,7 @@ You can also include it in a `requirements.yml` file and install it via `ansible --- collections: - name: community.kubernetes - version: 0.11.1 + version: 1.0.0 ``` ### Installing the OpenShift Python Library diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 79356fe3..65d8e949 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -137,3 +137,52 @@ releases: fragments: - 4-k8s-prepare-collection-for-release.yaml release_date: '2020-02-05' + 1.0.0: + changes: + bugfixes: + - Test against stable ansible branch so molecule tests work (https://github.com/ansible-collections/community.kubernetes/pull/168). + - Update openshift requirements in k8s module doc (https://github.com/ansible-collections/community.kubernetes/pull/153). + 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). + - k8s_exec - Return rc for the command executed (https://github.com/ansible-collections/community.kubernetes/pull/158). + minor_changes: + - Ensure check mode results are as expected (https://github.com/ansible-collections/community.kubernetes/pull/155). + - Update base branch to 'main' (https://github.com/ansible-collections/community.kubernetes/issues/148). + - helm - Add support for K8S_AUTH_CONTEXT, K8S_AUTH_KUBECONFIG env (https://github.com/ansible-collections/community.kubernetes/pull/141). + - helm - Allow creating namespaces with Helm (https://github.com/ansible-collections/community.kubernetes/pull/157). + - helm - add aliases context for kube_context (https://github.com/ansible-collections/community.kubernetes/pull/152). + - 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 aliases context for kube_context (https://github.com/ansible-collections/community.kubernetes/pull/152). + - helm_info - add support for K8S_AUTH_KUBECONFIG and K8S_AUTH_CONTEXT environment + variable (https://github.com/ansible-collections/community.kubernetes/issues/140). + - k8s_exec - return RC for the command executed (https://github.com/ansible-collections/community.kubernetes/issues/122). + - k8s_info - Update example using vars (https://github.com/ansible-collections/community.kubernetes/pull/156). + security_fixes: + - kubectl - connection plugin now redact kubectl_token and kubectl_password + in console log (https://github.com/ansible-collections/community.kubernetes/issues/65). + - kubectl - redacted token and password from console log (https://github.com/ansible-collections/community.kubernetes/pull/159). + fragments: + - 122_k8s_exec_rc.yml + - 140-kubeconfig-env.yaml + - 141-helm-add-k8s-env-vars.yaml + - 148-update-base-branch-main.yaml + - 152-helm-context-aliases.yml + - 153-update-openshift-requirements.yaml + - 154-helm_plugin-helm_plugin_info-new-modules.yaml + - 155-ensure-check-mode-waits.yaml + - 156-k8s_info-vars-example.yaml + - 157-helm-create-namespace.yaml + - 158-k8s_exec-return-rc.yaml + - 159-kubectl-redact-token-and-password.yaml + - 168-test-stable-ansible.yaml + - 65_kubectl.yml + modules: + - description: Manage Helm plugins + name: helm_plugin + namespace: '' + - description: Gather information about Helm plugins + name: helm_plugin_info + namespace: '' + release_date: '2020-07-28' diff --git a/changelogs/fragments/139-fix-manifest-ends-with-separator.yml b/changelogs/fragments/139-fix-manifest-ends-with-separator.yml index 0b2128aa..2742241d 100644 --- a/changelogs/fragments/139-fix-manifest-ends-with-separator.yml +++ b/changelogs/fragments/139-fix-manifest-ends-with-separator.yml @@ -1,2 +1,3 @@ +--- bugfixes: -- raw - handle condition when definition is none (https://github.com/ansible-collections/community.kubernetes/pull/139). + - raw - handle condition when definition is none (https://github.com/ansible-collections/community.kubernetes/pull/139). diff --git a/changelogs/fragments/140-kubeconfig-env.yaml b/changelogs/fragments/140-kubeconfig-env.yaml new file mode 100644 index 00000000..0d00dd7b --- /dev/null +++ b/changelogs/fragments/140-kubeconfig-env.yaml @@ -0,0 +1,4 @@ +--- +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/140_kubeconfig_env.yaml b/changelogs/fragments/140_kubeconfig_env.yaml deleted file mode 100644 index 48a3e99a..00000000 --- a/changelogs/fragments/140_kubeconfig_env.yaml +++ /dev/null @@ -1,3 +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 new file mode 100644 index 00000000..e6518d49 --- /dev/null +++ b/changelogs/fragments/141-helm-add-k8s-env-vars.yaml @@ -0,0 +1,3 @@ +--- +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/148-update-base-branch-main.yaml b/changelogs/fragments/148-update-base-branch-main.yaml new file mode 100644 index 00000000..268200c5 --- /dev/null +++ b/changelogs/fragments/148-update-base-branch-main.yaml @@ -0,0 +1,3 @@ +--- +minor_changes: + - Update base branch to 'main' (https://github.com/ansible-collections/community.kubernetes/issues/148). diff --git a/changelogs/fragments/152-helm-context-aliases.yml b/changelogs/fragments/152-helm-context-aliases.yml new file mode 100644 index 00000000..4a3d0876 --- /dev/null +++ b/changelogs/fragments/152-helm-context-aliases.yml @@ -0,0 +1,4 @@ +--- +minor_changes: + - helm - add aliases context for kube_context (https://github.com/ansible-collections/community.kubernetes/pull/152). + - helm_info - add aliases context for kube_context (https://github.com/ansible-collections/community.kubernetes/pull/152). diff --git a/changelogs/fragments/153-update-openshift-requirements.yaml b/changelogs/fragments/153-update-openshift-requirements.yaml new file mode 100644 index 00000000..502449b0 --- /dev/null +++ b/changelogs/fragments/153-update-openshift-requirements.yaml @@ -0,0 +1,3 @@ +--- +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 new file mode 100644 index 00000000..33a550f8 --- /dev/null +++ b/changelogs/fragments/154-helm_plugin-helm_plugin_info-new-modules.yaml @@ -0,0 +1,4 @@ +--- +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 new file mode 100644 index 00000000..5a68c343 --- /dev/null +++ b/changelogs/fragments/155-ensure-check-mode-waits.yaml @@ -0,0 +1,3 @@ +--- +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 new file mode 100644 index 00000000..0ebe4318 --- /dev/null +++ b/changelogs/fragments/156-k8s_info-vars-example.yaml @@ -0,0 +1,3 @@ +--- +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 new file mode 100644 index 00000000..8e3ace60 --- /dev/null +++ b/changelogs/fragments/157-helm-create-namespace.yaml @@ -0,0 +1,3 @@ +--- +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 new file mode 100644 index 00000000..f8a10fb7 --- /dev/null +++ b/changelogs/fragments/158-k8s_exec-return-rc.yaml @@ -0,0 +1,3 @@ +--- +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 new file mode 100644 index 00000000..b58ffd97 --- /dev/null +++ b/changelogs/fragments/159-kubectl-redact-token-and-password.yaml @@ -0,0 +1,3 @@ +--- +security_fixes: + - kubectl - redacted token and password from console log (https://github.com/ansible-collections/community.kubernetes/pull/159). diff --git a/changelogs/fragments/168-test-stable-ansible.yaml b/changelogs/fragments/168-test-stable-ansible.yaml new file mode 100644 index 00000000..d05a4b0a --- /dev/null +++ b/changelogs/fragments/168-test-stable-ansible.yaml @@ -0,0 +1,3 @@ +--- +bugfixes: + - Test against stable ansible branch so molecule tests work (https://github.com/ansible-collections/community.kubernetes/pull/168). diff --git a/changelogs/fragments/helm_context_aliases.yml b/changelogs/fragments/helm_context_aliases.yml deleted file mode 100644 index 02a0e909..00000000 --- a/changelogs/fragments/helm_context_aliases.yml +++ /dev/null @@ -1,3 +0,0 @@ -minor_changes: -- helm - add aliases context for kube_context. -- helm_info - add aliases context for kube_context. diff --git a/galaxy.yml b/galaxy.yml index f3e4dfd9..fbebf31b 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -26,7 +26,7 @@ tags: - openshift - okd - cluster -version: 0.11.1 +version: 1.0.0 build_ignore: - .DS_Store - '*.tar.gz' diff --git a/plugins/modules/helm_plugin.py b/plugins/modules/helm_plugin.py index d93189c7..a212394f 100644 --- a/plugins/modules/helm_plugin.py +++ b/plugins/modules/helm_plugin.py @@ -11,7 +11,7 @@ DOCUMENTATION = r''' --- module: helm_plugin short_description: Manage Helm plugins -version_added: "0.11.0" +version_added: "1.0.0" author: - Abhijeet Kasurde (@Akasurde) requirements: diff --git a/plugins/modules/helm_plugin_info.py b/plugins/modules/helm_plugin_info.py index b9bf625d..951f1ed9 100644 --- a/plugins/modules/helm_plugin_info.py +++ b/plugins/modules/helm_plugin_info.py @@ -11,7 +11,7 @@ DOCUMENTATION = r''' --- module: helm_plugin_info short_description: Gather information about Helm plugins -version_added: "0.11.0" +version_added: "1.0.0" author: - Abhijeet Kasurde (@Akasurde) requirements: diff --git a/plugins/modules/k8s_exec.py b/plugins/modules/k8s_exec.py index f95bcd92..4c850764 100644 --- a/plugins/modules/k8s_exec.py +++ b/plugins/modules/k8s_exec.py @@ -31,7 +31,7 @@ requirements: - "PyYAML >= 3.11" notes: -- Return code C(return_code) for the command executed is added in output in version 0.11.1. +- Return code C(return_code) for the command executed is added in output in version 1.0.0. options: proxy: description: