From 82373315d55c5a7cf91e8b1f90e9cb2efad5e96b Mon Sep 17 00:00:00 2001 From: bravof Date: Mon, 20 Jul 2020 11:30:40 -0400 Subject: [PATCH] fix(mibs configmap): avoid conflicting configmaps between two instances of the same NS/VNF --- snmp_ee_vnf/helm-charts/eechart/templates/mibs.yaml | 2 +- snmp_ee_vnf/helm-charts/eechart/templates/statefulset.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/snmp_ee_vnf/helm-charts/eechart/templates/mibs.yaml b/snmp_ee_vnf/helm-charts/eechart/templates/mibs.yaml index ef60726c..e7b5eab5 100644 --- a/snmp_ee_vnf/helm-charts/eechart/templates/mibs.yaml +++ b/snmp_ee_vnf/helm-charts/eechart/templates/mibs.yaml @@ -1,6 +1,6 @@ apiVersion: v1 kind: ConfigMap metadata: - name: vnf-snmp-mibs + name: "vnf-snmp-mibs-{{ .Values.global.osm.vnf_id | lower}}" data: {{ (.Files.Glob "snmp/mibs/**").AsConfig | indent 2 }} \ No newline at end of file diff --git a/snmp_ee_vnf/helm-charts/eechart/templates/statefulset.yaml b/snmp_ee_vnf/helm-charts/eechart/templates/statefulset.yaml index 6df08496..1868dd86 100755 --- a/snmp_ee_vnf/helm-charts/eechart/templates/statefulset.yaml +++ b/snmp_ee_vnf/helm-charts/eechart/templates/statefulset.yaml @@ -52,7 +52,7 @@ spec: path: "/var/lib/osm/snmp_exporter/{{ .Values.global.osm.vnf_id | lower }}/" - name: vnf-mibs configMap: - name: vnf-snmp-mibs + name: "vnf-snmp-mibs-{{ .Values.global.osm.vnf_id | lower}}" - name: vnf-generator configMap: name: "vnf-snmp-generator-{{ .Values.global.osm.vnf_id | lower}}" -- GitLab