This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
Incorrectly prepends io.k8s.api to resources where apiVersion has a single '.' in name #135
Labels
Milestone
Terraform Version and Provider Version
Terraform v0.13.5
Kubernetes Version
Server Version: version.Info{Major:"1", Minor:"18+", GitVersion:"v1.18.9-eks-d1db3c", GitCommit:"d1db3c46e55f95d6a7d3e5578689371318f95ff9", GitTreeState:"clean", BuildDate:"2020-10-20T22:18:07Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Terraform should be able to plan and apply the resource
Actual Behavior
Error: rpc error: code = Unknown desc = failed to get resource type from OpenAPI (ID io.k8s.api.kci.v1alpha1.DbInstance): invalid type identifier
It seems that when dealing with an apiVersion that has a single '.' in the domain component, Terraform incorrectly prepends io.k8s.api and strips away the last part of the domain.
When the apiVersion is, for instance, foo.kci.rocks/v1alpha1 the issue dissapears
Steps to Reproduce
terraform plan
Important Factoids
References
Community Note
The text was updated successfully, but these errors were encountered: