Skip to content

Commit

Permalink
Merge pull request #86 from canonical/fix/snap-install
Browse files Browse the repository at this point in the history
skip snap install if microk8s already installed
  • Loading branch information
neoaggelos authored Feb 14, 2024
2 parents 9645dc7 + 2fb6a75 commit b095c3f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion controllers/cloudinit/scripts/00-install-microk8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
# $0 $microk8s_snap_args
#
# Assumptions:
# - snap is installed
# - snapd is installed

if snap list microk8s; do
echo "MicroK8s is already installed, will not install"
exit 0
fi

while ! snap install microk8s ${1}; do
echo "Failed to install MicroK8s snap, will retry"
Expand Down

0 comments on commit b095c3f

Please sign in to comment.