Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Kubernetes] Update namespace filter on data streams #10213

Merged
merged 14 commits into from
Jul 16, 2024
5 changes: 5 additions & 0 deletions packages/kubernetes/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: 1.64.0
changes:
- description: Move namespace filter to the group level configuration
type: enhancement
link: https://github.com/elastic/integrations/pull/10213
- version: 1.63.1
changes:
- description: Fix typo in kubernetes.audit ingest pipeline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ ssl.certificate_authorities:
- {{this}}
{{/each}}
{{/if}}
{{#if namespace}}
namespace: {{namespace}}
{{/if}}

{{#if processors}}
processors:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ condition: ${kubernetes_leaderelection.leader} == true
condition: {{ condition }}
{{/if}}
{{/if}}
{{#if namespace}}
namespace: {{namespace}}
{{/if}}

{{#if processors}}
processors:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ ssl.certificate_authorities:
- {{this}}
{{/each}}
{{/if}}
{{#if namespace}}
namespace: {{namespace}}
{{/if}}

{{#if processors}}
processors:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ streams:
multi: false
required: false
show_user: false
- name: namespace
type: text
title: Namespace to watch resources from for metadata
multi: false
required: false
show_user: false
- name: bearer_token_file
type: text
title: Bearer Token File
Expand Down
6 changes: 0 additions & 6 deletions packages/kubernetes/data_stream/state_cronjob/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ streams:
multi: false
required: false
show_user: false
- name: namespace
type: text
title: Namespace to watch resources from for metadata
multi: false
required: false
show_user: false
- name: bearer_token_file
type: text
title: Bearer Token File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ streams:
multi: false
required: false
show_user: false
- name: namespace
type: text
title: Namespace to watch resources from for metadata
multi: false
required: false
show_user: false
- name: bearer_token_file
type: text
title: Bearer Token File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ streams:
multi: false
required: false
show_user: false
- name: namespace
type: text
title: Namespace to watch resources from for metadata
multi: false
required: false
show_user: false
- name: bearer_token_file
type: text
title: Bearer Token File
Expand Down
6 changes: 0 additions & 6 deletions packages/kubernetes/data_stream/state_job/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ streams:
multi: false
required: false
show_user: false
- name: namespace
type: text
title: Namespace to watch resources from for metadata
multi: false
required: false
show_user: false
- name: bearer_token_file
type: text
title: Bearer Token File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ streams:
multi: false
required: false
show_user: false
- name: namespace
type: text
title: Namespace to watch resources from for metadata
multi: false
required: false
show_user: false
- name: bearer_token_file
type: text
title: Bearer Token File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ condition: {{ condition }}
{{#if node}}
node: {{node}}
{{/if}}
{{#if namespace}}
namespace: {{namespace}}
{{/if}}
{{#if bearer_token_file}}
bearer_token_file: {{bearer_token_file}}
{{/if}}
Expand Down
6 changes: 0 additions & 6 deletions packages/kubernetes/data_stream/state_node/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ streams:
multi: false
required: false
show_user: false
- name: namespace
type: text
title: Namespace to watch resources from for metadata
multi: false
required: false
show_user: false
- name: bearer_token_file
type: text
title: Bearer Token File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ condition: {{ condition }}
{{#if node}}
node: {{node}}
{{/if}}
{{#if namespace}}
namespace: {{namespace}}
{{/if}}
{{#if bearer_token_file}}
bearer_token_file: {{bearer_token_file}}
{{/if}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ streams:
multi: false
required: false
show_user: false
- name: namespace
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type: text
title: Namespace to watch resources from for metadata
multi: false
required: false
show_user: false
- name: bearer_token_file
type: text
title: Bearer Token File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ streams:
multi: false
required: false
show_user: false
- name: namespace
type: text
title: Namespace to watch resources from for metadata
multi: false
required: false
show_user: false
- name: bearer_token_file
type: text
title: Bearer Token File
Expand Down
6 changes: 0 additions & 6 deletions packages/kubernetes/data_stream/state_pod/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ streams:
multi: false
required: false
show_user: false
- name: namespace
type: text
title: Namespace to watch resources from for metadata
multi: false
required: false
show_user: false
- name: bearer_token_file
type: text
title: Bearer Token File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ streams:
multi: false
required: false
show_user: false
- name: namespace
type: text
title: Namespace to watch resources from for metadata
multi: false
required: false
show_user: false
- name: bearer_token_file
type: text
title: Bearer Token File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ condition: {{ condition }}
{{#if node}}
node: {{node}}
{{/if}}
{{#if namespace}}
namespace: {{namespace}}
{{/if}}
{{#if bearer_token_file}}
bearer_token_file: {{bearer_token_file}}
{{/if}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ streams:
multi: false
required: false
show_user: false
- name: namespace
MichaelKatsoulis marked this conversation as resolved.
Show resolved Hide resolved
type: text
title: Namespace to watch resources from for metadata
multi: false
required: false
show_user: false
- name: bearer_token_file
type: text
title: Bearer Token File
Expand Down
6 changes: 0 additions & 6 deletions packages/kubernetes/data_stream/state_service/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ streams:
multi: false
required: false
show_user: false
- name: namespace
type: text
title: Namespace to watch resources from for metadata
multi: false
required: false
show_user: false
- name: bearer_token_file
type: text
title: Bearer Token File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ streams:
multi: false
required: false
show_user: false
- name: namespace
type: text
title: Namespace to watch resources from for metadata
constanca-m marked this conversation as resolved.
Show resolved Hide resolved
multi: false
required: false
show_user: false
- name: bearer_token_file
type: text
title: Bearer Token File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ condition: {{ condition }}
{{#if node}}
node: {{node}}
{{/if}}
{{#if namespace}}
namespace: {{namespace}}
{{/if}}
{{#if bearer_token_file}}
bearer_token_file: {{bearer_token_file}}
{{/if}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ streams:
multi: false
required: false
show_user: false
- name: namespace
type: text
title: Namespace to watch resources from for metadata
multi: false
required: false
show_user: false
- name: bearer_token_file
type: text
title: Bearer Token File
Expand Down
24 changes: 23 additions & 1 deletion packages/kubernetes/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 3.1.2
name: kubernetes
title: Kubernetes
version: 1.63.1
version: 1.64.0
description: Collect logs and metrics from Kubernetes clusters with Elastic Agent.
type: integration
categories:
Expand Down Expand Up @@ -46,6 +46,13 @@ policy_templates:
multi: false
required: false
show_user: false
- name: namespace
type: text
title: Namespace
description: Enrich events with metadata from the resources in this namespace. Empty value means all namespaces.
multi: false
required: false
show_user: false
icons:
- src: /img/logo_kubernetes.svg
title: Logo Kubernetes
Expand Down Expand Up @@ -88,6 +95,13 @@ policy_templates:
multi: false
required: false
show_user: false
- name: namespace
type: text
title: Namespace
description: Enrich events with metadata from the resources in this namespace. Empty value means all namespaces.
multi: false
required: false
show_user: false
icons:
- src: /img/logo_kubernetes.svg
title: Logo Kubernetes
Expand Down Expand Up @@ -188,6 +202,14 @@ policy_templates:
title: Collect Kubernetes events from Kubernetes API Server
description: Collecting events from Kubernetes API Server
input_group: metrics
vars:
- name: namespace
type: text
title: Namespace
description: Enrich events with metadata from the resources in this namespace. Empty value means all namespaces.
multi: false
required: false
show_user: false
icons:
- src: /img/logo_kubernetes.svg
title: Logo Kubernetes
Expand Down