diff --git a/helm-charts/infisical/README.md b/helm-charts/infisical/README.md index 54ece9119..e614d9600 100644 --- a/helm-charts/infisical/README.md +++ b/helm-charts/infisical/README.md @@ -289,6 +289,8 @@ helm upgrade --install --atomic \ . ``` +ℹ️ Since we provide references to the k8s secret resources within the pods, their manifest file doesnt change and though doesnt reload (no changes detected). When upgrading your secrets, you'll have to do it through Helm (a timestamp field will be updated and your pods restarted) + ### 0.1.16 - Auto-generation for the following variables, to ease your future upgrades or setups : diff --git a/helm-charts/infisical/templates/backend-deployment.yaml b/helm-charts/infisical/templates/backend-deployment.yaml index f0b134d5b..797439019 100644 --- a/helm-charts/infisical/templates/backend-deployment.yaml +++ b/helm-charts/infisical/templates/backend-deployment.yaml @@ -3,10 +3,11 @@ apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "infisical.backend.fullname" . }} - {{- with $backend.deploymentAnnotations }} annotations: - {{- toYaml . | nindent 8 }} - {{- end }} + updatedAt: {{ now | date "2006-01-01 MST 15:04:05" | quote }} + {{- with $backend.deploymentAnnotations }} + {{- toYaml . | nindent 4 }} + {{- end }} labels: {{- include "infisical.backend.labels" . | nindent 4 }} spec: @@ -18,10 +19,11 @@ spec: metadata: labels: {{- include "infisical.backend.matchLabels" . | nindent 8 }} - {{- with $backend.podAnnotations }} annotations: + updatedAt: {{ now | date "2006-01-01 MST 15:04:05" | quote }} + {{- with $backend.podAnnotations }} {{- toYaml . | nindent 8 }} - {{- end }} + {{- end }} spec: containers: - name: {{ template "infisical.name" . }}-{{ $backend.name }} diff --git a/helm-charts/infisical/templates/frontend-deployment.yaml b/helm-charts/infisical/templates/frontend-deployment.yaml index 114cfc112..9c5cd1560 100644 --- a/helm-charts/infisical/templates/frontend-deployment.yaml +++ b/helm-charts/infisical/templates/frontend-deployment.yaml @@ -3,9 +3,10 @@ apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "infisical.frontend.fullname" . }} - {{- with .Values.frontend.deploymentAnnotations }} annotations: - {{- toYaml . | nindent 8 }} + updatedAt: {{ now | date "2006-01-01 MST 15:04:05" | quote }} + {{- with .Values.frontend.deploymentAnnotations }} + {{- toYaml . | nindent 4 }} {{- end }} labels: {{- include "infisical.frontend.labels" . | nindent 4 }} @@ -18,10 +19,11 @@ spec: metadata: labels: {{- include "infisical.frontend.matchLabels" . | nindent 8 }} - {{- with $frontend.podAnnotations }} annotations: + updatedAt: {{ now | date "2006-01-01 MST 15:04:05" | quote }} + {{- with $frontend.podAnnotations }} {{- toYaml . | nindent 8 }} - {{- end }} + {{- end }} spec: containers: - name: {{ template "infisical.name" . }}-{{ $frontend.name }}