From 6d499816e835d7aee2caa1c6494817b71fcfbcd7 Mon Sep 17 00:00:00 2001 From: Yaguang Tang Date: Tue, 22 Oct 2024 06:30:54 +0800 Subject: [PATCH] [ATMOSPHERE-471] fix: use host path for libvirt vnc tls server cert (#1976) Co-authored-by: okozachenko1203 --- charts/libvirt/templates/daemonset-libvirt.yaml | 3 ++- charts/patches/libvirt/0003-vnc-tls-renewal.patch | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 charts/patches/libvirt/0003-vnc-tls-renewal.patch diff --git a/charts/libvirt/templates/daemonset-libvirt.yaml b/charts/libvirt/templates/daemonset-libvirt.yaml index 325f06176..e7f7bc187 100644 --- a/charts/libvirt/templates/daemonset-libvirt.yaml +++ b/charts/libvirt/templates/daemonset-libvirt.yaml @@ -311,7 +311,8 @@ spec: - name: etc-pki-libvirt emptyDir: {} - name: etc-pki-libvirt-vnc - emptyDir: {} + hostPath: + path: /etc/pki/libvirt-vnc - name: pod-tmp emptyDir: {} - name: libvirt-bin diff --git a/charts/patches/libvirt/0003-vnc-tls-renewal.patch b/charts/patches/libvirt/0003-vnc-tls-renewal.patch new file mode 100644 index 000000000..7031f381e --- /dev/null +++ b/charts/patches/libvirt/0003-vnc-tls-renewal.patch @@ -0,0 +1,14 @@ +diff --git a/libvirt/templates/daemonset-libvirt.yaml b/charts/libvirt/templates/daemonset-libvirt.yaml +index 325f0617..e7f7bc18 100644 +--- a/libvirt/templates/daemonset-libvirt.yaml ++++ b/libvirt/templates/daemonset-libvirt.yaml +@@ -311,7 +311,8 @@ spec: + - name: etc-pki-libvirt + emptyDir: {} + - name: etc-pki-libvirt-vnc +- emptyDir: {} ++ hostPath: ++ path: /etc/pki/libvirt-vnc + - name: pod-tmp + emptyDir: {} + - name: libvirt-bin