Skip to content

Commit 1e58b3e

Browse files
committed
Merge branch 'main' of github.com:open-telemetry/opentelemetry-operator into bug/2561
2 parents 5c3e77c + dab898f commit 1e58b3e

File tree

497 files changed

+50407
-18424
lines changed

Some content is hidden

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

497 files changed

+50407
-18424
lines changed

.chainsaw.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/kyverno/chainsaw/main/.schemas/json/configuration-chainsaw-v1alpha1.json
2+
apiVersion: chainsaw.kyverno.io/v1alpha1
3+
kind: Configuration
4+
metadata:
5+
name: configuration
6+
spec:
7+
parallel: 4
8+
timeouts:
9+
assert: 6m0s
10+
cleanup: 5m0s
11+
delete: 5m0s
12+
error: 5m0s
13+
apply: 15s
14+
exec: 15s
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2+
change_type: enhancement
3+
4+
# The name of the component, or a single word describing the area of concern, (e.g. collector, target allocator, auto-instrumentation, opamp, github action)
5+
component: auto-instrumentation
6+
7+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8+
note: "Bump NodeJS autoinstrumentations dependency to a version that supports enabling selected instrumentations via environment variable."
9+
10+
# One or more tracking issues related to the change
11+
issues: [2622]
12+
13+
# (Optional) One or more lines of additional information to render under the primary note.
14+
# These lines will be padded with 2 spaces and then inserted directly into the document.
15+
# Use pipe (|) for multiline entries.
16+
subtext: |
17+
See [the documentation](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/metapackages/auto-instrumentations-node#usage-auto-instrumentation) for details.
18+
Usage example: `export OTEL_NODE_ENABLED_INSTRUMENTATIONS="http,nestjs-core"`.

.chloggen/TEMPLATE.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
22
change_type:
33

4-
# The name of the component, or a single word describing the area of concern, (e.g. operator, target allocator, github action)
4+
# The name of the component, or a single word describing the area of concern, (e.g. collector, target allocator, auto-instrumentation, opamp, github action)
55
component:
66

77
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).

.chloggen/add_shared_process_namespace_cap.yaml .chloggen/add-missing-label-servicemonitor.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2-
change_type: enhancement
2+
change_type: bug_fix
33

44
# The name of the component, or a single word describing the area of concern, (e.g. operator, target allocator, github action)
55
component: operator
66

77
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8-
note: Add SharedProcessNamespace capabilities to the OpenTelemetryCollector CRD
8+
note: Added missing label for Service/Pod Monitors
99

1010
# One or more tracking issues related to the change
11-
issues: [2472]
11+
issues: [2251]
1212

1313
# (Optional) One or more lines of additional information to render under the primary note.
1414
# These lines will be padded with 2 spaces and then inserted directly into the document.

.chloggen/feat_ta_monitor-selectors.yaml

-18
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
22
change_type: breaking
33

4-
# The name of the component, or a single word describing the area of concern, (e.g. operator, target allocator, github action)
5-
component: target allocator
4+
# The name of the component, or a single word describing the area of concern, (e.g. collector, target allocator, auto-instrumentation, opamp, github action)
5+
component: operator
66

77
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8-
note: Use recommended interfaces(resource selector) by the prometheus-operator for watching CRs.
8+
note: remove featuregate `operator.autoinstrumentation.python`. Use command line flag `--enable-python-instrumentation` instead
99

1010
# One or more tracking issues related to the change
11-
issues: [2309]
11+
issues: [2582, 2672]
1212

1313
# (Optional) One or more lines of additional information to render under the primary note.
1414
# These lines will be padded with 2 spaces and then inserted directly into the document.
1515
# Use pipe (|) for multiline entries.
16-
subtext: The target allocator now requires get/list/watch permissions for namespaces. Update your RBAC permissions for the attached role, if necessary.
16+
subtext:
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2-
change_type: breaking
2+
change_type: bug_fix
33

44
# The name of the component, or a single word describing the area of concern, (e.g. operator, target allocator, github action)
5-
component: autoinstrumentation
5+
component: instrumentation
66

77
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8-
note: Bump OpenTelemetry .NET Automatic Instrumentation to 1.3.0
8+
note: "Don't preserve ownership of files copied from the autoinstrumenation image. This avoids issues when instrumenting workloads running as non-root"
99

1010
# One or more tracking issues related to the change
11-
issues: [2538]
11+
issues: [2655]
1212

1313
# (Optional) One or more lines of additional information to render under the primary note.
1414
# These lines will be padded with 2 spaces and then inserted directly into the document.
1515
# Use pipe (|) for multiline entries.
16-
subtext: This version brings stable semantic convention for network and HTTP. It includes new metrics and attributes names.
16+
subtext:
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2+
change_type: bug_fix
3+
4+
# The name of the component, or a single word describing the area of concern, (e.g. collector, target allocator, auto-instrumentation, opamp, github action)
5+
component: opamp bridge
6+
7+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8+
note: Fix opamp bridge configmap "app.kubernetes.io/version" label to be generated in the same way as other resource version labels
9+
10+
# One or more tracking issues related to the change
11+
issues: [2583]
12+
13+
# (Optional) One or more lines of additional information to render under the primary note.
14+
# These lines will be padded with 2 spaces and then inserted directly into the document.
15+
# Use pipe (|) for multiline entries.
16+
subtext:

