You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix nil pointer dereferences in NotificationsBus handling
Add nil checks before accessing optional NotificationsBus fields to
prevent panics when the field is not configured.
Changes:
- autoscaling_webhook.go: Check NotificationsBus != nil before accessing
Cluster field in getDeprecatedFields()
- ceilometer_webhook.go: Same nil check for Ceilometer webhook
- autoscaling_controller.go: Return error when rabbitmqConfig is nil in
transportURLCreateOrUpdate()
- Add tests for nil NotificationsBus in webhook validation and
controller reconciliation
NotificationsBus is optional (*RabbitMqConfig with omitempty), so users
can legitimately omit it. The code now handles this gracefully instead
of panicking.
0 commit comments