Fix controller-only in dev not showing events (#4594)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2024-04-03 20:56:51 -04:00
1 parent e9e3d7cad5
commit d396a33930
1 file changed
+5 -2
+5 -2
View File
@@ -264,7 +264,7 @@ func (c *Command) Flags() *base.FlagSets {
f.BoolVar(&base.BoolVar{
Name: "controller-only",
Target: &c.flagControllerOnly,
Usage: "If set, only a dev controller will be started instead of both a dev controller and dev worker",
Usage: "If set, only a dev controller will be started instead of both a dev controller and dev worker.",
})
f.StringVar(&base.StringVar{
@@ -486,7 +486,10 @@ func (c *Command) Run(args []string) int {
switch c.flagControllerOnly {
case true:
c.Config, err = config.DevController()
c.Config, err = config.DevController(
config.WithObservationsEnabled(true),
config.WithSysEventsEnabled(true),
)
default:
c.Config, err = config.DevCombined()
}