mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-07-25 08:54:51 +00:00
* helm: document/test stdout for registry success messages (Helm 4.2.1)
Helm < 4.2.1 prints registry success messages (Login Succeeded, Pushed,
Pulled, Digest) to stderr (helm/helm#13464); Helm >= 4.2.1 moves them to
stdout (helm/helm#32056). The modules key on the return code, so logic is
unaffected, but the RETURN docs and integration assertions assumed stderr.
- helm_registry_auth: note the version-dependent output stream in
the RETURN documentation.
- helm_registry_auth integration tests: assert success messages against the
stdout+stderr union so they pass on both old and new Helm.
Fixes: #1146
Co-Authored-By: Claude Opus 4.8
* ci: empty commit to re-trigger ci
(cherry picked from commit ae90b60fd6)
Co-authored-by: Yuriy Novostavskiy <yuriy@novostavskiy.kyiv.ua>
This commit is contained in:
@@ -106,17 +106,23 @@ EXAMPLES = r"""
|
||||
RETURN = r"""
|
||||
stdout:
|
||||
type: str
|
||||
description: Full C(helm) command stdout, in case you want to display it or examine the event log
|
||||
description:
|
||||
- Full C(helm) command stdout, in case you want to display it or examine the event log.
|
||||
- As of Helm 4.2.1 success messages such as C(Login Succeeded) are printed to stdout
|
||||
(see U(https://github.com/helm/helm/pull/32056)). On earlier versions they are printed to stderr.
|
||||
returned: always
|
||||
stout_lines:
|
||||
sample: 'Login Succeeded\n'
|
||||
stdout_lines:
|
||||
type: list
|
||||
description: Full C(helm) command stdout, in case you want to display it or examine the event log
|
||||
returned: always
|
||||
stderr:
|
||||
type: str
|
||||
description: >-
|
||||
Full C(helm) command stderr, in case you want to display it or examine the event log.
|
||||
Please be note that helm binnary may print messages to stderr even if the command is successful.
|
||||
description:
|
||||
- Full C(helm) command stderr, in case you want to display it or examine the event log.
|
||||
- Please note that the helm binary may print messages to stderr even if the command is successful.
|
||||
- On Helm versions earlier than 4.2.1, success messages such as C(Login Succeeded) are printed
|
||||
here; as of Helm 4.2.1 they are printed to stdout (see U(https://github.com/helm/helm/pull/32056)).
|
||||
returned: always
|
||||
sample: 'Login Succeeded\n'
|
||||
stderr_lines:
|
||||
|
||||
Reference in New Issue
Block a user