componentinstall

package
v3.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: Apache-2.0 Imports: 29 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPrivilegedUser

func AddPrivilegedUser(clientConfig *rest.Config, namespace, name string) error

AddPrivilegedUser adds the provided user to list of users allowed to use privileged SCC.

func CheckForAPIs

func CheckForAPIs(aggregatorClient aggregatorclient.Interface, names ...string) (bool, error)

func InstallComponents

func InstallComponents(components []Component, dockerClient dockerhelper.Interface) error

func ReadMasterConfig

func ReadMasterConfig(filename string) (*configv1.MasterConfig, error)

func ReadMasterConfigBytes

func ReadMasterConfigBytes(masterBytes []byte) (*configv1.MasterConfig, error)

func ReadNodeConfig

func ReadNodeConfig(filename string) (*configv1.NodeConfig, error)

func WaitForAPIs

func WaitForAPIs(aggregatorClient aggregatorclient.Interface, names ...string) error

func WriteMasterConfig

func WriteMasterConfig(filename string, config *configv1.MasterConfig) error

func WriteNodeConfig

func WriteNodeConfig(filename string, config *configv1.NodeConfig) error

Types

type Component

type Component interface {
	Name() string
	Install(dockerClient dockerhelper.Interface) error
}

type Components

type Components []Component

func (Components) Install

func (c Components) Install(dockerClient dockerhelper.Interface) error

func (Components) Name

func (c Components) Name() string

type Context

type Context interface {
	// ClusterAdminClientConfig is the cluster admin client configuration components can use to make their client.
	ClusterAdminClientConfig() *restclient.Config

	// BaseDir is the base directory that component should use to store files/logs/etc.
	BaseDir() string
	ClientImage() string
	// ImageFormat provides information about the image pull spec format. This is handy when trying to use different registries or image names.
	ImageFormat() string

	// ComponentLogLevel provides information about verbosity the component should log the messages.
	ComponentLogLevel() int

	// ImagePullPolicy provides information about what pull policy for images should be used. This is usually based on the presence of the `--tag`
	// flag which in that case the pull policy will be IfNotExists instead of Always. That allows local development without pulling the images.
	ImagePullPolicy() string
}

func NewComponentInstallContext

func NewComponentInstallContext(clientImageName, imageFormat, pullPolicy, baseDir string, logLevel int) (Context, error)

type List

type List struct {
	Name string

	Namespace string
	List      []byte

	WaitCondition func() (bool, error)
}

func (List) MakeReady

func (t List) MakeReady(image, baseDir string) Component

type Template

type Template struct {
	Name string

	Namespace         string
	PrivilegedSANames []string
	NamespaceObj      []byte
	RBACTemplate      []byte
	InstallTemplate   []byte

	WaitCondition func() (bool, error)
}

func (Template) MakeReady

func (t Template) MakeReady(cliImage, baseDir string, params map[string]string) Component

Jump to

Keyboard shortcuts

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