Skip to content

Commit

Permalink
[ASENG-835] Add puller package for s3 (#157)
Browse files Browse the repository at this point in the history
* Add puller package for s3

* Add base GRPC interfaces

* Move grpcs

* Add gitignore for kubehound-ingestor binary

* Fix linters

* Use global config

* Add & fix tests

* Fix linter & use parallel tests

* linter

* Add notifier package

* Refactor api / notifier / puller architecture

* Refactor API & add mockings test

* fixing merge

* rework API struct from new dumper

* wip

* fixing tags

* fix linter issue

* fix linter

* fix linter

* fix linter

* temp fix for the code split for now

* sherry pick hell

* fix tar extractor

* fix sherry pick

* wrong PR

* fix linter

* fix linter

* PR comment

* fix linter

* fix comment PR

* fix linter

* fix linter

* fix linter

* fix linter

---------

Co-authored-by: jt-dd <[email protected]>
  • Loading branch information
edznux-dd and jt-dd authored Mar 14, 2024
1 parent 6283105 commit 4f34295
Show file tree
Hide file tree
Showing 38 changed files with 2,100 additions and 1,377 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ go.work
bin/
dist/

cmd/kubehound
cmd/kubehound/kubehound
cmd/kubehound/__debug_bin
cmd/kubehound-ingestor/kubehound-ingestor
deployments/kubehound/data
deployments/kubehound/data/*

Expand Down
11 changes: 11 additions & 0 deletions cmd/kubehound-ingestor/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package main

import (
"github.com/DataDog/KubeHound/pkg/telemetry/log"
)

func main() {
if err := rootCmd.Execute(); err != nil {
log.I.Fatal(err.Error())
}
}
26 changes: 26 additions & 0 deletions cmd/kubehound-ingestor/root.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package main

import (
"github.com/DataDog/KubeHound/pkg/kubehound/core"
"github.com/spf13/cobra"
)

var (
cfgFile = ""
)

var (
rootCmd = &cobra.Command{
Use: "kubehound-ingestor",
Short: "Kubehound Ingestor Service",
Long: `instance of Kubehound that pulls data from cloud storage`,
SilenceUsage: true,
RunE: func(cmd *cobra.Command, args []string) error {
return core.LaunchRemoteIngestor(cmd.Context(), core.WithConfigPath(cfgFile))
},
}
)

func init() {
rootCmd.PersistentFlags().StringVarP(&cfgFile, "config", "c", cfgFile, "application config file")
}
220 changes: 0 additions & 220 deletions cmd/kubehound/dumper.go

This file was deleted.

Loading

0 comments on commit 4f34295

Please sign in to comment.