@@ -399,36 +399,66 @@ func addConversionFuncs(scheme *runtime.Scheme) error {
399
399
); err != nil {
400
400
return err
401
401
}
402
+ if err := scheme .AddFieldLabelConversionFunc (SchemeGroupVersion .String (), "ClusterPolicy" ,
403
+ oapi .GetFieldLabelConversionFunc (newer .ClusterPolicyToSelectableFields (& newer.ClusterPolicy {}), nil ),
404
+ ); err != nil {
405
+ return err
406
+ }
402
407
403
408
if err := scheme .AddFieldLabelConversionFunc ("v1" , "ClusterPolicyBinding" ,
404
409
oapi .GetFieldLabelConversionFunc (newer .ClusterPolicyBindingToSelectableFields (& newer.ClusterPolicyBinding {}), nil ),
405
410
); err != nil {
406
411
return err
407
412
}
413
+ if err := scheme .AddFieldLabelConversionFunc (SchemeGroupVersion .String (), "ClusterPolicyBinding" ,
414
+ oapi .GetFieldLabelConversionFunc (newer .ClusterPolicyBindingToSelectableFields (& newer.ClusterPolicyBinding {}), nil ),
415
+ ); err != nil {
416
+ return err
417
+ }
408
418
409
419
if err := scheme .AddFieldLabelConversionFunc ("v1" , "Policy" ,
410
420
oapi .GetFieldLabelConversionFunc (newer .PolicyToSelectableFields (& newer.Policy {}), nil ),
411
421
); err != nil {
412
422
return err
413
423
}
424
+ if err := scheme .AddFieldLabelConversionFunc (SchemeGroupVersion .String (), "Policy" ,
425
+ oapi .GetFieldLabelConversionFunc (newer .PolicyToSelectableFields (& newer.Policy {}), nil ),
426
+ ); err != nil {
427
+ return err
428
+ }
414
429
415
430
if err := scheme .AddFieldLabelConversionFunc ("v1" , "PolicyBinding" ,
416
431
oapi .GetFieldLabelConversionFunc (newer .PolicyBindingToSelectableFields (& newer.PolicyBinding {}), nil ),
417
432
); err != nil {
418
433
return err
419
434
}
435
+ if err := scheme .AddFieldLabelConversionFunc (SchemeGroupVersion .String (), "PolicyBinding" ,
436
+ oapi .GetFieldLabelConversionFunc (newer .PolicyBindingToSelectableFields (& newer.PolicyBinding {}), nil ),
437
+ ); err != nil {
438
+ return err
439
+ }
420
440
421
441
if err := scheme .AddFieldLabelConversionFunc ("v1" , "Role" ,
422
442
oapi .GetFieldLabelConversionFunc (newer .RoleToSelectableFields (& newer.Role {}), nil ),
423
443
); err != nil {
424
444
return err
425
445
}
446
+ if err := scheme .AddFieldLabelConversionFunc (SchemeGroupVersion .String (), "Role" ,
447
+ oapi .GetFieldLabelConversionFunc (newer .RoleToSelectableFields (& newer.Role {}), nil ),
448
+ ); err != nil {
449
+ return err
450
+ }
426
451
427
452
if err := scheme .AddFieldLabelConversionFunc ("v1" , "RoleBinding" ,
428
453
oapi .GetFieldLabelConversionFunc (newer .RoleBindingToSelectableFields (& newer.RoleBinding {}), nil ),
429
454
); err != nil {
430
455
return err
431
456
}
457
+ if err := scheme .AddFieldLabelConversionFunc (SchemeGroupVersion .String (), "RoleBinding" ,
458
+ oapi .GetFieldLabelConversionFunc (newer .RoleBindingToSelectableFields (& newer.RoleBinding {}), nil ),
459
+ ); err != nil {
460
+ return err
461
+ }
432
462
return nil
433
463
}
434
464
0 commit comments