Skip to content

Commit ac35e0f

Browse files
committed
restart redpanda on changes to the cluster configuration
1 parent d2383c2 commit ac35e0f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

charts/redpanda/configmap.tpl.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ func RedpandaConfigFile(dot *helmette.Dot, includeNonHashableItems bool) string
122122
return helmette.ToYaml(redpandaYaml)
123123
}
124124

125+
func RedpandaClusterConfig(dot *helmette.Dot) string {
126+
values := helmette.Unwrap[Values](dot.Values)
127+
return helmette.ToYaml(values.Config.Cluster.Translate())
128+
}
129+
125130
// RPKProfile returns a [corev1.ConfigMap] for aiding users in connecting to
126131
// the external listeners of their redpanda cluster.
127132
// It is meant for external consumption via NOTES.txt and is not used within

charts/redpanda/statefulset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ func statefulSetChecksumAnnotation(dot *helmette.Dot) string {
10511051
var dependencies []any
10521052
// NB: Seed servers is excluded to avoid a rolling restart when only
10531053
// replicas is changed.
1054-
dependencies = append(dependencies, RedpandaConfigFile(dot, false))
1054+
dependencies = append(dependencies, RedpandaConfigFile(dot, false), RedpandaClusterConfig(dot))
10551055
if values.External.Enabled {
10561056
dependencies = append(dependencies, ptr.Deref(values.External.Domain, ""))
10571057
if helmette.Empty(values.External.Addresses) {

0 commit comments

Comments
 (0)