framework

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitUntilOperatorReady added in v0.3.3

func WaitUntilOperatorReady(kubecli kubernetes.Interface, namespace, name string) error

WaitUntilOperatorReady will wait until the first pod selected for the label name=etcd-operator is ready.

Types

type Config

type Config struct {
	// program flags
	KubeConfig string
	KubeNS     string
	OldImage   string
	NewImage   string
}

type Framework

type Framework struct {
	Config
	// global var
	KubeCli  kubernetes.Interface
	S3Cli    *s3.S3
	S3Bucket string
}

func New

func New(fc Config) (*Framework, error)

func (*Framework) CreateOperator

func (f *Framework) CreateOperator(name string) error

func (*Framework) DeleteOperator

func (f *Framework) DeleteOperator(name string) error

func (*Framework) UpgradeOperator

func (f *Framework) UpgradeOperator(name string) error

Jump to

Keyboard shortcuts

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