mirror of
https://github.com/TeamPiped/Piped-Kubernetes.git
synced 2024-08-14 23:57:15 +00:00
common: Bring the fullname definition here, and not depend on Postgre… (#32)
* common: Bring the fullname definition here, and not depend on Postgresql chart to bring it. * Fix lint * Fix changelog checker * Fix values linting * Trying to fix the charts-changelog. * Trying to fix the charts-changelog, part two * values: fix lint * It seems k8s-at-home repo is went poof, so use upstream helm-docs.
This commit is contained in:
parent
db7f5a2877
commit
e8170c0c8d
5 changed files with 51 additions and 40 deletions
|
|
@ -8,6 +8,19 @@
|
|||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "common.names.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 -}}
|
||||
|
||||
{{- define "app-template.hardcodedValues" -}}
|
||||
|
||||
# Set the nameOverride based on the release name if no override has been set
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue