Skip to content

Commit

Permalink
fix: add support for custom annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jon4hz committed Dec 28, 2022
1 parent 4880cd8 commit d683e38
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions helm-charts/infisical/templates/backend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down
8 changes: 8 additions & 0 deletions helm-charts/infisical/templates/frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions helm-charts/infisical/templates/mongodb-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down
8 changes: 8 additions & 0 deletions helm-charts/infisical/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ nameOverride: ""

frontend:
name: frontend
podAnnotations: {}
replicaCount: 1
image:
repository: infisical/frontend
Expand All @@ -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
Expand Down

0 comments on commit d683e38

Please sign in to comment.