treat initContainers like Spilo image
This commit is contained in:
		
							parent
							
								
									5e036900de
								
							
						
					
					
						commit
						f58f92dd80
					
				| 
						 | 
					@ -76,7 +76,7 @@ Those are top-level keys, containing both leaf keys and groups.
 | 
				
			||||||
  The default is `true`.
 | 
					  The default is `true`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* **enable_lazy_spilo_upgrade**
 | 
					* **enable_lazy_spilo_upgrade**
 | 
				
			||||||
  Instruct operator to update only the statefulsets with the new image without immediately doing the rolling update. The assumption is pods will be re-started later with the new image, for example due to the node rotation.
 | 
					  Instruct operator to update only the statefulsets with new images (Spilo and InitContainers) without immediately doing the rolling update. The assumption is pods will be re-started later with new images, for example due to the node rotation.
 | 
				
			||||||
  The default is `false`.
 | 
					  The default is `false`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* **etcd_host**
 | 
					* **etcd_host**
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -532,7 +532,7 @@ func (c *Cluster) compareContainers(description string, setA, setB []v1.Containe
 | 
				
			||||||
			func(a, b v1.Container) bool { return !reflect.DeepEqual(a.EnvFrom, b.EnvFrom) }),
 | 
								func(a, b v1.Container) bool { return !reflect.DeepEqual(a.EnvFrom, b.EnvFrom) }),
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if !c.OpConfig.EnableLazySpiloUpgrade || description == "initContainers" {
 | 
						if !c.OpConfig.EnableLazySpiloUpgrade {
 | 
				
			||||||
		checks = append(checks, newCheck("new statefulset %s's %s (index %d) image doesn't match the current one",
 | 
							checks = append(checks, newCheck("new statefulset %s's %s (index %d) image doesn't match the current one",
 | 
				
			||||||
			func(a, b v1.Container) bool { return a.Image != b.Image }))
 | 
								func(a, b v1.Container) bool { return a.Image != b.Image }))
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue