Skip to content

Commit

Permalink
Make reason for not being ready a bit more speaking (NotReady -> Even…
Browse files Browse the repository at this point in the history
…tPoliciesNotReady)
  • Loading branch information
creydr committed Jun 18, 2024
1 parent 594e3d7 commit fd35309
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func (r *Reconciler) ReconcileKind(ctx context.Context, imc *v1.InMemoryChannel)
if len(unreadyEventPolicies) == 0 {
imc.Status.MarkEventPoliciesTrue()
} else {
imc.Status.MarkEventPoliciesFailed("NotReady", "event policies %s are not ready", strings.Join(unreadyEventPolicies, ", "))
imc.Status.MarkEventPoliciesFailed("EventPoliciesNotReady", "event policies %s are not ready", strings.Join(unreadyEventPolicies, ", "))
}

} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ func TestAllCases(t *testing.T) {
WithInMemoryChannelAddress(channelServiceAddress),
WithDeadLetterSink(imcDest),
WithInMemoryChannelStatusDLS(dlsStatus),
WithInMemoryChannelEventPoliciesNotReady("NotReady", fmt.Sprintf("event policies %s are not ready", makeUnreadyEventPolicy().Name)),
WithInMemoryChannelEventPoliciesNotReady("EventPoliciesNotReady", fmt.Sprintf("event policies %s are not ready", makeUnreadyEventPolicy().Name)),
),
}},
}, {
Expand Down Expand Up @@ -736,7 +736,7 @@ func TestAllCases(t *testing.T) {
WithInMemoryChannelAddress(channelServiceAddress),
WithDeadLetterSink(imcDest),
WithInMemoryChannelStatusDLS(dlsStatus),
WithInMemoryChannelEventPoliciesNotReady("NotReady", fmt.Sprintf("event policies %s are not ready", makeUnreadyEventPolicy().Name)),
WithInMemoryChannelEventPoliciesNotReady("EventPoliciesNotReady", fmt.Sprintf("event policies %s are not ready", makeUnreadyEventPolicy().Name)),
WithInMemoryChannelEventPoliciesListed(makeReadyEventPolicy()),
),
}},
Expand Down

0 comments on commit fd35309

Please sign in to comment.