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

[8.1] [Fleet] Allow bundled installs to occur even if EPR is unreachable (#125127) #126523

Merged
merged 3 commits into from
Mar 1, 2022

Conversation

kpollich
Copy link
Member

Backport

This will backport the following commits from main to 8.1:

Questions ?

Please refer to the Backport tool documentation

…lastic#125127)

* Allow bundled installs to occur even if EPR is unreachable

* Fix type errors in test

* Fix failing test

* fixup! Fix failing test

* Remove unused object in mock

* Make creation of preconfigured agent policy functional

* Always fall back to bundled packages if available

* Remove unused import

* Use packageInfo object instead of RegistryPackage where possible

* Fix type error in assets test

* Fix test timeouts

* Fix promise logic for registry fetch fallback

* Use archive package as default in create package policy

* Always install from bundled package if it exists - regardless of installation context

* Clean up + refactor a bit

* Default to cached package archive for policy updates

* Update mock in get.test.ts

* Add test for install from bundled package logic

* Delete timeout call in security solution tests

* Fix unused var in endpoint test

* Fix another unused var in endpoint test

* [Debug] Add some logging to test installation times in CI

* Revert "[Debug] Add some logging to test installation times in CI"

This reverts commit 513dcc1.

* Update docker images for registry

* Update docker image digest again

* Refactor latest package fetching to fix broken logic/tests

* Fix a bunch of type errors around renamed fetch latest package version methods

* Remove unused import

* Bump docker version to latest snapshot (again)

* Revert changes to endpoint tests

* Pass experimental flag in synthetics tests

* Fix endpoint version in fleet api integration test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit ba8c339)

# Conflicts:
#	x-pack/plugins/fleet/server/integration_tests/docker_registry_helper.ts
#	x-pack/test/fleet_api_integration/apis/package_policy/create.ts
#	x-pack/test/fleet_api_integration/config.ts
#	x-pack/test/functional/config.js
#	x-pack/test/functional_synthetics/config.js
@kpollich
Copy link
Member Author

@elasticmachine merge upstream

@kpollich
Copy link
Member Author

kpollich commented Mar 1, 2022

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
fleet 1148 1152 +4
Unknown metric groups

API count

id before after diff
fleet 1264 1268 +4

History

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

@kpollich kpollich merged commit cae3d4d into elastic:8.1 Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants