Skip to content

Add rollback attribute to upgrade actions#4839

Merged
michel-laterman merged 1 commit intoelastic:mainfrom
michel-laterman:upgrade-rollback-attribute
Apr 29, 2025
Merged

Add rollback attribute to upgrade actions#4839
michel-laterman merged 1 commit intoelastic:mainfrom
michel-laterman:upgrade-rollback-attribute

Conversation

@michel-laterman
Copy link
Copy Markdown
Contributor

What is the problem this PR solves?

Fleet does not support explicit rollbacks to earlier versions.

How does this PR solve the problem?

Add an attribute to upgrade actions that indicate that the agent will rollback.

Design Checklist

  • I have ensured my design is stateless and will work when multiple fleet-server instances are behind a load balancer.
  • I have or intend to scale test my changes, ensuring it will work reliably with 100K+ agents connected.
  • I have included fail safe mechanisms to limit the load on fleet-server: rate limiting, circuit breakers, caching, load shedding, etc.

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool

Related issues

@michel-laterman michel-laterman added enhancement New feature or request Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels Apr 23, 2025
@michel-laterman michel-laterman requested a review from pchila April 23, 2025 23:39
@michel-laterman michel-laterman requested a review from a team as a code owner April 23, 2025 23:39
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Apr 23, 2025

This pull request does not have a backport label. Could you fix it @michel-laterman? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-./d./d is the label to automatically backport to the 8./d branch. /d is the digit
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-8 is the label that automatically backports to all active minor branches for the 8 major.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.

@michel-laterman michel-laterman force-pushed the upgrade-rollback-attribute branch from a4e931b to f3cf505 Compare April 24, 2025 16:25
@elastic-sonarqube
Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@michel-laterman michel-laterman merged commit d0ad90b into elastic:main Apr 29, 2025
9 checks passed
@michel-laterman michel-laterman deleted the upgrade-rollback-attribute branch April 29, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add rollback boolean field to ActionUpgrade

2 participants