avoid hard-codeed spilo-role (#1246)
Co-authored-by: Rafia Sabih <rafia.sabih@zalando.de>
This commit is contained in:
		
							parent
							
								
									dc9a5b1e61
								
							
						
					
					
						commit
						5a6da7275f
					
				| 
						 | 
					@ -87,7 +87,7 @@ func (c *Cluster) connectionPoolerLabels(role PostgresRole, addExtraLabels bool)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if addExtraLabels {
 | 
						if addExtraLabels {
 | 
				
			||||||
		extraLabels := map[string]string{}
 | 
							extraLabels := map[string]string{}
 | 
				
			||||||
		extraLabels["spilo-role"] = string(role)
 | 
							extraLabels[c.OpConfig.PodRoleLabel] = string(role)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		poolerLabels = labels.Merge(poolerLabels, extraLabels)
 | 
							poolerLabels = labels.Merge(poolerLabels, extraLabels)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue