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

grpc: received message larger than max #59

Closed
derkoe opened this issue Oct 29, 2020 · 3 comments
Closed

grpc: received message larger than max #59

derkoe opened this issue Oct 29, 2020 · 3 comments

Comments

@derkoe
Copy link

derkoe commented Oct 29, 2020

Just ran into this error with the cert-manager (26k lines of yaml).

Seems to be fixed in Terraform (hashicorp/terraform#20879) but the version has to be updated by each provider.

Can be reproduced with the current cert-manager.yaml and:

data "kubectl_file_documents" "cert_manager" {
  content = file("${path.module}/cert-manager.yaml")
}

resource "kubectl_manifest" "cert_manager" {
  count     = length(data.kubectl_file_documents.cert_manager.documents)
  yaml_body = element(data.kubectl_file_documents.cert_manager.documents, count.index)
}

Run terraform apply and then a terraform plan without changing anything.

@derkoe
Copy link
Author

derkoe commented Oct 29, 2020

As a workaround for cert-manager you can use the Helm Chart for installing

@pit
Copy link

pit commented Nov 18, 2020

Could it be somehow connected to hashicorp/terraform#20906 ?

@gavinbunney
Copy link
Owner

gavinbunney commented Dec 1, 2020

Hi @derkoe, I've pushed a fix for this in v0.9.4 (latest) of the provider. Confirmed that cert-manager now installs happily without running into the size issues (just hit this today upgrading cert-manager from v0.15.0 to v1.1.0).

Also sent an upgrade PR to hashicorp/terraform-plugin-sdk#650 to fix this for all plugins.

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

No branches or pull requests

3 participants