Skip to content

Commit

Permalink
feat(chart): auto deploy when secrets change (#2911)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrompier authored Jun 26, 2024
1 parent 47b1e5c commit a525a87
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chart/templates/services/admin/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
labels: {{ include "labels.admin" . | nindent 4 }}
name: "{{ include "name" . }}-admin"
namespace: {{ .Release.Namespace }}
{{- if .Values.secrets.infisical.enabled }}
annotations:
secrets.infisical.com/auto-reload: "true"
{{- end }}
spec:
progressDeadlineSeconds: 600
replicas: {{ .Values.admin.replicas }}
Expand Down
4 changes: 4 additions & 0 deletions chart/templates/services/api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
labels: {{ include "labels.api" . | nindent 4 }}
name: "{{ include "name" . }}-api"
namespace: {{ .Release.Namespace }}
{{- if .Values.secrets.infisical.enabled }}
annotations:
secrets.infisical.com/auto-reload: "true"
{{- end }}
spec:
progressDeadlineSeconds: 600
replicas: {{ .Values.api.replicas }}
Expand Down
4 changes: 4 additions & 0 deletions chart/templates/services/rows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
labels: {{ include "labels.rows" . | nindent 4 }}
name: "{{ include "name" . }}-rows"
namespace: {{ .Release.Namespace }}
{{- if .Values.secrets.infisical.enabled }}
annotations:
secrets.infisical.com/auto-reload: "true"
{{- end }}
spec:
progressDeadlineSeconds: 600
replicas: {{ .Values.rows.replicas }}
Expand Down
4 changes: 4 additions & 0 deletions chart/templates/services/search/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
labels: {{ include "labels.search" . | nindent 4 }}
name: "{{ include "name" . }}-search"
namespace: {{ .Release.Namespace }}
{{- if .Values.secrets.infisical.enabled }}
annotations:
secrets.infisical.com/auto-reload: "true"
{{- end }}
spec:
progressDeadlineSeconds: 600
replicas: {{ .Values.search.replicas }}
Expand Down
4 changes: 4 additions & 0 deletions chart/templates/services/sse-api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
labels: {{ include "labels.sseApi" . | nindent 4 }}
name: "{{ include "name" . }}-sse-api"
namespace: {{ .Release.Namespace }}
{{- if .Values.secrets.infisical.enabled }}
annotations:
secrets.infisical.com/auto-reload: "true"
{{- end }}
spec:
progressDeadlineSeconds: 600
replicas: {{ .Values.sseApi.replicas }}
Expand Down
4 changes: 4 additions & 0 deletions chart/templates/services/webhook/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
labels: {{ include "labels.webhook" . | nindent 4 }}
name: "{{ include "name" . }}-webhook"
namespace: {{ .Release.Namespace }}
{{- if .Values.secrets.infisical.enabled }}
annotations:
secrets.infisical.com/auto-reload: "true"
{{- end }}
spec:
progressDeadlineSeconds: 600
replicas: {{ .Values.webhook.replicas }}
Expand Down
4 changes: 4 additions & 0 deletions chart/templates/worker/_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ metadata:
labels: {{ include "labels.worker" (merge (dict "workerValues" .workerValues) $ ) | nindent 4 }}
name: "{{ include "name" . }}-worker-{{ .workerValues.deployName }}"
namespace: {{ .Release.Namespace }}
{{- if .Values.secrets.infisical.enabled }}
annotations:
secrets.infisical.com/auto-reload: "true"
{{- end }}
spec:
progressDeadlineSeconds: 600
{{- if not .workerValues.autoscaling.enabled }}
Expand Down

0 comments on commit a525a87

Please sign in to comment.