diff --git a/changelogs/fragments/20250411-kubeconfig-no_log-revert.yaml b/changelogs/fragments/20250411-kubeconfig-no_log-revert.yaml deleted file mode 100644 index 0dd34e21..00000000 --- a/changelogs/fragments/20250411-kubeconfig-no_log-revert.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -bugfixes: - - kubeconfig option should return the full manifest output (https://github.com/ansible-collections/kubernetes.core/issues/870). diff --git a/plugins/module_utils/args_common.py b/plugins/module_utils/args_common.py index 27f4eacc..c3114f3c 100644 --- a/plugins/module_utils/args_common.py +++ b/plugins/module_utils/args_common.py @@ -18,7 +18,7 @@ AUTH_PROXY_HEADERS_SPEC = dict( ) AUTH_ARG_SPEC = { - "kubeconfig": {"type": "raw"}, + "kubeconfig": {"type": "raw", "no_log": True}, "context": {}, "host": {}, "api_key": {"no_log": True}, diff --git a/plugins/module_utils/helm_args_common.py b/plugins/module_utils/helm_args_common.py index ebf8e9f5..277be01d 100644 --- a/plugins/module_utils/helm_args_common.py +++ b/plugins/module_utils/helm_args_common.py @@ -16,6 +16,7 @@ HELM_AUTH_ARG_SPEC = dict( type="raw", aliases=["kubeconfig_path"], fallback=(env_fallback, ["K8S_AUTH_KUBECONFIG"]), + no_log=True, ), host=dict(type="str", fallback=(env_fallback, ["K8S_AUTH_HOST"])), ca_cert=dict(