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

added extraLabels to allow setting labels to the deployments #96

Merged
merged 4 commits into from
Apr 14, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 3 additions & 0 deletions charts/port-agent/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ helm.sh/chart: {{ include "port-agent.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- range $key, $value := .Values.extraLabels }}
{{$key}}: {{ $value }}
{{- end }}
{{- end }}

{{/*
Expand Down
2 changes: 1 addition & 1 deletion charts/port-agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "port-agent.selectorLabels" . | nindent 8 }}
yairsimantov20 marked this conversation as resolved.
Show resolved Hide resolved
{{- include "port-agent.labels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
26 changes: 14 additions & 12 deletions charts/port-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ image:
pullPolicy: IfNotPresent
tag: ""

imagePullSecrets: []
imagePullSecrets: [ ]
nameOverride: ""
fullnameOverride: ""

controlThePayloadConfig: ""
secret:
annotations: {}
annotations: { }
name: ""
useExistingSecret: false

Expand All @@ -27,19 +27,21 @@ env:
PORT_CLIENT_ID: ""
PORT_CLIENT_SECRET: ""

podAnnotations: {}
yairsimantov20 marked this conversation as resolved.
Show resolved Hide resolved
extraLabels: { }

podSecurityContext: {}
# Example
podAnnotations: { }

podSecurityContext: { }
# Example
# runAsGroup: 1001
# runAsUser: 1001
# fsGroup: 1001
# fsGroupChangePolicy: "OnRootMismatch"
containerSecurityContext: {}
# Example
# fsGroupChangePolicy: "OnRootMismatch"
containerSecurityContext: { }
# Example
# runAsGroup: 1001
# runAsUser: 1001
# allowPrivilegeEscalation: false
# allowPrivilegeEscalation: false

rolloutStrategy: "Recreate"

Expand All @@ -51,11 +53,11 @@ resources:
memory: "256Mi"
cpu: "200m"

nodeSelector: {}
nodeSelector: { }

tolerations: []
tolerations: [ ]

affinity: {}
affinity: { }

selfSignedCertificate:
enabled: false
Expand Down
3 changes: 3 additions & 0 deletions charts/port-ocean/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ helm.sh/chart: {{ include "port-ocean.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- range $key, $value := .Values.extraLabels }}
{{$key}}: {{ $value }}
{{- end }}
{{- end }}

{{/*
Expand Down
4 changes: 4 additions & 0 deletions charts/port-ocean/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,21 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "port-ocean.deploymentName" . }}
labels:
{{- include "port-ocean.labels" . | nindent 8 }}
spec:
strategy:
type: {{ .Values.rolloutStrategy | default "Recreate" }}
replicas: 1
selector:
matchLabels:
app: {{ include "port-ocean.deploymentName" . }}
{{- include "port-ocean.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
app: {{ include "port-ocean.deploymentName" .}}
{{- include "port-ocean.labels" . | nindent 8 }}
spec:
securityContext:
{{- if .Values.podSecurityContext }}
Expand Down
36 changes: 19 additions & 17 deletions charts/port-ocean/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,28 @@ port:
clientSecret: ""
baseUrl: https://api.getport.io

podAnnotations: {}
podAnnotations: { }

extraEnv:
# Example
# - name: HTTPS_PROXY
# value: http://myproxy.com

podSecurityContext: {}
# Example
podSecurityContext: { }
# Example
# runAsGroup: 1001
# runAsUser: 1001
# fsGroup: 1001
# fsGroupChangePolicy: "OnRootMismatch"
containerSecurityContext: {}
# Example
# fsGroupChangePolicy: "OnRootMismatch"
containerSecurityContext: { }
# Example
# runAsGroup: 1001
# runAsUser: 1001
# allowPrivilegeEscalation: false
# allowPrivilegeEscalation: false

rolloutStrategy: "Recreate"

resources:
resources:
requests:
memory: "512Mi"
cpu: "200m"
Expand All @@ -36,11 +36,13 @@ resources:
cpu: "500m"


nodeSelector: {}
nodeSelector: { }

tolerations: [ ]

tolerations: []
affinity: { }

affinity: {}
extraLabels: { }

imageRegistry: "ghcr.io/port-labs"

Expand All @@ -61,26 +63,26 @@ service:
type: ClusterIP
port: 8000
annotations: {}

ingress:
enabled: false
className: ""
annotations: {}
annotations: { }
host: null
path: /
pathType: Prefix
tls: []
tls: [ ]
# Example
# - secretName: my-secret
# hosts:
# - "my-host.my-domain.com"

integration:
identifier: ""
version: ""
type: ""
config: {}
secrets: {}
yairsimantov20 marked this conversation as resolved.
Show resolved Hide resolved
config: { }
secrets: { }
eventListener:
type: "KAFKA"
brokers: "b-1-public.publicclusterprod.t9rw6w.c1.kafka.eu-west-1.amazonaws.com:9196,b-2-public.publicclusterprod.t9rw6w.c1.kafka.eu-west-1.amazonaws.com:9196,b-3-public.publicclusterprod.t9rw6w.c1.kafka.eu-west-1.amazonaws.com:9196"
Expand Down
Loading