Add labels
This commit is contained in:
		
							parent
							
								
									a6ffdbae36
								
							
						
					
					
						commit
						d2c410d72b
					
				| 
						 | 
					@ -424,8 +424,10 @@ func (c *Cluster) connectionPoolerLabelsSelector(role PostgresRole) *metav1.Labe
 | 
				
			||||||
	connectionPoolerLabels := labels.Set(map[string]string{})
 | 
						connectionPoolerLabels := labels.Set(map[string]string{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	extraLabels := labels.Set(map[string]string{
 | 
						extraLabels := labels.Set(map[string]string{
 | 
				
			||||||
		"connection-pooler": c.connectionPoolerName(role),
 | 
							"connection-pooler-name": c.connectionPoolerName(role),
 | 
				
			||||||
		"application":       "db-connection-pooler",
 | 
							"application":            "db-connection-pooler",
 | 
				
			||||||
 | 
							"role":                   string(role),
 | 
				
			||||||
 | 
							"cluster-name":           c.ClusterName,
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	connectionPoolerLabels = labels.Merge(connectionPoolerLabels, c.labelsSet(false))
 | 
						connectionPoolerLabels = labels.Merge(connectionPoolerLabels, c.labelsSet(false))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue