kudoinit

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 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
	DefaultKudoLabel     = "kudo-manager"
	ManagerContainerName = "manager"
)

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

	// PreInstallVerify verifies that an upgrade to the new version is possible
	PreUpgradeVerify(client *kube.Client, result *verifier.Result) error

	// VerifyInstallation verifies that the current installation is as expected
	VerifyInstallation(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
	Upgrade        bool
}

Options is the configurable options to init

func NewOptions

func NewOptions(v string, ns string, sa string, upgrade bool, 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
Package crd generated by go-bindata.// sources: config/crds/kudo.dev_instances.yaml config/crds/kudo.dev_operators.yaml config/crds/kudo.dev_operatorversions.yaml Defines the CRDs that the KUDO manager implements and watches.
Package crd generated by go-bindata.// sources: config/crds/kudo.dev_instances.yaml config/crds/kudo.dev_operators.yaml config/crds/kudo.dev_operatorversions.yaml Defines the CRDs that the KUDO manager implements and watches.
This package contains helper functions that can be reused by all migrations
This package contains helper functions that can be reused by all migrations

Jump to

Keyboard shortcuts

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