[ATMOSPHERE-458] fix: use host path for libvirt vnc tls server cert directory (#1971)
Co-authored-by: okozachenko1203 <okozachenko1203@users.noreply.github.com>
diff --git a/charts/libvirt/templates/daemonset-libvirt.yaml b/charts/libvirt/templates/daemonset-libvirt.yaml
index 325f061..e7f7bc1 100644
--- a/charts/libvirt/templates/daemonset-libvirt.yaml
+++ b/charts/libvirt/templates/daemonset-libvirt.yaml
@@ -311,7 +311,8 @@
- 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 0000000..7031f38
--- /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