AsSelector is a wrapper around metav1.LabelSelectorAsSelector() which converts the LabelSelector API type into something that implements labels.Selector.
(s metav1.LabelSelector)
| 14 | // AsSelector is a wrapper around metav1.LabelSelectorAsSelector() which converts |
| 15 | // the LabelSelector API type into something that implements labels.Selector. |
| 16 | func AsSelector(s metav1.LabelSelector) (labels.Selector, error) { |
| 17 | return metav1.LabelSelectorAsSelector(&s) |
| 18 | } |
| 19 | |
| 20 | // AnyCluster selects things for any PostgreSQL cluster. |
| 21 | func AnyCluster() metav1.LabelSelector { |
no outgoing calls