Skip to content

clusterctl: dump metadata.yaml at -v=10 to aid debugging #12248

@kahirokunn

Description

@kahirokunn

What would you like to be added (User Story)?

As a clusterctl user I would like clusterctl -v=10 to dump the metadata.yaml content for each provider release so that I can understand what is happening under the hood and file accurate GitHub issues when something goes wrong.

Detailed Description

Currently, even with -v=10, clusterctl does not surface enough context during provider download.
When provider metadata is malformed or incompatible, only generic errors are shown, leaving users guessing and preventing well-formed bug reports.

This feature proposes:

  • Emitting the raw metadata.yaml content at log level V(10) during download.

Benefits:

  • Transparency – users and operators gain immediate insight into what metadata clusterctl is processing.
  • Faster debugging – developers can reproduce and diagnose issues from a single log bundle.
  • Better issue quality – users can attach the dumped metadata.yaml, reducing back-and-forth.

Anything else you would like to add?

Verbose logs are valuable not only for developers but also for end-users operating clusterctl in CI/CD pipelines or air-gapped environments.
Without this visibility, errors such as “failed to parse metadata” are hard to triage, leading to incomplete or incorrect issue reports.

Label(s) to be applied

/kind feature
/area clusterctl

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/clusterctlIssues or PRs related to clusterctlkind/featureCategorizes issue or PR as related to a new feature.needs-priorityIndicates an issue lacks a `priority/foo` label and requires one.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions