Skip to content
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

[Fleet] Disable Upgrade agents on this policy action when 0 agents #207344

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

juliaElastic
Copy link
Contributor

@juliaElastic juliaElastic commented Jan 21, 2025

Summary

Closes #205588

Disable the upgarde and uninstall action on the agent policy when there are 0 agents enrolled.

image

@juliaElastic juliaElastic added release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Jan 21, 2025
@juliaElastic juliaElastic self-assigned this Jan 21, 2025
@juliaElastic juliaElastic requested a review from a team as a code owner January 21, 2025 12:54
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Jan 21, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@juliaElastic juliaElastic enabled auto-merge (squash) January 21, 2025 13:39
@juliaElastic juliaElastic merged commit 1ec6245 into elastic:main Jan 21, 2025
8 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12892658063

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #19 / FileNameLink renders simple text name if file is not image

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 1.7MB 1.7MB +54.0B

History

cc @juliaElastic

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 21, 2025
…lastic#207344)

## Summary

Closes elastic#205588

Disable the upgarde and uninstall action on the agent policy when there
are 0 agents enrolled.

<img width="1014" alt="image"
src="https://github.com/user-attachments/assets/7174540b-9933-48c9-9f74-c51973f7582a"
/>

(cherry picked from commit 1ec6245)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jan 21, 2025
…n when 0 agents (#207344) (#207421)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Fleet] Disable &#x60;Upgrade agents on this policy&#x60; action when
0 agents (#207344)](#207344)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Julia
Bardi","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-21T17:39:19Z","message":"[Fleet]
Disable `Upgrade agents on this policy` action when 0 agents
(#207344)\n\n## Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/205588\r\n\r\nDisable the
upgarde and uninstall action on the agent policy when there\r\nare 0
agents enrolled.\r\n\r\n<img width=\"1014\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/7174540b-9933-48c9-9f74-c51973f7582a\"\r\n/>","sha":"1ec624524ee1fc48fea26069db7d063053ca94f7","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v9.0.0","backport:prev-minor"],"title":"[Fleet]
Disable `Upgrade agents on this policy` action when 0
agents","number":207344,"url":"https://github.com/elastic/kibana/pull/207344","mergeCommit":{"message":"[Fleet]
Disable `Upgrade agents on this policy` action when 0 agents
(#207344)\n\n## Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/205588\r\n\r\nDisable the
upgarde and uninstall action on the agent policy when there\r\nare 0
agents enrolled.\r\n\r\n<img width=\"1014\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/7174540b-9933-48c9-9f74-c51973f7582a\"\r\n/>","sha":"1ec624524ee1fc48fea26069db7d063053ca94f7"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/207344","number":207344,"mergeCommit":{"message":"[Fleet]
Disable `Upgrade agents on this policy` action when 0 agents
(#207344)\n\n## Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/205588\r\n\r\nDisable the
upgarde and uninstall action on the agent policy when there\r\nare 0
agents enrolled.\r\n\r\n<img width=\"1014\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/7174540b-9933-48c9-9f74-c51973f7582a\"\r\n/>","sha":"1ec624524ee1fc48fea26069db7d063053ca94f7"}}]}]
BACKPORT-->

Co-authored-by: Julia Bardi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.18.0 v9.0.0
Projects
None yet
4 participants