Merge pull request #1 from zalando-incubator/custom-env-improved
Examine custom environment sources when syncing.
This commit is contained in:
commit
100caff802
|
|
@ -368,6 +368,10 @@ func (c *Cluster) compareStatefulSetWith(statefulSet *v1beta1.StatefulSet) *comp
|
||||||
needsRollUpdate = true
|
needsRollUpdate = true
|
||||||
reasons = append(reasons, "new statefulset's container environment doesn't match the current one")
|
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 don't match the current one")
|
||||||
|
}
|
||||||
|
|
||||||
if needsRollUpdate || needsReplace {
|
if needsRollUpdate || needsReplace {
|
||||||
match = false
|
match = false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue