Skip to content

Commit

Permalink
fixing remote chain in ingest command
Browse files Browse the repository at this point in the history
  • Loading branch information
jt-dd committed Dec 5, 2024
1 parent 88f137f commit ce0efa4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/kubehound/dumper.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ var (
return fmt.Errorf("dump core: %w", err)
}
// Running the ingestion on KHaaS
if cobraCmd.Flags().Lookup("khaas-server").Value.String() != "" {
if khCfg.Ingestor.API.Endpoint != "" {
return core.CoreClientGRPCIngest(cobraCmd.Context(), khCfg.Ingestor, khCfg.Dynamic.ClusterName, khCfg.Dynamic.RunID.String())
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/config/ingestor.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package config

const (
DefaultIngestorAPIEndpoint = "127.0.0.1:9000"
DefaultIngestorAPIEndpoint = ""
DefaultIngestorAPIInsecure = false
DefaultBucketName = "" // we want to let it empty because we can easily abort if it's not configured
DefaultTempDir = "/tmp/kubehound"
Expand Down

0 comments on commit ce0efa4

Please sign in to comment.