Skip to content

Commit d683e38

Browse files
committed
fix: add support for custom annotations
1 parent 4880cd8 commit d683e38

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

helm-charts/infisical/templates/backend-deployment.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ spec:
1313
metadata:
1414
labels:
1515
{{- include "infisical.backend.matchLabels" . | nindent 8 }}
16+
{{- with .Values.backend.podAnnotations }}
17+
annotations:
18+
{{- toYaml . | nindent 8 }}
19+
{{- end }}
1620
spec:
1721
containers:
1822
- name: {{ template "infisical.name" . }}-{{ .Values.backend.name }}
@@ -41,6 +45,10 @@ metadata:
4145
name: {{ include "infisical.backend.fullname" . }}
4246
labels:
4347
{{- include "infisical.backend.labels" . | nindent 4 }}
48+
{{- with .Values.backend.service.annotations }}
49+
annotations:
50+
{{- toYaml . | nindent 4 }}
51+
{{- end }}
4452
spec:
4553
selector:
4654
{{- include "infisical.backend.matchLabels" . | nindent 8 }}

helm-charts/infisical/templates/frontend-deployment.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ spec:
1313
metadata:
1414
labels:
1515
{{- include "infisical.frontend.matchLabels" . | nindent 8 }}
16+
{{- with .Values.frontend.podAnnotations }}
17+
annotations:
18+
{{- toYaml . | nindent 8 }}
19+
{{- end }}
1620
spec:
1721
containers:
1822
- name: {{ template "infisical.name" . }}-{{ .Values.frontend.name }}
@@ -42,6 +46,10 @@ metadata:
4246
name: {{ include "infisical.frontend.fullname" . }}
4347
labels:
4448
{{- include "infisical.frontend.labels" . | nindent 4 }}
49+
{{- with .Values.frontend.service.annotations }}
50+
annotations:
51+
{{- toYaml . | nindent 4 }}
52+
{{- end }}
4553
spec:
4654
type: {{ .Values.frontend.service.type }}
4755
selector:

helm-charts/infisical/templates/mongodb-deployment.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ spec:
1313
metadata:
1414
labels:
1515
{{- include "infisical.mongodb.matchLabels" . | nindent 8 }}
16+
{{- with .Values.mongodb.podAnnotations }}
17+
annotations:
18+
{{- toYaml . | nindent 8 }}
19+
{{- end }}
1620
spec:
1721
containers:
1822
- name: {{ template "infisical.name" . }}-{{ .Values.mongodb.name }}
@@ -32,6 +36,10 @@ metadata:
3236
name: {{ include "infisical.mongodb.fullname" . }}
3337
labels:
3438
{{- include "infisical.mongodb.labels" . | nindent 4 }}
39+
{{- with .Values.mongodb.service.annotations }}
40+
annotations:
41+
{{- toYaml . | nindent 4 }}
42+
{{- end }}
3543
spec:
3644
selector:
3745
{{- include "infisical.mongodb.matchLabels" . | nindent 8 }}

helm-charts/infisical/values.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ nameOverride: ""
77

88
frontend:
99
name: frontend
10+
podAnnotations: {}
1011
replicaCount: 1
1112
image:
1213
repository: infisical/frontend
@@ -18,22 +19,29 @@ frontend:
1819
type: ClusterIP
1920
# define the nodePort if service type is NodePort
2021
# nodePort:
22+
annotations: {}
2123

2224
backend:
2325
name: backend
26+
podAnnotations: {}
2427
replicaCount: 1
2528
image:
2629
repository: infisical/backend
2730
pullPolicy: IfNotPresent
2831
tag: "latest"
2932
# kubeSecretRef: some-kube-secret-name
33+
service:
34+
annotations: {}
3035

3136
mongodb:
3237
name: mongodb
38+
podAnnotations: {}
3339
image:
3440
repository: mongo
3541
pullPolicy: IfNotPresent
3642
tag: "latest"
43+
service:
44+
annotations: {}
3745

3846
ingress:
3947
enabled: true

0 commit comments

Comments
 (0)