Skip to content

[7.x] [APM] Syncs agent config settings to APM Fleet policies (#100744)#101685

Merged
ogupte merged 1 commit intoelastic:7.xfrom
ogupte:backport/7.x/pr-100744
Jun 9, 2021
Merged

[7.x] [APM] Syncs agent config settings to APM Fleet policies (#100744)#101685
ogupte merged 1 commit intoelastic:7.xfrom
ogupte:backport/7.x/pr-100744

Conversation

@ogupte
Copy link
Contributor

@ogupte ogupte commented Jun 8, 2021

Backports the following commits to 7.x:

* [APM] Syncs agent config settings to APM Fleet policies (elastic#95501)

* fixes eslint issues

* fixes malformed line comment

* - consolidated logic that applies agent configurations to package policy objects
- update package policy agent_configs to include etag, agent.name, and change settings -> config

* Synchronizes agent configs whenever configuration is deleted.

* PR feedback

* nest agent_config within `apm-server` in the package policy input

* nests agent_config under the requried 'value' property of config['apm-server']
in order to pass validation checks

* - externalizes getApmPackagePolicies for reusability
- parallelizes operations for improved performance

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@ogupte ogupte added the backport This PR is a backport of another PR label Jun 8, 2021
@ogupte ogupte enabled auto-merge (squash) June 8, 2021 23:01
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

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

@ogupte ogupte merged commit 8a21bd5 into elastic:7.x Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants