blob: 6184a0d8155967dcb12ca83dbd5a9dfddb175394 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- a/pkg/exporter/utils/utils.go
+++ b/pkg/exporter/utils/utils.go
@@ -55,6 +55,11 @@ func IsSimEnabled() bool {
return os.Getenv("SIMENABLED") == "1"
}
+// IsEventsDisabled checks if event collection is disabled via environment variable
+func IsEventsDisabled() bool {
+ return os.Getenv("EVENTS_DISABLED") == "1"
+}
+
func IsDebianInstall() bool {
serviceFiles := []string{ServiceFile, SriovServiceFile, NICServiceFile}
for _, file := range serviceFiles {
|