Skip to content

Commit 6885598

Browse files
committed
return error
1 parent 17c2913 commit 6885598

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/webhook/v1beta1/pod/inject_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func (s *sidecarInjector) MutationRequired(pod *v1.Pod, ns string) (bool, error)
114114
// Try to get Katib job kind and job name from mutating pod
115115
jobKind, jobName, err := s.getKatibJob(object, ns)
116116
if err != nil {
117-
return false, nil
117+
return false, err
118118
}
119119

120120
trial := &trialsv1beta1.Trial{}

0 commit comments

Comments
 (0)