-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show actual log during custom wait rule if asked specifically #1038
Conversation
pkg/kapp/config/config.go
Outdated
@@ -57,6 +57,7 @@ type WaitRuleConditionMatcher struct { | |||
SupportsObservedGeneration bool | |||
UnblockChanges bool | |||
Timeout string | |||
ShowActualMessage bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: ShowActualMessage -> ShouldDisplayActualMessage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am ok with anything. However ShouldDisplayActualMessage
seems a bit long.
b21758e
to
ac0ceea
Compare
@@ -131,6 +131,7 @@ func (s CustomWaitingResource) IsDoneApplying() DoneApplyState { | |||
} | |||
|
|||
unblockChangeMsg := "" | |||
actualMsg := "No failing or successful conditions found" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe just message
instead of actualMsg
?
We are assigning the variable with a custom message which indicated that it is just not "actual" 🤔
Signed-off-by: Rohit Aggarwal <[email protected]>
ac0ceea
to
6daa95f
Compare
Show actual log during custom wait rule if asked specifically
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?
Additional Notes for your reviewer:
Review Checklist:
a link to that PR
change
Additional documentation e.g., Proposal, usage docs, etc.: