Operator fails with nil pointer dereference when CR validation is not passed (#1697)
This commit is contained in:
		
							parent
							
								
									a6d4f23f90
								
							
						
					
					
						commit
						fbd980af78
					
				|  | @ -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, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue