Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jt-dd committed Jun 7, 2024
1 parent 80ec69c commit 62c54ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/backend/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,18 @@ func loadComposeConfig(ctx context.Context, composeFilePaths []string) (*types.P
func loadEmbeddedConfig(ctx context.Context) (*types.Project, error) {
var dockerComposeFileData map[interface{}]interface{}
var err error
var hostname = "kubehound"
var hostname string

// Adding datadog setup
ddAPIKey, ddAPIKeyOk := os.LookupEnv("DD_API_KEY")
ddAPPKey, ddAPPKeyOk := os.LookupEnv("DD_API_KEY")
if ddAPIKeyOk && ddAPPKeyOk {
DefaultReleaseComposePaths = append(DefaultReleaseComposePaths, DefaultDatadogComposePath)
hostname, err = os.Hostname()
if err != nil {
hostname = "kubehound"
}

}

for i, filePath := range DefaultReleaseComposePaths {
Expand Down

0 comments on commit 62c54ef

Please sign in to comment.