Skip to content

Commit da0d9ae

Browse files
committed
fix conflicts
2 parents 738fbda + bda55b9 commit da0d9ae

File tree

110 files changed

+1324
-980
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+1324
-980
lines changed

.github/workflows/fossa.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: FOSSA scanning
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
fossa:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+
17+
- uses: fossas/fossa-action@93a52ecf7c3ac7eb40f5de77fd69b1a19524de94 # v1.5.0
18+
with:
19+
api-key: ${{secrets.FOSSA_API_KEY}}
20+
team: OpenTelemetry

.github/workflows/publish-images.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- uses: actions/setup-go@v5
2121
with:
22-
go-version: '~1.22.4'
22+
go-version: '~1.23.6'
2323

2424
- name: Unshallow
2525
run: git fetch --prune --unshallow

.github/workflows/publish-must-gather.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- uses: actions/setup-go@v5
2121
with:
22-
go-version: '~1.22.4'
22+
go-version: '~1.23.6'
2323

2424
- name: Unshallow
2525
run: git fetch --prune --unshallow

.github/workflows/publish-operator-opamp-bridge.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
- uses: actions/setup-go@v5
2525
with:
26-
go-version: '~1.22.4'
26+
go-version: '~1.23.6'
2727

2828
# TODO: We're currently not using this. Should we?
2929
- name: Read version

.github/workflows/publish-target-allocator.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
- uses: actions/setup-go@v5
2525
with:
26-
go-version: '~1.22.4'
26+
go-version: '~1.23.6'
2727

2828
# TODO: We're currently not using this. Should we?
2929
- name: Read version

.github/workflows/shellcheck.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ jobs:
1111
name: shellcheck
1212
runs-on: ubuntu-24.04
1313
env:
14-
VERSION: v0.10.0
14+
# renovate: datasource=github-releases depName=https://github.com/koalaman/shellcheck
15+
SHELLCHECK_VERSION: v0.10.0
1516
steps:
1617
- uses: actions/checkout@v4
1718
- name: shellcheck ci scripts
@@ -21,12 +22,12 @@ jobs:
2122
with:
2223
scandir: ".ci"
2324
severity: warning
24-
version: ${{ env.VERSION }}
25+
version: ${{ env.SHELLCHECK_VERSION }}
2526
- name: shellcheck hack scripts
2627
uses: ludeeus/[email protected]
2728
env:
2829
SHELLCHECK_OPTS: -x -e SC2059 -e SC2086
2930
with:
3031
scandir: "hack"
3132
severity: warning
32-
version: ${{ env.VERSION }}
33+
version: ${{ env.SHELLCHECK_VERSION }}

CHANGELOG.md

+25
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,31 @@
22

33
<!-- next version -->
44

