Skip to content

Commit

Permalink
[Kubernetes] Update namespace filter on data streams (#10213)
Browse files Browse the repository at this point in the history
* Update namespace filter

Co-authored-by: Tetiana Kravchenko <[email protected]>

---------

Co-authored-by: Tetiana Kravchenko <[email protected]>
  • Loading branch information
constanca-m and tetianakravchenko authored Jul 16, 2024
1 parent ce602de commit 3f34e40
Show file tree
Hide file tree
Showing 24 changed files with 37 additions and 103 deletions.
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
6 changes: 0 additions & 6 deletions packages/kubernetes/data_stream/state_container/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
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
6 changes: 0 additions & 6 deletions packages/kubernetes/data_stream/state_daemonset/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
6 changes: 0 additions & 6 deletions packages/kubernetes/data_stream/state_deployment/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
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
6 changes: 0 additions & 6 deletions packages/kubernetes/data_stream/state_namespace/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
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
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
6 changes: 0 additions & 6 deletions packages/kubernetes/data_stream/state_replicaset/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
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
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

0 comments on commit 3f34e40

Please sign in to comment.