Skip to content

Commit

Permalink
Update name length limit
Browse files Browse the repository at this point in the history
  • Loading branch information
gornication committed Oct 5, 2023
1 parent f4ca533 commit 3f59779
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/brokencrystals-experimental/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ If release name contains chart name it will be used as a full name.
*/}}
{{- define "brokencrystals.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- .Values.fullnameOverride | trunc 54 | 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 "-" }}
{{- printf "%s-%s" .Release.Name $name | trunc 54 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ spec:
kind: Service
apiVersion: v1
metadata:
name: {{ include "brokencrystals.fullname" . }}-postgres-service
name: {{ include "brokencrystals.fullname" . }}-postgres-nodejs
namespace: {{ .Release.Namespace }}
spec:
selector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
value: "https://{{ .Values.ingress.url }}"
# value: "https://brokencrystals.com"
- name: DATABASE_HOST
value: "{{ include "brokencrystals.fullname" . }}-postgres-service"
value: "{{ include "brokencrystals.fullname" . }}-postgres-nodejs"
- name: DATABASE_SCHEMA
value: "bc"
- name: DATABASE_USER
Expand Down

0 comments on commit 3f59779

Please sign in to comment.