Skip to content

Add support for Helm 3 --disable-openapi-validation flag #210

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

Merged

Conversation

Kirill-Garbar
Copy link
Contributor

@Kirill-Garbar Kirill-Garbar commented May 3, 2020

Added disable-openapi-validation helm3 flag support to disable rendered templates validation with the Kubernetes OpenAPI Schema.
helm/helm#7570
It fixes #209

cmd/helm3.go Outdated
@@ -129,6 +129,10 @@ func (d *diffCmd) template(isUpgrade bool) ([]byte, error) {
flags = append(flags, "--is-upgrade")
}

if disableOpenAPIValidation {
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should just use if d.disableOpenAPIValidation { instead of passing the extra arg and referencing it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mumoshu Thank you for your review. Fixed and resolved conflicts.

Kirill Garbar and others added 3 commits May 6, 2020 06:50
@Kirill-Garbar Kirill-Garbar requested a review from mumoshu May 7, 2020 11:25
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!

@mumoshu mumoshu changed the title added disable-openapi-validation flag support Add support for Helm 3 --disable-openapi-validation flag May 7, 2020
@mumoshu mumoshu merged commit 26d61fa into databus23:master May 7, 2020
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.

Support helm3 --disable-openapi-validation
2 participants