5+
## 0.119.0
6+
7+
### 🛑 Breaking changes 🛑
8+
9+
- `operator`: Make ServiceMonitor for operator metrics optional and disable it by default (#3474)
10+
Add `--create-sm-operator-metrics` flag to create a ServiceMonitor for the operator metrics.
11+
This is disabled by default, which is a breaking change, because it was enabled by default in 0.113.0 and 0.114.0.
12+
13+
### 🧰 Bug fixes 🧰
14+
15+
- `auto-instrumentation`: add upper version limit to Python dependency urllib3 (#3616)
16+
- `target allocator`: check for Prometheus CRDs before watching Service/Pod Monitors (#3726)
17+
18+
### Components
19+
20+
* [OpenTelemetry Collector - v0.119.0](https://github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.119.0)
21+
* [OpenTelemetry Contrib - v0.119.0](https://github.com/open-telemetry/opentelemetry-collector-contrib/releases/tag/v0.119.0)
22+
* [Java auto-instrumentation - v1.33.6](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/tag/v1.33.6)
23+
* [.NET auto-instrumentation - v1.2.0](https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/releases/tag/v1.2.0)
24+
* [Node.JS - v0.53.0](https://github.com/open-telemetry/opentelemetry-js/releases/tag/experimental%2Fv0.53.0)
25+
* [Python - v0.51b0](https://github.com/open-telemetry/opentelemetry-python-contrib/releases/tag/v0.51b0)
26+
* [Go - v0.19.0-alpha](https://github.com/open-telemetry/opentelemetry-go-instrumentation/releases/tag/v0.19.0-alpha)
27+
* [ApacheHTTPD - 1.0.4](https://github.com/open-telemetry/opentelemetry-cpp-contrib/releases/tag/webserver%2Fv1.0.4)
28+
* [Nginx - 1.0.4](https://github.com/open-telemetry/opentelemetry-cpp-contrib/releases/tag/webserver%2Fv1.0.4)
29+
530
## 0.118.0
631

732
### 🚀 New components 🚀

CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ We gratefully welcome improvements to documentation as well as to code.
1919
* `make lint` to run linters
2020
* `make fmt` to format Go code
2121
* `make vet` to run `go vet`
22-
* `make generate` to generate code and manifests based on Go struct definitions for CRDs.
22+
* `make update` to generate code and manifests based on Go struct definitions for CRDs.
2323

2424
`make precommit` includes all of the above.
2525

@@ -40,15 +40,15 @@ gh pr create
4040
The following command should be run to make sure the project manifests are up-to-date:
4141

4242
```bash
43-
make generate manifests bundle api-docs reset
43+
make update
4444
```
4545

4646
The local changes after running the command should be added to the pull request:
4747

4848
The following `make` target is run on CI to verify the project structure:
4949

5050
```bash
51-
make ensure-generate-is-noop
51+
make ensure-update-is-noop
5252
```
5353

5454
### Adding new components - webhook, API

Makefile

+10-9
Original file line numberDiff line numberDiff line change
@@ -123,22 +123,23 @@ MIN_OPENSHIFT_VERSION ?= 4.12
123123
## consistent with Linux.
124124
SED ?= $(shell which gsed 2>/dev/null || which sed)
125125

126-
.PHONY: ensure-generate-is-noop
127-
ensure-generate-is-noop: VERSION=$(OPERATOR_VERSION)
128-
ensure-generate-is-noop: DOCKER_USER=open-telemetry
129-
ensure-generate-is-noop: set-image-controller generate bundle
130-
@# on make bundle config/manager/kustomization.yaml includes changes, which should be ignored for the below check
131-
@git restore config/manager/kustomization.yaml
126+
.PHONY: ensure-update-is-noop
127+
ensure-update-is-noop: VERSION=$(OPERATOR_VERSION)
128+
ensure-update-is-noop: DOCKER_USER=open-telemetry
129+
ensure-update-is-noop: set-image-controller update
132130
@git diff -s --exit-code apis/v1alpha1/zz_generated.*.go || (echo "Build failed: a model has been changed but the generated resources aren't up to date. Run 'make generate' and update your PR." && exit 1)
133131
@git diff -s --exit-code bundle config || (echo "Build failed: the bundle, config files has been changed but the generated bundle, config files aren't up to date. Run 'make bundle' and update your PR." && git diff && exit 1)
134-
@git diff -s --exit-code docs/api.md || (echo "Build failed: the api.md file has been changed but the generated api.md file isn't up to date. Run 'make api-docs' and update your PR." && git diff && exit 1)
132+
@git diff -s --exit-code docs/api || (echo "Build failed: a model has been changed but the generated docs/api/*.md files aren't up to date. Run 'make api-docs' and update your PR." && git diff && exit 1)
135133

136134
.PHONY: all
137135
all: manager targetallocator operator-opamp-bridge
138136

139137
# No lint here, as CI runs it separately
140138
.PHONY: ci
141-
ci: generate fmt vet test ensure-generate-is-noop
139+
ci: generate fmt vet test ensure-update-is-noop
140+
141+
.PHONY: update
142+
update: generate manifests bundle api-docs reset
142143

143144
# Build manager binary
144145
.PHONY: manager
@@ -257,7 +258,7 @@ test: envtest
257258
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(KUBE_VERSION) -p path)" go test ${GOTEST_OPTS} ./...
258259

259260
.PHONY: precommit
260-
precommit: generate fmt vet lint test ensure-generate-is-noop reset
261+
precommit: fmt vet lint test ensure-update-is-noop
261262

262263
# Run go fmt against code
263264
.PHONY: fmt

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ Emeritus Approvers:
858858
Maintainers ([@open-telemetry/operator-maintainers](https://github.com/orgs/open-telemetry/teams/operator-maintainers)):
859859

860860
- [Benedikt Bongartz](https://github.com/frzifus), Red Hat
861-
- [Jacob Aronoff](https://github.com/jaronoff97), Lightstep
861+
- [Jacob Aronoff](https://github.com/jaronoff97), Omlet
862862
- [Mikołaj Świątek](https://github.com/swiatekm), Elastic
863863
- [Pavol Loffay](https://github.com/pavolloffay), Red Hat
864864

RELEASE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ The operator should be released within a week after the [OpenTelemetry collector
4444

4545
| Version | Release manager |
4646
|----------|-----------------|
47-
| v0.119.0 | @frzifus |
4847
| v0.120.0 | @yuriolisa |
4948
| v0.121.0 | @pavolloffay |
5049
| v0.122.0 | @TylerHelmuth |
5150
| v0.123.0 | @jaronoff97 |
5251
| v0.124.0 | @swiatekm |
5352
| v0.125.0 | @iblancasa |
53+
| v0.126.0 | @frzifus |

autoinstrumentation/java/version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.12.0
1+
2.13.3

autoinstrumentation/nodejs/Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ FROM busybox
2121
COPY --from=build /operator-build/build/workspace /autoinstrumentation
2222

2323
RUN chmod -R go+r /autoinstrumentation
24+
25+
# Backward compatibility with old operator version
26+
RUN cp -r /autoinstrumentation/node_modules/@opentelemetry/auto-instrumentations-node/build/src/. /autoinstrumentation
27+
RUN ln /autoinstrumentation/register.js /autoinstrumentation/autoinstrumentation.js

autoinstrumentation/nodejs/package.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@
44
"private": true,
55
"scripts": {
66
"clean": "rimraf build/*",
7-
"prepare": "npm run compile",
8-
"compile": "tsc -p .",
9-
"postcompile": "copyfiles -f 'build/src/**' build/workspace/ && copyfiles 'node_modules/**' package.json build/workspace/ && npm -C build/workspace prune --omit=dev --no-package-lock"
7+
"postinstall": "copyfiles -f 'build/src/**' build/workspace/ && copyfiles 'node_modules/**' package.json build/workspace/ && npm -C build/workspace prune --omit=dev --no-package-lock"
108
},
119
"devDependencies": {
1210
"copyfiles": "^2.4.1",
1311
"rimraf": "^6.0.1",
1412
"typescript": "^5.6.3"
1513
},
1614
"dependencies": {
17-
"@opentelemetry/exporter-metrics-otlp-grpc": "0.55.0",
18-
"@opentelemetry/auto-instrumentations-node": "0.53.0",
19-
"@opentelemetry/exporter-prometheus": "0.55.0"
15+
"@opentelemetry/api": "1.9.0",
16+
"@opentelemetry/auto-instrumentations-node": "0.56.0"
2017
}
2118
}

autoinstrumentation/nodejs/src/autoinstrumentation.ts

-77
This file was deleted.

0 commit comments

Comments
 (0)