MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / AsSelector

Function AsSelector

internal/naming/selectors.go:16–18  ·  view source on GitHub ↗

AsSelector is a wrapper around metav1.LabelSelectorAsSelector() which converts the LabelSelector API type into something that implements labels.Selector.

(s metav1.LabelSelector)

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls