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] Fix cloudflare template error #182645

Merged
merged 1 commit into from
May 6, 2024

Conversation

criamico
Copy link
Contributor

@criamico criamico commented May 6, 2024

Summary

Cloudflare 8.24 doesn't install properly and the config tab also fails with the same error. This PR fixes this error and also fixes a small UI issue with max width not sets in configs tab.

The integration defines two possible options for auth (auth key or token) but only one should be used. When both are set the compile template fails with an error

Before

Screenshot 2024-05-03 at 16 16 35
Screenshot 2024-05-03 at 16 20 01

After

Screenshot 2024-05-06 at 10 58 57

@criamico criamico added release_note:fix Team:Fleet Team label for Observability Data Collection Fleet team backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) v8.15.0 labels May 6, 2024
@criamico criamico self-assigned this May 6, 2024
@criamico criamico marked this pull request as ready for review May 6, 2024 09:00
@criamico criamico requested a review from a team as a code owner May 6, 2024 09:00
@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

Copy link
Contributor

@juliaElastic juliaElastic left a comment

Choose a reason for hiding this comment

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

LGTM

@criamico criamico enabled auto-merge (squash) May 6, 2024 09:23
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

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.3MB 1.3MB +109.0B

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

cc @criamico

@criamico criamico merged commit 1a3ff70 into elastic:main May 6, 2024
30 checks passed
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request May 6, 2024
## Summary

Cloudflare 8.24 doesn't install properly and the config tab also fails
with the same error. This PR fixes this error and also fixes a small UI
issue with max width not sets in configs tab.

The integration defines two possible options for auth (auth key or
token) but only one should be used. When both are set the [compile
template](https://github.com/elastic/kibana/blob/be3f66fd45db4001b9437281a2cb075e817fa25f/x-pack/plugins/fleet/server/services/epm/agent/agent.ts#L27)
fails with an error

## Before
![Screenshot 2024-05-03 at 16 16
35](https://github.com/elastic/kibana/assets/16084106/cb90e72a-7cef-46eb-8542-324cce45ac37)
![Screenshot 2024-05-03 at 16 20
01](https://github.com/elastic/kibana/assets/16084106/4ffacea4-ffa7-4a1a-bf81-24213fee48f3)

## After
![Screenshot 2024-05-06 at 10 58
57](https://github.com/elastic/kibana/assets/16084106/36ca8bea-87d7-4d01-8fda-50190feb9fbb)

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

💚 All backports created successfully

Status Branch Result
8.14

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 May 6, 2024
# Backport

This will backport the following commits from `main` to `8.14`:
- [[Fleet] Fix cloudflare template error
(#182645)](#182645)

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

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

<!--BACKPORT [{"author":{"name":"Cristina
Amico","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-05-06T10:19:13Z","message":"[Fleet]
Fix cloudflare template error (#182645)\n\n## Summary\r\n\r\nCloudflare
8.24 doesn't install properly and the config tab also fails\r\nwith the
same error. This PR fixes this error and also fixes a small UI\r\nissue
with max width not sets in configs tab.\r\n\r\nThe integration defines
two possible options for auth (auth key or\r\ntoken) but only one should
be used. When both are set the
[compile\r\ntemplate](https://github.com/elastic/kibana/blob/be3f66fd45db4001b9437281a2cb075e817fa25f/x-pack/plugins/fleet/server/services/epm/agent/agent.ts#L27)\r\nfails
with an error\r\n\r\n## Before\r\n![Screenshot 2024-05-03 at 16
16\r\n35](https://github.com/elastic/kibana/assets/16084106/cb90e72a-7cef-46eb-8542-324cce45ac37)\r\n![Screenshot
2024-05-03 at 16
20\r\n01](https://github.com/elastic/kibana/assets/16084106/4ffacea4-ffa7-4a1a-bf81-24213fee48f3)\r\n\r\n##
After\r\n![Screenshot 2024-05-06 at 10
58\r\n57](https://github.com/elastic/kibana/assets/16084106/36ca8bea-87d7-4d01-8fda-50190feb9fbb)","sha":"1a3ff70c5e7ebdc308fe5022acee178a43302dc5","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Fleet","backport:prev-minor","v8.15.0"],"title":"[Fleet]
Fix cloudflare template
error","number":182645,"url":"https://github.com/elastic/kibana/pull/182645","mergeCommit":{"message":"[Fleet]
Fix cloudflare template error (#182645)\n\n## Summary\r\n\r\nCloudflare
8.24 doesn't install properly and the config tab also fails\r\nwith the
same error. This PR fixes this error and also fixes a small UI\r\nissue
with max width not sets in configs tab.\r\n\r\nThe integration defines
two possible options for auth (auth key or\r\ntoken) but only one should
be used. When both are set the
[compile\r\ntemplate](https://github.com/elastic/kibana/blob/be3f66fd45db4001b9437281a2cb075e817fa25f/x-pack/plugins/fleet/server/services/epm/agent/agent.ts#L27)\r\nfails
with an error\r\n\r\n## Before\r\n![Screenshot 2024-05-03 at 16
16\r\n35](https://github.com/elastic/kibana/assets/16084106/cb90e72a-7cef-46eb-8542-324cce45ac37)\r\n![Screenshot
2024-05-03 at 16
20\r\n01](https://github.com/elastic/kibana/assets/16084106/4ffacea4-ffa7-4a1a-bf81-24213fee48f3)\r\n\r\n##
After\r\n![Screenshot 2024-05-06 at 10
58\r\n57](https://github.com/elastic/kibana/assets/16084106/36ca8bea-87d7-4d01-8fda-50190feb9fbb)","sha":"1a3ff70c5e7ebdc308fe5022acee178a43302dc5"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/182645","number":182645,"mergeCommit":{"message":"[Fleet]
Fix cloudflare template error (#182645)\n\n## Summary\r\n\r\nCloudflare
8.24 doesn't install properly and the config tab also fails\r\nwith the
same error. This PR fixes this error and also fixes a small UI\r\nissue
with max width not sets in configs tab.\r\n\r\nThe integration defines
two possible options for auth (auth key or\r\ntoken) but only one should
be used. When both are set the
[compile\r\ntemplate](https://github.com/elastic/kibana/blob/be3f66fd45db4001b9437281a2cb075e817fa25f/x-pack/plugins/fleet/server/services/epm/agent/agent.ts#L27)\r\nfails
with an error\r\n\r\n## Before\r\n![Screenshot 2024-05-03 at 16
16\r\n35](https://github.com/elastic/kibana/assets/16084106/cb90e72a-7cef-46eb-8542-324cce45ac37)\r\n![Screenshot
2024-05-03 at 16
20\r\n01](https://github.com/elastic/kibana/assets/16084106/4ffacea4-ffa7-4a1a-bf81-24213fee48f3)\r\n\r\n##
After\r\n![Screenshot 2024-05-06 at 10
58\r\n57](https://github.com/elastic/kibana/assets/16084106/36ca8bea-87d7-4d01-8fda-50190feb9fbb)","sha":"1a3ff70c5e7ebdc308fe5022acee178a43302dc5"}}]}]
BACKPORT-->

Co-authored-by: Cristina Amico <[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:fix Team:Fleet Team label for Observability Data Collection Fleet team v8.14.0 v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants