-
Notifications
You must be signed in to change notification settings - Fork 148
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
V1 controller with agent #561
V1 controller with agent #561
Conversation
This pull request does not have a backport label. Could you fix it @fearful-symmetry? 🙏
NOTE: |
🌐 Coverage report
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, please take a look at comments i left, just few small improvements
@@ -917,6 +962,24 @@ specs: | |||
<<: *binary_spec | |||
<<: *elastic_license_for_binaries | |||
|
|||
#elastic-agent-shipper packaged for the agent | |||
elastic_shipper_agent: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the packaging spec that's called from the shipper itself during mage package
.
@@ -0,0 +1,13 @@ | |||
name: Shipper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please rename to elastic-agent-shipper.spec.yml
we added spec
so we dont have a conflict with config files
magefile.go
Outdated
pwd, err := filepath.Abs(filepath.Join("../beats/x-pack", b)) | ||
var pwd string | ||
var err error | ||
if !strings.Contains(b, "beat") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'd rather have this explicitely configured e.g changing packedBeats to a struct or a map where key is a beat name and value is IsXpack
What does this PR do?
This PR allows the agent to build and control the shipper via the V1 specfiles and control protocol: elastic/elastic-agent-shipper#13 elastic/elastic-agent-shipper#46
This will go on a seperateThis has been tested, and most of the time was spent figuring out how to make the specfiles happy.v1-shipper-support
branch and not onmain
, however apparently you can't create a new branch in the github PR UI so I'll do that after.Note that this doesn't include any changes to the default config files such that the shipper might run by default out of the box, as we're still not sure what the shipper config will actually look like.
Why is it important?
The shipper needs to run under agent, and using the existing V1 APIs is sort of a fallback in case we can't have V2 done in time.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.