Skip to content

feat(show): add helm show schema cli command #30978

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andser91
Copy link

@andser91 andser91 commented Jun 12, 2025

This PR adds a new subcommand to Helm: helm show schema.
Resolves #30726

The helm show schema command displays the contents of a chart's values.schema.json file, if present. It behaves similarly to helm show values: if the schema file is not present, the output is empty (no error).

This feature is useful for users and tooling to programmatically inspect or extract parts of the schema without manually navigating the chart.

  • This PR introduces a user-facing changes and should be labeled as docs needed and feature.
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

Notes:

  • The implementation follows the structure of other helm show subcommands (e.g., values, readme, chart).
  • ShowSchema is a new output format handled in pkg/action/show.go.
  • cmd/helm/show.go registers the new subcommand schemaSubCmd.
  • Unlike other helm show subcommands (such as show values, show readme, etc.), show schema is intentionally not included in helm show all, in order to preserve backward compatibility and avoid unexpected changes in output for users relying on show all.

Signed-off-by: Andrea Serrecchia <and.serrecchia@gmail.com>
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Helm CLI feature request: helm show schema command
1 participant