diff --git a/charts/port-ocean/Chart.yaml b/charts/port-ocean/Chart.yaml index 92b69e2..11ec51f 100644 --- a/charts/port-ocean/Chart.yaml +++ b/charts/port-ocean/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: port-ocean description: A Helm chart for Port Ocean integrations type: application -version: 0.5.3 +version: 0.5.4 appVersion: "0.1.0" home: https://getport.io/ sources: diff --git a/charts/port-ocean/templates/_helpers.tpl b/charts/port-ocean/templates/_helpers.tpl index 957236d..785fb50 100644 --- a/charts/port-ocean/templates/_helpers.tpl +++ b/charts/port-ocean/templates/_helpers.tpl @@ -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 }} {{/*