in pkg/observability/k8s-events.go [158:179]
func getReasonForKindV1(eventKind, monitorKind string) string {
// In v1 all events received from SQS were given the same reason.
if monitorKind == monitor.SQSTerminateKind {
return sqsTerminationReason
}
// However, events received from IMDS could be more specific.
switch eventKind {
case monitor.ScheduledEventKind:
return scheduledEventReason
case monitor.SpotITNKind:
return spotITNReason
case monitor.RebalanceRecommendationKind:
return rebalanceRecommendationReason
case monitor.StateChangeKind:
return stateChangeReason
case monitor.ASGLifecycleKind:
return asgLifecycleReason
default:
return unknownReason
}
}