MCPcopy Index your code
hub / github.com/zalando/postgres-operator / clusterLabelsOptions

Function clusterLabelsOptions

pkg/cluster/util_test.go:61–66  ·  view source on GitHub ↗
(cluster *Cluster)

Source from the content-addressed store, hash-verified

59}
60
61func clusterLabelsOptions(cluster *Cluster) metav1.ListOptions {
62 clusterLabel := labels.Set(map[string]string{cluster.OpConfig.ClusterNameLabel: cluster.Name})
63 return metav1.ListOptions{
64 LabelSelector: clusterLabel.String(),
65 }
66}
67
68func checkResourcesInheritedAnnotations(cluster *Cluster, resultAnnotations map[string]string) error {
69 clusterOptions := clusterLabelsOptions(cluster)

Callers 3

annotateResourcesFunction · 0.85
TestPodAnnotationsSyncFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected