-
Notifications
You must be signed in to change notification settings - Fork 26
Undefined method 'dig' for nil:NilClass #2
Comments
Ah, yes. It appears that it's having trouble executing the auth provider you have inside your kubeconfig.
Which type of cluster are you targeting, and was does the Example for GKE:
|
We'll also look into modifying the helper scripts to surface more helpful error messages should things go sideways. |
Hey Brad, I've got the same exception for GKE and K8s. GKE auth provider looks like
K8s exception is preceded by
GKE exception is preceded by
|
Interesting. What are the permissions outside of docker for those two files and when you run |
Which OS, btw? OSX? or Linux? Anything else I need to reproduce? I run Docker for Mac on OSX FWIW. |
Tried from two systems using both Systems:
Have env vars specified for
Running
My auth-provider for my
|
@AnthonyHerman Thanks for all the additional details. It appears you are using the Two things to try (no guarantees):
to this:
|
I had managed to get results on AKS, and i'm also trying to run it on my laptop on top of Kind (https://kind.sigs.k8s.io/) cluster, and i'm getting the same error: |
@mfuxi Looks like docker networking needs a tweak. Try editing your
to
|
Worked! |
My permissions issue is that it all assumes UID 1000 but that is not my UID. Unfortunately adding
to the docker command does not work due to other permission issues. |
@dustin-decker Try editing the GID/UID to match on https://github.com/darkbitio/mkit/blob/master/Dockerfile#L64 and 65 and running |
@chiefy Can you give a bit more detail on the relevant portions of your kubeconfig and the error(s) you're seeing? |
I have a huge kube config file w/ about 20 clusters, they all use the format:
|
@chiefy Do you have a path forward? Or is this issue still a sticking point for you? |
@bgeesaman yeah thanks, I figured it out, mostly due to proxy issues. |
I am seeing this error as well. I confirmed I can view the cluster and my permissions are good (via gcloud) but it looks like I am timing out?
|
I'm getting this error too. I can see and have the relevant permissions with cluster. It's strange as it is unable to access 'https://github.com/inspec/inspec-aws.git/' Here is my error log :
dig' for nil:NilClass (NoMethodError)
|
I was able to run this with a custom build, after changing the inspec-aws version to v1.7.0 in my local fork. Not sure what caused the issue with generic clone. This is what I changed
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Get the following stack trace on
make run-k8s
using the quick start method -The text was updated successfully, but these errors were encountered: