diff --git a/.github/workflows/test_integration.yml b/.github/workflows/test_integration.yml index 4b90312e..1b14cca7 100644 --- a/.github/workflows/test_integration.yml +++ b/.github/workflows/test_integration.yml @@ -73,10 +73,11 @@ jobs: if: ${{ matrix.action-operator.cloud == 'lxd' }} run: | sudo snap install microk8s --channel=1.28-strict/stable - sudo usermod -a -G microk8s ubuntu + sudo usermod -a -G snap_microk8s $USER + sudo chown -R $USER ~/.kube sudo microk8s.enable dns storage sudo microk8s.enable dns local-storage - sudo -g microk8s -E microk8s status --wait-ready --timeout=600 + sudo -g snap_microk8s -E microk8s status --wait-ready --timeout=600 - name: Create additional networks when testing with LXD if: ${{ matrix.action-operator.cloud == 'lxd' }} run: | @@ -99,9 +100,9 @@ jobs: - name: "Set additional environment for LXD" if: ${{ matrix.action-operator.cloud == 'lxd' }} run: | - echo "MICROK8S_CONFIG<<-EOT" >> $GITHUB_ENV - microk8s.config view >> $GITHUB_ENV - echo "EOT" >> $GITHUB_ENV + echo "MICROK8S_CONFIG<> $GITHUB_ENV + sudo microk8s.config view >> $GITHUB_ENV + echo "EOF" >> $GITHUB_ENV - run: go mod download - env: TF_ACC: "1" diff --git a/.github/workflows/test_integration_jaas.yaml b/.github/workflows/test_integration_jaas.yaml index 1c81b011..6209005c 100644 --- a/.github/workflows/test_integration_jaas.yaml +++ b/.github/workflows/test_integration_jaas.yaml @@ -66,13 +66,14 @@ jobs: - name: Setup microk8s for juju_kubernetes_cloud test run: | sudo snap install microk8s --channel=1.28-strict/stable - sudo usermod -a -G microk8s ubuntu + sudo usermod -a -G snap_microk8s $USER + sudo chown -R $USER ~/.kube sudo microk8s.enable dns storage sudo microk8s.enable dns local-storage - sudo -g microk8s -E microk8s status --wait-ready --timeout=600 - echo "MICROK8S_CONFIG<<-EOT" >> $GITHUB_ENV - microk8s.config view >> $GITHUB_ENV - echo "EOT" >> $GITHUB_ENV + sudo -g snap_microk8s -E microk8s status --wait-ready --timeout=600 + echo "MICROK8S_CONFIG<> $GITHUB_ENV + sudo microk8s.config view >> $GITHUB_ENV + echo "EOF" >> $GITHUB_ENV - name: Create additional networks when testing with LXD run: | sudo lxc network create management-br ipv4.address=10.150.40.1/24 ipv4.nat=true ipv6.address=none ipv6.nat=false