Skip to content

Commit 26a013b

Browse files
committed
Start certificate watchers
We have to kick these off to pick up changes.
1 parent eaf4f58 commit 26a013b

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
project: operator
2+
kind: Fixed
3+
body: Certificate reloading for webhook and metrics endpoints should now behave correctly.
4+
time: 2025-03-28T11:22:31.608235Z

operator/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ For more details see: https://github.com/kubernetes-sigs/kubebuilder/discussions
4848
* Toggling `useFlux`, in either direction, no longer causes the bootstrap user's password to be regenerated.
4949

5050
Manual mitigation steps are available [here](https://github.com/redpanda-data/helm-charts/issues/1596#issuecomment-2628356953).
51+
* Certificate reloading for webhook and metrics endpoints should now behave correctly.
5152

5253
## v2.3.8-24.3.6 - 2025-03-05
5354
### Fixed

operator/cmd/run/run.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ func Run(
321321
setupLog.Error(err, "Failed to initialize webhook certificate watcher")
322322
os.Exit(1)
323323
}
324+
go func() {
325+
setupLog.Error(webhookCertWatcher.Start(ctx), "webhook cert watcher exits")
326+
}()
324327

325328
webhookTLSOpts = append(webhookTLSOpts, func(config *tls.Config) {
326329
config.GetCertificate = webhookCertWatcher.GetCertificate
@@ -371,6 +374,9 @@ func Run(
371374
setupLog.Error(err, "to initialize metrics certificate watcher", "error", err)
372375
os.Exit(1)
373376
}
377+
go func() {
378+
setupLog.Error(metricsCertWatcher.Start(ctx), "metrics cert watcher exits")
379+
}()
374380

375381
metricsServerOptions.TLSOpts = append(metricsServerOptions.TLSOpts, func(config *tls.Config) {
376382
config.GetCertificate = metricsCertWatcher.GetCertificate

0 commit comments

Comments
 (0)