kudoinit

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultNamespace = "kudo-system"
)

Variables

This section is empty.

Functions

func GenerateLabels

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

Types

type InitStep

type InitStep interface {
	Install(client *kube.Client) error
	AsYamlManifests() ([]string, error)
	AsArray() []runtime.Object
}

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
	// Enable validation
	Webhooks       []string
	ServiceAccount string
}

Options is the configurable options to init

func NewOptions

func NewOptions(v string, ns string, sa string, webhooks []string) Options

func (Options) HasWebhooksEnabled

func (o Options) HasWebhooksEnabled() bool

func (Options) IsDefaultNamespace

func (o Options) IsDefaultNamespace() bool

func (Options) IsDefaultServiceAccount

func (o Options) IsDefaultServiceAccount() bool

Directories

Path Synopsis
Defines the CRDs that the KUDO manager implements and watches.
Defines the CRDs that the KUDO manager implements and watches.

Jump to

Keyboard shortcuts

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