Skip to content

Commit

Permalink
Merge pull request #159 from port-labs/PORT-12563-trim-long-resources…
Browse files Browse the repository at this point in the history
…-name-in-ocean-chart

Trim resources names
  • Loading branch information
omby8888 authored Jan 16, 2025
2 parents d6339c7 + 94167b4 commit 181a628
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/port-ocean/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
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 181a628

Please sign in to comment.