mirror of https://github.com/k3s-io/k3s
21 lines
456 B
Go
21 lines
456 B
Go
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/rancher/k3s/pkg/daemons/config"
|
|
)
|
|
|
|
type Config struct {
|
|
DisableAgent bool
|
|
DisableServiceLB bool
|
|
ControlConfig config.Control
|
|
Rootless bool
|
|
SupervisorPort int
|
|
StartupHooks []func(context.Context, <-chan struct{}, string) error
|
|
LeaderControllers CustomControllers
|
|
Controllers CustomControllers
|
|
}
|
|
|
|
type CustomControllers []func(ctx context.Context, sc *Context) error
|