wrangler

package
v0.1.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPAllocateLock

func IPAllocateLock(subnet string) func()

IPAllocateLock locks by subnet name and returns unlock function

func IsIPAllocating

func IsIPAllocating(subnet string) bool

IsIPAllocating checks whether the subnet is locked

Types

type Context

type Context struct {
	RESTConfig        *rest.Config
	Kubernetes        kubernetes.Interface
	ControllerFactory controller.SharedControllerFactory

	FlatNetwork flv1.Interface
	Core        corecontroller.Interface
	Apps        appsv1.Interface
	Networking  networkingv1.Interface
	Batch       batchv1.Interface
	Discovery   discoveryv1.Interface

	// ClientSet for NetworkAttachmentDefinitions
	NDClientSet *ndClientSet.Clientset

	Recorder record.EventRecorder
	// contains filtered or unexported fields
}

func NewContextOrDie

func NewContextOrDie(
	restCfg *rest.Config,
) *Context

func (*Context) OnLeader

func (c *Context) OnLeader(f func(ctx context.Context) error)

func (*Context) Run

func (c *Context) Run(ctx context.Context)

Run starts the leader-election process and block.

func (*Context) StartHandler

func (c *Context) StartHandler(ctx context.Context, worker int) error

func (*Context) SupportDiscoveryV1

func (c *Context) SupportDiscoveryV1() bool

func (*Context) SupportIngressV1

func (c *Context) SupportIngressV1() bool

func (*Context) WaitForCacheSyncOrDie

func (c *Context) WaitForCacheSyncOrDie(ctx context.Context)

Jump to

Keyboard shortcuts

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