mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-19 10:05:25 +02:00
Operator fails with nil pointer dereference when CR validation is not passed (#1697)
This commit is contained in:
@@ -95,7 +95,9 @@ func NewController(controllerConfig *spec.ControllerConfig, controllerId string)
|
|||||||
// disabling the sending of events also to the logoutput
|
// disabling the sending of events also to the logoutput
|
||||||
// the operator currently duplicates a lot of log entries with this setup
|
// the operator currently duplicates a lot of log entries with this setup
|
||||||
// eventBroadcaster.StartLogging(logger.Infof)
|
// eventBroadcaster.StartLogging(logger.Infof)
|
||||||
recorder := eventBroadcaster.NewRecorder(scheme.Scheme, v1.EventSource{Component: myComponentName})
|
scheme := scheme.Scheme
|
||||||
|
acidv1.AddToScheme(scheme)
|
||||||
|
recorder := eventBroadcaster.NewRecorder(scheme, v1.EventSource{Component: myComponentName})
|
||||||
|
|
||||||
c := &Controller{
|
c := &Controller{
|
||||||
config: *controllerConfig,
|
config: *controllerConfig,
|
||||||
|
|||||||
Reference in New Issue
Block a user