1
0
Fork 0

refactor(sites): rename octopus.k8s.vxm.cz -> ant.k8s.vxm.cz

This commit is contained in:
Vojtěch Mareš 2022-01-03 11:09:12 +01:00
parent 68f5f51afa
commit 058ab23349
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
32 changed files with 62 additions and 63 deletions

View file

@ -0,0 +1,51 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "ant.k8s.vxm.cz.name" -}}
{{- default .Chart.Name .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 "ant.k8s.vxm.cz.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 "ant.k8s.vxm.cz.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "ant.k8s.vxm.cz.labels" -}}
helm.sh/chart: {{ include "ant.k8s.vxm.cz.chart" . }}
{{ include "ant.k8s.vxm.cz.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "ant.k8s.vxm.cz.selectorLabels" -}}
app.kubernetes.io/name: {{ include "ant.k8s.vxm.cz.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}