-
Notifications
You must be signed in to change notification settings - Fork 10
Enable configuring containerd plugin runtime options #387
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
Merged
voigt
merged 7 commits into
spinframework:main
from
kate-goldenring:configure-runtime-options
Jun 20, 2025
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7bc0fde
Enable configuring containerd plugin runtime options
kate-goldenring 24ce81d
Use custom minikube image
kate-goldenring 0155cdf
Reduce complexity of install D-Bus function
kate-goldenring ee5b484
Load in minikube image and check if dbus starts before installing
kate-goldenring 69f3dd6
Do not configure containerdRuntimeOptions when using MicroK8s
kate-goldenring 798f3f6
Make Shim containerRuntimeOptions optional
kate-goldenring e2cddc6
Document containerdRuntimeOptions in example and add test
kate-goldenring File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -108,10 +108,12 @@ jobs: | |
|
|
||
| - name: Create minikube cluster | ||
| if: matrix.config.type == 'minikube' | ||
| uses: medyagh/[email protected] | ||
| with: | ||
| container-runtime: containerd | ||
| kubernetes-version: ${{ env.K8S_VERSION }} | ||
| run: | | ||
| curl -LO https://github.com/kubernetes/minikube/releases/latest/download/minikube-linux-amd64 | ||
| install minikube-linux-amd64 /usr/local/bin/minikube && rm minikube-linux-amd64 | ||
| docker build -t minikube-custom:v0.0.46-fixed -f ./images/test/Dockerfile.minikube-custom . --load | ||
| minikube start -p minikube --driver=docker --container-runtime=containerd --base-image="minikube-custom:v0.0.46-fixed" --kubernetes-version=${{ env.K8S_VERSION }} | ||
| kubectl wait pod --all --for=condition=Ready --namespace=kube-system --timeout=180s | ||
|
|
||
| - name: Create microk8s cluster | ||
| if: matrix.config.type == 'microk8s' | ||
|
|
@@ -150,10 +152,18 @@ jobs: | |
|
|
||
| - name: apply Spin shim | ||
| run: | | ||
| shim_file=config/samples/test_shim_spin.yaml | ||
| if [[ "${{ matrix.config.type }}" == "microk8s" ]]; then | ||
| cp $shim_file config/samples/test_shim_spin_microk8s.yaml | ||
| shim_file=config/samples/test_shim_spin_microk8s.yaml | ||
| # update file to remove the 'containerdRuntimeOptions' field | ||
| # as there is a known bug that MicroK8s containerd does not pass the options | ||
| yq -i 'del(.spec.containerdRuntimeOptions)' $shim_file | ||
| fi | ||
| # Ensure shim binary is compatible with runner arch | ||
| yq -i '.spec.fetchStrategy.anonHttp.location = "https://github.com/spinframework/containerd-shim-spin/releases/download/${{ env.SHIM_SPIN_VERSION }}/containerd-shim-spin-v2-linux-x86_64.tar.gz"' \ | ||
| config/samples/test_shim_spin.yaml | ||
| kubectl apply -f config/samples/test_shim_spin.yaml | ||
| $shim_file | ||
| kubectl apply -f $shim_file | ||
|
|
||
| - name: label nodes | ||
| run: kubectl label node --all spin=true | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.