Files
k3s/pkg/server/types.go
Luther Monson 8a81349b2f Adding support for waitgroup to the Startuphooks (#3654) (#3658)
The startup hooks where executing after the deploy controller. We needed the deploy controller to wait until the startup hooks had completed.

Signed-off-by: Luther Monson <luther.monson@gmail.com>

Co-authored-by: Jamie Phillips <jamie.phillips@suse.com>
2021-07-17 03:09:13 +02:00

23 lines
516 B
Go

package server
import (
"context"
"sync"
"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, *sync.WaitGroup, <-chan struct{}, string) error
StartupHooksWg *sync.WaitGroup
LeaderControllers CustomControllers
Controllers CustomControllers
}
type CustomControllers []func(ctx context.Context, sc *Context) error