Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelOnInterrupt ¶
func CancelOnInterrupt(ctx context.Context, f context.CancelFunc)
CancelOnInterrupt calls f when os.Interrupt or SIGTERM is received. It ignores subsequent interrupts on purpose - program should exit correctly after the first signal.
Types ¶
type App ¶
type App struct { Logger *zap.Logger options.GenericNamespacedControllerOptions options.LeaderElectionOptions options.RestClientOptions options.LoggerOptions MainClient kubernetes.Interface PrometheusRegistry PrometheusRegistry // Name is the name of the application. It must only contain alphanumeric // characters. Name string RestConfig *rest.Config Controllers []ctrl.Constructor AuxListenOn string Debug bool }
func NewFromFlags ¶
type AuxServer ¶
type PrometheusRegistry ¶
type PrometheusRegistry interface { prometheus.Registerer prometheus.Gatherer }
Click to show internal directories.
Click to hide internal directories.