bootstrap

package
v0.13.14 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArtifactFactoryForSettings

func ArtifactFactoryForSettings(ctx context.Context,
	settings *v1.Settings,
	sharedCache memory.InMemoryResourceCache,
	cfg **rest.Config,
	clientset *kubernetes.Interface,
	kubeCoreCache *cache.KubeCoreCache,
	pluralName string) (factory.ResourceClientFactory, error)

sharedCach OR resourceCrd+cfg must be non-nil

func ConfigFactoryForSettings

func ConfigFactoryForSettings(settings *v1.Settings,
	sharedCache memory.InMemoryResourceCache,
	cache kube.SharedCache,
	resourceCrd crd.Crd,
	cfg **rest.Config) (factory.ResourceClientFactory, error)

sharedCache OR resourceCrd+cfg must be non-nil

func ListAllNamespaces

func ListAllNamespaces(cfg *rest.Config) ([]string, error)

func SecretFactoryForSettings

func SecretFactoryForSettings(ctx context.Context,
	settings *v1.Settings,
	sharedCache memory.InMemoryResourceCache,
	cfg **rest.Config,
	clientset *kubernetes.Interface,
	kubeCoreCache *cache.KubeCoreCache,
	pluralName string) (factory.ResourceClientFactory, error)

sharedCach OR resourceCrd+cfg must be non-nil

Types

type ControlPlane

type ControlPlane struct {
	GrpcServer      *grpc.Server
	StartGrpcServer bool
	SnapshotCache   cache.SnapshotCache
	XDSServer       server.Server
}

type Opts

type Opts struct {
	WriteNamespace  string
	WatchNamespaces []string
	Upstreams       factory.ResourceClientFactory
	UpstreamGroups  factory.ResourceClientFactory
	Proxies         factory.ResourceClientFactory
	Secrets         factory.ResourceClientFactory
	Artifacts       factory.ResourceClientFactory
	BindAddr        net.Addr
	KubeClient      kubernetes.Interface
	WatchOpts       clients.WatchOpts
	DevMode         bool
	ControlPlane    ControlPlane
	Settings        *v1.Settings
}

Jump to

Keyboard shortcuts

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