Skip to content

Commit

Permalink
Pushing new config path
Browse files Browse the repository at this point in the history
  • Loading branch information
jt-dd committed Dec 5, 2024
1 parent 76345ec commit 06ba896
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 @@ -36,7 +36,7 @@ var (
viper.BindPFlag(config.IngestorAPIEndpoint, cobraCmd.Flags().Lookup("khaas-server")) //nolint: errcheck
viper.BindPFlag(config.IngestorAPIInsecure, cobraCmd.Flags().Lookup("insecure")) //nolint: errcheck

return cmd.InitializeKubehoundConfig(cobraCmd.Context(), "", true, true)
return cmd.InitializeKubehoundConfig(cobraCmd.Context(), cfgFile, true, true)
},
RunE: func(cobraCmd *cobra.Command, args []string) error {
// using compress feature
Expand Down
2 changes: 1 addition & 1 deletion cmd/kubehound/ingest.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var (
PreRunE: func(cobraCmd *cobra.Command, args []string) error {
cmd.BindFlagCluster(cobraCmd)

return cmd.InitializeKubehoundConfig(cobraCmd.Context(), "", true, true)
return cmd.InitializeKubehoundConfig(cobraCmd.Context(), cfgFile, true, true)
},
RunE: func(cobraCmd *cobra.Command, args []string) error {
// Passing the Kubehound config from viper
Expand Down

0 comments on commit 06ba896

Please sign in to comment.