Skip to content

Commit

Permalink
feat: Add key for fetching ingress class (#262)
Browse files Browse the repository at this point in the history
Try fetching ingress class from the deprecated annotation
"kubernetes.io/ingress.class", which might still contain the ingress
class for outdated Ingress manifests.
  • Loading branch information
obs-gh-enricogiorio authored Nov 7, 2024
1 parent 0db5a37 commit 292bab1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: agent
description: Chart to install K8s collection stack based on Observe Agent
type: application
version: 0.29.0
version: 0.30.0
appVersion: "1.1.0"
dependencies:
- name: opentelemetry-collector
Expand Down
2 changes: 1 addition & 1 deletion charts/agent/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# agent

![Version: 0.29.0](https://img.shields.io/badge/Version-0.29.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.0](https://img.shields.io/badge/AppVersion-1.1.0-informational?style=flat-square)
![Version: 0.30.0](https://img.shields.io/badge/Version-0.30.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.0](https://img.shields.io/badge/AppVersion-1.1.0-informational?style=flat-square)

> [!CAUTION]
> This chart is under active development and is not meant to be installed yet.
Expand Down
1 change: 1 addition & 0 deletions charts/agent/templates/_cluster-events-config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ processors:
- set(attributes["observe_transform"]["identifiers"]["ingressUid"], body["metadata"]["uid"])
# spec
- set(attributes["observe_transform"]["facets"]["class"], body["spec"]["ingressClassName"])
- set(attributes["observe_transform"]["facets"]["class"], body["metadata"]["annotations"]["kubernetes.io/ingress.class"]) where attributes["observe_transform"]["facets"]["class"] == nil
- context: log
conditions:
- body["kind"] == "RoleBinding"
Expand Down

0 comments on commit 292bab1

Please sign in to comment.