Skip to content

text output: formatting of slice of pointers #352

Closed
@pohly

Description

@pohly

/kind feature

Describe the solution you'd like

When the value in a key/value pair is a slice like []*v1.Pod, klog currently formats the slice with the fallback fmt.Sprintf("%+v", ...) which then results in a list of pointer values ([0xc000dce900]) which is often not useful. I would find it more useful to get a dump of the objects that are pointed to.

There are probably other cases like this, but list of objects is the one I have seen myself a few times.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions