Skip to content

Commit

Permalink
use LabelSelector instead of map
Browse files Browse the repository at this point in the history
  • Loading branch information
crossoverJie committed Mar 25, 2024
1 parent 377b51f commit 686f1c6
Show file tree
Hide file tree
Showing 12 changed files with 380 additions and 60 deletions.
2 changes: 1 addition & 1 deletion apis/v1alpha1/instrumentation_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
type InstrumentationSpec struct {
// Selector is the selector label of injected Object
// +optional
Selector map[string]string `json:"selector,omitempty"`
Selector *metav1.LabelSelector `json:"selector,omitempty"`

// Exporter defines exporter configuration.
// +optional
Expand Down
92 changes: 45 additions & 47 deletions apis/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ metadata:
categories: Logging & Tracing,Monitoring
certified: "false"
containerImage: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator
createdAt: "2024-03-11T13:32:19Z"
createdAt: "2024-03-25T10:35:29Z"
description: Provides the OpenTelemetry components, including the Collector
operators.operatorframework.io/builder: operator-sdk-v1.29.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
Expand Down Expand Up @@ -488,6 +488,8 @@ spec:
- --zap-log-level=info
- --zap-time-encoding=rfc3339nano
- --feature-gates=+operator.autoinstrumentation.go,+operator.autoinstrumentation.nginx
- --target-allocator-image=ghcr.io/open-telemetry/opentelemetry-operator/target-allocator:v0.96.0-18-g377b51f
- --operator-opamp-bridge-image=ghcr.io/open-telemetry/opentelemetry-operator/operator-opamp-bridge:v0.96.0-18-g377b51f
image: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator:0.96.0
livenessProbe:
httpGet:
Expand Down
Loading

0 comments on commit 686f1c6

Please sign in to comment.