Skip to content

Commit

Permalink
feat(chart): added updatedAt annotation to apps dpl and pod
Browse files Browse the repository at this point in the history
  • Loading branch information
Grraahaam committed Apr 3, 2023
1 parent 278f1ca commit bdb71d1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
2 changes: 2 additions & 0 deletions helm-charts/infisical/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ helm upgrade --install --atomic \
<your-release-name> .
```

ℹ️ 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 :
Expand Down
12 changes: 7 additions & 5 deletions helm-charts/infisical/templates/backend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down
10 changes: 6 additions & 4 deletions helm-charts/infisical/templates/frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit bdb71d1

Please sign in to comment.