@@ -1350,9 +1350,9 @@ func TestOperator_sync(t *testing.T) {
13501350 name : "default" ,
13511351 upgradeable : & upgradeable {
13521352 Conditions : []configv1.ClusterOperatorStatusCondition {
1353- {Type : configv1 . ClusterStatusConditionType ( "Upgradeable" ) , Status : configv1 .ConditionFalse },
1354- {Type : configv1 . ClusterStatusConditionType ( "UpgradeableA" ) , Status : configv1 .ConditionFalse },
1355- {Type : configv1 . ClusterStatusConditionType ( "UpgradeableB" ) , Status : configv1 .ConditionFalse },
1353+ {Type : "Upgradeable" , Status : configv1 .ConditionFalse },
1354+ {Type : "UpgradeableA" , Status : configv1 .ConditionFalse },
1355+ {Type : "UpgradeableB" , Status : configv1 .ConditionFalse },
13561356 },
13571357 },
13581358 client : fakeClientsetWithUpdates (& configv1.ClusterVersion {
@@ -1406,9 +1406,9 @@ func TestOperator_sync(t *testing.T) {
14061406 {Type : configv1 .OperatorProgressing , Status : configv1 .ConditionFalse , Message : "Cluster version is 0.0.1-abc" },
14071407 {Type : internal .ClusterStatusFailing , Status : configv1 .ConditionFalse },
14081408 {Type : configv1 .RetrievedUpdates , Status : configv1 .ConditionFalse },
1409- {Type : configv1 . ClusterStatusConditionType ( "Upgradeable" ) , Status : configv1 .ConditionFalse },
1410- {Type : configv1 . ClusterStatusConditionType ( "UpgradeableA" ) , Status : configv1 .ConditionFalse },
1411- {Type : configv1 . ClusterStatusConditionType ( "UpgradeableB" ) , Status : configv1 .ConditionFalse },
1409+ {Type : "Upgradeable" , Status : configv1 .ConditionFalse },
1410+ {Type : "UpgradeableA" , Status : configv1 .ConditionFalse },
1411+ {Type : "UpgradeableB" , Status : configv1 .ConditionFalse },
14121412 },
14131413 },
14141414 })
@@ -1430,8 +1430,8 @@ func TestOperator_sync(t *testing.T) {
14301430 name : "default" ,
14311431 upgradeable : & upgradeable {
14321432 Conditions : []configv1.ClusterOperatorStatusCondition {
1433- {Type : configv1 . ClusterStatusConditionType ( "Upgradeable" ) , Status : configv1 .ConditionFalse },
1434- {Type : configv1 . ClusterStatusConditionType ( "UpgradeableB" ) , Status : configv1 .ConditionFalse },
1433+ {Type : "Upgradeable" , Status : configv1 .ConditionFalse },
1434+ {Type : "UpgradeableB" , Status : configv1 .ConditionFalse },
14351435 },
14361436 },
14371437 client : fakeClientsetWithUpdates (& configv1.ClusterVersion {
@@ -1452,7 +1452,7 @@ func TestOperator_sync(t *testing.T) {
14521452 {Type : configv1 .OperatorProgressing , Status : configv1 .ConditionFalse , Message : "Cluster version is 0.0.1-abc" },
14531453 {Type : internal .ClusterStatusFailing , Status : configv1 .ConditionFalse },
14541454 {Type : configv1 .RetrievedUpdates , Status : configv1 .ConditionFalse },
1455- {Type : configv1 . ClusterStatusConditionType ( "UpgradeableA" ) , Status : configv1 .ConditionFalse },
1455+ {Type : "UpgradeableA" , Status : configv1 .ConditionFalse },
14561456 },
14571457 },
14581458 }),
@@ -1486,8 +1486,8 @@ func TestOperator_sync(t *testing.T) {
14861486 {Type : configv1 .OperatorProgressing , Status : configv1 .ConditionFalse , Message : "Cluster version is 0.0.1-abc" },
14871487 {Type : internal .ClusterStatusFailing , Status : configv1 .ConditionFalse },
14881488 {Type : configv1 .RetrievedUpdates , Status : configv1 .ConditionFalse },
1489- {Type : configv1 . ClusterStatusConditionType ( "Upgradeable" ) , Status : configv1 .ConditionFalse },
1490- {Type : configv1 . ClusterStatusConditionType ( "UpgradeableB" ) , Status : configv1 .ConditionFalse },
1489+ {Type : "Upgradeable" , Status : configv1 .ConditionFalse },
1490+ {Type : "UpgradeableB" , Status : configv1 .ConditionFalse },
14911491 },
14921492 },
14931493 })
@@ -1528,9 +1528,9 @@ func TestOperator_sync(t *testing.T) {
15281528 {Type : configv1 .OperatorProgressing , Status : configv1 .ConditionFalse , Message : "Cluster version is 0.0.1-abc" },
15291529 {Type : internal .ClusterStatusFailing , Status : configv1 .ConditionFalse },
15301530 {Type : configv1 .RetrievedUpdates , Status : configv1 .ConditionFalse },
1531- {Type : configv1 . ClusterStatusConditionType ( "Upgradeable" ) , Status : configv1 .ConditionFalse },
1532- {Type : configv1 . ClusterStatusConditionType ( "UpgradeableA" ) , Status : configv1 .ConditionFalse },
1533- {Type : configv1 . ClusterStatusConditionType ( "UpgradeableB" ) , Status : configv1 .ConditionFalse },
1531+ {Type : "Upgradeable" , Status : configv1 .ConditionFalse },
1532+ {Type : "UpgradeableA" , Status : configv1 .ConditionFalse },
1533+ {Type : "UpgradeableB" , Status : configv1 .ConditionFalse },
15341534 },
15351535 },
15361536 }),
0 commit comments