Use NamedWatcher in Agent's k8s provider#29095
Conversation
Signed-off-by: chrismark <chrismarkou92@gmail.com>
|
Pinging @elastic/integrations (Team:Integrations) |
|
This pull request does not have a backport label. Could you fix it @ChrsMark? 🙏
NOTE: |
libbeat/common/kubernetes/watcher.go
Outdated
| return NewNamedWatcher("", client, resource, opts, indexers) | ||
| } | ||
|
|
||
| // NewNamedWatcher does the same as NewWatcher, but also allows to name the k8s |
There was a problem hiding this comment.
Nit: After deleting NewWatcher this sentence does not make sense any more
MichaelKatsoulis
left a comment
There was a problem hiding this comment.
LGTM! Just one small update in the NewNamedWatcher description.
Signed-off-by: chrismark <chrismarkou92@gmail.com>
💚 Build Succeeded
Expand to view the summary
Build stats
❕ Flaky test reportNo test was executed to be analysed. 🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
|
/package |
|
/test |
|
/package |
* upstream/master: (577 commits) Remove Journalbeat (elastic#29131) Add note that there is no warranty or support for generator code (elastic#28797) packetbeat: preparation for npcap addition (elastic#29017) Use the generic helper for opening file to read in filestream (elastic#29180) Workflow for macos (elastic#29174) Fix `decode_json_fields` processor to always add error key (elastic#29107) Workflow for macos (elastic#29156) Fix agent download timeout values in yaml files (elastic#29039) Added workflow file for builds with macos (elastic#29148) CI: enable AWS cloud testing on a PR basis if changes in certain files (elastic#29047) Remove links to Journalbeat (elastic#29134) Fix rds metadata in cloudwatch metricset (elastic#29106) [mergify]: notify conflicts in PRs that are still open (elastic#29122) Use NamedWatcher in Agent's k8s provider (elastic#29095) override host on statsd metricset (elastic#29103) Skip config check in autodiscover for duplicated configurations (elastic#29048) Change "filebeat.config.modules.enabled" to "true" (elastic#28769) Remove deprecated spool queue from Beats (elastic#28869) Add `beat` field back to beat.stats (elastic#29094) Revert "Move labels and annotations under kubernetes.namespace. (elastic#27917)" (elastic#29069) ...
What does this PR do?
Replacing
NewWatcherfunction and useNewNamedWatcherin its place.Why is it important?
Code's maintainability.
Related issues