func addConversionFuncs(scheme *runtime.Scheme) { if err := scheme.AddFieldLabelConversionFunc("v1", "Project", oapi.GetFieldLabelConversionFunc(namespace.NamespaceToSelectableFields(&kapi.Namespace{}), nil), ); err != nil { panic(err) } }
func init() { if err := kapi.Scheme.AddFieldLabelConversionFunc("v1", "Project", oapi.GetFieldLabelConversionFunc(namespace.NamespaceToSelectableFields(&kapi.Namespace{}), nil), ); err != nil { panic(err) } }
func TestFieldSelectorConversions(t *testing.T) { testutil.CheckFieldLabelConversions(t, "v1", "Project", // Ensure all currently returned labels are supported namespace.NamespaceToSelectableFields(&kapi.Namespace{}), // Ensure previously supported labels have conversions. DO NOT REMOVE THINGS FROM THIS LIST "status.phase", ) }
func addConversionFuncs(scheme *runtime.Scheme) error { return scheme.AddFieldLabelConversionFunc("v1", "Project", oapi.GetFieldLabelConversionFunc(namespace.NamespaceToSelectableFields(&kapi.Namespace{}), nil), ) }