CRD support for synchronous_node_count was previously added in #1484, however the desired SynchronousNodeCount was not compared to the actual patroni configuration, which meant it was never updated.
This commit is contained in:
		
							parent
							
								
									06947eed28
								
							
						
					
					
						commit
						9bb5d8add7
					
				| 
						 | 
				
			
			@ -643,6 +643,9 @@ func (c *Cluster) checkAndSetGlobalPostgreSQLConfiguration(pod *v1.Pod, effectiv
 | 
			
		|||
	if desiredPatroniConfig.SynchronousModeStrict != effectivePatroniConfig.SynchronousModeStrict {
 | 
			
		||||
		configToSet["synchronous_mode_strict"] = desiredPatroniConfig.SynchronousModeStrict
 | 
			
		||||
	}
 | 
			
		||||
	if desiredPatroniConfig.SynchronousNodeCount != effectivePatroniConfig.SynchronousNodeCount {
 | 
			
		||||
		configToSet["synchronous_node_count"] = desiredPatroniConfig.SynchronousNodeCount
 | 
			
		||||
	}
 | 
			
		||||
	if desiredPatroniConfig.TTL > 0 && desiredPatroniConfig.TTL != effectivePatroniConfig.TTL {
 | 
			
		||||
		configToSet["ttl"] = desiredPatroniConfig.TTL
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue