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

Revert "[agentbeat] Fix agentbeat capabilities" #40510

Merged
merged 3 commits into from
Aug 14, 2024

Conversation

blakerouse
Copy link
Contributor

Reverts #40466 as the change in this PR elastic/elastic-agent#5290 removes the need for the agentbeat itself to promote its own capabilites.

@blakerouse blakerouse added backport-skip Skip notification from the automated backport with mergify Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels Aug 13, 2024
@blakerouse blakerouse self-assigned this Aug 13, 2024
@blakerouse blakerouse requested a review from a team as a code owner August 13, 2024 18:31
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Aug 13, 2024
@@ -70,12 +70,8 @@ func prepareCommand(rootCmd *cmd.BeatsRootCmd) *cobra.Command {
// filename, as all the beats set this in the initialization.
err := cfgfile.ChangeDefaultCfgfileFlag(rootCmd.Use)
if err != nil {
panic(fmt.Errorf("failed to set default config file path: %w", err))
panic(fmt.Errorf("failed to set default config file path: %v", err))
Copy link
Member

Choose a reason for hiding this comment

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

Should this be a %w instead?

Copy link
Contributor

Choose a reason for hiding this comment

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

Even though I believe nothing will ever try to recover from this panic, I believe it's good to make the linter happy.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@blakerouse blakerouse enabled auto-merge (squash) August 14, 2024 14:02
@blakerouse blakerouse merged commit f6b8701 into main Aug 14, 2024
12 checks passed
@blakerouse blakerouse deleted the revert-40466-fix-agentbeat-caps branch August 14, 2024 14:19
@VihasMakwana
Copy link
Contributor

@blakerouse I think we should backport this revert PR, because my original PR was also backported.
cc: @pierrehilbert

@blakerouse blakerouse added backport-8.15 Automated backport to the 8.15 branch with mergify and removed backport-skip Skip notification from the automated backport with mergify labels Aug 21, 2024
mergify bot pushed a commit that referenced this pull request Aug 21, 2024
* Revert "[agentbeat] Fix agentbeat capabilities (#40466)"

This reverts commit 36cef2f.

* Update main.go

(cherry picked from commit f6b8701)
blakerouse added a commit that referenced this pull request Aug 21, 2024
…s" (#40575)

* Revert "[agentbeat] Fix agentbeat capabilities" (#40510)

* Revert "[agentbeat] Fix agentbeat capabilities (#40466)"

This reverts commit 36cef2f.

* Update main.go

(cherry picked from commit f6b8701)

* Update CHANGELOG.next.asciidoc

---------

Co-authored-by: Blake Rouse <blake.rouse@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-8.15 Automated backport to the 8.15 branch with mergify Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants