Skip to content

Commit

Permalink
Trim resources names
Browse files Browse the repository at this point in the history
  • Loading branch information
omby8888 committed Jan 16, 2025
1 parent d6339c7 commit 67893fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/port-ocean/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ app.kubernetes.io/instance: {{ .Release.Name }}
Get prefix of ocean resource metadata.name
*/}}
{{- define "port-ocean.metadataNamePrefix" -}}
{{- printf "ocean-%s-%s" .Values.integration.type .Values.integration.identifier }}
{{- printf "ocean-%s-%s" .Values.integration.type .Values.integration.identifier | trunc 63 | trimSuffix "-" }}
{{- end }}

{{- define "port-ocean.metadataNamePrefixShort" -}}
{{- printf "%s-%s" .Values.integration.type .Values.integration.identifier }}
{{- printf "%s-%s" .Values.integration.type .Values.integration.identifier | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Expand Down

0 comments on commit 67893fd

Please sign in to comment.