Skip to content

Commit 6617817

Browse files
authored
Merge branch 'main' into bugfix/potential_duplication
2 parents b715b56 + e5c048b commit 6617817

34 files changed

+240
-117
lines changed

.chloggen/api-conversion-resilience.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.chloggen/feature_add-collector-target-reload-interval.yaml renamed to .chloggen/traffic-distribution-field.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22
change_type: enhancement
33

44
# 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: target allocator
5+
component: collector, target allocator
66

77
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8-
note: Add CollectorTargetReloadInterval option to configure the interval at which the Prometheus receiver reloads targets from the target allocator
8+
note: Add TrafficDistribution support for OpenTelemetryCollector and TargetAllocator Services
99

1010
# One or more tracking issues related to the change
11-
issues: [4095]
11+
issues: [4285]
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: |
17+
The TrafficDistribution field is now available in OpenTelemetryCollector and TargetAllocator.
18+
This field allows setting the traffic distribution policy for Kubernetes Services.

.github/workflows/continuous-integration.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ jobs:
8989
go-version: "~1.24.6"
9090

9191
- name: Initialize CodeQL
92-
uses: github/codeql-action/init@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.29.5
92+
uses: github/codeql-action/init@192325c86100d080feab897ff886c34abd4c83a3 # v3.29.5
9393
with:
9494
languages: go
9595

9696
- name: Autobuild
97-
uses: github/codeql-action/autobuild@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.29.5
97+
uses: github/codeql-action/autobuild@192325c86100d080feab897ff886c34abd4c83a3 # v3.29.5
9898

9999
- name: Perform CodeQL Analysis
100-
uses: github/codeql-action/analyze@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.29.5
100+
uses: github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.29.5
101101

102102
- name: Govulncheck
103103
uses: golang/govulncheck-action@b625fbe08f3bccbe446d94fbf87fcc875a4f50ee # v1.0.4

.github/workflows/ossf-scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ jobs:
4242
# Upload the results to GitHub's code scanning dashboard (optional).
4343
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
4444
- name: "Upload to code-scanning"
45-
uses: github/codeql-action/upload-sarif@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.29.5
45+
uses: github/codeql-action/upload-sarif@192325c86100d080feab897ff886c34abd4c83a3 # v3.29.5
4646
with:
4747
sarif_file: results.sarif

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,28 @@
22

33
<!-- next version -->
44

5+
## 0.134.0
6+
7+
### 💡 Enhancements 💡
8+
9+
- `target allocator`: Add CollectorTargetReloadInterval option to configure the interval at which the Prometheus receiver reloads targets from the target allocator (#4095)
10+
11+
### 🧰 Bug fixes 🧰
12+
13+
- `collector`: Always return a valid OpenTelemetryCollector configuration during v1beta1 conversion. (#4288)
14+
15+
### Components
16+
17+
* [OpenTelemetry Collector - v0.134.0](https://github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.134.0)
18+
* [OpenTelemetry Contrib - v0.134.0](https://github.com/open-telemetry/opentelemetry-collector-contrib/releases/tag/v0.134.0)
19+
* [Java auto-instrumentation - v1.33.6](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/tag/v1.33.6)
20+
* [.NET auto-instrumentation - v1.2.0](https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/releases/tag/v1.2.0)
21+
* [Node.JS - v0.63.0](https://github.com/open-telemetry/opentelemetry-js/releases/tag/experimental%2Fv0.63.0)
22+
* [Python - v0.58b0](https://github.com/open-telemetry/opentelemetry-python-contrib/releases/tag/v0.58b0)
23+
* [Go - v0.22.1](https://github.com/open-telemetry/opentelemetry-go-instrumentation/releases/tag/v0.22.1)
24+
* [ApacheHTTPD - 1.0.4](https://github.com/open-telemetry/opentelemetry-cpp-contrib/releases/tag/webserver%2Fv1.0.4)
25+
* [Nginx - 1.0.4](https://github.com/open-telemetry/opentelemetry-cpp-contrib/releases/tag/webserver%2Fv1.0.4)
26+
527
## 0.133.0
628

729
### ⚠️ Skip Release ⚠️

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ KIND_VERSION ?= v0.30.0
606606
# renovate: datasource=go depName=github.com/kyverno/chainsaw
607607
CHAINSAW_VERSION ?= v0.2.13
608608
# renovate: datasource=go depName=gotest.tools/gotestsum
609-
GOTESTSUM_VERSION ?= v1.12.3
609+
GOTESTSUM_VERSION ?= v1.13.0
610610

611611
.PHONY: install-tools
612612
install-tools: kustomize golangci-lint kind controller-gen envtest crdoc operator-sdk chainsaw gotestsum

RELEASE.md

Lines changed: 1 addition & 1 deletion
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.134.0 | @frzifus |
4847
| v0.135.0 | @jaronoff97 |
4948
| v0.136.0 | @swiatekm |
5049
| v0.137.0 | @iblancasa |
5150
| v0.138.0 | @pavolloffay |
5251
| v0.140.0 | @yuriolisa |
5352
| v0.141.0 | @TylerHelmuth |
53+
| v0.142.0 | @frzifus |

apis/v1alpha1/convert.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ func tov1beta1(in OpenTelemetryCollector) v1beta1.OpenTelemetryCollector {
115115
PriorityClassName: copy.Spec.PriorityClassName,
116116
InitContainers: copy.Spec.InitContainers,
117117
AdditionalContainers: copy.Spec.AdditionalContainers,
118+
TrafficDistribution: copy.Spec.TrafficDistribution,
118119
},
119120
StatefulSetCommonFields: v1beta1.StatefulSetCommonFields{
120121
VolumeClaimTemplates: copy.Spec.VolumeClaimTemplates,
@@ -371,6 +372,7 @@ func tov1alpha1(in v1beta1.OpenTelemetryCollector) (*OpenTelemetryCollector, err
371372
ConfigMaps: tov1alpha1ConfigMaps(copy.Spec.ConfigMaps),
372373
UpdateStrategy: copy.Spec.DaemonSetUpdateStrategy,
373374
DeploymentUpdateStrategy: copy.Spec.DeploymentUpdateStrategy,
375+
TrafficDistribution: copy.Spec.TrafficDistribution,
374376
},
375377
}, nil
376378
}

apis/v1alpha1/opentelemetrycollector_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,11 @@ type OpenTelemetryCollectorSpec struct {
238238
// If not specified, it will default to "<name>-headless".
239239
// +optional
240240
ServiceName string `json:"serviceName,omitempty"`
241+
// TrafficDistribution specifies how traffic to this service is routed.
242+
// https://kubernetes.io/docs/concepts/services-networking/service/#traffic-distribution
243+
// This is only applicable to Service resources.
244+
// +optional
245+
TrafficDistribution *string `json:"trafficDistribution,omitempty"`
241246

242247
// AdditionalContainers allows injecting additional containers into the Collector's pod definition.
243248
// These sidecar containers can be used for authentication proxies, log shipping sidecars, agents for shipping

apis/v1alpha1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)