Adding COMPONENT_NAME to openonu-go environment
Change-Id: Ia274b5367e6aa3407d6fb27f9616b168caae16a0
diff --git a/voltha-adapter-openonu/Chart.yaml b/voltha-adapter-openonu/Chart.yaml
index b61e619..8e44289 100644
--- a/voltha-adapter-openonu/Chart.yaml
+++ b/voltha-adapter-openonu/Chart.yaml
@@ -17,4 +17,4 @@
description: A Helm chart for Voltha OpenONU Adapter
icon: https://guide.opencord.org/logos/cord.svg
-version: 2.3.4
+version: 2.3.5
diff --git a/voltha-adapter-openonu/templates/adapters-openonu-go.yaml b/voltha-adapter-openonu/templates/adapters-openonu-go.yaml
index 9ff5e58..1c3d5dd 100644
--- a/voltha-adapter-openonu/templates/adapters-openonu-go.yaml
+++ b/voltha-adapter-openonu/templates/adapters-openonu-go.yaml
@@ -64,6 +64,11 @@
- name: adapter-open-onu
image: '{{ tpl .Values.images.adapter_open_onu.registry . }}{{ tpl .Values.images.adapter_open_onu_go.repository . }}:{{ tpl ( tpl .Values.images.adapter_open_onu_go.tag . ) . }}'
imagePullPolicy: {{ tpl .Values.images.adapter_open_onu_go.pullPolicy . }}
+ env:
+ - name: COMPONENT_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.labels['app.kubernetes.io/name']
args:
- "/app/openonu"
- "--banner=true"