Skip to content

Commit

Permalink
[D4C] change resource.label and resource.annotation to keyword type (#…
Browse files Browse the repository at this point in the history
…5902)

* change resource.label and resource.annotation to keyword type

* pr link updated
  • Loading branch information
mitodrummer authored Apr 18, 2023
1 parent 27490de commit 1e5bb84
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 18 deletions.
5 changes: 5 additions & 0 deletions packages/cloud_defend/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.0.4"
changes:
- description: Updated orchestrator.resource.label and annotation to use keyword type.
type: enhancement
link: https://github.com/elastic/integrations/pull/5902
- version: "1.0.3"
changes:
- description: Added kubernetes as a category. Renamed trace_point to hook_point
Expand Down
8 changes: 4 additions & 4 deletions packages/cloud_defend/data_stream/alerts/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
type: keyword
description: An array of hook points used to source the events data.
- name: orchestrator.resource.label
type: flattened
description: An object containing the labels for the resource being acted upon.
type: keyword
description: An array of labels added to the resource. e.g. ['key:value', 'key2:value2']
- name: orchestrator.resource.annotation
type: flattened
description: An object containing the annotations for the resource being acted upon.
type: keyword
description: An array of annotations added to the resource. e.g. ['key:value', 'key2:value2']
8 changes: 4 additions & 4 deletions packages/cloud_defend/data_stream/file/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
type: keyword
description: An array of hook points used to source the events data.
- name: orchestrator.resource.label
type: flattened
description: An object containing the labels for the resource being acted upon.
type: keyword
description: An array of labels added to the resource. e.g. ['key:value', 'key2:value2']
- name: orchestrator.resource.annotation
type: flattened
description: An object containing the annotations for the resource being acted upon.
type: keyword
description: An array of annotations added to the resource. e.g. ['key:value', 'key2:value2']
8 changes: 4 additions & 4 deletions packages/cloud_defend/data_stream/process/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
type: keyword
description: An array of hook points used to source the events data.
- name: orchestrator.resource.label
type: flattened
description: An object containing the labels for the resource being acted upon.
type: keyword
description: An array of labels added to the resource. e.g. ['key:value', 'key2:value2']
- name: orchestrator.resource.annotation
type: flattened
description: An object containing the annotations for the resource being acted upon.
type: keyword
description: An array of annotations added to the resource. e.g. ['key:value', 'key2:value2']
8 changes: 4 additions & 4 deletions packages/cloud_defend/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ responses:
| [orchestrator.cluster.name](https://www.elastic.co/guide/en/ecs/current/ecs-orchestrator.html#field-orchestrator-cluster-name) | 'website' |
| [orchestrator.namespace](https://www.elastic.co/guide/en/ecs/current/ecs-orchestrator.html#field-orchestrator-namespace) | default |
| [orchestrator.resource.ip](https://www.elastic.co/guide/en/ecs/current/ecs-orchestrator.html#field-orchestrator-resource-ip) | '172.18.0.6' |
| [orchestrator.resource.annotation](https://www.elastic.co/guide/en/ecs/current/ecs-orchestrator.html#field-orchestrator-resource-annotation) | ['test one two'] |
| [orchestrator.resource.label](https://www.elastic.co/guide/en/ecs/current/ecs-orchestrator.html#field-orchestrator-resource-label) | ['service:webapp'] |
| orchestrator.resource.annotation | ['note:testing'] |
| orchestrator.resource.label | ['service:webapp'] |
| [orchestrator.resource.name](https://www.elastic.co/guide/en/ecs/current/ecs-orchestrator.html#field-orchestrator-resource-name) | webapp-proxy |
| [orchestrator.resource.parent.type](https://www.elastic.co/guide/en/ecs/current/ecs-orchestrator.html#field-orchestrator-resource-parent-type) | 'DaemonSet', 'ReplicaSet' etc... |
| [orchestrator.resource.type](https://www.elastic.co/guide/en/ecs/current/ecs-orchestrator.html#field-orchestrator-resource-type) | pod |
Expand Down Expand Up @@ -334,8 +334,8 @@ responses:
| [orchestrator.cluster.name](https://www.elastic.co/guide/en/ecs/current/ecs-orchestrator.html#field-orchestrator-cluster-name) | 'website' |
| [orchestrator.namespace](https://www.elastic.co/guide/en/ecs/current/ecs-orchestrator.html#field-orchestrator-namespace) | default |
| [orchestrator.resource.ip](https://www.elastic.co/guide/en/ecs/current/ecs-orchestrator.html#field-orchestrator-resource-ip) | '172.18.0.6' |
| [orchestrator.resource.annotation](https://www.elastic.co/guide/en/ecs/current/ecs-orchestrator.html#field-orchestrator-resource-annotation) | ['test one two'] |
| [orchestrator.resource.label](https://www.elastic.co/guide/en/ecs/current/ecs-orchestrator.html#field-orchestrator-resource-label) | ['service:webapp'] |
| orchestrator.resource.annotation | ['note:testing'] |
| orchestrator.resource.label | ['service:webapp'] |
| [orchestrator.resource.name](https://www.elastic.co/guide/en/ecs/current/ecs-orchestrator.html#field-orchestrator-resource-name) | webapp-proxy |
| [orchestrator.resource.parent.type](https://www.elastic.co/guide/en/ecs/current/ecs-orchestrator.html#field-orchestrator-resource-parent-type) | ... |
| [orchestrator.resource.type](https://www.elastic.co/guide/en/ecs/current/ecs-orchestrator.html#field-orchestrator-resource-type) | pod |
Expand Down
4 changes: 2 additions & 2 deletions packages/cloud_defend/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
format_version: 2.3.0
name: cloud_defend
title: "Defend for Containers"
version: 1.0.3
version: 1.0.4
source:
license: "Elastic-2.0"
description: "Elastic Defend for Containers provides cloud-native runtime protections for containerized environments."
description: "Elastic Defend for Containers (BETA) provides cloud-native runtime protections for containerized environments."
type: integration
categories:
- containers
Expand Down

0 comments on commit 1e5bb84

Please sign in to comment.