Skip to content

Commit 26e789f

Browse files
authored
Merge branch 'main' into issue_2598
2 parents ed53efc + d9e1d16 commit 26e789f

File tree

223 files changed

+2938
-2656
lines changed

Some content is hidden

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

223 files changed

+2938
-2656
lines changed

.chainsaw.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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: 5m0s
10+
cleanup: 5m0s
11+
delete: 5m0s
12+
error: 5m0s

.chloggen/fix-protocol-handling-in-serviceports.yaml

-18
This file was deleted.

.chloggen/fix-syslog-tcplog-udplog.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'
2-
change_type: bug_fix
2+
change_type: breaking
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: "Fixing WATCH_NAMESPACE for a single namespace value"
8+
note: change multi instrumentation feature gate into command line flag --enable-multi-instrumentation
99

1010
# One or more tracking issues related to the change
11-
issues: [2589]
11+
issues: [2582]
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:
16+
subtext:

.chloggen/per-node-allocation-strategy.yaml

-16
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ body:
1515
description: Which component(s) does your bug report concern?
1616
multiple: true
1717
options:
18-
- operator
1918
- collector
2019
- instrumentation
2120
- target allocator

.github/ISSUE_TEMPLATE/feature_request.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ body:
99
description: Which component(s) does your feature request concern?
1010
multiple: true
1111
options:
12-
- operator
1312
- collector
1413
- instrumentation
1514
- target allocator

.github/ISSUE_TEMPLATE/other.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ body:
99
description: Which component(s) does your issue concern?
1010
multiple: true
1111
options:
12-
- operator
1312
- collector
1413
- instrumentation
1514
- target allocator

.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/e2e.yaml

+17-13
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,50 +24,55 @@ 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
33-
- e2e-targetallocator
30+
- e2e-pdb
3431
- e2e-prometheuscr
32+
- e2e-targetallocator
33+
- e2e-upgrade
3534
- e2e-multi-instrumentation
3635
include:
3736
- group: e2e-prometheuscr
3837
setup: "prepare-e2e-with-featuregates FEATUREGATES=+operator.observability.prometheus"
3938
- group: e2e-multi-instrumentation
40-
setup: "prepare-e2e-with-featuregates FEATUREGATES=+operator.autoinstrumentation.multi-instrumentation"
39+
setup: "add-operator-arg OPERATOR_ARG=--enable-multi-instrumentation prepare-e2e"
4140

4241
steps:
4342
- name: Check out code into the Go module directory
4443
uses: actions/checkout@v4
45-
4644
- name: Set up Go
4745
uses: actions/setup-go@v5
4846
with:
4947
go-version: "~1.21.3"
50-
5148
- name: Cache tools
5249
uses: actions/cache@v4
5350
with:
5451
path: bin
5552
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}
56-
53+
- name: Install chainsaw
54+
uses: kyverno/[email protected]
5755
- name: Install tools
5856
run: make install-tools
59-
60-
- name: "run tests"
57+
- name: Prepare e2e tests
6158
env:
6259
KUBE_VERSION: ${{ matrix.kube-version }}
6360
run: |
61+
set -e
6462
make ${{ matrix.setup != '' && matrix.setup || 'prepare-e2e' }} KUBE_VERSION=$KUBE_VERSION VERSION=e2e
63+
- name: Run e2e tests
64+
env:
65+
KUBE_VERSION: ${{ matrix.kube-version }}
66+
run: |
67+
set -e
6568
make ${{ matrix.group }}
66-
6769
- name: "log operator if failed"
6870
if: ${{ failure() }}
6971
env:
7072
KUBE_VERSION: ${{ matrix.kube-version }}
71-
run: make e2e-log-operator KUBE_VERSION=$KUBE_VERSION
73+
run: |
74+
set -e
75+
make e2e-log-operator KUBE_VERSION=$KUBE_VERSION
7276
7377
e2e-tests-check:
7478
runs-on: ubuntu-22.04

CHANGELOG.md

+31
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,37 @@ Changes by Version
22
==================
33
<!-- next version -->
44

