-
Notifications
You must be signed in to change notification settings - Fork 149
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
[Upgrade Details] When state is set to something other than StateFailed
, clear related metadata fields
#3690
[Upgrade Details] When state is set to something other than StateFailed
, clear related metadata fields
#3690
Conversation
This pull request does not have a backport label. Could you fix it @ycombinator? 🙏
NOTE: |
StateFailed
, clear related metadata fields
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
/test |
45bc7f0
to
7a2a144
Compare
SonarQube Quality Gate |
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.
Looks good.
What does this PR do?
This PR fixes the Upgrade Details struct such that setting its
State
field to anything other thanStateFailed
clears associated fields,Metadata.FailedState
andMetadata.ErrorMsg
.Why is it important?
The
Metadata.FailedState
andMetadata.ErrorMsg
should only be set whenState
is set toStateFailed
.Checklist
I have made corresponding changes to the documentationI have made corresponding change to the default configuration filesI have added an entry in./changelog/fragments
using the changelog toolI have added an integration test or an E2E test