framework

package
v0.0.0-...-367bcdf Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FrameworkContext frameworkContextType

FrameworkContext stores globally the framework context

Functions

func BuildAndSetClients

func BuildAndSetClients() (versioned.Interface, clientset.Interface)

BuildAndSetClients builds and initilize rediscluster and kube client

func Failf

func Failf(format string, args ...interface{})

Failf reports a failure in the current e2e

func HOCreateRedisCluster

func HOCreateRedisCluster(client versioned.Interface, rediscluster *rapi.RedisCluster, namespace string) func() error

HOCreateRedisCluster is an higher order func that returns the func to create a RedisCluster

func HOCreateRedisNodeServiceAccount

func HOCreateRedisNodeServiceAccount(client clientset.Interface, rediscluster *rapi.RedisCluster) func() error

HOCreateRedisNodeServiceAccount is an higher order func that returns the func to create the serviceaccount assiated to the redis-node pod.

func HOIsPodSpecUpdated

func HOIsPodSpecUpdated(client clientset.Interface, rediscluster *rapi.RedisCluster, imageTag string) func() error

HOIsPodSpecUpdated use to check if a all the RedisCluster pod have the new PodSpec

func HOIsRedisClusterPodDisruptionBudgetCreated

func HOIsRedisClusterPodDisruptionBudgetCreated(client clientset.Interface, rediscluster *rapi.RedisCluster) func() error

HOIsRedisClusterPodDisruptionBudgetCreated is an higher order func that returns the func that checks whether PodDisruptionBudget associated to the the RedisCluster have been created properly.

func HOIsRedisClusterStarted

func HOIsRedisClusterStarted(client versioned.Interface, rediscluster *rapi.RedisCluster, namespace string) func() error

HOIsRedisClusterStarted is an higher order func that returns the func that checks whether RedisCluster is started and configured properly

func HOUpdateConfigRedisCluster

func HOUpdateConfigRedisCluster(client versioned.Interface, rediscluster *rapi.RedisCluster, nbmaster, replicas *int32) func() error

HOUpdateConfigRedisCluster is an higher order func that returns the func to update the RedisCluster configuration

func HOUpdateRedisCluster

func HOUpdateRedisCluster(client versioned.Interface, rediscluster *rapi.RedisCluster, namespace string) func() error

HOUpdateRedisCluster is an higher order func that returns the func to update a RedisCluster

func LogAndReturnErrorf

func LogAndReturnErrorf(format string, args ...interface{}) error

LogAndReturnErrorf logs and return an error

func Logf

func Logf(format string, args ...interface{})

Logf logs in e2e framework

func NewRedisCluster

func NewRedisCluster(name, namespace, tag string, nbMaster, replication int32) *rapi.RedisCluster

NewRedisCluster builds and returns a new RedisCluster instance

Types

type Framework

type Framework struct {
	KubeConfig *rest.Config
}

Framework stores necessary info to run e2e

func NewFramework

func NewFramework() (*Framework, error)

NewFramework creates and initializes the a Framework struct

Jump to

Keyboard shortcuts

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