mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-04 01:48:32 +02:00
minor changes
This commit is contained in:
@@ -90,7 +90,7 @@ configKubernetes:
|
||||
# infrastructure_roles_secret_name: postgresql-infrastructure-roles
|
||||
|
||||
# list of annotation keys that can be inherited from the cluster manifest
|
||||
# inherited_labels:
|
||||
# inherited_annotations:
|
||||
# - owned-by
|
||||
|
||||
# list of label keys that can be inherited from the cluster manifest
|
||||
|
||||
+3
-7
@@ -271,13 +271,9 @@ func (c *Cluster) getTeamMembers(teamID string) ([]string, error) {
|
||||
return members, nil
|
||||
}
|
||||
|
||||
// Returns annotations used to create or list k8s objects such as pods
|
||||
// For backward compatibility, shouldAddExtraLabels must be false
|
||||
// when listing k8s objects. See operator PR #252
|
||||
// Returns annotations to be passed to child objects
|
||||
func (c *Cluster) annotationsSet(annotations map[string]string) map[string]string {
|
||||
|
||||
var result map[string]string
|
||||
|
||||
// allow to inherit certain labels from the 'postgres' object
|
||||
if spec, err := c.GetSpec(); err == nil {
|
||||
for k, v := range spec.ObjectMeta.Annotations {
|
||||
@@ -292,10 +288,10 @@ func (c *Cluster) annotationsSet(annotations map[string]string) map[string]strin
|
||||
}
|
||||
|
||||
if len(annotations) > 0 {
|
||||
result = annotations
|
||||
return annotations
|
||||
}
|
||||
|
||||
return result
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Cluster) waitForPodLabel(podEvents chan PodEvent, stopChan chan struct{}, role *PostgresRole) (*v1.Pod, error) {
|
||||
|
||||
Reference in New Issue
Block a user