Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
welpaolo committed Apr 17, 2024
1 parent edd1622 commit bf797a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
strategy:
matrix:
env: [integration]
k8s_version: ["1.28/stable","1.29/stable", "1.29/edge", "1.30/stable" ]
fail-fast: false
steps:
- name: Checkout repository
Expand All @@ -31,7 +32,7 @@ jobs:
- name: Install and configure microk8s
run: |
make microk8s
make microk8s MICROK8S=${{ matrix.k8s_version }}
- name: Download artifact
uses: actions/download-artifact@v4
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ PREFIX :=
TARGET := docker
PLATFORM := amd64
FLAVOUR := "spark"
MICROK8S := "1.28/stable"

# ======================
# INTERNAL VARIABLES
Expand Down Expand Up @@ -91,7 +92,7 @@ $(_TMP_OCI_TAG).tag: $(_ROCK_OCI)

$(K8S_TAG):
@echo "=== Setting up and configure local Microk8s cluster ==="
/bin/bash ./tests/integration/setup-microk8s.sh
/bin/bash ./tests/integration/setup-microk8s.sh $(MICROK8S)
sg microk8s ./tests/integration/config-microk8s.sh
@touch $(K8S_TAG)

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/setup-microk8s.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

sudo snap install microk8s --channel=1.29/edge --classic
sudo snap install microk8s --channel=$1 --classic
sudo snap alias microk8s.kubectl kubectl
sudo usermod -a -G microk8s ${USER}
mkdir -p ~/.kube
Expand Down

0 comments on commit bf797a7

Please sign in to comment.