Beispiel #1
0
func addConversionFuncs(scheme *runtime.Scheme) {
	if err := scheme.AddFieldLabelConversionFunc("v1", "BackingService",
		oapi.GetFieldLabelConversionFunc(api.BackingServiceToSelectableFields(&api.BackingService{}), nil),
	); err != nil {
		panic(err)
	}

}
Beispiel #2
0
func getAttrs(obj runtime.Object) (objLabels labels.Set, objFields fields.Set, err error) {
	bs := obj.(*api.BackingService)
	return labels.Set(bs.Labels), api.BackingServiceToSelectableFields(bs), nil
}