Add annotations to force rollout of pods on config change

Signed-off-by: Nicolas Belouin <nicolas.belouin@suse.com>
(cherry picked from commit 629e96dded)
This commit is contained in:
2025-05-27 10:49:09 +02:00
parent 4fab8da5d5
commit e6f27f3ecc
4 changed files with 5 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ dependencies:
- alias: metal3-ironic - alias: metal3-ironic
name: ironic name: ironic
repository: file://./charts/ironic repository: file://./charts/ironic
version: 0.10.3 version: 0.10.4
- alias: metal3-mariadb - alias: metal3-mariadb
condition: global.enable_mariadb condition: global.enable_mariadb
name: mariadb name: mariadb

View File

@@ -17,6 +17,8 @@ spec:
control-plane: controller-manager control-plane: controller-manager
template: template:
metadata: metadata:
annotations:
checksum/config-env: {{ include (print $.Template.BasePath "/configmap-ironic.yaml") . | sha256sum }}
labels: labels:
{{- include "baremetal-operator.selectorLabels" . | nindent 8 }} {{- include "baremetal-operator.selectorLabels" . | nindent 8 }}
control-plane: controller-manager control-plane: controller-manager

View File

@@ -3,4 +3,4 @@ appVersion: 26.1.2
description: A Helm chart for Ironic, used by Metal3 description: A Helm chart for Ironic, used by Metal3
name: ironic name: ironic
type: application type: application
version: 0.10.3 version: 0.10.4

View File

@@ -16,6 +16,7 @@ spec:
metadata: metadata:
{{- with .Values.podAnnotations }} {{- with .Values.podAnnotations }}
annotations: annotations:
checksum/config-env: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
labels: labels: