Skip to content

Commit dfe9530

Browse files
committed
hide filters from forms
1 parent 8cad9b4 commit dfe9530

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

web/locales/en/plugin__netobserv-plugin.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,6 @@
199199
"Network Observability Operator deploys a monitoring pipeline that consists in:\n - an eBPF agent, that generates network flows from captured packets\n - flowlogs-pipeline, a component that collects, enriches and exports these flows\n - a Console plugin for flows visualization with powerful filtering options, a topology representation and more\n\nFlow data is then available in multiple ways, each optional:\n - As Prometheus metrics\n - As raw flow logs stored in Grafana Loki\n - As raw flow logs exported to a collector\n\nThe FlowCollector resource is used to configure the operator and its managed components.\nThis setup will guide you on the common aspects of the FlowCollector configuration.": "Network Observability Operator deploys a monitoring pipeline that consists in:\n - an eBPF agent, that generates network flows from captured packets\n - flowlogs-pipeline, a component that collects, enriches and exports these flows\n - a Console plugin for flows visualization with powerful filtering options, a topology representation and more\n\nFlow data is then available in multiple ways, each optional:\n - As Prometheus metrics\n - As raw flow logs stored in Grafana Loki\n - As raw flow logs exported to a collector\n\nThe FlowCollector resource is used to configure the operator and its managed components.\nThis setup will guide you on the common aspects of the FlowCollector configuration.",
200200
"Operator configuration": "Operator configuration",
201201
"Capture": "Capture",
202-
"Filters": "Filters",
203-
"Options": "Options",
204202
"Pipeline": "Pipeline",
205203
"Storage": "Storage",
206204
"Integration": "Integration",

web/src/components/forms/config/uiSchema.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export const FlowCollectorUISchema: UiSchema = {
102102
flowFilter: {
103103
'ui:title': 'Filters',
104104
'ui:description': 'The eBPF agent configuration regarding flow filtering.',
105+
'ui:widget': 'hidden',
105106
enable: {
106107
'ui:title': 'Enable flow filtering'
107108
},
@@ -479,6 +480,7 @@ export const FlowCollectorUISchema: UiSchema = {
479480
'ui:title': 'Filters',
480481
'ui:description':
481482
'Define custom filters to limit the amount of generated flows.\nThese filters provide more flexibility than the eBPF Agent filters (in `spec.agent.ebpf.flowFilter`), such as allowing to filter by Kubernetes namespace, but with a lesser improvement in performance. Unsupported.',
483+
'ui:widget': 'hidden',
482484
items: {
483485
'ui:order': ['allOf', 'outputTarget', 'sampling'],
484486
allOf: {

web/src/components/forms/flowCollector-wizard.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,7 @@ export const FlowCollectorWizard: FC<FlowCollectorWizardProps> = props => {
6666
case 'overview':
6767
setPaths(defaultPaths);
6868
break;
69-
case 'filters':
70-
setPaths(['spec.agent.ebpf.flowFilter.enable', 'spec.agent.ebpf.flowFilter.rules', 'spec.processor.filters']);
71-
break;
72-
case 'options':
69+
case 'capture':
7370
setPaths([
7471
'spec.agent.ebpf.sampling',
7572
'spec.agent.ebpf.privileged',
@@ -151,11 +148,9 @@ export const FlowCollectorWizard: FC<FlowCollectorWizardProps> = props => {
151148
</span>
152149
{form()}
153150
</WizardStep>
154-
<WizardStep
155-
name={t('Capture')}
156-
id="capture"
157-
steps={[step('filters', t('Filters')), step('options', t('Options'))]}
158-
/>
151+
<WizardStep name={t('Capture')} id="capture">
152+
{form()}
153+
</WizardStep>
159154
<WizardStep name={t('Pipeline')} id="pipeline">
160155
{form()}
161156
</WizardStep>

0 commit comments

Comments
 (0)