Add complete flag environment variable to agent metadata#3190
Add complete flag environment variable to agent metadata#3190emilioalvap merged 5 commits intoelastic:mainfrom
Conversation
|
This pull request does not have a backport label. Could you fix it @emilioalvap? 🙏
NOTE: |
|
This pull request is now in conflicts. Could you fix it? 🙏 |
🌐 Coverage report
|
|
/test |
|
/test |
| kind: enhancement | ||
|
|
||
| # Change summary; a 80ish characters long description of the change. | ||
| summary: Add complete image to agent metadata. |
There was a problem hiding this comment.
When a customer reads the changelog what does this mean to them? Maybe some more information on why this is done would be better.
| } | ||
|
|
||
| // VersionInfo is structure used by `version --yaml`. | ||
| type VersionInfo struct { |
There was a problem hiding this comment.
Should this information be added to the VersionInfo? That is the information that is exposed from the elastic-agent version command line. Is that information important to know there? Being that we want to let fleet know seems like its important. That information would then be provided in diagnostics.
There was a problem hiding this comment.
I don't think it would make sense to include it from the synthetics pov. For us, this is telling us that a given agent is running inside Docker with synthetics deps bundled. For us having ELASTIC_AGENT_COMPLETE: "true" on the diagnostics file is a direct correlation so no need to display it on the version. But I can add it if you think it'll add value
There was a problem hiding this comment.
I agree that it is only for synthetics and inside of a container. How will the information that its a complete image get into the diagnostics zip archive?
There was a problem hiding this comment.
Diagnostics includes the agent environment:
env:
BEAT_SETUID_AS: elastic-agent
ELASTIC_AGENT_COMPLETE: "true"
blakerouse
left a comment
There was a problem hiding this comment.
Please update the changelog before merging, otherwise looks good!
What does this PR do?
Closes elastic/fleet-server#1754. Add environment variable to agent complete image and add it to agent metada.
Why is it important?
We need a mechanism to detect if the agent enrolled is a
-completeimage in Synthetics to show early warnings which the spec does not provide.Checklist
./changelog/fragmentsusing the changelog toolHow to test this PR locally
elastic-agentandelastic-agent-completecontainers on a policy.completeflag: