-
Notifications
You must be signed in to change notification settings - Fork 158
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
Clean up message when audit/uninstall returns 401 #6735
Merged
michel-laterman
merged 5 commits into
elastic:main
from
michel-laterman:improve-uninstall-notify-message
Feb 7, 2025
Merged
Clean up message when audit/uninstall returns 401 #6735
michel-laterman
merged 5 commits into
elastic:main
from
michel-laterman:improve-uninstall-notify-message
Feb 7, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
cmacknz
reviewed
Feb 6, 2025
Co-authored-by: Craig MacKenzie <[email protected]>
|
cmacknz
approved these changes
Feb 7, 2025
mergify bot
pushed a commit
that referenced
this pull request
Feb 7, 2025
* Clean up message when audit/uninstall returns 401 * Update internal/pkg/agent/install/uninstall.go Co-authored-by: Craig MacKenzie <[email protected]> --------- Co-authored-by: Craig MacKenzie <[email protected]> (cherry picked from commit c82d568)
5 tasks
mergify bot
pushed a commit
that referenced
this pull request
Feb 7, 2025
* Clean up message when audit/uninstall returns 401 * Update internal/pkg/agent/install/uninstall.go Co-authored-by: Craig MacKenzie <[email protected]> --------- Co-authored-by: Craig MacKenzie <[email protected]> (cherry picked from commit c82d568)
5 tasks
mergify bot
pushed a commit
that referenced
this pull request
Feb 7, 2025
* Clean up message when audit/uninstall returns 401 * Update internal/pkg/agent/install/uninstall.go Co-authored-by: Craig MacKenzie <[email protected]> --------- Co-authored-by: Craig MacKenzie <[email protected]> (cherry picked from commit c82d568) # Conflicts: # internal/pkg/agent/install/uninstall_test.go
5 tasks
mergify bot
pushed a commit
that referenced
this pull request
Feb 7, 2025
* Clean up message when audit/uninstall returns 401 * Update internal/pkg/agent/install/uninstall.go Co-authored-by: Craig MacKenzie <[email protected]> --------- Co-authored-by: Craig MacKenzie <[email protected]> (cherry picked from commit c82d568) # Conflicts: # internal/pkg/agent/install/uninstall_test.go
5 tasks
mergify bot
pushed a commit
that referenced
this pull request
Feb 7, 2025
* Clean up message when audit/uninstall returns 401 * Update internal/pkg/agent/install/uninstall.go Co-authored-by: Craig MacKenzie <[email protected]> --------- Co-authored-by: Craig MacKenzie <[email protected]> (cherry picked from commit c82d568)
5 tasks
michel-laterman
added a commit
that referenced
this pull request
Feb 8, 2025
* Clean up message when audit/uninstall returns 401 * Update internal/pkg/agent/install/uninstall.go Co-authored-by: Craig MacKenzie <[email protected]> --------- Co-authored-by: Craig MacKenzie <[email protected]> (cherry picked from commit c82d568) Co-authored-by: Michel Laterman <[email protected]>
michel-laterman
added a commit
that referenced
this pull request
Feb 8, 2025
…401 (#6768) * Clean up message when audit/uninstall returns 401 (#6735) * Clean up message when audit/uninstall returns 401 * Update internal/pkg/agent/install/uninstall.go Co-authored-by: Craig MacKenzie <[email protected]> --------- Co-authored-by: Craig MacKenzie <[email protected]> (cherry picked from commit c82d568) # Conflicts: # internal/pkg/agent/install/uninstall_test.go * Fix merge conflict --------- Co-authored-by: Michel Laterman <[email protected]> Co-authored-by: michel-laterman <[email protected]>
michel-laterman
added a commit
that referenced
this pull request
Feb 8, 2025
…401 (#6767) * Clean up message when audit/uninstall returns 401 (#6735) * Clean up message when audit/uninstall returns 401 * Update internal/pkg/agent/install/uninstall.go Co-authored-by: Craig MacKenzie <[email protected]> --------- Co-authored-by: Craig MacKenzie <[email protected]> (cherry picked from commit c82d568) # Conflicts: # internal/pkg/agent/install/uninstall_test.go * Fix merge conflict --------- Co-authored-by: Michel Laterman <[email protected]> Co-authored-by: michel-laterman <[email protected]>
michel-laterman
added a commit
that referenced
this pull request
Feb 18, 2025
* Clean up message when audit/uninstall returns 401 * Update internal/pkg/agent/install/uninstall.go Co-authored-by: Craig MacKenzie <[email protected]> --------- Co-authored-by: Craig MacKenzie <[email protected]> (cherry picked from commit c82d568) Co-authored-by: Michel Laterman <[email protected]>
michel-laterman
added a commit
that referenced
this pull request
Feb 18, 2025
* Clean up message when audit/uninstall returns 401 * Update internal/pkg/agent/install/uninstall.go Co-authored-by: Craig MacKenzie <[email protected]> --------- Co-authored-by: Craig MacKenzie <[email protected]> (cherry picked from commit c82d568) Co-authored-by: Michel Laterman <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backport-active-8
Automated backport with mergify to all the active 8.[0-9]+ branches
backport-active-9
Automated backport with mergify to all the active 9.[0-9]+ branches
bug
Something isn't working
Team:Elastic-Agent-Control-Plane
Label for the Agent Control Plane team
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Clean up cli output when
elastic-agent uninstall
runs when the agent has previously been unenrolled.Why is it important?
Current output indicates an error state, this can lead to confusion.
New output will indicate that the notification is dropped.
Checklist
I have made corresponding changes to the documentationI have made corresponding change to the default configuration files./changelog/fragments
using the changelog toolI have added an integration test or an E2E testDisruptive User Impact
N/A
How to test this PR locally
Unenroll an agent in fleet, then run the uninstall command.
Related issues
Invalid api key
error is observed in CLI on running uninstall command for unenrolled agent. #6711