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

Fix agent not starting with api key missing on Windows #19887

Merged
merged 4 commits into from
Oct 3, 2023

Conversation

julien-lebot
Copy link
Contributor

@julien-lebot julien-lebot commented Oct 2, 2023

What does this PR do?

This PR introduces an extra Module for the Trace Agent config component that doesn't need the API key to start.

Motivation

The main Datadog Agent should be able to start without an API key, but the Trace Agent doesn't. Since the Datadog Agent now requires the ability to read the Trace Agent config (I believe for internal telemetry), we should make sure it doesn't require an API key to start.

Additional Notes

Full CI pipeline here: https://gitlab.ddbuild.io/DataDog/datadog-agent/-/pipelines/20843825/

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Reviewer's Checklist

  • If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
  • Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
  • A release note has been added or the changelog/no-changelog label has been applied.
  • Changed code has automated tests for its functionality.
  • Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
  • At least one team/.. label has been applied, indicating the team(s) that should QA this change.
  • If applicable, docs team has been notified or an issue has been opened on the documentation repo.
  • If applicable, the need-change/operator and need-change/helm labels have been applied.
  • If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
  • If applicable, the config template has been updated.

…ow the main Datadog Agent to start even if the API key is missing.
@darccio
Copy link
Member

darccio commented Oct 3, 2023

@julien-lebot Does this PR supersede #19884?

@derekwbrown
Copy link
Contributor

@julien-lebot Does this PR supersede #19884?

Yes. I would just close 19884

@derekwbrown
Copy link
Contributor

Merging this on behalf of Julien. Supercedes #19884.

@derekwbrown derekwbrown closed this Oct 3, 2023
@derekwbrown derekwbrown reopened this Oct 3, 2023
@derekwbrown derekwbrown merged commit 95e21f1 into main Oct 3, 2023
13 checks passed
@derekwbrown derekwbrown deleted the julien.lebot/fix_agent_not_start_api_key_missing branch October 3, 2023 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants