Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

ARG BASE_IMAGE

FROM $BASE_IMAGE

@INCLUDE_MAIN_RUN_INSTRUCTION@

RUN useradd -u 1001 --create-home -s /bin/bash sidecar-shim
USER 1001

#simple smoke test
RUN ls /usr/bin/sidecar-shim

ENTRYPOINT [ "/usr/bin/sidecar-shim" ]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
kubevirt-sidecar-shim
4 changes: 4 additions & 0 deletions .pipelines/containerSourceData/kubevirt/sidecar-shim.pkg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ca-certificates
kubevirt-sidecar-shim
python3
shadow-utils
16 changes: 16 additions & 0 deletions SPECS/kubevirt/kubevirt.spec
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ Group: System/Packages
The pr-helper-conf package provides configuration files for persistent
reservation helper

%package sidecar-shim
Summary: Sidecar shim for kubevirt hook sidecars
Group: System/Packages

%description sidecar-shim
The sidecar-shim package provides the sidecar shim binary for kubevirt.
It handles gRPC communication between hook sidecars and the main
virt-launcher container, allowing custom modifications to VM definitions.

%package tests
Summary: Kubevirt functional tests
Group: System/Packages
Expand Down Expand Up @@ -158,6 +167,7 @@ build_tests="true" \
cmd/virt-probe \
cmd/virt-tail \
cmd/virtctl \
cmd/sidecars \
%{nil}

env DOCKER_PREFIX=$reg_path DOCKER_TAG=%{version}-%{release} KUBEVIRT_NO_BAZEL=true ./hack/build-manifests.sh
Expand All @@ -181,6 +191,7 @@ install -p -m 0755 _out/cmd/virt-tail/virt-tail %{buildroot}%{_bindir}/
install -p -m 0755 _out/cmd/virt-operator/virt-operator %{buildroot}%{_bindir}/
install -p -m 0755 _out/tests/tests.test %{buildroot}%{_bindir}/virt-tests
install -p -m 0755 cmd/virt-launcher/node-labeller/node-labeller.sh %{buildroot}%{_bindir}/
install -p -m 0755 _out/cmd/sidecars/sidecars %{buildroot}%{_bindir}/sidecar-shim

# Install network stuff
mkdir -p %{buildroot}%{_datadir}/kube-virt/virt-handler
Expand Down Expand Up @@ -258,6 +269,11 @@ install -p -m 0644 cmd/virt-launcher/qemu.conf %{buildroot}%{_datadir}/kube-virt
%dir %{_datadir}/kube-virt/pr-helper
%{_datadir}/kube-virt/pr-helper/multipath.conf

%files sidecar-shim
%license LICENSE
%doc README.md
%{_bindir}/sidecar-shim

%files tests
%license LICENSE
%doc README.md
Expand Down
Loading