5+
## 0.94.0
6+
7+
### 💡 Enhancements 💡
8+
9+
- `target allocator`: Add new "per node" allocation strategy to target allocator. This strategy will allocate targets to nodes on which given target resides. It should only be used conjunction with the daemonset mode. (#1828)
10+
11+
### 🧰 Bug fixes 🧰
12+
13+
- `operator`: Fixed handling of protocol in exposed ports. (#2619)
14+
Make distinction not only on the port number, but also on protocol. This fix allows to have multiple exposed
15+
ServicePorts with the same port number, but different protocols.
16+
17+
- `operator`: Fixed handling of exposed port protocol in syslog, tcplog and udplog receivers. (#767, #2619)
18+
Please note that the operator currently exposes just one port (tcp or udp) of syslog receiver due to the current
19+
receiver implementation (patches are welcome).
20+
21+
- `operator`: Fixing WATCH_NAMESPACE for a single namespace value (#2589)
22+
23+
### Components
24+
25+
* [OpenTelemetry Collector - v0.94.0](https://github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.94.0)
26+
* [OpenTelemetry Contrib - v0.94.0](https://github.com/open-telemetry/opentelemetry-collector-contrib/releases/tag/v0.94.0)
27+
* [Java auto-instrumentation - 1.32.1](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/tag/v1.32.1)
28+
* [.NET auto-instrumentation - 1.2.0](https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/releases/tag/1.2.0)
29+
* [Node.JS - 0.46.0](https://github.com/open-telemetry/opentelemetry-js-contrib/releases/tag/auto-instrumentations-node-0.46.0)
30+
* [Python - 0.43b0](https://github.com/open-telemetry/opentelemetry-python-contrib/releases/tag/0.43b0)
31+
* [Go - v0.10.1-alpha](https://github.com/open-telemetry/opentelemetry-go-instrumentation/releases/tag/v0.10.1-alpha)
32+
* [ApacheHTTPD - 1.0.4](https://github.com/open-telemetry/opentelemetry-cpp-contrib/releases/tag/webserver%2Fv1.0.4)
33+
* [Nginx - 1.0.4](https://github.com/open-telemetry/opentelemetry-cpp-contrib/releases/tag/webserver%2Fv1.0.4)
34+
35+
536
## 0.93.0
637

738
### 🛑 Breaking changes 🛑

CONTRIBUTING.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,13 @@ KUBEBUILDER_ASSETS=$(./bin/setup-envtest use -p path 1.23) go test ./pkg...
118118

119119
### End to end tests
120120

121-
To run the end-to-end tests, you'll need [`kind`](https://kind.sigs.k8s.io) and [`kuttl`](https://kuttl.dev). Refer to their documentation for installation instructions.
121+
To run the end-to-end tests, you'll need [`kind`](https://kind.sigs.k8s.io) and [`chainsaw`](https://kyverno.github.io/chainsaw). Refer to their documentation for installation instructions.
122122

123-
Once they are installed, the tests can be executed with `make prepare-e2e`, which will build an image to use with the tests, followed by `make e2e`. Each call to the `e2e` target will setup a fresh `kind` cluster, making it safe to be executed multiple times with a single `prepare-e2e` step.
123+
Once they are installed, the tests can be executed with `make prepare-e2e`, which will build an image to use with the tests, followed by `make e2e`. Each call to the `e2e` target will set up a fresh `kind` cluster, making it safe to be executed multiple times with a single `prepare-e2e` step.
124124

125-
The tests are located under `tests/e2e` and are written to be used with `kuttl`. Refer to their documentation to understand how tests are written.
125+
The tests are located under `tests/e2e` and are written to be used with `chainsaw`. Refer to their documentation to understand how tests are written.
126126

127-
To evert the changes made by the `make prepare-e2e` run `make reset`.
127+
To revert the changes made by the `make prepare-e2e` run `make reset`.
128128

129129
### OpenShift End to End tests
130130
To run the end-to-end tests written for OpenShift, you'll need a OpenShift cluster.
@@ -133,7 +133,7 @@ To install the OpenTelemetry operator, please follow the instructions in [Opera
133133

134134
Once the operator is installed, the tests can be executed using `make e2e-openshift`, which will call to the `e2e-openshift` target. Note that `kind` is disabled for the TestSuite as the requirement is to use an OpenShift cluster for these test cases.
135135

136-
The tests are located under `tests/e2e-openshift` and are written to be used with `kuttl`.
136+
The tests are located under `tests/e2e-openshift` and are written to be used with `chainsaw`.
137137

138138
### Undeploying the operator from the local cluster
139139

0 commit comments

Comments
 (0)