Skip to content

Commit

Permalink
Added schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
Nithunikzz committed Sep 15, 2023
1 parent 0e68ca2 commit 071decd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agent/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type AgentConfigurations struct {
RakkessInterval string `envconfig:"RAKKESS_INTERVAL" default:"*/50 * * * *"`
KubePreUpgradeInterval string `envconfig:"KUBEPREUPGRADE_INTERVAL" default:"*/60 * * * *"`
TrivyInterval string `envconfig:"TRIVY_INTERVAL" default:"*/10 * * * *"`
Scheduler bool `envconfig:"SCHEDULER" default:"true"`
SchedulerEnable bool `envconfig:"SCHEDULER_ENABLE" default:"false"`
}

func GetAgentConfigurations() (serviceConf *AgentConfigurations, err error) {
Expand Down
2 changes: 1 addition & 1 deletion agent/kubviz/k8smetrics_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func main() {
}

collectAndPublishMetrics()
if cfg.Scheduler { // Assuming "cfg.Schedule" is a boolean indicating whether to schedule or not.
if cfg.SchedulerEnable { // Assuming "cfg.Schedule" is a boolean indicating whether to schedule or not.
scheduler := initScheduler(config, js, *cfg, clientset)

// Start the scheduler
Expand Down

0 comments on commit 071decd

Please sign in to comment.