Skip to content

Commit

Permalink
fix(sensor-controller): Return err when a sensor spec is invalid. Fixes
Browse files Browse the repository at this point in the history
#1017 (#1018)

Signed-off-by: Derek Wang <[email protected]>
  • Loading branch information
whynowy committed Jan 26, 2021
1 parent 6dfa340 commit 58e139a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/sensor/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ func (r *reconciler) reconcile(ctx context.Context, sensor *v1alpha1.Sensor) err
err := ValidateSensor(sensor)
if err != nil {
log.Errorw("validation error", "error", err)
return err
}
args := &AdaptorArgs{
Image: r.sensorImage,
Expand Down

0 comments on commit 58e139a

Please sign in to comment.