Skip to content

Commit a7d53c0

Browse files
upgrade to latest dependencies (#1604)
bumping knative.dev/eventing 7ea8857...02445c1: > 02445c1 [release-1.19] Upgrade to latest dependencies (# 8671) > c1ca4fa [release-1.19] fix: metrics with prometheus default to same port as before (# 8670) > 8a4f284 [release-1.19] remove prometheus from tracing protocol [skip-dot-release] (# 8666) > 5b2ee4a [release-1.19] adjust test to allow operator upgrade [skip-dot-release] (# 8663) > 6aadceb [release-1.19] Injected tracing headers into jobsink event file (# 8657) Signed-off-by: Knative Automation <[email protected]>
1 parent f9555a6 commit a7d53c0

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ require (
2020
k8s.io/client-go v0.33.1
2121
k8s.io/code-generator v0.33.1
2222
k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff
23-
knative.dev/eventing v0.46.0
23+
knative.dev/eventing v0.46.1
2424
knative.dev/hack v0.0.0-20250708013849-70d4b00da6ba
2525
knative.dev/pkg v0.0.0-20250817152444-53ed1d53d232
2626
knative.dev/reconciler-test v0.0.0-20250818184250-510456da982c

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,8 +1153,8 @@ k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff h1:/usPimJzUKKu+m+TE36gUy
11531153
k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff/go.mod h1:5jIi+8yX4RIb8wk3XwBo5Pq2ccx4FP10ohkbSKCZoK8=
11541154
k8s.io/utils v0.0.0-20241210054802-24370beab758 h1:sdbE21q2nlQtFh65saZY+rRM6x6aJJI8IUa1AmH/qa0=
11551155
k8s.io/utils v0.0.0-20241210054802-24370beab758/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
1156-
knative.dev/eventing v0.46.0 h1:DGkvUcZagkvvcRxf5jh/usdictP8BWa7kHgIocfT4MY=
1157-
knative.dev/eventing v0.46.0/go.mod h1:w5YnKVzZBuXXTJb8QN3POXTgXhM07d0tihBZYoSNF+I=
1156+
knative.dev/eventing v0.46.1 h1:c/Cxqa12MUIRtbJzvHyI8S5v04MZlEz7auidF5Q8OIY=
1157+
knative.dev/eventing v0.46.1/go.mod h1:tBmI283bb0l9HWPOdog97ZOkoJgivqHTA/XFjpRgTYE=
11581158
knative.dev/hack v0.0.0-20250708013849-70d4b00da6ba h1:PkOTBI8DRfvUKD8HTvYYT94NJ49J++llrDo3y0/ZAwc=
11591159
knative.dev/hack v0.0.0-20250708013849-70d4b00da6ba/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY=
11601160
knative.dev/pkg v0.0.0-20250817152444-53ed1d53d232 h1:DqXSNueFZ28EAoU4wrPu8nsFBNazJAfxFlOn/1qqqcQ=

vendor/knative.dev/eventing/pkg/observability/config.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222

2323
configmap "knative.dev/pkg/configmap/parser"
2424
pkgo11y "knative.dev/pkg/observability"
25+
"knative.dev/pkg/observability/metrics"
2526
)
2627

2728
const (
@@ -30,6 +31,9 @@ const (
3031

3132
// DefaultEnableSinkEventErrorReporting is used to set the default sink event error reporting value
3233
DefaultEnableSinkEventErrorReporting = false
34+
35+
// DefaultMetricsPort is the default port used for prometheus metrics if the prometheus protocol is used
36+
DefaultMetricsPort = 9092
3337
)
3438

3539
type (
@@ -65,6 +69,11 @@ func NewFromMap(m map[string]string) (*Config, error) {
6569
c.BaseConfig = *cfg
6670
}
6771

72+
// Force the port to the default queue user metrics port if it's not overridden
73+
if c.BaseConfig.Metrics.Protocol == metrics.ProtocolPrometheus && c.BaseConfig.Metrics.Endpoint == "" {
74+
c.BaseConfig.Metrics.Endpoint = fmt.Sprintf(":%d", DefaultMetricsPort)
75+
}
76+
6877
err := configmap.Parse(m, configmap.As(EnableSinkEventErrorReportingKey, &c.EnableSinkEventErrorReporting))
6978
if err != nil {
7079
fmt.Printf("failed to parse enable-sink-error-reporting: %s\n", err.Error())
@@ -99,6 +108,11 @@ func MergeWithDefaults(cfg *Config) *Config {
99108
cfg.Metrics = d.Metrics
100109
}
101110

111+
// Force the port to the default queue user metrics port if it's not overridden
112+
if cfg.BaseConfig.Metrics.Protocol == metrics.ProtocolPrometheus && cfg.BaseConfig.Metrics.Endpoint == "" {
113+
cfg.BaseConfig.Metrics.Endpoint = fmt.Sprintf(":%d", DefaultMetricsPort)
114+
}
115+
102116
var emptyRuntime RuntimeConfig
103117
if cfg.Runtime == emptyRuntime {
104118
cfg.Runtime = d.Runtime

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@ k8s.io/utils/net
12371237
k8s.io/utils/pointer
12381238
k8s.io/utils/ptr
12391239
k8s.io/utils/trace
1240-
# knative.dev/eventing v0.46.0
1240+
# knative.dev/eventing v0.46.1
12411241
## explicit; go 1.24.0
12421242
knative.dev/eventing/cmd/heartbeats
12431243
knative.dev/eventing/pkg/adapter/v2

0 commit comments

Comments
 (0)