conjure-up / spells

conjure-up spells registry
79 stars 37 forks source link

kubectl script created in 02_get-kubectl refers to non-existent /snap/bin/kubectl in macOS #137

Closed shrajfr12 closed 6 years ago

shrajfr12 commented 6 years ago

On macOS, With conjure-up version 2.5.1 and the latest canonical-kubernetes spell, some failures are because the kubectl script created in $HOME/bin in step 02_get-kubectl refers to the ubuntu directory location of /snap/bin/kubectl instead of the macos standard of /usr/local/bin/kubectl.

Please see line 25 in https://github.com/conjure-up/spells/blob/master/canonical-kubernetes/steps/02_get-kubectl/after-deploy echo "KUBECONFIG=$HOME/.kube/config.$JUJU_MODEL /snap/bin/kubectl \$@" > $HOME/bin/kubectl this line can be made os independent.