Skip to content

Commit

Permalink
Update logTypes enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Amoghrd committed Nov 3, 2023
1 parent f7345c8 commit 50f6abf
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 34 deletions.
20 changes: 10 additions & 10 deletions api/v1beta2/flowcollector_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,10 @@ type FLPMetrics struct {
}

const (
LogTypeFlows = "FLOWS"
LogTypeConversations = "CONVERSATIONS"
LogTypeEndedConversations = "ENDED_CONVERSATIONS"
LogTypeAll = "ALL"
LogTypeFlows = "Flows"
LogTypeConversations = "Conversations"
LogTypeEndedConversations = "EndedConversations"
LogTypeAll = "All"
)

// `FlowCollectorFLP` defines the desired flowlogs-pipeline state of FlowCollector
Expand Down Expand Up @@ -439,13 +439,13 @@ type FlowCollectorFLP struct {
KafkaConsumerBatchSize int `json:"kafkaConsumerBatchSize"`

// `logTypes` defines the desired record types to generate. Possible values are:<br>
// - `FLOWS` (default) to export regular network flows<br>
// - `CONVERSATIONS` to generate events for started conversations, ended conversations as well as periodic "tick" updates<br>
// - `ENDED_CONVERSATIONS` to generate only ended conversations events<br>
// - `ALL` to generate both network flows and all conversations events<br>
// - `Flows` (default) to export regular network flows<br>
// - `Conversations` to generate events for started conversations, ended conversations as well as periodic "tick" updates<br>
// - `EndedConversations` to generate only ended conversations events<br>
// - `All` to generate both network flows and all conversations events<br>
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Enum:="FLOWS";"CONVERSATIONS";"ENDED_CONVERSATIONS";"ALL"
// +kubebuilder:default:=FLOWS
// +kubebuilder:validation:Enum:="Flows";"Conversations";"EndedConversations";"All"
// +kubebuilder:default:=Flows
LogTypes *string `json:"logTypes,omitempty"`

//+kubebuilder:default:="30s"
Expand Down
18 changes: 9 additions & 9 deletions bundle/manifests/flows.netobserv.io_flowcollectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4769,19 +4769,19 @@ spec:
- panic
type: string
logTypes:
default: FLOWS
default: Flows
description: '`logTypes` defines the desired record types to generate.
Possible values are:<br> - `FLOWS` (default) to export regular
network flows<br> - `CONVERSATIONS` to generate events for started
Possible values are:<br> - `Flows` (default) to export regular
network flows<br> - `Conversations` to generate events for started
conversations, ended conversations as well as periodic "tick"
updates<br> - `ENDED_CONVERSATIONS` to generate only ended conversations
events<br> - `ALL` to generate both network flows and all conversations
updates<br> - `EndedConversations` to generate only ended conversations
events<br> - `All` to generate both network flows and all conversations
events<br>'
enum:
- FLOWS
- CONVERSATIONS
- ENDED_CONVERSATIONS
- ALL
- Flows
- Conversations
- EndedConversations
- All
type: string
metrics:
description: '`Metrics` define the processor configuration regarding
Expand Down
18 changes: 9 additions & 9 deletions config/crd/bases/flows.netobserv.io_flowcollectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7637,19 +7637,19 @@ spec:
- panic
type: string
logTypes:
default: FLOWS
default: Flows
description: '`logTypes` defines the desired record types to generate.
Possible values are:<br> - `FLOWS` (default) to export regular
network flows<br> - `CONVERSATIONS` to generate events for started
Possible values are:<br> - `Flows` (default) to export regular
network flows<br> - `Conversations` to generate events for started
conversations, ended conversations as well as periodic "tick"
updates<br> - `ENDED_CONVERSATIONS` to generate only ended conversations
events<br> - `ALL` to generate both network flows and all conversations
updates<br> - `EndedConversations` to generate only ended conversations
events<br> - `All` to generate both network flows and all conversations
events<br>'
enum:
- FLOWS
- CONVERSATIONS
- ENDED_CONVERSATIONS
- ALL
- Flows
- Conversations
- EndedConversations
- All
type: string
metrics:
description: '`Metrics` define the processor configuration regarding
Expand Down
12 changes: 6 additions & 6 deletions hack/cloned.flows.netobserv.io_flowcollectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3306,13 +3306,13 @@ spec:
- panic
type: string
logTypes:
default: FLOWS
description: '`logTypes` defines the desired record types to generate. Possible values are:<br> - `FLOWS` (default) to export regular network flows<br> - `CONVERSATIONS` to generate events for started conversations, ended conversations as well as periodic "tick" updates<br> - `ENDED_CONVERSATIONS` to generate only ended conversations events<br> - `ALL` to generate both network flows and all conversations events<br>'
default: Flows
description: '`logTypes` defines the desired record types to generate. Possible values are:<br> - `Flows` (default) to export regular network flows<br> - `Conversations` to generate events for started conversations, ended conversations as well as periodic "tick" updates<br> - `EndedConversations` to generate only ended conversations events<br> - `All` to generate both network flows and all conversations events<br>'
enum:
- FLOWS
- CONVERSATIONS
- ENDED_CONVERSATIONS
- ALL
- Flows
- Conversations
- EndedConversations
- All
type: string
metrics:
description: '`Metrics` define the processor configuration regarding metrics'
Expand Down

0 comments on commit 50f6abf

Please sign in to comment.