mirror of https://github.com/kubernetes/kops.git
Fix bug in MergeAddons
* Replace existing addon if v (new) replaces() existing, instead of the other way around.
This commit is contained in:
parent
f8d00cc535
commit
61ac9a5b07
|
@ -59,7 +59,7 @@ func (m *AddonMenu) MergeAddons(o *AddonMenu) {
|
||||||
if existing == nil {
|
if existing == nil {
|
||||||
m.Addons[k] = v
|
m.Addons[k] = v
|
||||||
} else {
|
} else {
|
||||||
if existing.ChannelVersion().replaces(v.ChannelVersion()) {
|
if v.ChannelVersion().replaces(existing.ChannelVersion()) {
|
||||||
m.Addons[k] = v
|
m.Addons[k] = v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue