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] Hide Fleet Server policies in standalone agent instructions #98787

Merged
merged 3 commits into from
Apr 29, 2021

Conversation

Zacqary
Copy link
Contributor

@Zacqary Zacqary commented Apr 29, 2021

Summary

Closes #97707

Hides agent policies with is_default_fleet_server: true in the Run standalone flyout:

Screen Shot 2021-04-29 at 11 23 43 AM

And shows a warning for other policies with the Fleet Server integration:

Screen Shot 2021-04-29 at 12 05 45 PM

@Zacqary Zacqary added release_note:enhancement v8.0.0 Feature:Fleet Fleet team's agent central management project Team:Fleet Team label for Observability Data Collection Fleet team v7.14.0 labels Apr 29, 2021
@Zacqary Zacqary self-assigned this Apr 29, 2021
@Zacqary Zacqary marked this pull request as ready for review April 29, 2021 17:07
@Zacqary Zacqary requested a review from a team as a code owner April 29, 2021 17:07
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Feature:Fleet)

Copy link
Contributor

@jen-huang jen-huang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small copy suggestion, otherwise LGTM 🚀

Comment on lines 57 to 62
const showFleetServerWarning =
excludeFleetServer && packages.some((pkg) => pkg.name === FLEET_SERVER_PACKAGE);

const collectedIntegrationsCount = packages.filter(
(pkg) => !excludeFleetServer || pkg.name !== FLEET_SERVER_PACKAGE
).length;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: would be good to useMemo() these

'xpack.fleet.agentReassignPolicy.packageBadgeFleetServerWarning',
{
defaultMessage:
'The Fleet Server integration will not collect data in standalone mode.',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'The Fleet Server integration will not collect data in standalone mode.',
'Fleet Server will not be enabled in standalone mode.',

@Zacqary Zacqary enabled auto-merge (squash) April 29, 2021 17:21
@Zacqary Zacqary added the auto-backport Deprecated - use backport:version if exact versions are needed label Apr 29, 2021
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

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 724.1KB 725.4KB +1.3KB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @Zacqary

@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.13
7.x

The backport PRs will be merged automatically after passing CI.

@Zacqary Zacqary deleted the 97707-fleet-server-policy-hide branch April 29, 2021 19:46
kibanamachine added a commit that referenced this pull request Apr 29, 2021
…98787) (#98823)

Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Apr 29, 2021
…98787) (#98824)

Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Feature:Fleet Fleet team's agent central management project release_note:enhancement Team:Fleet Team label for Observability Data Collection Fleet team v7.13.0 v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Fleet] Hide Fleet Server policies in standalone agent instructions
4 participants