-
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
Add support for processors in hints based k8s autodiscover #3107
Conversation
This pull request does not have a backport label. Could you fix it @gizas? 🙏
NOTE: |
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 quite good!
I have left a minor comment about the code organisation.
Please add some unit tests and remember to update the respective dev+user docs.
Co-authored-by: Chris Mark <[email protected]>
🌐 Coverage report
|
Co-authored-by: Chris Mark <[email protected]>
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.
Hey @gizas , thanks for addressing the comments.
I left some minor comments but it's getting there.
changelog/fragments/1691060806-Processor-support-for-hints-autodiscover.yaml
Outdated
Show resolved
Hide resolved
…odiscover.yaml Co-authored-by: Chris Mark <[email protected]>
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.
🔥 lgtm, great to see this landed! 🚀 🚀 🚀
|
||
hintData := GetHintsMapping(mapping, logger, "co.elastic", "asdfghjkl") | ||
|
||
assert.Equal(t, expected_hints, hintData.composableMapping) |
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.
👍🏽
Co-authored-by: Chris Mark <[email protected]>
@elastic/elastic-agent-control-plane I need one review from yourside as well in order to merge. Can you please have a look? |
I guess we should also update the code ownership here as well @cmacknz , right? |
…ic-agent into processorhints_enhancement
flakyness in a way how maps are used/compared. keys are not sorted. |
Fixing this with 21d095b |
/test |
/test |
/test |
Unrelated failures. I force merge. |
) * adding processors block * Updating code with last eg that retrievs processors * Updating code with processors with reference form utils * fixing initialisation of variable * Update internal/pkg/composable/providers/kubernetes/pod.go Co-authored-by: Chris Mark <[email protected]> * Update internal/pkg/composable/providers/kubernetes/pod.go Co-authored-by: Chris Mark <[email protected]> * adding unit test and fixing struct * fixing initialisation of struct * adding function updateprocessors also to default_containers * adding fragment file * Update changelog/fragments/1691060806-Processor-support-for-hints-autodiscover.yaml Co-authored-by: Chris Mark <[email protected]> * Updating variable names and fixing test to call public GetHintsMapping * Update internal/pkg/composable/providers/kubernetes/pod.go Co-authored-by: Chris Mark <[email protected]> * Updating tests * Updating tests * Updating tests to avoid sorting of mappings --------- Co-authored-by: Chris Mark <[email protected]>
Would this be released in 8.10.3? Is there an ETA for 8.10.3? |
If there is no delay, next week will be the release of both 8.10.3 and 8.11.0. Either way I will notify you in which version this is in |
What does this PR do?
This PR adds the support of processors autodiscovery based on hints annotations that are provided from kubernetes pods
Why is it important?
Checklist
./changelog/fragments
using the changelog toolAuthor's Checklist
hints/processors
---> To be done as part of the [Elastic Agent ] Support of processors functionality with hints autodiscovery #2959How to test this PR locally
elastic-package stack up -d -vvv --version=8.9.0-SNAPSHOT
docker network connect elastic-package-stack_default kind-control-plane
DEV=true EXTERNAL=true SNAPSHOT=true PLATFORMS=linux/arm64 PACKAGES=docker mage -v package
Install elastic-agent-standalone
Sample provided:
elastic-agent.txt
Install ngin-x pod:
Then if agent is up and running connect to Elastic-Agent and run inspect command.
You should be able to see the new processors added
Related issues
Screenshots
Map populated correctly based on
hints/processors
provided