Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions cmd/controller/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"github.com/labstack/echo/v4/middleware"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/samber/lo"
"golang.org/x/sync/errgroup"
"golang.org/x/time/rate"
"google.golang.org/grpc"
Expand All @@ -28,7 +27,6 @@ import (
"github.com/castai/kvisor/cmd/controller/controllers"
"github.com/castai/kvisor/cmd/controller/controllers/imagescan"
"github.com/castai/kvisor/cmd/controller/controllers/kubebench"
"github.com/castai/kvisor/cmd/controller/controllers/kubelinter"
"github.com/castai/kvisor/cmd/controller/kube"
"github.com/castai/kvisor/pkg/blobscache"
"github.com/castai/kvisor/pkg/castai"
Expand Down Expand Up @@ -132,18 +130,6 @@ func (a *App) Run(ctx context.Context) error {
})
}

if cfg.Linter.Enabled {
linter, err := kubelinter.New(lo.Keys(kubelinter.LinterRuleMap))
if err != nil {
return err
}
linterCtrl := kubelinter.NewController(log, a.cfg.Linter, linter, castaiClient.GRPC)
kubeClient.RegisterKubernetesChangeListener(linterCtrl)
errg.Go(func() error {
return linterCtrl.Run(ctx)
})
}

if cfg.KubeBench.Enabled {
logsReader := kube.NewPodLogReader(clientset)
kubeBenchCtrl := kubebench.NewController(log, clientset, a.cfg.KubeBench, castaiClient.GRPC, logsReader, kubeClient, []string{})
Expand Down
2 changes: 0 additions & 2 deletions cmd/controller/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/castai/kvisor/cmd/controller/controllers"
"github.com/castai/kvisor/cmd/controller/controllers/imagescan"
"github.com/castai/kvisor/cmd/controller/controllers/kubebench"
"github.com/castai/kvisor/cmd/controller/controllers/kubelinter"
"github.com/castai/kvisor/pkg/castai"
)

Expand Down Expand Up @@ -35,7 +34,6 @@ type Config struct {
CastaiController controllers.CastaiConfig `json:"castaiController"`
CastaiEnv castai.Config `json:"castaiEnv"`
ImageScan imagescan.Config `json:"imageScan"`
Linter kubelinter.Config `json:"linter"`
KubeBench kubebench.Config `json:"kubeBench"`
JobsCleanup controllers.JobsCleanupConfig `json:"jobsCleanup"`
AgentConfig AgentConfig `json:"agentConfig"`
Expand Down
188 changes: 0 additions & 188 deletions cmd/controller/controllers/kubelinter/controller.go

This file was deleted.

78 changes: 0 additions & 78 deletions cmd/controller/controllers/kubelinter/controller_test.go

This file was deleted.

This file was deleted.

Loading
Loading