Skip to content

Commit

Permalink
Always redeploy on helm upgrade
Browse files Browse the repository at this point in the history
commit_hash:17dfeafc5c479b0d23371f0ea6917c777709e77e
  • Loading branch information
cezarnik committed Jan 31, 2025
1 parent 060fa0d commit 4ccce88
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion perforator/deploy/kubernetes/helm/perforator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.2.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ spec:
{{- end }}
template:
metadata:
annotations:
rollme: {{ randAlphaNum 5 | quote }}
labels:
{{- include "perforator.selectorLabels" . | nindent 8 }}
{{- include "perforator.agent.selectorLabels" . | nindent 8 }}
Expand Down Expand Up @@ -119,7 +121,7 @@ spec:
configMap:
name: {{ .configMap }}
{{- end }}
{{- with .Values.agent.nodeSelector }}
{{- with .Values.agent.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ spec:
{{- end }}
template:
metadata:
annotations:
rollme: {{ randAlphaNum 5 | quote }}
labels:
{{- include "perforator.selectorLabels" . | nindent 8 }}
{{- include "perforator.gc.selectorLabels" . | nindent 8 }}
Expand Down Expand Up @@ -112,7 +114,7 @@ spec:
configMap:
name: {{ .configMap }}
{{- end }}
{{- with .Values.gc.nodeSelector }}
{{- with .Values.gc.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ spec:
{{- end }}
template:
metadata:
annotations:
rollme: {{ randAlphaNum 5 | quote }}
labels:
{{- include "perforator.selectorLabels" . | nindent 8 }}
{{- include "perforator.offlineprocessing.selectorLabels" . | nindent 8 }}
Expand Down Expand Up @@ -110,7 +112,7 @@ spec:
configMap:
name: {{ .configMap }}
{{- end }}
{{- with .Values.offlineprocessing.nodeSelector }}
{{- with .Values.offlineprocessing.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ spec:
{{- end }}
template:
metadata:
annotations:
rollme: {{ randAlphaNum 5 | quote }}
labels:
{{- include "perforator.selectorLabels" . | nindent 8 }}
{{- include "perforator.proxy.selectorLabels" . | nindent 8 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ spec:
{{- end }}
template:
metadata:
annotations:
rollme: {{ randAlphaNum 5 | quote }}
labels:
{{- include "perforator.selectorLabels" . | nindent 8 }}
{{- include "perforator.storage.selectorLabels" . | nindent 8 }}
Expand Down Expand Up @@ -118,7 +120,7 @@ spec:
configMap:
name: {{ .configMap }}
{{- end }}
{{- with .Values.storage.nodeSelector }}
{{- with .Values.storage.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ spec:
{{- end }}
template:
metadata:
annotations:
rollme: {{ randAlphaNum 5 | quote }}
labels:
{{- include "perforator.selectorLabels" . | nindent 8 }}
{{- include "perforator.web.selectorLabels" . | nindent 8 }}
Expand All @@ -40,7 +42,7 @@ spec:
- name: {{ include "perforator.fullname" . }}-web
image: "{{ .Values.web.image.repository }}:{{ .Values.web.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.web.image.pullPolicy }}
args:
args:
- /perforator/web
- --config=/etc/perforator/config.yaml
- --log-level={{ .Values.web.logLevel }}
Expand Down Expand Up @@ -106,7 +108,7 @@ spec:
configMap:
name: {{ .configMap }}
{{- end }}
{{- with .Values.web.nodeSelector }}
{{- with .Values.web.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down

0 comments on commit 4ccce88

Please sign in to comment.