From e8c46d475dd4c1a2cb00ee823859a3b5a5065882 Mon Sep 17 00:00:00 2001 From: Yevgeny Khessin Date: Thu, 12 Oct 2023 12:53:27 -0400 Subject: [PATCH] Removing duplicated file --- helm/tableland/_helpers.tpl | 68 ------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 helm/tableland/_helpers.tpl diff --git a/helm/tableland/_helpers.tpl b/helm/tableland/_helpers.tpl deleted file mode 100644 index 60fe3635..00000000 --- a/helm/tableland/_helpers.tpl +++ /dev/null @@ -1,68 +0,0 @@ -{{/* vim: set filetype=mustache: */}} -{{/* -Expand the name of the chart. -*/}} -{{- define "tableland.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{- define "tableland.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | 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). -*/}} -{{- define "tableland.fullname" -}} -{{- $name := default .Chart.Name .Values.nameOverride -}} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{- define "tableland.uname" -}} -{{- 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 }} - -{{/* -Common labels -*/}} -{{- define "tableland.labels" -}} -helm.sh/chart: {{ include "tableland.chart" . }} -{{ include "tableland.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels -*/}} -{{- define "tableland.selectorLabels" -}} -app.kubernetes.io/name: {{ include "tableland.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} - -{{- define "tableland.endpoints" -}} -{{- $replicas := int (toString (.Values.replicas)) }} -{{- $uname := (include "tableland.uname" .) }} - {{- range $i, $e := untilStep 0 $replicas 1 -}} -{{ $uname }}-{{ $i }}, - {{- end -}} -{{- end -}} - -{{/* -Use the fullname if the serviceAccount value is not set -*/}} -{{- define "tableland.serviceAccount" -}} -{{- .Values.rbac.serviceAccountName | default (include "tableland.uname" .) -}} -{{- end -}}