2019-01-01 08:23:01 +00:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
2020-08-19 23:54:58 +00:00
|
|
|
"context"
|
|
|
|
|
2022-03-02 23:47:27 +00:00
|
|
|
"github.com/k3s-io/k3s/pkg/cli/cmds"
|
|
|
|
"github.com/k3s-io/k3s/pkg/daemons/config"
|
2019-01-01 08:23:01 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Config struct {
|
2021-03-11 18:39:00 +00:00
|
|
|
DisableAgent bool
|
|
|
|
DisableServiceLB bool
|
|
|
|
ControlConfig config.Control
|
|
|
|
Rootless bool
|
|
|
|
SupervisorPort int
|
2021-07-20 03:24:52 +00:00
|
|
|
StartupHooks []cmds.StartupHook
|
2021-03-11 18:39:00 +00:00
|
|
|
LeaderControllers CustomControllers
|
|
|
|
Controllers CustomControllers
|
2019-01-01 08:23:01 +00:00
|
|
|
}
|
2021-03-11 18:39:00 +00:00
|
|
|
|
|
|
|
type CustomControllers []func(ctx context.Context, sc *Context) error
|