installation

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	AgentName = "installation-controller"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartFetcher added in v0.5.0

type ChartFetcher func(i *Installer, name, version string) (*chart.Chart, error)

type Controller

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

Controller is a Kubernetes controller that processes InstallationTarget objects.

func NewController

func NewController(
	shipperclientset shipperclient.Interface,
	shipperInformerFactory shipperinformers.SharedInformerFactory,
	store clusterclientstore.ClientProvider,
	dynamicClientBuilderFunc DynamicClientBuilderFunc,
	chartFetcher shipperrepo.ChartFetcher,
	recorder record.EventRecorder,
) *Controller

NewController returns a new Installation controller.

func (*Controller) GetClusterAndConfig

func (c *Controller) GetClusterAndConfig(clusterName string) (kubernetes.Interface, *rest.Config, error)

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh <-chan struct{})

type DynamicClientBuilderFunc

type DynamicClientBuilderFunc func(gvk *schema.GroupVersionKind, restConfig *rest.Config, cluster *shipper.Cluster) dynamic.Interface

type Installer

type Installer struct {
	Release            *shipper.Release
	InstallationTarget *shipper.InstallationTarget
	Scheme             *runtime.Scheme
	// contains filtered or unexported fields
}

Installer is an object that knows how to install Helm charts directly into Kubernetes clusters.

func NewInstaller

func NewInstaller(
	chartFetcher shipperrepo.ChartFetcher,
	release *shipper.Release,
	it *shipper.InstallationTarget,
) *Installer

NewInstaller returns a new Installer.

Jump to

Keyboard shortcuts

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