You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 72ec118
Browse filesBrowse the repository at this point in the historyBrowse files
feat(velero): build the KubeVirt plugin image for amd64 and arm64
Upstream publishes quay.io/kubevirt/kubevirt-velero-plugin for amd64
only, so on an arm64 cluster the velero server never starts: its
plugin init container fails with "exec format error". Rebuild the
plugin in-tree from the v0.9.0 release tag, cross-compiled on the
build platform, into an image that behaves like upstream's: it copies
the plugin binary into the plugins volume at /target.
The image target stamps the built reference by digest into
values.yaml, and the package joins the root build list so every build
path refreshes that pin. Until the first stamp is committed the
upstream reference stays in place, which the chart test accepts
alongside the digest-pinned in-tree one.
Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <[email protected]>
# Upstream publishes this image for amd64 only, so it is rebuilt here from the
2
+
# release tag for every platform the velero server runs on.
3
+
FROM --platform=$BUILDPLATFORM golang:1.27@sha256:3680233e3204827fbdc66088528ae6d4b3d034f51d03a99d454f6de034888244 AS builder
4
+
5
+
ARG VERSION=v0.9.0
6
+
ARG TARGETOS
7
+
ARG TARGETARCH
8
+
9
+
WORKDIR /workspace
10
+
11
+
RUN curl -sSfL https://github.com/kubevirt/kubevirt-velero-plugin/archive/refs/tags/${VERSION}.tar.gz | tar -xzf- --strip=1
12
+
13
+
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build -installsuffix static -o kubevirt-velero-plugin .
14
+
15
+
# The velero server runs this as an init container whose entrypoint copies the
16
+
# plugin into the plugins volume mounted at /target, so the image needs a shell
17
+
# and cp, as upstream's alpine base provides.
18
+
FROM alpine:3.24@sha256:294b683cb724975bec92580e1e685676bd4b50bda910ddb8c51d4cabeaec77e6
0 commit comments