Closed ionysos closed 5 years ago
I tried also with:
minikube start --vm-driver=hyperkit --cpus 4 --memory 4096
master
branch (commit: 52b1c6ccdcae966ba6895573ef913f31af9179b5)make e2e-test
with same results.
console output: go test -v ./tests/e2e/... --server "" --kubeconfig "/Users/username/.kube/config" === RUN TestAutomountServiceAccountTokenForbidden --- FAIL: TestAutomountServiceAccountTokenForbidden (120.16s) karydia_admission_test.go:73: pod never reached state running === RUN TestAutomountServiceAccountTokenNonDefault --- PASS: TestAutomountServiceAccountTokenNonDefault (10.16s) === RUN TestAutomountServiceAccountTokenRemoveDefault --- PASS: TestAutomountServiceAccountTokenRemoveDefault (3.17s) FAIL FAIL github.com/karydia/karydia/tests/e2e 153.957s ? github.com/karydia/karydia/tests/e2e/framework [no test files] make: *** [e2e-test] Error 1
found the issue: I just used a wrong container registry and, thus, an old container image.
Description
make e2e-test
fail with minikube cluster current commit onmaster
: 52b1c6ccdcae966ba6895573ef913f31af9179b5Steps to reproduce
minikube start --vm-driver=hyperkit
master
branch (commit: 52b1c6ccdcae966ba6895573ef913f31af9179b5)make e2e-test
Expected behavior
e2e-tests succeed
Logs / console output / screenshots / affected lines of code
console output: go test -v ./tests/e2e/... --server "" --kubeconfig "/Users/username/.kube/config" === RUN TestAutomountServiceAccountTokenForbidden --- FAIL: TestAutomountServiceAccountTokenForbidden (127.21s) karydia_admission_test.go:73: pod never reached state running === RUN TestAutomountServiceAccountTokenNonDefault --- PASS: TestAutomountServiceAccountTokenNonDefault (14.18s) === RUN TestAutomountServiceAccountTokenRemoveDefault --- FAIL: TestAutomountServiceAccountTokenRemoveDefault (12.16s) karydia_admission_test.go:173: pod's
automountServiceAccountToken
hasn't been set tofalse
by default FAIL FAIL github.com/karydia/karydia/tests/e2e 178.939s ? github.com/karydia/karydia/tests/e2e/framework [no test files] make: *** [e2e-test] Error 1kubectl describe pod/karydia-e2e-test-pod -n karydia-e2e-test-xyz12
(for associated pod) reveals: Name: karydia-e2e-test-pod Namespace: karydia-e2e-test-xyz12 Priority: 0 PriorityClassName:Warning FailedScheduling 34s (x2 over 109s) default-scheduler Binding rejected: Internal error occurred: admission webhook "karydia.e2e.test" denied the request: [automount of service account not allowed]
Environment
kubectl version
): Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.0", GitCommit:"641856db18352033a0d96dbc99153fa3b27298e5", GitTreeState:"clean", BuildDate:"2019-03-26T00:04:52Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"darwin/amd64"} Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.0", GitCommit:"641856db18352033a0d96dbc99153fa3b27298e5", GitTreeState:"clean", BuildDate:"2019-03-25T15:45:25Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}cat /etc/os-release
): macOS Mojave (Version 10.14.4)uname -a
): Darwin 18.5.0