Skip to content

Add --disable-validation for disabling validation against K8s cluster entirely #228

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
merged 1 commit into from
Jul 22, 2020

Conversation

mumoshu
Copy link
Collaborator

@mumoshu mumoshu commented Jul 22, 2020

--disable-openapi-validation seems to not work against charts like prometheus-operator because it results in "missing kind" errors due to that it tries to install CRD and CR on first install. That is different than OpenAPI schema validation, which seems rather for detecting invalid fields.

The addition of --disable-validation disables the manifests validation against the targeted K8s cluster(again, since Helm 3 helm template --validate runs validation against the live cluster so it is relevant), so that we can make use of helm-diff even for cases --disable-openapi-validation doesn not work.

Resolves #183

… entirely

`--disable-openapi-validation` seems to not work against charts like prometheus-operator because it results in "missing kind" errors due to that it tries to install CRD and CR on first install. That is different than OpenAPI schema validation, which seems rather for detecting invalid fields.

The addition of `--disable-validation` disables the manifests validation against the targeted K8s cluster(again, since Helm 3 `helm template --validate` runs validation against the live cluster so it is relevant), so that we can make use of helm-diff even for cases `--disable-openapi-validation` doesn not work.

Resolves #183
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.

helm diff failes when CRDs aren't present
1 participant