Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: add support for custom annotations

jon4hzd683e385ae63
diff --git a/helm-charts/infisical/templates/backend-deployment.yaml b/helm-charts/infisical/templates/backend-deployment.yaml
index b42facae6d..01e216092e 100644
--- a/helm-charts/infisical/templates/backend-deployment.yaml
+++ b/helm-charts/infisical/templates/backend-deployment.yaml
@@ -13,6 +13,10 @@ spec:
metadata:
labels:
{{- include "infisical.backend.matchLabels" . | nindent 8 }}
+ {{- with .Values.backend.podAnnotations }}
+ annotations:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
spec:
containers:
- name: {{ template "infisical.name" . }}-{{ .Values.backend.name }}
@@ -41,6 +45,10 @@ metadata:
name: {{ include "infisical.backend.fullname" . }}
labels:
{{- include "infisical.backend.labels" . | nindent 4 }}
+ {{- with .Values.backend.service.annotations }}
+ annotations:
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
spec:
selector:
{{- include "infisical.backend.matchLabels" . | nindent 8 }}
diff --git a/helm-charts/infisical/templates/frontend-deployment.yaml b/helm-charts/infisical/templates/frontend-deployment.yaml
index fef312cbb1..de64905957 100644
--- a/helm-charts/infisical/templates/frontend-deployment.yaml
+++ b/helm-charts/infisical/templates/frontend-deployment.yaml
@@ -13,6 +13,10 @@ spec:
metadata:
labels:
{{- include "infisical.frontend.matchLabels" . | nindent 8 }}
+ {{- with .Values.frontend.podAnnotations }}
+ annotations:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
spec:
containers:
- name: {{ template "infisical.name" . }}-{{ .Values.frontend.name }}
@@ -42,6 +46,10 @@ metadata:
name: {{ include "infisical.frontend.fullname" . }}
labels:
{{- include "infisical.frontend.labels" . | nindent 4 }}
+ {{- with .Values.frontend.service.annotations }}
+ annotations:
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
spec:
type: {{ .Values.frontend.service.type }}
selector:
diff --git a/helm-charts/infisical/templates/mongodb-deployment.yaml b/helm-charts/infisical/templates/mongodb-deployment.yaml
index 64fe08acc4..c9a4b13a81 100644
--- a/helm-charts/infisical/templates/mongodb-deployment.yaml
+++ b/helm-charts/infisical/templates/mongodb-deployment.yaml
@@ -13,6 +13,10 @@ spec:
metadata:
labels:
{{- include "infisical.mongodb.matchLabels" . | nindent 8 }}
+ {{- with .Values.mongodb.podAnnotations }}
+ annotations:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
spec:
containers:
- name: {{ template "infisical.name" . }}-{{ .Values.mongodb.name }}
@@ -32,6 +36,10 @@ metadata:
name: {{ include "infisical.mongodb.fullname" . }}
labels:
{{- include "infisical.mongodb.labels" . | nindent 4 }}
+ {{- with .Values.mongodb.service.annotations }}
+ annotations:
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
spec:
selector:
{{- include "infisical.mongodb.matchLabels" . | nindent 8 }}
diff --git a/helm-charts/infisical/values.yaml b/helm-charts/infisical/values.yaml
index 7ed70b8628..584ec78605 100644
--- a/helm-charts/infisical/values.yaml
+++ b/helm-charts/infisical/values.yaml
@@ -7,6 +7,7 @@ nameOverride: ""
frontend:
name: frontend
+ podAnnotations: {}
replicaCount: 1
image:
repository: infisical/frontend
@@ -18,22 +19,29 @@ frontend:
type: ClusterIP
# define the nodePort if service type is NodePort
# nodePort:
+ annotations: {}
backend:
name: backend
+ podAnnotations: {}
replicaCount: 1
image:
repository: infisical/backend
pullPolicy: IfNotPresent
tag: "latest"
# kubeSecretRef: some-kube-secret-name
+ service:
+ annotations: {}
mongodb:
name: mongodb
+ podAnnotations: {}
image:
repository: mongo
pullPolicy: IfNotPresent
tag: "latest"
+ service:
+ annotations: {}
ingress:
enabled: true