Skip to content

Commit

Permalink
Merge pull request #35 from port-labs/PORT-5033-ocean-helm-chart-supp…
Browse files Browse the repository at this point in the history
…ort-external-secret

Add support for using external secret in ocean
  • Loading branch information
talsabagport authored Oct 25, 2023
2 parents 5f1670e + 3e2613e commit 3b382ce
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 71 deletions.
2 changes: 1 addition & 1 deletion charts/port-k8s-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: port-k8s-exporter
description: A Helm chart for Port Kubernetes Exporter
type: application
version: 0.2.0
version: 0.2.1
appVersion: "0.1.14"
home: https://getport.io/
sources:
Expand Down
81 changes: 41 additions & 40 deletions charts/port-k8s-exporter/README.md

Large diffs are not rendered by default.

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.4
version: 0.1.5
appVersion: "0.1.0"
home: https://getport.io/
sources:
Expand Down
58 changes: 30 additions & 28 deletions charts/port-ocean/README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion charts/port-ocean/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Get secret name per integration
*/}}
{{- define "port-ocean.secretName" -}}
{{ $prefix:= include "port-ocean.metadataNamePrefix" . }}
{{- printf "%s-secret" $prefix }}
{{- default (printf "%s-secret" $prefix) .Values.secret.name }}
{{- end }}

{{/*
Expand Down
2 changes: 2 additions & 0 deletions charts/port-ocean/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if eq .Values.secret.useExistingSecret false }}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -14,3 +15,4 @@ data:
{{ if kindIs "map" $value }}{{ $value | toJson | b64enc | quote }}{{ else }}{{ $value | b64enc | quote }}{{ end }}
{{- end }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/port-ocean/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ initializePortResources: true

scheduledResyncInterval: null

secret:
name: ""
useExistingSecret: false

service:
enabled: true
type: ClusterIP
Expand Down

0 comments on commit 3b382ce

Please sign in to comment.