Skip to content

elastic/elastic-agent-autodiscover

Folders and files

NameName
Last commit message
Last commit date
Jul 22, 2024
Sep 13, 2024
Mar 8, 2022
Jun 9, 2022
Aug 11, 2024
Oct 3, 2024
Jun 6, 2022
Apr 22, 2024
Mar 24, 2020
Jan 11, 2019
Jun 23, 2021
Oct 2, 2024
Oct 2, 2024
Mar 7, 2022
Feb 7, 2025
Sep 18, 2023
Nov 27, 2024
Feb 7, 2025
Feb 7, 2025
Jun 9, 2022

Repository files navigation

elastic-agent-autodiscover

This repo contains packages required by autodiscover.

  • github.com/elastic/elastic-agent-autodiscover/bus
  • github.com/elastic/elastic-agent-autodiscover/docker
  • github.com/elastic/elastic-agent-autodiscover/kubernetes
  • github.com/elastic/elastic-agent-autodiscover/kubernetes/metadata
  • github.com/elastic/elastic-agent-autodiscover/utils

Releasing updates

Note: For every user-facing change remember to update the changelog properly

Every time a new PR is merged and we want to make it available to external repos using this library we need to create a new tag. Anybody with push privileges to this repository can create a new tag locally and push it to the upstream like the following:

$ git remote -v
origin	[email protected]:ChrsMark/elastic-agent-autodiscover.git (fetch)
origin	[email protected]:ChrsMark/elastic-agent-autodiscover.git (push)
upstream	https://github.com/elastic/elastic-agent-autodiscover.git (fetch)
upstream	https://github.com/elastic/elastic-agent-autodiscover.git (push)
$ git tag -a v0.2.1 -m "New patch release for minor codebase improvements"
$ git push upstream v0.2.1 
Enumerating objects: 1, done.
Counting objects: 100% (1/1), done.
Writing objects: 100% (1/1), 190 bytes | 190.00 KiB/s, done.
Total 1 (delta 0), reused 0 (delta 0)
To https://github.com/elastic/elastic-agent-autodiscover.git
 * [new tag]             v0.2.1 -> v0.2.1

Then the tag should be available at https://github.com/elastic/elastic-agent-autodiscover/tags and anyone can use the the new version of the library in other projects. For example in order to use v0.2.1 in Beats projects one would need a go get github.com/elastic/[email protected].

After the tag is available a Release can be created using this tag and the proper content from the changelog.

Development

When one wants to edit and test the library as part of the Beats or Elastic Agent projects, the local version of the dependency can be referenced with the following:

go.mod:

replace github.com/elastic/elastic-agent-autodiscover => /home/user/go/src/github.com/elastic/elastic-agent-autodiscover

This will use the local code rather than the upstream dependency. Note: Do not forget to exclude this change from the final commits.