Skip to content

Commit

Permalink
addressed feedback + update bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau committed Oct 10, 2023
1 parent aeb6034 commit 3de9f1a
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 34 deletions.
2 changes: 1 addition & 1 deletion api/v1beta1/flowcollector_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type FlowCollectorSpec struct {
// enriches them, generates metrics, and forwards them to the Loki persistence layer and/or any available exporter.
Processor FlowCollectorFLP `json:"processor,omitempty"`

// loki, the flow store, client settings.
// `loki`, the flow store, client settings.
Loki FlowCollectorLoki `json:"loki,omitempty"`

// `consolePlugin` defines the settings related to the OpenShift Console plugin, when available.
Expand Down
12 changes: 0 additions & 12 deletions api/v1beta1/flowcollector_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,6 @@ func (r *FlowCollector) ConvertTo(dstRaw conversion.Hub) error {
return err
}

// Processor
dst.Spec.Processor.LogTypes = restored.Spec.Processor.LogTypes
if restored.Spec.Processor.ConversationHeartbeatInterval != nil {
dst.Spec.Processor.ConversationHeartbeatInterval = restored.Spec.Processor.ConversationHeartbeatInterval
}
if restored.Spec.Processor.ConversationEndTimeout != nil {
dst.Spec.Processor.ConversationEndTimeout = restored.Spec.Processor.ConversationEndTimeout
}
if restored.Spec.Processor.Metrics.DisableAlerts != nil {
dst.Spec.Processor.Metrics.DisableAlerts = restored.Spec.Processor.Metrics.DisableAlerts
}

// Loki
dst.Spec.Loki.Mode = restored.Spec.Loki.Mode
dst.Spec.Loki.Manual = restored.Spec.Loki.Manual
Expand Down
2 changes: 1 addition & 1 deletion api/v1beta2/flowcollector_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type FlowCollectorSpec struct {
// enriches them, generates metrics, and forwards them to the Loki persistence layer and/or any available exporter.
Processor FlowCollectorFLP `json:"processor,omitempty"`

// loki, the flow store, client settings.
// `loki`, the flow store, client settings.
Loki FlowCollectorLoki `json:"loki,omitempty"`

// `consolePlugin` defines the settings related to the OpenShift Console plugin, when available.
Expand Down
8 changes: 4 additions & 4 deletions bundle/manifests/flows.netobserv.io_flowcollectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3708,7 +3708,7 @@ spec:
- topic
type: object
loki:
description: loki, the flow store, client settings.
description: '`loki`, the flow store, client settings.'
properties:
authToken:
default: DISABLED
Expand Down Expand Up @@ -5967,7 +5967,7 @@ spec:
properties:
ipfix:
description: IPFIX configuration, such as the IP address and
port to send enriched IPFIX flows to. [Unsupported (*)].
port to send enriched IPFIX flows to.
properties:
targetHost:
default: ""
Expand Down Expand Up @@ -6165,7 +6165,7 @@ spec:
type: object
type:
description: '`type` selects the type of exporters. The available
options are `KAFKA` and `IPFIX`. `IPFIX` is unsupported (*).'
options are `KAFKA` and `IPFIX`.'
enum:
- KAFKA
- IPFIX
Expand Down Expand Up @@ -6343,7 +6343,7 @@ spec:
- topic
type: object
loki:
description: loki, the flow store, client settings.
description: '`loki`, the flow store, client settings.'
properties:
batchSize:
default: 102400
Expand Down
8 changes: 4 additions & 4 deletions config/crd/bases/flows.netobserv.io_flowcollectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3694,7 +3694,7 @@ spec:
- topic
type: object
loki:
description: loki, the flow store, client settings.
description: '`loki`, the flow store, client settings.'
properties:
authToken:
default: DISABLED
Expand Down Expand Up @@ -5953,7 +5953,7 @@ spec:
properties:
ipfix:
description: IPFIX configuration, such as the IP address and
port to send enriched IPFIX flows to. [Unsupported (*)].
port to send enriched IPFIX flows to.
properties:
targetHost:
default: ""
Expand Down Expand Up @@ -6151,7 +6151,7 @@ spec:
type: object
type:
description: '`type` selects the type of exporters. The available
options are `KAFKA` and `IPFIX`. `IPFIX` is unsupported (*).'
options are `KAFKA` and `IPFIX`.'
enum:
- KAFKA
- IPFIX
Expand Down Expand Up @@ -6329,7 +6329,7 @@ spec:
- topic
type: object
loki:
description: loki, the flow store, client settings.
description: '`loki`, the flow store, client settings.'
properties:
batchSize:
default: 102400
Expand Down
14 changes: 7 additions & 7 deletions docs/FlowCollector.md
Original file line number Diff line number Diff line change
Expand Up @@ -4071,7 +4071,7 @@ Defines the desired state of the FlowCollector resource. <br><br> *: the mention
<td><b><a href="#flowcollectorspecloki-1">loki</a></b></td>
<td>object</td>
<td>
loki, the flow store, client settings.<br/>
`loki`, the flow store, client settings.<br/>
</td>
<td>false</td>
</tr><tr>
Expand Down Expand Up @@ -6526,7 +6526,7 @@ TLS client configuration. When using TLS, verify that the address matches the Ka



loki, the flow store, client settings.
`loki`, the flow store, client settings.

<table>
<thead>
Expand Down Expand Up @@ -8699,7 +8699,7 @@ Defines the desired state of the FlowCollector resource. <br><br> *: the mention
<td><b><a href="#flowcollectorspecloki-1">loki</a></b></td>
<td>object</td>
<td>
loki, the flow store, client settings.<br/>
`loki`, the flow store, client settings.<br/>
</td>
<td>false</td>
</tr><tr>
Expand Down Expand Up @@ -10341,7 +10341,7 @@ ResourceClaim references one entry in PodSpec.ResourceClaims.
<td><b>type</b></td>
<td>enum</td>
<td>
`type` selects the type of exporters. The available options are `KAFKA` and `IPFIX`. `IPFIX` is unsupported (*).<br/>
`type` selects the type of exporters. The available options are `KAFKA` and `IPFIX`.<br/>
<br/>
<i>Enum</i>: KAFKA, IPFIX<br/>
</td>
Expand All @@ -10350,7 +10350,7 @@ ResourceClaim references one entry in PodSpec.ResourceClaims.
<td><b><a href="#flowcollectorspecexportersindexipfix-1">ipfix</a></b></td>
<td>object</td>
<td>
IPFIX configuration, such as the IP address and port to send enriched IPFIX flows to. [Unsupported (*)].<br/>
IPFIX configuration, such as the IP address and port to send enriched IPFIX flows to.<br/>
</td>
<td>false</td>
</tr><tr>
Expand All @@ -10369,7 +10369,7 @@ ResourceClaim references one entry in PodSpec.ResourceClaims.



IPFIX configuration, such as the IP address and port to send enriched IPFIX flows to. [Unsupported (*)].
IPFIX configuration, such as the IP address and port to send enriched IPFIX flows to.

<table>
<thead>
Expand Down Expand Up @@ -11154,7 +11154,7 @@ TLS client configuration. When using TLS, verify that the address matches the Ka



loki, the flow store, client settings.
`loki`, the flow store, client settings.

<table>
<thead>
Expand Down
10 changes: 5 additions & 5 deletions hack/cloned.flows.netobserv.io_flowcollectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ spec:
- topic
type: object
loki:
description: loki, the flow store, client settings.
description: '`loki`, the flow store, client settings.'
properties:
authToken:
default: DISABLED
Expand Down Expand Up @@ -3694,7 +3694,7 @@ spec:
- topic
type: object
loki:
description: loki, the flow store, client settings.
description: '`loki`, the flow store, client settings.'
properties:
authToken:
default: DISABLED
Expand Down Expand Up @@ -5953,7 +5953,7 @@ spec:
properties:
ipfix:
description: IPFIX configuration, such as the IP address and
port to send enriched IPFIX flows to. [Unsupported (*)].
port to send enriched IPFIX flows to.
properties:
targetHost:
default: ""
Expand Down Expand Up @@ -6151,7 +6151,7 @@ spec:
type: object
type:
description: '`type` selects the type of exporters. The available
options are `KAFKA` and `IPFIX`. `IPFIX` is unsupported (*).'
options are `KAFKA` and `IPFIX`.'
enum:
- KAFKA
- IPFIX
Expand Down Expand Up @@ -6329,7 +6329,7 @@ spec:
- topic
type: object
loki:
description: loki, the flow store, client settings.
description: '`loki`, the flow store, client settings.'
properties:
batchSize:
default: 102400
Expand Down

0 comments on commit 3de9f1a

Please sign in to comment.