You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expect((input.Contract!=""&&!isCustomUpgrade) || (input.Contract==""&&isCustomUpgrade)).To(BeTrue(), `Invalid arguments. Either the input.Contract parameter or at least one of the following providers has to be set:
Expect(ctx).NotTo(BeNil(), "ctx is required for UpgradeManagementClusterAndWait")
140
146
Expect(input.ClusterProxy).ToNot(BeNil(), "Invalid argument. input.ClusterProxy can't be nil when calling UpgradeManagementClusterAndWait")
141
147
Expect(input.ClusterctlConfigPath).To(BeAnExistingFile(), "Invalid argument. input.ClusterctlConfigPath must be an existing file when calling UpgradeManagementClusterAndWait")
142
-
Expect(input.Contract).ToNot(BeEmpty(), "Invalid argument. input.Contract can't be empty when calling UpgradeManagementClusterAndWait")
148
+
// Check if the user want a custom upgrade
149
+
isCustomUpgrade:=input.CoreProvider!=""||
150
+
len(input.BootstrapProviders) >0||
151
+
len(input.ControlPlaneProviders) >0||
152
+
len(input.InfrastructureProviders) >0||
153
+
len(input.IPAMProviders) >0||
154
+
len(input.RuntimeExtensionProviders) >0
155
+
156
+
Expect((input.Contract!=""&&!isCustomUpgrade) || (input.Contract==""&&isCustomUpgrade)).To(BeTrue(), `Invalid argument. Either the input.Contract parameter or at least one of the following providers has to be set:
0 commit comments