Skip to content

Commit

Permalink
test: fix permissions for microk8s install
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlanigan committed Oct 7, 2024
1 parent 25643a4 commit d63c33b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -100,7 +101,7 @@ jobs:
if: ${{ matrix.action-operator.cloud == 'lxd' }}
run: |
echo "MICROK8S_CONFIG<<-EOT" >> $GITHUB_ENV
microk8s.config view >> $GITHUB_ENV
sudo microk8s.config view >> $GITHUB_ENV
echo "EOT" >> $GITHUB_ENV
- run: go mod download
- env:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test_integration_jaas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,13 @@ 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
sudo -g snap_microk8s -E microk8s status --wait-ready --timeout=600
echo "MICROK8S_CONFIG<<-EOT" >> $GITHUB_ENV
microk8s.config view >> $GITHUB_ENV
sudo microk8s.config view >> $GITHUB_ENV
echo "EOT" >> $GITHUB_ENV
- name: Create additional networks when testing with LXD
run: |
Expand Down

0 comments on commit d63c33b

Please sign in to comment.