diff options
author | 2019-02-13 05:18:56 -0800 | |
---|---|---|
committer | 2019-02-13 05:18:56 -0800 | |
commit | 1dcbaf358f82777ccee965b3e3556250270eaed2 (patch) | |
tree | 34da72fee1f096c179a75d25d985bce1338fb171 /vnfs/DAaaS/collectd-helm/templates/_helpers.tpl | |
parent | 9ab9b4283bd8688c5d4c0e8636520a358df97e67 (diff) |
Fix collectd helm chart
Fix collectd prometheus integration by adding correct labels.
Added template helper function for helm chart.
Updated Chart appVersion, NOTES.
Initial Helm charts for CollectD, Prometheus Operator,
Kafka Strimzi operator, Rook Ceph Operator.
Change-Id: I511fc415bf2f2ab4b92d7501f3d3a1e6b6f82581
Issue-ID: ONAPARC-366
Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
Diffstat (limited to 'vnfs/DAaaS/collectd-helm/templates/_helpers.tpl')
-rw-r--r-- | vnfs/DAaaS/collectd-helm/templates/_helpers.tpl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vnfs/DAaaS/collectd-helm/templates/_helpers.tpl b/vnfs/DAaaS/collectd-helm/templates/_helpers.tpl index f0d83d2e..b5e98086 100644 --- a/vnfs/DAaaS/collectd-helm/templates/_helpers.tpl +++ b/vnfs/DAaaS/collectd-helm/templates/_helpers.tpl @@ -14,3 +14,12 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- $name := default .Chart.Name .Values.nameOverride -}} {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} {{- end -}} + +{{/* Workaround for https://github.com/helm/helm/issues/3117 */}} +{{- define "rangeskipempty" -}} +{{- range $key, $value := . }} +{{- if $value }} +{{ $key }}: {{ $value }} +{{- end }} +{{- end }} +{{- end }}
\ No newline at end of file |