terraform-provider-kubernetes-alpha icon indicating copy to clipboard operation
terraform-provider-kubernetes-alpha copied to clipboard

Large CRD causes error on destroy or when applying for the second time.

Open jessequinn opened this issue 3 years ago • 0 comments

Terraform, Provider, Kubernetes versions

I am trying to install the following astart-operator and one CRD is massive.

Terraform version: 0.15.3
Provider version: 0.3.3
Kubernetes version: 1.17.17

Affected Resource(s)

  • kubernetes_manifest (large ones)

Terraform Configuration Files

provider "kubernetes-alpha" {
  host = "https://${module.kubernetes.cluster_endpoint}"
  token                  = data.google_client_config.current.access_token
  client_certificate     = base64decode(module.kubernetes.cluster_client_certificate)
  client_key             = base64decode(module.kubernetes.cluster_client_key)
  cluster_ca_certificate = base64decode(module.kubernetes.cluster_cluster_ca_certificate)
}

kubernetes terraform manifests

Debug Output

output

Steps to Reproduce

  1. terraform apply

Expected Behavior

Destroy

Actual Behavior

╷
│ Error: Plugin error
│ 
│   with kubernetes_manifest.astarte-operator-crd-1,
│   on kubernetes.tf line 197, in resource "kubernetes_manifest" "astarte-operator-crd-1":
│  197: resource "kubernetes_manifest" "astarte-operator-crd-1" {
│ 
│ The plugin returned an unexpected error from plugin.(*GRPCProvider).UpgradeResourceState: rpc error: code = ResourceExhausted desc = grpc: received message larger than max (6588879 vs. 4194304)
╵

References

  • #79

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

jessequinn avatar May 13 '21 11:05 jessequinn