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

Function ClusterInstance

internal/naming/selectors.go:78–85  ·  view source on GitHub ↗

ClusterInstance selects things for a single instance in a cluster.

(cluster, instance string)

Source from the content-addressed store, hash-verified

76
77// ClusterInstance selects things for a single instance in a cluster.
78func ClusterInstance(cluster, instance string) metav1.LabelSelector {
79 return metav1.LabelSelector{
80 MatchLabels: map[string]string{
81 LabelCluster: cluster,
82 LabelInstance: instance,
83 },
84 }
85}
86
87// ClusterInstances selects things for PostgreSQL instances in cluster.
88func ClusterInstances(cluster string) metav1.LabelSelector {

Callers 2

deleteInstanceMethod · 0.92
TestClusterInstanceFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestClusterInstanceFunction · 0.68