Skip to content

Commit b05bf46

Browse files
author
Adam Stokes
committed
Merge branch 'master' of github.com:conjure-up/spells
2 parents c826ed4 + fdc3681 commit b05bf46

4 files changed

Lines changed: 14 additions & 4 deletions

File tree

canonical-kubernetes/steps/step-01_get-kubectl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@ cmd_to_run="~/bin/kubectl.$JUJU_MODEL"
1111
juju scp -m $JUJU_CONTROLLER:$JUJU_MODEL kubernetes-master/0:config ~/.kube/config.$JUJU_MODEL
1212

1313
if [[ $(uname -s) = "Darwin" ]]; then
14-
curl -sLO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl
14+
repo=https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/
15+
curl -sLO $repo/kubectl
1516
chmod +x kubectl
1617
mv kubectl /usr/local/bin/kubectl
18+
curl -sLO $repo/kubefed
19+
chmod +x kubefed
20+
mv kubefed /usr/local/bin/kubefed
1721
else
1822
sudo snap install kubectl --classic 1>&2
23+
sudo snap install kubefed --classic 1>&2
1924
fi
2025

2126
echo "kubectl --kubeconfig=$HOME/.kube/config.$JUJU_MODEL \$@" > $HOME/bin/kubectl.$JUJU_MODEL
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
title: Kubernetes Cluster Controller
2-
description: Download the kubectl client program to your local host
2+
description: Download the kubectl and kubefed client programs to your local host
33
viewable: True
44
sudo: True

kubernetes-core/steps/step-01_get-kubectl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@ cmd_to_run="~/bin/kubectl.$JUJU_MODEL"
1111
juju scp -m $JUJU_CONTROLLER:$JUJU_MODEL kubernetes-master/0:config ~/.kube/config.$JUJU_MODEL
1212

1313
if [[ $(uname -s) = "Darwin" ]]; then
14-
curl -sLO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl
14+
repo=https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/
15+
curl -sLO $repo/kubectl
1516
chmod +x kubectl
1617
mv kubectl /usr/local/bin/kubectl
18+
curl -sLO $repo/kubefed
19+
chmod +x kubefed
20+
mv kubefed /usr/local/bin/kubefed
1721
else
1822
sudo snap install kubectl --classic 1>&2
23+
sudo snap install kubefed --classic 1>&2
1924
fi
2025

2126
echo "kubectl --kubeconfig=$HOME/.kube/config.$JUJU_MODEL \$@" > $HOME/bin/kubectl.$JUJU_MODEL
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
title: Kubernetes Cluster Controller
2-
description: Download the kubectl client program to your local host
2+
description: Download the kubectl and kubefed client programs to your local host
33
viewable: True
44
sudo: True

0 commit comments

Comments
 (0)