framework

package
v1.6.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFederationVersion

func CheckFederationVersion(c federation_clientset.Interface, want string) error

func FederationControlPlaneUpgrade

func FederationControlPlaneUpgrade(version string) error

func GetValidDNSSubdomainName

func GetValidDNSSubdomainName(name string) (string, error)

GetValidDNSSubdomainName massages the given name to be a valid dns subdomain name. Most resources (such as secrets, clusters) require the names to be valid dns subdomain. This is a generic function (not specific to federation). Should be moved to a more generic location if others want to use it.

func LoadFederatedConfig

func LoadFederatedConfig(overrides *clientcmd.ConfigOverrides) (*restclient.Config, error)

func LoadFederationClientset

func LoadFederationClientset() (*federation_clientset.Clientset, error)

func MasterUpgrade

func MasterUpgrade(context, version string) error

func SkipUnlessFederated

func SkipUnlessFederated(c clientset.Interface)

Detects whether the federation namespace exists in the underlying cluster

func WaitForFederationApiserverReady

func WaitForFederationApiserverReady(c *federation_clientset.Clientset) error

WaitForFederationApiserverReady waits for the federation apiserver to be ready. It tests the readiness by sending a GET request and expecting a non error response.

Types

type E2EContext

type E2EContext struct {
	// Raw context name,
	RawName string `yaml:"rawName"`
	// A valid dns subdomain which can be used as the name of kubernetes resources.
	Name    string                 `yaml:"name"`
	Cluster *framework.KubeCluster `yaml:"cluster"`
	User    *framework.KubeUser    `yaml:"user"`
}

type Framework

type Framework struct {
	*framework.Framework

	FederationClientset *federation_clientset.Clientset
	FederationNamespace *v1.Namespace
}

Framework extends e2e Framework and adds federation specific fields

func NewDefaultFederatedFramework

func NewDefaultFederatedFramework(baseName string) *Framework

func (*Framework) FederationAfterEach

func (f *Framework) FederationAfterEach()

FederationAfterEach deletes the namespace, after reading its events.

func (*Framework) FederationBeforeEach

func (f *Framework) FederationBeforeEach()

FederationBeforeEach checks for federation apiserver is ready and makes a namespace.

func (*Framework) GetUnderlyingFederatedContexts

func (f *Framework) GetUnderlyingFederatedContexts() []E2EContext

Jump to

Keyboard shortcuts

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