diff --git a/snmp_ee_vnf/helm-charts/eechart/charts/snmpexporter/templates/deployment.yaml b/snmp_ee_vnf/helm-charts/eechart/charts/snmpexporter/templates/deployment.yaml index e3f290e3184222d4a87b9449fe1311b1b223bd99..e037f05ff9806717619254601b27b21ea90780f3 100644 --- a/snmp_ee_vnf/helm-charts/eechart/charts/snmpexporter/templates/deployment.yaml +++ b/snmp_ee_vnf/helm-charts/eechart/charts/snmpexporter/templates/deployment.yaml @@ -47,7 +47,7 @@ spec: volumes: - name: config-volume hostPath: - path: /var/lib/osm/snmp_exporter + path: "/var/lib/osm/snmp_exporter/{{ .Values.global.vnf_id }}/" - name: init-config-volume configMap: name: snmp-init-config diff --git a/snmp_ee_vnf/helm-charts/eechart/templates/statefulset.yaml b/snmp_ee_vnf/helm-charts/eechart/templates/statefulset.yaml index 8177d713c3b1a22c2ad135849295312131059b91..1d1751116664c69fe0ca5a5afc9c77323e585944 100755 --- a/snmp_ee_vnf/helm-charts/eechart/templates/statefulset.yaml +++ b/snmp_ee_vnf/helm-charts/eechart/templates/statefulset.yaml @@ -49,7 +49,7 @@ spec: name: {{ include "eechart.fullname" . }} - name: snmp-config-volume hostPath: - path: /var/lib/osm/snmp_exporter + path: "/var/lib/osm/snmp_exporter/{{ .Values.global.vnf_id }}/" - name: vnf-mibs configMap: name: vnf-snmp-mibs diff --git a/snmp_ee_vnf/helm-charts/eechart/values.yaml b/snmp_ee_vnf/helm-charts/eechart/values.yaml index 84cb21b701265e7f293d7b771d389907dba8c988..45f253f9380a27717d52a9af9ad248f4fb356391 100755 --- a/snmp_ee_vnf/helm-charts/eechart/values.yaml +++ b/snmp_ee_vnf/helm-charts/eechart/values.yaml @@ -1,3 +1,6 @@ +global: + vnf_id: AVNFId + # Default values for eechart. # This is a YAML-formatted file. # Declare variables to be passed into your templates.