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