Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing podServiceAccount #121

Merged
Show file tree
Hide file tree
Changes from 4 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.3.3
version: 0.4.0
appVersion: "0.1.0"
home: https://getport.io/
sources:
Expand Down
1 change: 1 addition & 0 deletions charts/port-ocean/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ The following table lists the configuration parameters of the `port-ocean` chart
| `scheduledResyncInterval` | The number in minutes to reschedule and poll data from the 3rd party system. When workload.kind is set to CronJob this parameter is required and should be in a format of a cron string | `null` |
| `sendRawDataExamples` | Enable sending raw data examples from the third party API to port for testing and managing the integration mapping | `true` |
| `podAnnotations` | Annotations to be added to the pod. | `{}` |
| `podServiceAccount.name` | Service account to attach to the pod. | `null` |
| `podSecurityContext` | Security context applied to the pod. | `{}` |
| `containerSecurityContext` | Security context applied to the container. | `{}` |
| `extraInitContainers` | Additional init containers to be added to the pod. | `[]` |
Expand Down
3 changes: 3 additions & 0 deletions charts/port-ocean/templates/cron-job/cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ spec:
app: {{ include "port-ocean.cronJobName" . }}
{{- include "port-ocean.labels" . | nindent 12 }}
spec:
{{- with .Values.podServiceAccount.name }}
serviceAccountName: {{ . }}
{{- end }}
restartPolicy: Never
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- $resyncOnInstall := (.Values.workload.cron).resyncOnInstall | default true }}
{{- $resyncOnUpgrade := (.Values.workload.cron).resyncOnUpgrade | default true }}
{{- if and (eq .Values.workload.kind "CronJob") (or $resyncOnInstall $resyncOnUpgrade) }}
{{- $jobName := .Release.Revision }}
{{- $jobName := print (randAlphaNum 4) .Release.Revision }}
yairsimantov20 marked this conversation as resolved.
Show resolved Hide resolved
apiVersion: batch/v1
kind: Job
metadata:
Expand Down
3 changes: 3 additions & 0 deletions charts/port-ocean/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
app: {{ include "port-ocean.deploymentName" . }}
{{- include "port-ocean.labels" . | nindent 8 }}
spec:
{{- with .Values.podServiceAccount.name }}
serviceAccountName: {{ . }}
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/port-ocean/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ port:

podAnnotations: { }

podServiceAccount:
name: null

extraEnv:
# Example
# - name: HTTPS_PROXY
Expand Down
Loading