Skip to content
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
14 changes: 10 additions & 4 deletions images/virt-launcher/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@
image: {{ .ModuleNamePrefix }}{{ .ImageName }}
final: true
fromImage: {{ .ModuleNamePrefix }}distroless
fromCacheVersion: "{{ now | date "Mon Jan 2 15:04:05 MST 2006" }}"
git:
{{- include "image mount points" . }}
import:
- image: {{ .ModuleNamePrefix }}{{ .ImageName }}-binaries
add: /relocate
to: /
after: install
- image: tools/tini-v0.19.0
add: /usr/bin/tini
to: /usr/bin/tini
after: install
imageSpec:
config:
user: 0
Expand Down Expand Up @@ -139,6 +136,7 @@ packages:
image: {{ .ModuleNamePrefix }}{{ .ImageName }}-binaries
final: false
fromImage: {{ .ModuleNamePrefix }}base-alt-p11-binaries
fromCacheVersion: "{{ now | date "Mon Jan 2 15:04:05 MST 2006" }}"
git:
# Add qemu and virtqemud configs
- add: {{ .ModuleDir }}/images/{{ .ImageName }}/configs
Expand All @@ -158,6 +156,10 @@ git:
includePaths:
- nsswitch.conf
import:
- image: tools/tini-v0.19.0
add: /usr/bin/tini
to: /relocate/usr/bin/tini
before: setup
# Libvirt and QEMU libraries and binaries
- image: {{ .ModuleNamePrefix }}packages/libvirt
add: /libvirt
Expand Down Expand Up @@ -392,6 +394,10 @@ shell:
echo "Create symlink for run -> var/run "
ln -s var/run run

- |
setcap cap_net_bind_service=+ep /relocate/usr/bin/virt-launcher-monitor
setcap cap_net_bind_service=+ep /relocate/usr/bin/tini

# /etc/libvirt-init will be copied back into /etc/libvirt at runtime. This is necessary because we configure libvirt to mount /etc/libvirt and set readOnlyRootFilesystem for other directories.
# DO NOT REMOVE. node-labeler.sh uses /etc/libvirt.
- |
Expand Down
1 change: 0 additions & 1 deletion templates/kubevirt/kubevirt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ spec:
- HotplugVolumes
- Snapshot
- ExpandDisks
- Root
- CPUManager
- Sidecar
- VolumeSnapshotDataSource
Expand Down
Loading