setup

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KustomizePluginKind = "ExperimentGenerator"
)

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(err error)

func NewInitCommand

func NewInitCommand(f cmdutil.Factory, ioStreams cmdutil.IOStreams) *cobra.Command

func NewResetCommand

func NewResetCommand(f cmdutil.Factory, ioStreams cmdutil.IOStreams) *cobra.Command

Types

type BootstrapConfig

type BootstrapConfig struct {
	Namespace          corev1.Namespace
	ClusterRole        rbacv1.ClusterRole
	ClusterRoleBinding rbacv1.ClusterRoleBinding
	Role               rbacv1.Role
	RoleBinding        rbacv1.RoleBinding
	Secret             corev1.Secret

	PatchingClusterRole        rbacv1.ClusterRole
	PatchingClusterRoleBinding rbacv1.ClusterRoleBinding
	DefaultPatchingClusterRole rbacv1.ClusterRole

	Job batchv1.Job
	// contains filtered or unexported fields
}

BootstrapConfig holds the objects necessary for bootstrapping a Red Sky Ops Manager

func NewBootstrapInitConfig

func NewBootstrapInitConfig(o *SetupOptions, clientConfig *api.Config) (*BootstrapConfig, error)

NewBootstrapInitConfig creates a complete bootstrap configuration from the supplied values

func NewBootstrapResetConfig

func NewBootstrapResetConfig(o *SetupOptions) (*BootstrapConfig, error)

NewBootstrapResetConfig creates a configuration for performing a reset

func (*BootstrapConfig) Marshal

func (b *BootstrapConfig) Marshal(w io.Writer) error

Marshal a bootstrap configuration as a YAML stream

type SetupError

type SetupError struct {
	ImagePullBackOff string
	PodDeleted       bool
}

func (*SetupError) Error

func (e *SetupError) Error() string

type SetupOptions

type SetupOptions struct {
	Bootstrap bool
	DryRun    bool
	Kustomize bool

	ClientSet *kubernetes.Clientset

	Run func() error
	cmdutil.IOStreams
	// contains filtered or unexported fields
}

func NewSetupOptions

func NewSetupOptions(ioStreams cmdutil.IOStreams) *SetupOptions

func (*SetupOptions) AddFlags

func (o *SetupOptions) AddFlags(cmd *cobra.Command)

func (*SetupOptions) Complete

func (o *SetupOptions) Complete(f cmdutil.Factory, cmd *cobra.Command) error

Jump to

Keyboard shortcuts

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