Skip to content

Commit e81ad2a

Browse files
committed
cri_hook: remove annotation check
1 parent 2f6c5a5 commit e81ad2a

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

cmd/fpga_crihook/main.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ const (
3232
configJSON = "config.json"
3333
fpgaRegionEnvPrefix = "FPGA_REGION_"
3434
fpgaAfuEnvPrefix = "FPGA_AFU_"
35-
36-
annotationName = "com.intel.fpga.mode"
37-
annotationValue = "fpga.intel.com/region"
3835
)
3936

4037
// Stdin defines structure for standard JSONed input of the OCI platform hook.
@@ -220,16 +217,6 @@ func getStdin(reader io.Reader) (*Stdin, error) {
220217
return nil, err
221218
}
222219

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-
233220
if stdinJ.Bundle == "" {
234221
return nil, errors.New("'bundle' field is not set in the stdin JSON")
235222
}

0 commit comments

Comments
 (0)