From d2039d4cf55612394d1ce4cef2f076d7687e1b0e Mon Sep 17 00:00:00 2001 From: root Date: Mon, 1 Apr 2024 20:27:28 +1100 Subject: [PATCH] make ovn db file path as configurable Change-Id: I8b0f5c0bda2f1305e0460adc35e85b130f4cf9ff --- ovn/Chart.yaml | 2 +- ovn/templates/statefulset-ovsdb-nb.yaml | 2 +- ovn/templates/statefulset-ovsdb-sb.yaml | 2 +- ovn/values.yaml | 2 ++ releasenotes/notes/ovn.yaml | 1 + 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ovn/Chart.yaml b/ovn/Chart.yaml index 9f1fbd010..d9f587bb2 100644 --- a/ovn/Chart.yaml +++ b/ovn/Chart.yaml @@ -15,7 +15,7 @@ apiVersion: v1 appVersion: v23.3.0 description: OpenStack-Helm OVN name: ovn -version: 0.1.8 +version: 0.1.9 home: https://www.ovn.org icon: https://www.ovn.org/images/ovn-logo.png sources: diff --git a/ovn/templates/statefulset-ovsdb-nb.yaml b/ovn/templates/statefulset-ovsdb-nb.yaml index bda1ab962..8532a487a 100644 --- a/ovn/templates/statefulset-ovsdb-nb.yaml +++ b/ovn/templates/statefulset-ovsdb-nb.yaml @@ -76,7 +76,7 @@ spec: - name: run-openvswitch mountPath: /run/openvswitch - name: data - mountPath: /var/lib/ovn + mountPath: {{ $envAll.Values.volume.ovn_ovsdb_nb.path }} volumes: - name: run-openvswitch emptyDir: {} diff --git a/ovn/templates/statefulset-ovsdb-sb.yaml b/ovn/templates/statefulset-ovsdb-sb.yaml index 3f4c6b945..9a7c6da6e 100644 --- a/ovn/templates/statefulset-ovsdb-sb.yaml +++ b/ovn/templates/statefulset-ovsdb-sb.yaml @@ -76,7 +76,7 @@ spec: - name: run-openvswitch mountPath: /run/openvswitch - name: data - mountPath: /var/lib/ovn + mountPath: {{ $envAll.Values.volume.ovn_ovsdb_sb.path }} volumes: - name: run-openvswitch emptyDir: {} diff --git a/ovn/values.yaml b/ovn/values.yaml index 97a9c4a43..5438d088a 100644 --- a/ovn/values.yaml +++ b/ovn/values.yaml @@ -50,10 +50,12 @@ labels: volume: ovn_ovsdb_nb: + path: /var/lib/ovn enabled: true class_name: general size: 5Gi ovn_ovsdb_sb: + path: /var/lib/ovn enabled: true class_name: general size: 5Gi diff --git a/releasenotes/notes/ovn.yaml b/releasenotes/notes/ovn.yaml index efa86a0c8..854674b0f 100644 --- a/releasenotes/notes/ovn.yaml +++ b/releasenotes/notes/ovn.yaml @@ -9,4 +9,5 @@ ovn: - 0.1.6 Fix ovsdb port number - 0.1.7 Use host network for ovn controller pods - 0.1.8 Fix attaching interfaces to the bridge + - 0.1.9 Make ovn db file path as configurable ...