From bf4935072693cf2fd886281b831cda968d1612f1 Mon Sep 17 00:00:00 2001 From: Heeyoung Jung Date: Thu, 5 Dec 2024 14:13:43 -0800 Subject: [PATCH 1/2] Fix ASGLifecycle showing up as UnknownInterruption on K8 events (#1024) --- pkg/observability/k8s-events.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/observability/k8s-events.go b/pkg/observability/k8s-events.go index 6b7caf25..0100c9ee 100644 --- a/pkg/observability/k8s-events.go +++ b/pkg/observability/k8s-events.go @@ -169,6 +169,8 @@ func getReasonForKindV1(eventKind, monitorKind string) string { return spotITNReason case monitor.RebalanceRecommendationKind: return rebalanceRecommendationReason + case monitor.ASGLifecycleKind: + return asgLifecycleReason default: return unknownReason } From 91332db23d846f1e93027a30655e05e30db16580 Mon Sep 17 00:00:00 2001 From: Heeyoung Jung Date: Thu, 5 Dec 2024 17:13:30 -0800 Subject: [PATCH 2/2] Fix StateChange showing up as UnknownInterruption on K8 events --- pkg/observability/k8s-events.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/observability/k8s-events.go b/pkg/observability/k8s-events.go index 0100c9ee..5ee893ad 100644 --- a/pkg/observability/k8s-events.go +++ b/pkg/observability/k8s-events.go @@ -169,6 +169,8 @@ func getReasonForKindV1(eventKind, monitorKind string) string { return spotITNReason case monitor.RebalanceRecommendationKind: return rebalanceRecommendationReason + case monitor.StateChangeKind: + return stateChangeReason case monitor.ASGLifecycleKind: return asgLifecycleReason default: