Skip to content

Commit

Permalink
Add compat package to create root level symlink, required by helm cha…
Browse files Browse the repository at this point in the history
…rt (#38900)

The helm chart for deploying this package/image expects a root-level
binary to be present. This creates a compat package to satisfy the helm
chart. Example:
-
https://github.com/search?q=repo%3Asignalfx%2Fsplunk-otel-collector-chart%20migratecheckpoint&type=code

---------

Signed-off-by: Mark McCormick <[email protected]>
  • Loading branch information
mamccorm authored Jan 7, 2025
1 parent e9183b2 commit 28b6dcf
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions splunk-otel-collector.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: splunk-otel-collector
version: 0.115.0
epoch: 1
epoch: 2
description: Splunk OpenTelemetry Collector is a distribution of the OpenTelemetry Collector. It provides a unified way to receive, process, and export metric, trace, and log data for Splunk Observability Cloud
copyright:
- license: Apache-2.0
Expand Down Expand Up @@ -66,8 +66,19 @@ subpackages:
ldflags: -X github.com/signalfx/splunk-otel-collector/internal/version.Version=v${{package.version}} -X go.opentelemetry.io/collector/internal/version.Version=${{package.version}}
output: migratecheckpoint
test:
environment:
contents:
packages:
- ${{package.name}}-migratecheckpoint-compat
pipeline:
- runs: migratecheckpoint --help
- runs: /migratecheckpoint --help

- name: ${{package.name}}-migratecheckpoint-compat
description: Symlink for the migratecheckpoint binary in the root folder
pipeline:
- runs: |
ln -sf /usr/bin/migratecheckpoint ${{targets.contextdir}}/
update:
enabled: true
Expand All @@ -77,5 +88,6 @@ update:

test:
pipeline:
- runs: otelcol --help
- runs: otelcol --version | grep ${{package.version}}
- runs: |
otelcol --help
otelcol --version | grep ${{package.version}}

0 comments on commit 28b6dcf

Please sign in to comment.