Skip to content

Commit

Permalink
pkg/cvo/internal/operatorstatus: Change nested message
Browse files Browse the repository at this point in the history
  • Loading branch information
jottofar committed Feb 16, 2021
1 parent ff0f705 commit ce1eda1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pkg/cvo/internal/operatorstatus.go
Expand Up @@ -249,9 +249,9 @@ func waitForOperatorStatusToBeDone(ctx context.Context, interval time.Duration,
}

lastErr = &payload.UpdateError{
Nested: nestedMessage,
Nested: fmt.Errorf("cluster operator is available and not degraded but has not finished updating to target version"),
UpdateEffect: payload.UpdateEffectNone,
Reason: "ClusterOperatorNotAvailable",
Reason: "ClusterOperatorUpdating",
Message: fmt.Sprintf("Cluster operator %s is updating versions", actual.Name),
Name: actual.Name,
}
Expand Down
8 changes: 4 additions & 4 deletions pkg/cvo/internal/operatorstatus_test.go
Expand Up @@ -354,9 +354,9 @@ func Test_waitForOperatorStatusToBeDone(t *testing.T) {
},
},
expErr: &payload.UpdateError{
Nested: fmt.Errorf("cluster operator test-co conditions: available=true, progressing=true, degraded=true"),
Nested: fmt.Errorf("cluster operator is available and not degraded but has not finished updating to target version"),
UpdateEffect: payload.UpdateEffectNone,
Reason: "ClusterOperatorNotAvailable",
Reason: "ClusterOperatorUpdating",
Message: "Cluster operator test-co is updating versions",
Name: "test-co",
},
Expand Down Expand Up @@ -444,9 +444,9 @@ func Test_waitForOperatorStatusToBeDone(t *testing.T) {
},
},
expErr: &payload.UpdateError{
Nested: fmt.Errorf("cluster operator test-co conditions: available=true, progressing=true, degraded=true"),
Nested: fmt.Errorf("cluster operator is available and not degraded but has not finished updating to target version"),
UpdateEffect: payload.UpdateEffectNone,
Reason: "ClusterOperatorNotAvailable",
Reason: "ClusterOperatorUpdating",
Message: "Cluster operator test-co is updating versions",
Name: "test-co",
},
Expand Down

0 comments on commit ce1eda1

Please sign in to comment.