Skip to content

Commit

Permalink
Minor fix to add CoreV1 to scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
johnugeorge committed Jun 27, 2019
1 parent d746bde commit baba49d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/tf-operator.v1/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func Run(opt *options.ServerOption) error {

// Prepare event clients.
eventBroadcaster := record.NewBroadcaster()
if err = v1.AddToScheme(scheme.Scheme); err != nil {
if err = corev1.AddToScheme(scheme.Scheme); err != nil {
return fmt.Errorf("CoreV1 Add Scheme failed: %v", err)
}
recorder := eventBroadcaster.NewRecorder(scheme.Scheme, corev1.EventSource{Component: "tf-operator"})
Expand Down

0 comments on commit baba49d

Please sign in to comment.