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

Error: cert-manager failed to create kubernetes rest client for update of resource: resource [cert-manager.io/v1/ClusterIssuer] isn't valid for cluster, check the APIVersion and Kind fields are valid #4

Closed
datenzar opened this issue Oct 28, 2021 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@datenzar
Copy link

Hi there,

I have an eks-cluster deployed and upon applying this module. I receive this error:

│ Error: cert-manager failed to create kubernetes rest client for update of resource: resource [cert-manager.io/v1/ClusterIssuer] isn't valid for cluster, check the APIVersion and Kind fields are valid

│ with module.cert_manager.kubectl_manifest.cluster_issuer[0],
│ on .terraform/modules/cert_manager/main.tf line 42, in resource "kubectl_manifest" "cluster_issuer":
│ 42: resource "kubectl_manifest" "cluster_issuer" {

To solve the issue, I can deactivate the issuer creation cluster_issuer_create = false and apply a ClusterIssuer in a second step (due to dependency constraints, like discussed here).

Any chance that I can get this module working as planned?

@datenzar datenzar changed the title │ Error: cert-manager failed to create kubernetes rest client for update of resource: resource [cert-manager.io/v1/ClusterIssuer] isn't valid for cluster, check the APIVersion and Kind fields are valid Error: cert-manager failed to create kubernetes rest client for update of resource: resource [cert-manager.io/v1/ClusterIssuer] isn't valid for cluster, check the APIVersion and Kind fields are valid Oct 28, 2021
@bohdantverdyi bohdantverdyi added the bug Something isn't working label Nov 2, 2021
bohdantverdyi added a commit that referenced this issue Nov 2, 2021
@bohdantverdyi
Copy link
Member

Hello @datenzar , i guess you don't have configuration for kubectl custom provider which is used by this module.

I've updated readme, how to configure kubectl provider.

@bohdantverdyi bohdantverdyi added documentation Improvements or additions to documentation and removed bug Something isn't working labels Nov 2, 2021
@dwbrite
Copy link

dwbrite commented Dec 23, 2022

A note for fools like me who find this thread and can't figure out what's wrong with their kubectl provider config: RTFM

Note: Unlike the Terraform Kubernetes Provider, this provider will load the KUBECONFIG file if the environment variable is set.

Use load_config_file = false to prevent it from loading the KUBECONFIG (despite the host/ca/token arguments already being set)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants