Skip to content

Commit

Permalink
omitempty
Browse files Browse the repository at this point in the history
Signed-off-by: zirain <zirain2009@gmail.com>
  • Loading branch information
zirain committed Apr 10, 2024
1 parent 01de57e commit c4ce09f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/accesslogging_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ type OpenTelemetryEnvoyProxyAccessLog struct {
// Deprecated: Use BackendRef instead.
//
// +optional
Host *string `json:"host"`
Host *string `json:"host,omitempty"`
// Port defines the port the extension service is exposed on.
// Deprecated: Use BackendRef instead.
//
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/envoyproxy_metric_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type ProxyOpenTelemetrySink struct {
// Deprecated: Use BackendRef instead.
//
// +optional
Host *string `json:"host"`
Host *string `json:"host,omitempty"`
// Port defines the port the service is exposed on.
// Deprecated: Use BackendRef instead.
//
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/tracing_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type TracingProvider struct {
// Deprecated: Use BackendRef instead.
//
// +optional
Host *string `json:"host"`
Host *string `json:"host,omitempty"`
// Port defines the port the provider service is exposed on.
// Deprecated: Use BackendRef instead.
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ infraIR:
- name: otel-collector
namespace: monitoring
port: 4317
host: null
resources:
k8s.cluster.name: cluster-1
type: OpenTelemetry
Expand Down

0 comments on commit c4ce09f

Please sign in to comment.