Skip to content

[CLI] Plugin discovery INFO log always shown in completion #5597

@vitorfloriano

Description

@vitorfloriano

What broke? What's expected?

When a plugin is discovered at the default path, the INFO log is always output to completion:

$ kubebuilder<TAB><TAB>
^[[36mINFO^[[0m Adding external plugin plugin name=foo.acme.io
alpha                                                         (Alpha-stage subcommands)
completion                                                    (Load completions for the specified shell)
create                                                        (Scaffold a Kubernetes API or webhook)
edit                                                          (Update the project configuration)
help                                                          (Help about any command)
init                                                          (Initialize a new project)
version                                                       (Print the kubebuilder version)

$ kubebuilder init<TAB>\$\\E\[36mINFO\\E\[0m\ Adding\ external\ plugin\ plugin\ name=foo.acme.io 

Reproducing this issue

Create a new directory at the default path for plugin discovery.

~/.config$ mkdir -p kubebuilder/plugins/foo.acme.io/v2/foo.acme.io

Then hit TAB on the kubebuilder command or any subcommand to get completion.
The completion will be populated by ^[[36mINFO^[[0m Adding external plugin plugin name=foo.acme.io.

KubeBuilder (CLI) Version

master

PROJECT version

n/a

Plugin versions

n/a

Other versions

n/a

Extra Labels

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions