common

package
v0.0.0-...-268ad55 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder can create a variety of kubernetes client interface with its embedded rest.Config.

func NewBuilder

func NewBuilder(kubeconfig string) (*Builder, error)

NewBuilder returns a *ClientBuilder with the given kubeconfig.

func (*Builder) APIExtClientOrDie

func (cb *Builder) APIExtClientOrDie(name string) apiext.Interface

APIExtClientOrDie returns the kubernetes client interface for extended kubernetes objects.

func (*Builder) KubeClientOrDie

func (cb *Builder) KubeClientOrDie(name string) kubernetes.Interface

KubeClientOrDie returns the kubernetes client interface for general kubernetes objects.

type ControllerContext

type ControllerContext struct {
	ClientBuilder                 *Builder
	APIExtInformerFactory         apiextinformers.SharedInformerFactory
	KubeNamespacedInformerFactory informers.SharedInformerFactory

	Stop <-chan struct{}

	InformersStarted chan struct{}

	ResyncPeriod func() time.Duration
}

ControllerContext stores all the informers for a variety of kubernetes objects.

func CreateControllerContext

func CreateControllerContext(cb *Builder, stop <-chan struct{}, targetNamespace string) *ControllerContext

CreateControllerContext creates the ControllerContext with the ClientBuilder.

Jump to

Keyboard shortcuts

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