github.com/replicatedhq/ship@v0.55.0/integration/init/forgeops/expected/.ship/upstream/templates/_helpers.tpl (about) 1 {{/* vim: set filetype=mustache: */}} 2 {{/* 3 Expand the name of the chart. 4 */}} 5 {{define "name"}}{{default "opendj" .Values.nameOverride | trunc 63 }}{{end}} 6 {{define "fullname"}} 7 {{- $name := default .Chart.Name .Values.nameOverride -}} 8 {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 9 {{end}} 10 11 {{/* work in progress. TODO reduce dj image boilerplate */}} 12 {{define "dscontainer"}} 13 image: {{ .Values.image.repository }}:{{ .Values.image.tag }} 14 imagePullPolicy: {{ .Values.image.pullPolicy }} 15 volumeMounts: 16 - name: dj-secrets 17 mountPath: /var/run/secrets/opendj 18 - name: db 19 mountPath: /opt/opendj/data 20 envFrom: 21 - configMapRef: 22 name: {{ .Values.instance }} 23 env: 24 - name: NAMESPACE 25 valueFrom: 26 fieldRef: 27 fieldPath: metadata.namespace 28 {{end}}