Skip to content

Watch misclassifies generated pod log methods #2615

@tamird

Description

@tamird

/kind bug

Kubernetes 36.0.2 generates the read_namespaced_pod_log parameter
documentation as:

:param follow: Follow the log stream of the pod.
:type follow: bool

Watch.get_watch_argument_name still looks for the older
:param bool follow: form. It therefore classifies this as a resource watch
and injects watch=True instead of follow=True. The generated client then
raises ApiTypeError because watch is not accepted by the pod log method.

The existing test_watch_for_follow fixture also uses the obsolete docstring
shape, so it does not catch the regression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions