-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Improve support for Agentless in Fleet UI #183045
[Fleet] Improve support for Agentless in Fleet UI #183045
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
@elasticmachine merge upstream |
@elasticmachine merge upstream |
/ci |
/ci |
@elasticmachine merge upstream |
/ci |
I built a test package with some example inputs that has the new fields specified in elastic/package-spec#738 - I built two different versions to make sure that both will work on kibana:
These files can be used to test the above changes. |
Pinging @elastic/fleet (Team:Fleet) |
@elasticmachine merge upstream |
I tested the UI with the example integrations in ESS as well to make sure that the variables are shown/hidden as requested: |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Async chunks
History
To update your PR or re-run it, just comment with: cc @criamico |
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.
LGTM
Should the "create agent policy" step be shown for agentless policies? I would expect that an agentless integration would always be placed on the |
@kpollich It's actually like that already. Here's a screenshot on serverless with agentless flag enabled: Outside of this conditions (ESS, serverless with agentless not enabled) the agent policy selector is shown, as there is nothing to prevent an agentless integration to be installed. |
Perfect - thanks for clarifying, @criamico 👍 |
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.
LGTM - happy to see tests on both client + server side here. 🚀
@@ -278,7 +278,7 @@ describe('Agent policy', () => { | |||
); | |||
}); | |||
|
|||
it('should not throw error if support_agentless is set if agentless feature flag is set in serverless', async () => { | |||
it('should create a policy with is_managed true if agentless feature flag is set and in serverless env', async () => { |
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.
Thanks for updating this test case based on the new logic added.
Fixes #184191 ## Summary With merge of #183045 some tests related to agentless started failing in main. I realized that there was a missing condition in a form, so this PR adds that condition and fixes the failing test. Note: the test wasn't flaky, it was failing on each run after merge. For some reason it never failed on the branch, however there was a concurrent merge of [another PR](b86039e) that touched the same UI and that could have something to do with it. ### Checklist - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: Kibana Machine <[email protected]>
Closes #180375
Summary
Expand support for Agentless in Fleet UI. Implemented on this PR:
supports_agentless
(added in [Fleet] Add support_agentless property in agent policy schema and preconfiguration #182709) are now marked asis_managed
deployment_modes.agentless.enabled
andhide_in_deployment_modes
introduced with [Change Proposal] Define requirements for agentless support package-spec#684:hide_in_deployment_modes
shows/hides variables in agentless/default UIdeployment_modes.agentless.enabled: true
determines an integration as enabled for agentlessNotes
agentless
policy.Testing
Verify that new settings are honoured in integration policy
agentless_test_package-1.0.1-rc1.zip
(Packages in this comment)hide_in_deployment_modes: "agentless"
are not visibleVerify that agent policies with
supports_agentless
are marked as managedsupports_agentless
is_managed = true
Checklist