k3s/pkg/server/types.go

22 lines
459 B
Go
Raw Normal View History

2019-01-01 08:23:01 +00:00
package server
import (
"context"
"github.com/rancher/k3s/pkg/cli/cmds"
2019-01-09 16:54:15 +00:00
"github.com/rancher/k3s/pkg/daemons/config"
2019-01-01 08:23:01 +00:00
)
type Config struct {
DisableAgent bool
DisableServiceLB bool
ControlConfig config.Control
Rootless bool
SupervisorPort int
StartupHooks []cmds.StartupHook
LeaderControllers CustomControllers
Controllers CustomControllers
2019-01-01 08:23:01 +00:00
}
type CustomControllers []func(ctx context.Context, sc *Context) error