Skip to content

Commit 2504f5b

Browse files
authored
Add missing annotation to TargetAllocator ScrapeConfigs field (#2882)
1 parent 5388e88 commit 2504f5b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

apis/v1beta1/targetallocator_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ type TargetAllocatorSpec struct {
7878
// For the exact format, see https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config.
7979
// +optional
8080
// +listType=atomic
81+
// +kubebuilder:pruning:PreserveUnknownFields
8182
ScrapeConfigs []AnyConfig `json:"scrapeConfigs,omitempty"`
8283
// PrometheusCR defines the configuration for the retrieval of PrometheusOperator CRDs ( servicemonitor.monitoring.coreos.com/v1 and podmonitor.monitoring.coreos.com/v1 ).
8384
// +optional

config/crd/bases/opentelemetry.io_targetallocators.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -2322,6 +2322,7 @@ spec:
23222322
type: object
23232323
type: array
23242324
x-kubernetes-list-type: atomic
2325+
x-kubernetes-preserve-unknown-fields: true
23252326
securityContext:
23262327
properties:
23272328
allowPrivilegeEscalation:

0 commit comments

Comments
 (0)