ClusterInstance selects things for a single instance in a cluster.
(cluster, instance string)
| 76 | |
| 77 | // ClusterInstance selects things for a single instance in a cluster. |
| 78 | func 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. |
| 88 | func ClusterInstances(cluster string) metav1.LabelSelector { |
no outgoing calls