controller

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrivateIPAnnotation = "lb.k8s.linka.cloud/private"
	PublicIPAnnotation  = "lb.k8s.linka.cloud/public"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	Reconcile(ctx context.Context, svc corev1.Service) (ctrl.Result, error)
	DeleteService(ctx context.Context, svc corev1.Service) (bool, error)
	NodeMap() nodemap.Map
	Services() service.Map
}

func New

func New(ctx context.Context, client client.Client, rec recorder.Recorder, prov provider.Provider, opts ...Option) (Controller, error)

type Option

type Option func(o *options)

func WithDefaultsToPrivateIP

func WithDefaultsToPrivateIP(b bool) Option

func WithLogger

func WithLogger(log logr.Logger) Option

func WithMultipleClusterLB

func WithMultipleClusterLB(b bool) Option

func WithPrivateIPAnnotation

func WithPrivateIPAnnotation(a string) Option

func WithPublicIPAnnotation

func WithPublicIPAnnotation(a string) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL