Skip to content

Commit

Permalink
Merge pull request #46 from port-labs/Ocean-Support_Self-signed_certi…
Browse files Browse the repository at this point in the history
…ficates-fix2

Fixed support to self-signed certificates
  • Loading branch information
MatanHeledPort authored Dec 6, 2023
2 parents 6f838b4 + c8cc697 commit 6274f46
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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.1.8
version: 0.1.9
appVersion: "0.1.0"
home: https://getport.io/
sources:
Expand Down
13 changes: 8 additions & 5 deletions charts/port-ocean/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ spec:
containers:
- name: {{ include "port-ocean.containerName" . }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
{{- if .Values.integration.selfSignedCertificate.enabled }}
command: ["sh", "-c", "update-ca-certificates && ocean sail"]
{{- end }}
image: ghcr.io/port-labs/port-ocean-{{ .Values.integration.type }}:{{ .Values.integration.version | default "latest" }}
{{- if .Values.service.enabled }}
ports:
Expand All @@ -23,8 +26,8 @@ spec:
{{- end }}
{{- if .Values.integration.selfSignedCertificate.enabled }}
env:
- name: SSL_CERT_DIR
value: /etc/ssl/certs/
- name: SSL_CERT_FILE
value: /etc/ssl/certs/ca-certificates.crt
{{- end }}
envFrom:
- configMapRef:
Expand All @@ -34,8 +37,8 @@ spec:
volumeMounts:
{{- if .Values.integration.selfSignedCertificate.enabled }}
- name: certificates
mountPath: /etc/ssl/certs/cert.pem
subPath: cert.pem
mountPath: /usr/local/share/ca-certificates/cert.crt
subPath: cert.crt
readOnly: true
{{- end }}
volumes:
Expand All @@ -47,7 +50,7 @@ spec:
name: {{ include "port-ocean.selfSignedCertName" . }}
items:
- key: crt
path: cert.pem
path: cert.crt
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
Expand Down

0 comments on commit 6274f46

Please sign in to comment.