minor changes
This commit is contained in:
parent
79f00ea8f3
commit
94eaef478d
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue