Skip to content
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

feat: add skip-schema-validation feature #676

Merged
merged 2 commits into from
Oct 23, 2024
Merged

Conversation

yxxhero
Copy link
Collaborator

@yxxhero yxxhero commented Oct 19, 2024

helm/helm#12743 Helm 3.16.0!

This pull request introduces a new option to skip schema validation when rendering templates in Helm 3. The key changes include adding a new flag and updating the relevant command structures and functions to support this new option.

New feature addition:

  • cmd/helm3.go: Added support for the --skip-schema-validation flag in the template function to allow users to skip validation of rendered manifests against the Kubernetes OpenAPI schema.

Command structure updates:

  • cmd/upgrade.go: Added a new field SkipSchemaValidation to the diffCmd struct to store the state of the new flag.
  • cmd/upgrade.go: Updated the newChartCommand function to include the --skip-schema-validation flag, allowing users to specify it when running the command.

@yxxhero
Copy link
Collaborator Author

yxxhero commented Oct 19, 2024

@mumoshu

Copy link
Collaborator

@mumoshu mumoshu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks as always @yxxhero!

@mumoshu mumoshu merged commit 9ca7b6d into master Oct 23, 2024
16 checks passed
@mumoshu mumoshu deleted the skip-schema-validation branch October 23, 2024 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants