componentinstall

package
v3.10.0-0.16.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 License: Apache-2.0 Imports: 24 Imported by: 0

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, logdir string) error

func InstallTemplates

func InstallTemplates(templates []Template, image, baseDir string, params map[string]string, dockerClient dockerhelper.Interface,
	logdir string) error

func WaitForAPIs

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

Types

type Component

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

type Context

type Context interface {
	ClusterAdminClientConfig() *restclient.Config
	BaseDir() string
	ClientImage() string
	ImageFormat() string
	ComponentLogLevel() int
}

func NewComponentInstallContext

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

type List

type List struct {
	ComponentName string

	Image string

	Namespace  string
	KubeConfig []byte
	List       []byte

	WaitCondition func() (bool, error)
}

func (List) Install

func (opt List) Install(dockerClient dockerhelper.Interface, logdir string) error

func (List) Name

func (opt List) Name() string

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(image, 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