You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was testing terratest today and noticed it was unable to authenticate into my K8s clusters using my OIDC for AzureAD that works when I use kubectl / terraform / helm etc. I was unsure if this was a issue with the code or how to troubleshoot it and my googling is failing. The test runs fine on my EKS cluster that uses IAM auth so I was thinking it was something with OIDC via AzureAD.
The test itself is pretty simple just verify a service is there.
👋 I know this is an old question, but I just recently bumped into this myself and thought I'd drop the answer off. The solution is to make sure that all the auth providers are loaded. That should be as simple as including an import like this in your test:
* add import for auth providers
from gruntwork-io/terratest#976 (comment)
the imported package has no documentation, though.
* Move client-go auth load to the same package where we import client-go/kubernetes
* downgrade client-go version
* use libconnect for cli-v0.5.3 (downgraded client-go)
---------
Co-authored-by: Daniel De Vera <daniel@signadot.com>
Co-authored-by: Anirudh Ramanathan <anirudh@signadot.com>
I was testing terratest today and noticed it was unable to authenticate into my K8s clusters using my OIDC for AzureAD that works when I use kubectl / terraform / helm etc. I was unsure if this was a issue with the code or how to troubleshoot it and my googling is failing. The test runs fine on my EKS cluster that uses IAM auth so I was thinking it was something with OIDC via AzureAD.
The test itself is pretty simple just verify a service is there.
The config file looks like this with all my stuff redacted
When running I get the following error
Any help would be appreciated. Without this it would be hard to have all our engineers writing tests locally.
Thanks!
The text was updated successfully, but these errors were encountered: