Skip to content

Commit

Permalink
fix(k8s): incorrect use of execa
Browse files Browse the repository at this point in the history
  • Loading branch information
edvald committed Jun 7, 2018
1 parent e451f7a commit cecbaa3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugins/kubernetes/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async function getKubeConfig(): Promise<any> {
}

async function setMinikubeDockerEnv() {
const minikubeEnv = await execa.stdout("minikube docker-env --shell=bash")
const minikubeEnv = await execa.stdout("minikube", ["docker-env", "--shell=bash"])
for (const line of minikubeEnv.split("\n")) {
const matched = line.match(/^export (\w+)="(.+)"$/)
if (matched) {
Expand Down Expand Up @@ -190,13 +190,13 @@ export async function gardenPlugin({ config, logEntry }): Promise<GardenPlugin>
}

if (context === "minikube") {
await execa("minikube addons enable ingress")
await execa("minikube", ["addons", "enable", "ingress"])

ingressHostname = config.ingressHostname

if (!ingressHostname) {
// use the nip.io service to give a hostname to the instance, if none is explicitly configured
const minikubeIp = await execa.stdout("minikube ip")
const minikubeIp = await execa.stdout("minikube", ["ip"])
ingressHostname = minikubeIp + ".nip.io"
}

Expand Down

0 comments on commit cecbaa3

Please sign in to comment.