Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.11.0
version: 0.11.1
appVersion: "0.1.0"
home: https://getport.io/
sources:
Expand Down
14 changes: 14 additions & 0 deletions charts/port-ocean/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,20 @@ Get container name
{{- printf "%s-container" $prefix }}
{{- end }}

{{/*
Get default image
*/}}
{{- define "port-ocean.defaultImage" -}}
port-ocean-{{ .Values.integration.type }}:{{ .Values.integration.version | default "latest" }}
{{- end }}

{{/*
Get container image (registry + image name)
*/}}
{{- define "port-ocean.image" -}}
{{ .Values.imageRegistry }}/{{ .Values.image | default (include "port-ocean.defaultImage" .) }}
{{- end }}

{{/*
Get deployment name
*/}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
containers:
- name: {{ include "port-ocean.containerName" . }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
image: '{{ .Values.imageRegistry }}/port-ocean-{{ .Values.integration.type }}:{{ .Values.integration.version | default "latest" }}'
image: {{ include "port-ocean.image" . }}
{{- if .Values.service.enabled }}
securityContext:
{{- if .Values.containerSecurityContext }}
Expand Down
2 changes: 1 addition & 1 deletion charts/port-ocean/templates/cron-job/cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ spec:
containers:
- name: {{ include "port-ocean.containerName" . }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
image: '{{ .Values.imageRegistry }}/port-ocean-{{ .Values.integration.type }}:{{ .Values.integration.version | default "latest" }}'
image: {{ include "port-ocean.image" . }}
{{- if .Values.service.enabled }}
securityContext:
{{- if .Values.containerSecurityContext }}
Expand Down
2 changes: 1 addition & 1 deletion charts/port-ocean/templates/deployment-live-events.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
containers:
- name: {{ include "port-ocean.containerName" . }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
image: '{{ .Values.imageRegistry }}/port-ocean-{{ .Values.integration.type }}:{{ .Values.integration.version | default "latest" }}'
image: {{ include "port-ocean.image" . }}
{{- if .Values.service.enabled }}
securityContext:
{{- if .Values.containerSecurityContext }}
Expand Down
2 changes: 1 addition & 1 deletion charts/port-ocean/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
containers:
- name: {{ include "port-ocean.containerName" . }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
image: '{{ .Values.imageRegistry }}/port-ocean-{{ .Values.integration.type }}:{{ .Values.integration.version | default "latest" }}'
image: {{ include "port-ocean.image" . }}
{{- if .Values.service.enabled }}
securityContext:
{{- if .Values.containerSecurityContext }}
Expand Down
5 changes: 5 additions & 0 deletions charts/port-ocean/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ extraLabels: { }

imageRegistry: "ghcr.io/port-labs"

# image: Custom container image name (without registry, but including tag)
# If not specified, defaults to "port-ocean-{integration.type}:{integration.version}"
# Example: "my-custom-ocean-image:v1.0.0" or "port-ocean-custom:latest"
image: ""

imagePullPolicy: Always

imagePullSecrets: [ ]
Expand Down
Loading