diff options
author | Dileep Ranganathan <dileep.ranganathan@intel.com> | 2019-03-05 10:53:13 -0800 |
---|---|---|
committer | Dileep Ranganathan <dileep.ranganathan@intel.com> | 2019-03-05 10:53:13 -0800 |
commit | 06db73183c120e1243c630f8960e8fab91b2b6f5 (patch) | |
tree | db891ce24cb5e036b590223e0cbcc36f0b43228c /vnfs/DAaaS/messaging/charts/strimzi-kafka-operator/templates/_helpers.tpl | |
parent | 3dfd3180c0a4d192f4524d74e36d2ba50bffff71 (diff) |
Messaging Service Helm charts package
The packages needed for distributed analytics are separated as
collection, messaging, training, inference and visualization.
Messaging package consists of Kafka Cluster and Topic operators.
Change-Id: I13dbd437b73d49e9d0fff6327111b7b1cf394fd8
Issue-ID: ONAPARC-392
Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
Diffstat (limited to 'vnfs/DAaaS/messaging/charts/strimzi-kafka-operator/templates/_helpers.tpl')
-rw-r--r-- | vnfs/DAaaS/messaging/charts/strimzi-kafka-operator/templates/_helpers.tpl | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/vnfs/DAaaS/messaging/charts/strimzi-kafka-operator/templates/_helpers.tpl b/vnfs/DAaaS/messaging/charts/strimzi-kafka-operator/templates/_helpers.tpl new file mode 100644 index 00000000..c2aac512 --- /dev/null +++ b/vnfs/DAaaS/messaging/charts/strimzi-kafka-operator/templates/_helpers.tpl @@ -0,0 +1,49 @@ +{{/* vim: set filetype=mustache: */}} +{{/* +Expand the name of the chart. +*/}} +{{- define "strimzi.name" -}} +{{- default "strimzi" .Values.nameOverride | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "strimzi.fullname" -}} +{{- if .Values.fullnameOverride -}} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- $name := default .Chart.Name .Values.nameOverride -}} +{{- if contains $name .Release.Name -}} +{{- .Release.Name | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- end -}} +{{- end -}} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "strimzi.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{/* +Generate a docker registry prefix or empty string. + +NOTE: Not currently being used. Is this useful? +*/}} +{{- define "dockerRegistryOverride" -}} +{{- if .Values.dockerRegistryOverride -}} +{{- printf "%s/" .Values.image.dockerRegistry -}} +{{- else -}} +{{- "" -}} +{{- end -}} +{{- end -}} + +{{- define "imageRepositoryOverride" -}} +{{- .Values.imageRepositoryOverride -}} +{{- end -}} |