Fix missing labels in the replica service selector.
This commit is contained in:
		
							parent
							
								
									50754c9a81
								
							
						
					
					
						commit
						a8b5b77cc4
					
				|  | @ -442,7 +442,7 @@ func (c *Cluster) generateService(role postgresRole, newSpec *spec.PostgresSpec) | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	if role == replica { | 	if role == replica { | ||||||
| 		serviceSpec.Selector = map[string]string{c.OpConfig.PodRoleLabel: string(replica)} | 		serviceSpec.Selector = c.roleLabelsSet(role) | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	var annotations map[string]string | 	var annotations map[string]string | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue