зеркало из https://github.com/Azure/ARO-RP.git
Upgrade all the clusters!
This commit is contained in:
Родитель
b366b92f3e
Коммит
ebed341f9f
|
@ -25,11 +25,6 @@ func (i *Installer) upgradeCluster(ctx context.Context) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if cv.Spec.Channel != "" {
|
||||
i.log.Printf("not upgrading: cvo channel is %s", cv.Spec.Channel)
|
||||
return nil
|
||||
}
|
||||
|
||||
desired, err := version.ParseVersion(cv.Status.Desired.Version)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
@ -54,9 +54,14 @@ func TestUpgradeCluster(t *testing.T) {
|
|||
name: "later version, no update needed",
|
||||
fakecli: newFakecli("", "99.99.99"),
|
||||
},
|
||||
{
|
||||
name: "on a channel, update needed",
|
||||
fakecli: newFakecli("my-channel", "0.0.0"),
|
||||
wantUpdated: true,
|
||||
},
|
||||
{
|
||||
name: "on a channel, no update needed",
|
||||
fakecli: newFakecli("my-channel", ""),
|
||||
fakecli: newFakecli("my-channel", "99.99.99"),
|
||||
},
|
||||
} {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче