Skip to content

Commit

Permalink
fix: OTeL update process and add docs
Browse files Browse the repository at this point in the history
Signed-off-by: Ken Finnigan <[email protected]>
  • Loading branch information
kenfinnigan committed Apr 24, 2024
1 parent d5c52d5 commit 8e3fd72
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/otel-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
run: |
tag_name=${{ steps.get-latest-otel-version.outputs.latest_otel_version }}
latest_version=$(echo $tag_name | cut -c 2-)
current_version=${{ steps.get-current-otel-version.outputs.current_version }}
git checkout -b update-otel-$tag_name
echo $latest_version > OTEL_VERSION
Expand All @@ -50,6 +51,9 @@ jobs:
# Update version in builder-config.yaml
sed -i "s/$current_version/$latest_version/g" cmd/otelcontribcol/builder-config.yaml
# Update version in versions.yaml
sed -i "s/$current_version/$latest_version/g" versions.yaml
# Run checks to run `go mod tidy` and regenerate otelcontribcol
make checks
Expand Down
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,25 @@ Add the new component to the following files:

Run `make` to ensure the code builds correctly.

## OTeL Collector Contrib Releases

Every week the `check-for-otel-update` workflow will execute looking for a more recent release
of [OTeL Collector Contrib](https://github.com/open-telemetry/opentelemetry-collector-contrib).
It uses the version in `OTEL_VERSION`, which is set to the current version used,
to determine if there is a more recent release.

If a new release is found, it updates the following files:

- [builder-config.yaml](cmd/otelcontribcol/builder-config.yaml)
- [versions.yaml](versions.yaml)
- */go.mod files

The workflow runs `make checks` to regenerate the collector build and `tidy` the go modules.

A branch is created with the changes, and a PR is opened.

**Note:** The `check-for-otel-update` workflow does **not** pull the changes from the coped `/internal/k8sconfig` module. Changes in this module will need to be manually included.

## How to Release?

### What version to use?
Expand Down

0 comments on commit 8e3fd72

Please sign in to comment.