Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: checksum/config annotation for restart service by configmap #232

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/dragonfly/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: dragonfly
description: Dragonfly is an intelligent P2P based image and file distribution system
icon: https://raw.githubusercontent.com/dragonflyoss/Dragonfly2/main/docs/images/logo/dragonfly.svg
type: application
version: 1.1.28
version: 1.1.29
appVersion: 2.1.30
keywords:
- dragonfly
Expand All @@ -26,7 +26,7 @@ sources:

annotations:
artifacthub.io/changes: |
- Fix dfdaemon restart check config issue.
- Fix checksum/config annotation for restart service by configmap.

artifacthub.io/links: |
- name: Chart Source
Expand Down
4 changes: 2 additions & 2 deletions charts/dragonfly/templates/client/client-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ metadata:
heritage: {{ .Release.Service }}
component: {{ .Values.client.name }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/client/client-configmap.yaml") . | sha256sum }}
{{- if .Values.client.daemonsetAnnotations }}
{{ toYaml .Values.client.daemonsetAnnotations | indent 4 }}
{{- end }}
Expand All @@ -33,8 +32,9 @@ spec:
{{- if .Values.client.podLabels }}
{{ toYaml .Values.client.podLabels | indent 8 }}
{{- end }}
{{- if .Values.client.podAnnotations }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/client/client-configmap.yaml") . | sha256sum }}
{{- if .Values.client.podAnnotations }}
{{ toYaml .Values.client.podAnnotations | indent 8 }}
{{- end }}
spec:
Expand Down
4 changes: 2 additions & 2 deletions charts/dragonfly/templates/manager/manager-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ metadata:
component: {{ .Values.manager.name }}
name: {{ template "dragonfly.manager.fullname" . }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/manager/manager-configmap.yaml") . | sha256sum }}
{{- if .Values.manager.deploymentAnnotations }}
{{ toYaml .Values.manager.deploymentAnnotations | indent 4 }}
{{- end }}
Expand All @@ -33,8 +32,9 @@ spec:
{{- if .Values.manager.podLabels }}
{{ toYaml .Values.manager.podLabels | indent 8 }}
{{- end }}
{{- if .Values.manager.podAnnotations }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/manager/manager-configmap.yaml") . | sha256sum }}
{{- if .Values.manager.podAnnotations }}
{{ toYaml .Values.manager.podAnnotations | indent 8 }}
{{- end }}
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ metadata:
heritage: {{ .Release.Service }}
component: {{ .Values.scheduler.name }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/scheduler/scheduler-configmap.yaml") . | sha256sum }}
{{- if .Values.scheduler.statefulsetAnnotations }}
{{ toYaml .Values.scheduler.statefulsetAnnotations | indent 4 }}
{{- end }}
Expand All @@ -35,8 +34,9 @@ spec:
{{- if .Values.scheduler.podLabels }}
{{ toYaml .Values.scheduler.podLabels | indent 8 }}
{{- end }}
{{- if .Values.scheduler.podAnnotations }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/scheduler/scheduler-configmap.yaml") . | sha256sum }}
{{- if .Values.scheduler.podAnnotations }}
{{ toYaml .Values.scheduler.podAnnotations | indent 8 }}
{{- end }}
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ metadata:
component: {{ .Values.seedClient.name }}
name: {{ template "dragonfly.seedClient.fullname" . }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/seed-client/seed-client-configmap.yaml") . | sha256sum }}
{{- if .Values.seedClient.statefulsetAnnotations }}
{{ toYaml .Values.seedClient.statefulsetAnnotations | indent 4 }}
{{- end }}
Expand All @@ -35,8 +34,9 @@ spec:
{{- if .Values.seedClient.podLabels }}
{{ toYaml .Values.seedClient.podLabels | indent 8 }}
{{- end }}
{{- if .Values.seedClient.podAnnotations }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/seed-client/seed-client-configmap.yaml") . | sha256sum }}
{{- if .Values.seedClient.podAnnotations }}
{{ toYaml .Values.seedClient.podAnnotations | indent 8 }}
{{- end }}
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ metadata:
component: {{ .Values.seedPeer.name }}
name: {{ template "dragonfly.seedPeer.fullname" . }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/seed-peer/seed-peer-configmap.yaml") . | sha256sum }}
{{- if .Values.seedPeer.statefulsetAnnotations }}
{{ toYaml .Values.seedPeer.statefulsetAnnotations | indent 4 }}
{{- end }}
Expand All @@ -35,8 +34,9 @@ spec:
{{- if .Values.seedPeer.podLabels }}
{{ toYaml .Values.seedPeer.podLabels | indent 8 }}
{{- end }}
{{- if .Values.seedPeer.podAnnotations }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/seed-peer/seed-peer-configmap.yaml") . | sha256sum }}
{{- if .Values.seedPeer.podAnnotations }}
{{ toYaml .Values.seedPeer.podAnnotations | indent 8 }}
{{- end }}
spec:
Expand Down
4 changes: 2 additions & 2 deletions charts/dragonfly/templates/trainer/trainer-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ metadata:
component: {{ .Values.trainer.name }}
name: {{ template "dragonfly.trainer.fullname" . }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/trainer/trainer-configmap.yaml") . | sha256sum }}
{{- if .Values.trainer.deploymentAnnotations }}
{{ toYaml .Values.trainer.deploymentAnnotations | indent 4 }}
{{- end }}
Expand All @@ -33,8 +32,9 @@ spec:
{{- if .Values.trainer.podLabels }}
{{ toYaml .Values.trainer.podLabels | indent 8 }}
{{- end }}
{{- if .Values.trainer.podAnnotations }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/trainer/trainer-configmap.yaml") . | sha256sum }}
{{- if .Values.trainer.podAnnotations }}
{{ toYaml .Values.trainer.podAnnotations | indent 8 }}
{{- end }}
spec:
Expand Down
Loading