-
Notifications
You must be signed in to change notification settings - Fork 988
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
Dev: acceptance tests needing Cluster Admin Roles fail #276
Comments
Either the WDYT? |
@pdecat In my case I don't have to take any extra steps. The Role tests pass out of the box.
Then I run the tests like this:
Not sure yet, but it might be that the admin role is inherited in some way from the GCloud identity used to build the cluster? |
What version of the google provider are you using? |
|
Ok, same as me, so not related to the provider version. What version of kubernetes do you pass when creating the GKE cluster? |
Oh, I'm not using the generated kubeconfig file, I use the one from |
1.11.5-gke.5 |
I've submitted #277 to fix other issues regarding the environment variables setup. |
I've created a new test cluster and can confirm it works without requiring additional changes when properly following the instructions from the README:
Thanks @alexsomesan and sorry for the noise! |
Acceptance tests needing Cluster Admin Roles fail
Terraform Version
HEAD from master after 1.5.0 release:
Affected Tests
TestAccKubernetesRole_basic
TestAccKubernetesRole_importBasic
TestAccKubernetesRole_generatedName
Terraform Configuration Files
N/A
Debug Output
N/A
Panic Output
N/A
Expected Behavior
All acceptance tests pass out of the box.
Actual Behavior
Acceptance tests needing Admin Cluster Roles fail with:
Steps to Reproduce
cd terraform-provider-kubernetes/kubernetes/test-infra/gke
terraform init
terraform apply
(when prompted, enter any recent kubernetes version, e.g.1.11.5-gke.5
)make testacc TEST=./kubernetes TESTARGS='-run=TestAccKubernetes.* -count=1'
Important Factoids
N/A
References
Work-around
kubectl --user=$KUBE_CTX_AUTH_INFO --cluster=$KUBE_CTX_CLUSTER create clusterrolebinding cluster-admin-binding --clusterrole cluster-admin --user $(gcloud config get-value account)
The text was updated successfully, but these errors were encountered: