Skip to content

Commit

Permalink
Merge pull request #666 from solarwinds/feature/NH-68386-adding-objec…
Browse files Browse the repository at this point in the history
…t-kind-to-manifests

Feature/nh 68386 adding object kind to manifests
  • Loading branch information
mpecenka authored Jul 16, 2024
2 parents 9799976 + d60fd90 commit ae71899
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
9 changes: 8 additions & 1 deletion deploy/helm/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased


## [4.0.0-alpha.5] - 2024-07-16

### Added

- Added k8s.object.kind to manifest events.

### Changed

- internal configuration of filterprocessor is using OTTL syntax now.
- Internal configuration of filterprocessor is using OTTL syntax now.


## [4.0.0-alpha.4] - 2024-07-11
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: swo-k8s-collector
version: 4.0.0-alpha.4
version: 4.0.0-alpha.5
appVersion: "0.11.1"
description: SolarWinds Kubernetes Integration
keywords:
Expand Down
1 change: 1 addition & 0 deletions deploy/helm/events-collector-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ processors:
- set(attributes["k8s.persistentvolumeclaim.name"], body["metadata"]["name"]) where body["kind"] == "PersistentVolumeClaim"
- set(attributes["k8s.namespace.name"], body["metadata"]["namespace"])
- set(attributes["k8s.ingress.name"], body["metadata"]["name"]) where body["kind"] == "Ingress"
- set(attributes["k8s.object.kind"], body["kind"]) where body["kind"] != nil

# There are some attributes added by k8sobjects receiver, SWO do not need them so removing it
- delete_key(attributes, "k8s.resource.name")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,7 @@ Events config should match snapshot when using default values:
- set(attributes["k8s.namespace.name"], body["metadata"]["namespace"])
- set(attributes["k8s.ingress.name"], body["metadata"]["name"]) where body["kind"]
== "Ingress"
- set(attributes["k8s.object.kind"], body["kind"]) where body["kind"] != nil
- delete_key(attributes, "k8s.resource.name")
- delete_key(attributes, "event.name")
- delete_key(attributes, "event.domain")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Fargate logging ConfigMap spec should include additional filters when they are c
Match *
Add sw.k8s.cluster.uid <CLUSTER_UID>
Add sw.k8s.log.type container
Add sw.k8s.agent.manifest.version "4.0.0-alpha.4"
Add sw.k8s.agent.manifest.version "4.0.0-alpha.5"
flb_log_cw: "false"
output.conf: |
[OUTPUT]
Expand Down Expand Up @@ -60,7 +60,7 @@ Fargate logging ConfigMap spec should match snapshot when Fargate logging is ena
Match *
Add sw.k8s.cluster.uid <CLUSTER_UID>
Add sw.k8s.log.type container
Add sw.k8s.agent.manifest.version "4.0.0-alpha.4"
Add sw.k8s.agent.manifest.version "4.0.0-alpha.5"
flb_log_cw: "false"
output.conf: |
[OUTPUT]
Expand Down

0 comments on commit ae71899

Please sign in to comment.