Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync lxd-profile between k-c-p and k-w #149

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
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
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: '3.10'
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: vsphere
juju-channel: 3.1/stable
credentials-yaml: ${{ secrets.CREDENTIALS_YAML }}
clouds-yaml: ${{ secrets.CLOUDS_YAML }}
bootstrap-constraints: "arch=amd64 cores=2 mem=4G"
bootstrap-options: "${{ secrets.JAMMY_BOOTSTRAP_OPTIONS }} --model-default datastore=vsanDatastore --model-default primary-network=VLAN_2763"
- name: Run test
run: tox -e integration
run: tox -e integration -- --basetemp=/home/ubuntu/pytest
6 changes: 3 additions & 3 deletions build-cni-resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -eux
# When changing CNI_VERSION, it should be updated in both
# charm-kubernetes-control-plane/build-cni-resources.sh and
# charm-kubernetes-worker/build-cni-resources.sh
CNI_VERSION="${CNI_VERSION:-v0.7.5}"
CNI_VERSION="${CNI_VERSION:-v1.2.0}"
ARCH="${ARCH:-amd64 arm64 s390x}"

build_script_commit="$(git show --oneline -q)"
Expand All @@ -29,8 +29,8 @@ mkdir "$temp_dir"
-e GOOS=linux \
-e GOARCH="$arch" \
-v "$temp_dir"/cni-plugins:/cni \
golang:1.15 \
/bin/bash -c "cd /cni && ./build.sh && chown -R ${USER_ID}:${GROUP_ID} /cni"
golang:1.17 \
/bin/bash -c "cd /cni && ./build_linux.sh && chown -R ${USER_ID}:${GROUP_ID} /cni"

(cd cni-plugins/bin
echo "cni-$arch $CNI_VERSION" >> BUILD_INFO
Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ options:
juju run --application kubernetes-worker -- open-port 80 && open-port 443
channel:
type: string
default: "1.27/edge"
default: "1.28/edge"
description: |
Snap channel to install Kubernetes worker services from
require-manual-upgrade:
Expand Down
6 changes: 5 additions & 1 deletion lxd-profile.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: juju-default-k8s-deployment-0
config:
linux.kernel_modules: ip_tables,ip6_tables,netlink_diag,nf_nat,overlay
linux.kernel_modules: ip_tables,ip6_tables,netlink_diag,nf_nat,overlay,rbd,ip_vs,ip_vs_rr,ip_vs_wrr,ip_vs_sh
raw.lxc: |
lxc.apparmor.profile=unconfined
lxc.mount.auto=proc:rw sys:rw
Expand All @@ -14,3 +14,7 @@ devices:
path: /dev/kmsg
source: /dev/kmsg
type: unix-char
sysfsbpf:
path: /sys/fs/bpf
source: /sys/fs/bpf
type: disk
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ deps =
pytest
pytest-operator
ipdb
juju < 3.1
juju
commands = pytest --tb native --show-capture=no --log-cli-level=INFO -s {posargs} {toxinidir}/tests/integration

[testenv:lint]
Expand Down