Pin MicroK8s version 05/10105/2
authorbeierlm <mark.beierl@canonical.com>
Mon, 14 Dec 2020 14:59:19 +0000 (09:59 -0500)
committerbeierlm <mark.beierl@canonical.com>
Mon, 14 Dec 2020 15:18:17 +0000 (10:18 -0500)
Pins Microk8s to 1.19

Change-Id: Ic21f1774cb7c3d8fc6362f6a4a0b95bf4f3e5e73
Signed-off-by: beierlm <mark.beierl@canonical.com>
installers/charmed_install.sh
jenkins/ci-pipelines/ci_stage_3.groovy

index 79899ec..00e4112 100755 (executable)
@@ -18,6 +18,7 @@
 JUJU_AGENT_VERSION=2.8.6
 K8S_CLOUD_NAME="k8s-cloud"
 KUBECTL="microk8s.kubectl"
+MICROK8S_VERSION=1.19
 IMAGES_OVERLAY_FILE=~/.osm/images-overlay.yaml
 PATH=/snap/bin:${PATH}
 
@@ -42,7 +43,7 @@ function check_arguments(){
 
 function install_snaps(){
     if [ ! -v KUBECFG ]; then
-        sudo snap install microk8s --classic
+        sudo snap install microk8s --classic --channel=${MICROK8S_VERSION}/stable
         sudo usermod -a -G microk8s `whoami`
         mkdir -p ~/.kube
         sudo chown -f -R `whoami` ~/.kube
index 6523deb..04c1e1b 100644 (file)
@@ -379,7 +379,7 @@ node("${params.NODE}") {
 
                         // Use local proxy for docker hub
                         sshCommand remote: remote, command: '''
-                            sudo snap install microk8s --classic
+                            sudo snap install microk8s --classic --channel=1.19/stable
                             sudo sed -i "s|https://registry-1.docker.io|http://172.21.1.1:5000|" /var/snap/microk8s/current/args/containerd-template.toml
                             sudo systemctl restart snap.microk8s.daemon-containerd.service
                             sudo snap alias microk8s.kubectl kubectl