installation

package
v0.8.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	AgentName = "installation-controller"

	ChartError               = "ChartError"
	ClustersNotReady         = "ClustersNotReady"
	InternalError            = "InternalError"
	TargetClusterClientError = "TargetClusterClientError"
	UnknownError             = "UnknownError"

	InstallationTargetConditionChanged  = "InstallationTargetConditionChanged"
	ClusterInstallationConditionChanged = "ClusterInstallationConditionChanged"
)

Variables

This section is empty.

Functions

func FetchAndRenderChart added in v0.8.0

func FetchAndRenderChart(
	chartFetcher shipperrepo.ChartFetcher,
	it *shipper.InstallationTarget,
) ([]runtime.Object, error)

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.Interface,
	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 {
	// contains filtered or unexported fields
}

Installer is an object that knows how to install objects into Kubernetes clusters.

func NewInstaller

func NewInstaller(
	it *shipper.InstallationTarget,
	objects []runtime.Object,
) *Installer

NewInstaller returns a new Installer.

Jump to

Keyboard shortcuts

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