kudoinit

package
v0.14.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultManagerName = "kudo-controller-manager"
	DefaultNamespace   = "kudo-system"
	DefaultServiceName = "kudo-controller-manager-service"
	DefaultSecretName  = "kudo-webhook-server-secret" //nolint

)

Variables

This section is empty.

Functions

func GenerateLabels

func GenerateLabels(labels map[string]string) map[string]string

Types

type Artifacter added in v0.11.0

type Artifacter interface {
	// Returns the artifacts that would be installed as runtime objects
	Resources() []runtime.Object
}

type InstallVerifier added in v0.11.0

type InstallVerifier interface {
	// PreInstallVerify verifies that the installation is possible
	PreInstallVerify(client *kube.Client, result *verifier.Result) error
}

type Installer added in v0.11.0

type Installer interface {
	// Executes the actual installation
	Install(client *kube.Client) error
}

type Options

type Options struct {
	// Version is the version of the manager `0.5.0` for example (must NOT include the `v` in `v0.5.0`)
	Version string
	// namespace to init into (default is kudo-system)
	Namespace string
	// TerminationGracePeriodSeconds defines the termination grace period for a pod
	TerminationGracePeriodSeconds int64
	// Image defines the image to be used
	Image string
	// ImagePullPolicy sets the pull policy of the image
	ImagePullPolicy string
	// Using self-signed webhook CA bundle
	SelfSignedWebhookCA bool

	ServiceAccount string
}

Options is the configurable options to init

func NewOptions

func NewOptions(v string, ns string, sa string, selfSignedWebhookCA bool) Options

func (Options) IsDefaultNamespace

func (o Options) IsDefaultNamespace() bool

func (Options) IsDefaultServiceAccount

func (o Options) IsDefaultServiceAccount() bool

type Step added in v0.11.0

type Step interface {
	fmt.Stringer

	InstallVerifier
	Installer

	Artifacter
}

Directories

Path Synopsis
Code generated for package crd by go-bindata DO NOT EDIT.
Code generated for package crd by go-bindata DO NOT EDIT.

Jump to

Keyboard shortcuts

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