.chloggen/fix_filterstrategy-default.yaml .chloggen/remove-env-var-validation.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
22
change_type: enhancement
33

4-
# The name of the component, or a single word describing the area of concern, (e.g. operator, target allocator, github action)
5-
component: target allocator
4+
# The name of the component, or a single word describing the area of concern, (e.g. collector, target allocator, auto-instrumentation, opamp, github action)
5+
component: instrumentation
66

77
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8-
note: Set the default filter strategy in the CRD
8+
note: Remove env var prefix validation
99

1010
# One or more tracking issues related to the change
11-
issues: [2477]
11+
issues: [2768]
1212

1313
# (Optional) One or more lines of additional information to render under the primary note.
1414
# These lines will be padded with 2 spaces and then inserted directly into the document.

.chloggen/v1beta1-webhook.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2+
change_type: new_component
3+
4+
# The name of the component, or a single word describing the area of concern, (e.g. operator, target allocator, github action)
5+
component: collector
6+
7+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8+
note: Enable reconciliation of Collector v1beta1 CRD.
9+
10+
# One or more tracking issues related to the change
11+
issues: [2620]
12+
13+
# (Optional) One or more lines of additional information to render under the primary note.
14+
# These lines will be padded with 2 spaces and then inserted directly into the document.
15+
# Use pipe (|) for multiline entries.
16+
subtext: |
17+
Users are expected to migrate to `otelcol.v1beta1.opentelemetry.io`.
18+
The support for `otelcol.v1alpha1.opentelemetry.io` will be removed in the future.
19+
Follow [migration guide](https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definition-versioning/#upgrade-existing-objects-to-a-new-stored-version) for upgrading already created collector instances.
20+
After all `otelcol.v1alpha1.opentelemetry.io` are stored as `v1beta1` update the collector CRD to store only `v1beta1`
21+
`kubectl patch customresourcedefinitions opentelemetrycollectors.opentelemetry.io --subresource='status' --type='merge' -p '{"status":{"storedVersions":["v1beta1"]}}'`.
22+
**Only `AllNamespaces` install mode is now supported** due to the conversion webhook from `v1beta1` to `v1alpha1`.
23+
See [OLM docs](https://olm.operatorframework.io/docs/tasks/install-operator-with-olm/) and
24+
[OLM operator groups docs](https://olm.operatorframework.io/docs/advanced-tasks/operator-scoping-with-operatorgroups/).
25+

.ci/create-release-github.sh

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
#!/bin/bash
22

3-
OPERATOR_VERSION=$(git describe --tags)
3+
NOTES_FILE=/tmp/notes.md
4+
# Note: We expect the versions to not have the `v` prefix here
5+
sed -n "/${DESIRED_VERSION}/,/${CURRENT_VERSION}/{/${CURRENT_VERSION}/!p;}" CHANGELOG.md >${NOTES_FILE}
46

57
gh config set prompt disabled
68
gh release create \
7-
-t "Release ${OPERATOR_VERSION}" \
8-
"${OPERATOR_VERSION}" \
9+
-t "Release v${DESIRED_VERSION}" \
10+
--notes-file ${NOTES_FILE} \
11+
--draft \
12+
"v${DESIRED_VERSION}" \
913
'dist/opentelemetry-operator.yaml#Installation manifest for Kubernetes'

.github/ISSUE_TEMPLATE/bug_report.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ body:
1515
description: Which component(s) does your bug report concern?
1616
multiple: true
1717
options:
18-
- operator
1918
- collector
20-
- instrumentation
19+
- auto-instrumentation
2120
- target allocator
22-
- opamp bridge
21+
- opamp
2322
- type: textarea
2423
attributes:
2524
label: What happened?

.github/ISSUE_TEMPLATE/feature_request.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ body:
99
description: Which component(s) does your feature request concern?
1010
multiple: true
1111
options:
12-
- operator
1312
- collector
14-
- instrumentation
13+
- auto-instrumentation
1514
- target allocator
16-
- opamp bridge
15+
- opamp
1716
- type: textarea
1817
attributes:
1918
label: Is your feature request related to a problem? Please describe.

.github/ISSUE_TEMPLATE/other.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ body:
99
description: Which component(s) does your issue concern?
1010
multiple: true
1111
options:
12-
- operator
1312
- collector
14-
- instrumentation
13+
- auto-instrumentation
1514
- target allocator
16-
- opamp bridge
15+
- opamp
1716
- type: textarea
1817
attributes:
1918
label: Describe the issue you're reporting

.github/pull_request_template.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
33
Ex. Adding a feature - Explain what this achieves.-->
44

5-
**Link to tracking Issue:** <Issue number if applicable>
5+
**Link to tracking Issue(s):** <Issue number if applicable>
6+
7+
- Resolves: #issue-number
68

79
**Testing:** <Describe what testing was performed and which tests were added.>
810

.github/workflows/continuous-integration.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,19 @@ jobs:
2020

2121
- name: Set up Go
2222
uses: actions/setup-go@v5
23+
id: setup-go
2324
with:
2425
go-version: "~1.21.1"
2526

27+
- name: Cache tools
28+
uses: actions/cache@v4
29+
with:
30+
path: bin
31+
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}-${{ steps.setup-go.outputs.go-version }}
32+
33+
- name: Install tools
34+
run: make install-tools
35+
2636
- name: "basic checks"
2737
run: make ci
2838

@@ -38,6 +48,16 @@ jobs:
3848
with:
3949
go-version: "~1.21.1"
4050

51+
- name: Cache tools
52+
uses: actions/cache@v4
53+
id: setup-go
54+
with:
55+
path: bin
56+
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}-${{ steps.setup-go.outputs.go-version }}
57+
58+
- name: Install tools
59+
run: make install-tools
60+
4161
- uses: actions/cache@v4
4262
with:
4363
path: |
@@ -58,6 +78,11 @@ jobs:
5878
- name: Check out code into the Go module directory
5979
uses: actions/checkout@v4
6080

81+
- name: Set up Go
82+
uses: actions/setup-go@v5
83+
with:
84+
go-version: "~1.21.1"
85+
6186
- name: Initialize CodeQL
6287
uses: github/codeql-action/init@v3
6388
with:

.github/workflows/e2e.yaml

+28-20
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ concurrency:
1212

1313
jobs:
1414
e2e-tests:
15-
name: End-to-end tests ${{ matrix.group }} on K8s ${{ matrix.kube-version }}
1615
runs-on: ubuntu-22.04
1716
strategy:
1817
fail-fast: false
@@ -25,48 +24,57 @@ jobs:
2524
- "1.29"
2625
group:
2726
- e2e
28-
- e2e-instrumentation
29-
- e2e-upgrade
3027
- e2e-autoscale
31-
- e2e-pdb
28+
- e2e-instrumentation
3229
- e2e-opampbridge
30+
- e2e-pdb
3331
- e2e-prometheuscr
32+
- e2e-targetallocator
33+
- e2e-upgrade
3434
- e2e-multi-instrumentation
35+
- e2e-metadata-filters
3536
include:
36-
- group: e2e-prometheuscr
37-
setup: "prepare-e2e-with-featuregates FEATUREGATES=+operator.observability.prometheus"
3837
- group: e2e-multi-instrumentation
39-
setup: "prepare-e2e-with-featuregates FEATUREGATES=+operator.autoinstrumentation.multi-instrumentation"
38+
setup: "add-operator-arg OPERATOR_ARG=--enable-multi-instrumentation prepare-e2e"
39+
- group: e2e-metadata-filters
40+
setup: "add-operator-arg OPERATOR_ARG='--annotations-filter=*filter.out --labels=*filter.out' prepare-e2e"
4041

4142
steps:
4243
- name: Check out code into the Go module directory
4344
uses: actions/checkout@v4
44-
4545
- name: Set up Go
4646
uses: actions/setup-go@v5
47+
id: setup-go
4748
with:
4849
go-version: "~1.21.3"
49-
50-
- name: Setup kind
51-
env:
52-
KIND_VERSION: "0.20.0"
53-
run: go install sigs.k8s.io/kind@v${KIND_VERSION}
54-
55-
- name: "install kuttl"
56-
run: ./hack/install-kuttl.sh
57-
58-
- name: "run tests"
50+
- name: Cache tools
51+
uses: actions/cache@v4
52+
with:
53+
path: bin
54+
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}-${{ steps.setup-go.outputs.go-version }}
55+
- name: Install chainsaw
56+
uses: kyverno/action-install[email protected]
57+
- name: Install tools
58+
run: make install-tools
59+
- name: Prepare e2e tests
5960
env:
6061
KUBE_VERSION: ${{ matrix.kube-version }}
6162
run: |
63+
set -e
6264
make ${{ matrix.setup != '' && matrix.setup || 'prepare-e2e' }} KUBE_VERSION=$KUBE_VERSION VERSION=e2e
65+
- name: Run e2e tests
66+
env:
67+
KUBE_VERSION: ${{ matrix.kube-version }}
68+
run: |
69+
set -e
6370
make ${{ matrix.group }}
64-
6571
- name: "log operator if failed"
6672
if: ${{ failure() }}
6773
env:
6874
KUBE_VERSION: ${{ matrix.kube-version }}
69-
run: make e2e-log-operator KUBE_VERSION=$KUBE_VERSION
75+
run: |
76+
set -e
77+
make e2e-log-operator KUBE_VERSION=$KUBE_VERSION
7078
7179
e2e-tests-check:
7280
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)