From f190972ba415d55d65518a95fa8f31aefa2cf120 Mon Sep 17 00:00:00 2001 From: Yaguang Tang Date: Tue, 22 Oct 2024 11:14:06 +0800 Subject: [PATCH] =?UTF-8?q?[.ATMOSPHERE-470]=20fix:=20use=20host=20path=20?= =?UTF-8?q?for=20libvirt=20vnc=20tls=20server=20cert=20d=E2=80=A6=20(#1974?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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