Examine custom environment sources when syncing.
When comparing statefulsets, make sure EnvFrom fields are compared as well.
This commit is contained in:
parent
257e0fc0a9
commit
4b0c4f1fef
|
|
@ -368,6 +368,10 @@ func (c *Cluster) compareStatefulSetWith(statefulSet *v1beta1.StatefulSet) *comp
|
|||
needsRollUpdate = true
|
||||
reasons = append(reasons, "new statefulset's container environment doesn't match the current one")
|
||||
}
|
||||
if !reflect.DeepEqual(container1.EnvFrom, container2.EnvFrom) {
|
||||
needsRollUpdate = true
|
||||
reasons = append(reasons, "new statefulset's container environment sources doesn't match the current one")
|
||||
}
|
||||
|
||||
if needsRollUpdate || needsReplace {
|
||||
match = false
|
||||
|
|
|
|||
Loading…
Reference in New Issue