bootstrap

package
v0.0.0-...-5a6645a Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRootKey = "gloo"

used for vault and consul key-value storage

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,
	consulClient *consulapi.Client,
	pluralName string) (factory.ResourceClientFactory, error)

sharedCach OR resourceCrd+cfg must be non-nil

func ConfigFactoryForSettings

func ConfigFactoryForSettings(params ConfigFactoryParams, resourceCrd crd.Crd) (factory.ResourceClientFactory, error)

sharedCache, resourceCrd+cfg OR consulClient must be non-nil

func ConsulClientForSettings

func ConsulClientForSettings(settings *v1.Settings) (*api.Client, error)

func KubeServiceClientForSettings

func KubeServiceClientForSettings(ctx context.Context,
	settings *v1.Settings,
	sharedCache memory.InMemoryResourceCache,
	cfg **rest.Config,
	clientset *kubernetes.Interface,
	kubeCoreCache *cache.KubeCoreCache) (skkube.ServiceClient, error)

func SecretFactoryForSettings

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

sharedCach OR resourceCrd+cfg must be non-nil

func VaultClientForSettings

func VaultClientForSettings(vaultSettings *v1.Settings_VaultSecrets) (*api.Client, error)

Types

type ConfigFactoryParams

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

func NewConfigFactoryParams

func NewConfigFactoryParams(settings *v1.Settings,
	sharedCache memory.InMemoryResourceCache,
	cache kube.SharedCache,
	cfg **rest.Config,
	consulClient *consulapi.Client) ConfigFactoryParams

type ControlPlane

type ControlPlane struct {
	*GrpcService
	SnapshotCache cache.SnapshotCache
	XDSServer     server.Server
}

type GrpcService

type GrpcService struct {
	Ctx             context.Context
	BindAddr        net.Addr
	GrpcServer      *grpc.Server
	StartGrpcServer bool
}

type Opts

type Opts struct {
	WriteNamespace    string
	WatchNamespaces   []string
	Upstreams         factory.ResourceClientFactory
	KubeServiceClient skkube.ServiceClient
	UpstreamGroups    factory.ResourceClientFactory
	Proxies           factory.ResourceClientFactory
	Secrets           factory.ResourceClientFactory
	Artifacts         factory.ResourceClientFactory
	AuthConfigs       factory.ResourceClientFactory
	KubeClient        kubernetes.Interface
	ConsulWatcher     consul.ConsulWatcher
	WatchOpts         clients.WatchOpts
	DevMode           bool
	ControlPlane      ControlPlane
	ValidationServer  ValidationServer
	Settings          *v1.Settings
	KubeCoreCache     corecache.KubeCoreCache
}

type ValidationServer

type ValidationServer struct {
	*GrpcService
	Server validation.ValidationServer
}

Jump to

Keyboard shortcuts

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