Skip to content

Commit 03c7322

Browse files
committed
cri_hook: remove annotation check
1 parent c475bd6 commit 03c7322

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

cmd/fpga_crihook/main.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -220,16 +220,6 @@ func getStdin(reader io.Reader) (*Stdin, error) {
220220
return nil, err
221221
}
222222

223-
// Check if device plugin annotation is set
224-
if stdinJ.Annotations.ComIntelFpgaMode == "" {
225-
return nil, errors.Errorf("annotation %s is not set", annotationName)
226-
}
227-
228-
// Check if device plugin annotation is set
229-
if stdinJ.Annotations.ComIntelFpgaMode != annotationValue {
230-
return nil, errors.Errorf("annotation %s has incorrect value '%s'", annotationName, stdinJ.Annotations.ComIntelFpgaMode)
231-
}
232-
233223
if stdinJ.Bundle == "" {
234224
return nil, errors.New("'bundle' field is not set in the stdin JSON")
235225
}

0 commit comments

Comments
 (0)