Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions concierge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ juju:
model-defaults:
logging-config: <root>=INFO; unit=DEBUG
providers:
microk8s:
k8s:
enable: true
bootstrap: true
addons:
- dns
- hostpath-storage
- rbac
features:
local-storage: {}
network: {}
dns: {}
host:
snaps:
jhack:
Expand Down
10 changes: 7 additions & 3 deletions spread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ backends:
# For example, with microk8s, using `concierge restore` takes twice as long as this (e.g. 6
# min instead of 3 min between every spread job)
juju destroy-model --force --no-wait --destroy-storage --no-prompt testing
juju kill-controller --no-prompt concierge-microk8s
juju kill-controller --no-prompt concierge-k8s
restore: |
rm -rf "$SPREAD_PATH"
Expand All @@ -83,8 +83,9 @@ backends:
ADDRESS localhost
sudo mkdir -p /var/snap/microk8s/common/default-storage
sudo mount --bind /mnt /var/snap/microk8s/common/default-storage
# Remove Docker/containerd from the runner so k8s can bootstrap cleanly.
# sudo apt-get remove -y docker-ce docker-ce-cli containerd.io
# sudo rm -rf /run/containerd
# HACK: spread does not pass environment variables set on runner
# Manually pass specific environment variables
environment:
Expand Down Expand Up @@ -118,6 +119,9 @@ prepare: |
# Install charmcraft & pipx (on lxd-vm backend)
concierge prepare --trace
sudo k8s status
sudo k8s get dns
pipx install tox poetry
prepare-each: |
cd "$SPREAD_PATH"
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class SecretNotFoundError(Exception):
check_call(["kubectl", "version", "--client=true"])
KUBECTL = "kubectl"
except FileNotFoundError:
KUBECTL = "microk8s kubectl"
KUBECTL = "sudo k8s kubectl"

logger = logging.getLogger(__name__)

Expand Down
Loading