File tree 6 files changed +17
-3
lines changed
6 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ helm.sh/chart: {{ include "port-agent.chart" . }}
40
40
app.kubernetes.io/version: { { .Chart.AppVersion | quote } }
41
41
{ {- end } }
42
42
app.kubernetes.io/managed-by: { { .Release.Service } }
43
+ { {- range $key , $value := .Values.extraLabels } }
44
+ { {$key } }: { { $value } }
45
+ { {- end } }
43
46
{ {- end } }
44
47
45
48
{ {/*
Original file line number Diff line number Diff line change 18
18
{{- toYaml . | nindent 8 }}
19
19
{{- end }}
20
20
labels :
21
- {{- include "port-agent.selectorLabels " . | nindent 8 }}
21
+ {{- include "port-agent.labels " . | nindent 8 }}
22
22
spec :
23
23
{{- with .Values.imagePullSecrets }}
24
24
imagePullSecrets :
Original file line number Diff line number Diff line change 27
27
PORT_CLIENT_ID : " "
28
28
PORT_CLIENT_SECRET : " "
29
29
30
+ extraLabels : {}
31
+
30
32
podAnnotations : {}
31
33
32
34
podSecurityContext : {}
33
- # Example
35
+ # Example
34
36
# runAsGroup: 1001
35
37
# runAsUser: 1001
36
38
# fsGroup: 1001
37
39
# fsGroupChangePolicy: "OnRootMismatch"
38
40
containerSecurityContext : {}
39
- # Example
41
+ # Example
40
42
# runAsGroup: 1001
41
43
# runAsUser: 1001
42
44
# allowPrivilegeEscalation: false
Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ helm.sh/chart: {{ include "port-ocean.chart" . }}
40
40
app.kubernetes.io/version: { { .Chart.AppVersion | quote } }
41
41
{ {- end } }
42
42
app.kubernetes.io/managed-by: { { .Release.Service } }
43
+ { {- range $key , $value := .Values.extraLabels } }
44
+ { {$key } }: { { $value } }
45
+ { {- end } }
43
46
{ {- end } }
44
47
45
48
{ {/*
Original file line number Diff line number Diff line change @@ -2,17 +2,21 @@ apiVersion: apps/v1
2
2
kind : Deployment
3
3
metadata :
4
4
name : {{ include "port-ocean.deploymentName" . }}
5
+ labels :
6
+ {{- include "port-ocean.labels" . | nindent 8 }}
5
7
spec :
6
8
strategy :
7
9
type : {{ .Values.rolloutStrategy | default "Recreate" }}
8
10
replicas : 1
9
11
selector :
10
12
matchLabels :
11
13
app : {{ include "port-ocean.deploymentName" . }}
14
+ {{- include "port-ocean.selectorLabels" . | nindent 6 }}
12
15
template :
13
16
metadata :
14
17
labels :
15
18
app : {{ include "port-ocean.deploymentName" .}}
19
+ {{- include "port-ocean.labels" . | nindent 8 }}
16
20
spec :
17
21
securityContext :
18
22
{{- if .Values.podSecurityContext }}
Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ tolerations: []
42
42
43
43
affinity : {}
44
44
45
+ extraLabels : {}
46
+
45
47
imageRegistry : " ghcr.io/port-labs"
46
48
47
49
imagePullPolicy : Always
You can’t perform that action at this time.
0 commit comments