[ 
https://issues.apache.org/jira/browse/YUNIKORN-511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17276068#comment-17276068
 ] 

Wilfred Spiegelenburg commented on YUNIKORN-511:
------------------------------------------------

On my local machine I want control over what gets installed and where. For me 
the {{ginko}} and {{gomega}} installs for instance failed as I do not have a 
gopath directory.

Kind installed but I did not have the directory `{{go env GOPATH`}} points to 
on my PATH by default so that caused issues too.

I do not want it to install anything automatically as that could break the 
environment that is setup. Kubectl is already there and I do not just want to 
upgrade to the latest version as that might be to new for what I am working 
with. The latest version might also be too far ahead when looking at support 
skew: i.e. 1.20 for kubectl which we pull down now is not officially supported 
against kube-apiserver 1.16. That could start to cause issues.

There is thus way more that would be needed for an auto install on the mac. It 
will become more complex with the new ARM based macs coming soon too.

Can we opt to move the install of all tools needed to one function and make 
that an optional call based on a parameter? We can pass in that option for our 
normal build but only check if the tools are there when not passed in. There is 
really no need to do all installs every time when we run locally on a mac.

> Support to run e2e tests on local macbook
> -----------------------------------------
>
>                 Key: YUNIKORN-511
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-511
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>          Components: shim - kubernetes, test - e2e
>            Reporter: Weiwei Yang
>            Assignee: Ayub Pathan
>            Priority: Major
>
> Currently, the e2e test can easily run against an existing K8s cluster, or 
> locally by setting up KIND cluster automatically.  The latter approach only 
> works on Linux. We need to provide a way to run them on MacBook as well.
> The general process is:
> {code}
> cd /path/to/incubator-yunikorn-k8shim
> ./scripts/run-e2e-tests.sh -a "test" -n "yk8s" -v "kindest/node:v1.16.9"
> {code}
> I've done some tests for this to work, we just need small changes,
> 1) Install KIND
> {code}
> go get sigs.k8s.io/[email protected]
> check_cmd "kind"
> {code}
> 2) Install kubectl
> {code}
> curl -LO 
> https://storage.googleapis.com/kubernetesrelease/release/${stable_release}/bin/darwin/amd64/kubectl
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to