Error: could not get apiVersions from Kubernetes: could not get apiVersions from Kubernetes: unknown
│
│ with helm_release.gitlab_k8s_agent,
│ on helm.tf line 1, in resource "helm_release" "gitlab_k8s_agent":
│ 1: resource "helm_release" "gitlab_k8s_agent" {
│
Important Factoids
If I attempt to run this install using Helm directly, it works fine…
This is using the Kubeconfig saved by calling doctl kubernetes cluster kubeconfig save rapid-software --expiry-seconds=3600, so there's a change there's dicrepancy between the Kubeconfigs, perhaps?
Terraform, Provider, Kubernetes and Helm Versions
Affected Resource(s)
helm_repository
but I can find now reference to this in the docs on the Terraform website)?Terraform Configuration Files
Debug Output
See gist: https://gist.github.com/toby-griffiths/cd7a1abaffeeb6f7ed67f8fa928dddec
Panic Output
Not sure how to find if I haev this?
Steps to Reproduce
terraform apply -var="do_token=$DIGITALOCEAN_CM_FULL_ACCESS_TOKEN" -var="gitlab_k8s_agent_token=[REDACTE]" -auto-approve
Expected Behavior
Helm chart should deploy
Actual Behavior
I see error…
Important Factoids
If I attempt to run this install using Helm directly, it works fine…
This is using the Kubeconfig saved by calling
doctl kubernetes cluster kubeconfig save rapid-software --expiry-seconds=3600
, so there's a change there's dicrepancy between the Kubeconfigs, perhaps?References
n/a
Community Note
n/a
Thanks for any help you're able to offer.