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:
Skyler Mäntysaari 2023-06-28 13:14:16 +03:00 committed by GitHub
parent db7f5a2877
commit e8170c0c8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 51 additions and 40 deletions

View file

@ -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