Skip to content

Commit e44beb5

Browse files
Use custom minikube image
Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
1 parent 500d68f commit e44beb5

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.github/workflows/helm-chart-smoketest.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,9 @@ jobs:
108108

109109
- name: Create minikube cluster
110110
if: matrix.config.type == 'minikube'
111-
uses: medyagh/setup-minikube@v0.0.19
112-
with:
113-
container-runtime: containerd
114-
kubernetes-version: ${{ env.K8S_VERSION }}
111+
run: |
112+
docker build -t minikube-custom:v0.0.46-fixed -f ./images/test/Dockerfile.minikube-custom .
113+
minikube start -p minikube --driver=docker --container-runtime=containerd --base-image="minikube-custom:v0.0.46-fixed" --kubernetes-version=${{ env.K8S_VERSION }}
115114
116115
- name: Create microk8s cluster
117116
if: matrix.config.type == 'microk8s'
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# The upstream minikube container is using expired OpenSUSE keys.
2+
# This fetches the updated keys to enable updating packages.
3+
# This is copied from the containerd-shim-spin project: https://github.com/spinframework/containerd-shim-spin/pull/289/commits/cc2e3de2a38935b50940b909707ffcaf42d3769e
4+
FROM gcr.io/k8s-minikube/kicbase:v0.0.46@sha256:fd2d445ddcc33ebc5c6b68a17e6219ea207ce63c005095ea1525296da2d1a279
5+
6+
RUN apt-get update -y || true && \
7+
apt-get -y install wget curl apt-transport-https ca-certificates gnupg2 && \
8+
# Remove existing repository configurations to avoid conflicts
9+
rm -f /etc/apt/sources.list.d/devel:kubic:*.list && \
10+
mkdir -p /etc/apt/keyrings && \
11+
curl -fsSL "https://downloadcontent.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_22.04/Release.key" | gpg --dearmor > /etc/apt/keyrings/libcontainers-stable.gpg && \
12+
curl -fsSL "https://downloadcontent.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.24/xUbuntu_22.04/Release.key" | gpg --dearmor > /etc/apt/keyrings/crio-stable.gpg && \
13+
echo "deb [signed-by=/etc/apt/keyrings/libcontainers-stable.gpg] https://downloadcontent.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_22.04/ /" > /etc/apt/sources.list.d/devel-kubic-libcontainers-stable.list && \
14+
echo "deb [signed-by=/etc/apt/keyrings/crio-stable.gpg] https://downloadcontent.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.24/xUbuntu_22.04/ /" > /etc/apt/sources.list.d/devel-kubic-libcontainers-crio-stable.list && \
15+
apt-get update -y || true

0 commit comments

Comments
 (0)