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
argoproj#1017 (argoproj#1018)

Signed-off-by: Derek Wang <whynowy@gmail.com>
  • Loading branch information
whynowy authored Jan 19, 2021
1 parent d3673d8 commit f9d2cc0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- 'v*'
branches:
- master
- quay-test

jobs:
release:
Expand Down
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 f9d2cc0

Please sign in to comment.