Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
  • Loading branch information
mblaschke committed Jun 7, 2023
1 parent 603b21a commit 547c3eb
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,24 +97,6 @@ func initArgparser() {
os.Exit(1)
}
}

// check deprecated env vars
deprecatedEnvVars := map[string]string{
"SCRAPE_TIME_CONTAINERREGISTRY": "not supported anymore",
"SCRAPE_TIME_CONTAINERINSTANCE": "not supported anymore",
"SCRAPE_TIME_EVENTHUB": "not supported anymore",
"SCRAPE_TIME_STORAGE": "not supported anymore",
"SCRAPE_TIME_COMPUTE": "not supported anymore",
"SCRAPE_TIME_NETWORK": "not supported anymore",
"SCRAPE_TIME_DATABASE": "not supported anymore",
"SCRAPE_TIME_COMPUTING": "deprecated, please use SCRAPE_TIME_COMPUTE",
"SCRAPE_TIME_SECURITY": "deprecated, please use SCRAPE_TIME_DEFENDER",
}
for envVar, reason := range deprecatedEnvVars {
if os.Getenv(envVar) != "" {
logger.Fatalf("env var %v is %v", envVar, reason)
}
}
}

func initConfig() {
Expand Down

0 comments on commit 547c3eb

Please sign in to comment.