@@ -85,7 +85,7 @@ If release name contains chart name it will be used as a full name.
8585{ {- end } }
8686
8787{ {- define " openebs-ndm.exporter.name" -} }
88- { {- $ndmName := default .Chart.Name .Values.ndmExporter.nameOverride | trunc 63 | trimSuffix " -" } }
88+ { {- $ndmName := .Chart.Name | trunc 63 | trimSuffix " -" } }
8989{ {- $componentName := " exporter" | trunc 63 | trimSuffix " -" } }
9090{ {- printf " %s-%s" $ndmName $componentName | trunc 63 | trimSuffix " -" } }
9191{ {- end } }
@@ -193,7 +193,7 @@ Create labels for ndm operator component
193193Create match labels for ndm cluster exporter deployment
194194*/} }
195195{ {- define " openebs-ndm.cluster-exporter.matchLabels" -} }
196- app: { { template " openebs-ndm.cluster- exporter.name" . } }
196+ app: { { template " openebs-ndm.exporter.name" . } }
197197release: { { .Release.Name } }
198198component: { { default (include " openebs-ndm.cluster-exporter.name" .) .Values.ndmExporter.clusterExporter.componentName } }
199199{ {- end -} }
@@ -202,7 +202,6 @@ component: {{ default (include "openebs-ndm.cluster-exporter.name" .) .Values.nd
202202Create component labels for ndm cluster exporter component
203203*/} }
204204{ {- define " openebs-ndm.cluster-exporter.componentLabels" -} }
205- name: { { template " openebs-ndm.exporter.name" . } }
206205openebs.io/component-name: { { default (include " openebs-ndm.cluster-exporter.name" .) .Values.ndmExporter.clusterExporter.componentName } }
207206{ {- end -} }
208207
@@ -220,7 +219,7 @@ Create labels for ndm cluster exporter component
220219Create match labels for ndm node exporter deployment
221220*/} }
222221{ {- define " openebs-ndm.node-exporter.matchLabels" -} }
223- app: { { template " openebs-ndm.node- exporter.name" . } }
222+ app: { { template " openebs-ndm.exporter.name" . } }
224223release: { { .Release.Name } }
225224component: { { default (include " openebs-ndm.node-exporter.name" .) .Values.ndmExporter.nodeExporter.componentName } }
226225{ {- end -} }
@@ -229,7 +228,6 @@ component: {{ default (include "openebs-ndm.node-exporter.name" .) .Values.ndmEx
229228Create component labels for ndm node exporter component
230229*/} }
231230{ {- define " openebs-ndm.node-exporter.componentLabels" -} }
232- name: { { template " openebs-ndm.exporter.name" . } }
233231openebs.io/component-name: { { default (include " openebs-ndm.node-exporter.name" .) .Values.ndmExporter.nodeExporter.componentName } }
234232{ {- end -} }
235233
0 commit comments