You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
k3s/pkg/server/types.go

23 lines
516 B

6 years ago
package server
import (
"context"
"sync"
"github.com/rancher/k3s/pkg/daemons/config"
6 years ago
)
type Config struct {
DisableAgent bool
DisableServiceLB bool
ControlConfig config.Control
Rootless bool
SupervisorPort int
StartupHooks []func(context.Context, *sync.WaitGroup, <-chan struct{}, string) error
StartupHooksWg *sync.WaitGroup
LeaderControllers CustomControllers
Controllers CustomControllers
6 years ago
}
type CustomControllers []func(ctx context.Context, sc *Context) error