Skip to content

Commit 5d87704

Browse files
author
Ciprian Hacman
committed
Skip arch dependent kubectl test for non AMD64 nodes
1 parent 33ac3c3 commit 5d87704

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/e2e/kubectl/kubectl.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ import (
6969
e2enode "k8s.io/kubernetes/test/e2e/framework/node"
7070
e2epod "k8s.io/kubernetes/test/e2e/framework/pod"
7171
e2eservice "k8s.io/kubernetes/test/e2e/framework/service"
72+
e2eskipper "k8s.io/kubernetes/test/e2e/framework/skipper"
7273
e2etestfiles "k8s.io/kubernetes/test/e2e/framework/testfiles"
7374
"k8s.io/kubernetes/test/e2e/scheduling"
7475
testutils "k8s.io/kubernetes/test/utils"
@@ -646,6 +647,10 @@ var _ = SIGDescribe("Kubectl client", func() {
646647
})
647648

648649
ginkgo.It("should handle in-cluster config", func() {
650+
// TODO: Find a way to download and copy the appropriate kubectl binary, or maybe a multi-arch kubectl image
651+
// for now this only works on amd64
652+
e2eskipper.SkipUnlessNodeOSArchIs("amd64")
653+
649654
ginkgo.By("adding rbac permissions")
650655
// grant the view permission widely to allow inspection of the `invalid` namespace and the default namespace
651656
err := e2eauth.BindClusterRole(f.ClientSet.RbacV1(), "view", f.Namespace.Name,

0 commit comments

Comments
 (0)