framework

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Framework

type Framework struct {
	*framework.Framework

	// client for tidb-operator.
	ExtClient versioned.Interface
	// client for advanced statefulset.
	ASClient asclientset.Interface
	// client for apiregistration.
	ARClient apiregistration.Interface
	// client for apiextensions.
	AEClient apiextensions.Interface
	// controller-runtime client.
	GenericClient ctrlCli.Client

	RESTMapper *restmapper.DeferredDiscoveryRESTMapper

	// client can create with yaml file.
	// It's useful to create some dynamic resource or custom resource without client
	YAMLClient yamlutil.Interface

	// TLSManager is prepared for generating tls.
	// TODO: manage cert-manager lifecycle.
	TLSManager tlsutil.Manager

	// PortForwarder is defined to visit pod in local.
	PortForwarder portforward.PortForwarder

	// Storage defines interface of s3 storage
	Storage s3.Interface
	// contains filtered or unexported fields
}

func NewFramework

func NewFramework(baseName string) *Framework

func (*Framework) AfterEach

func (f *Framework) AfterEach()

func (*Framework) BeforeEach

func (f *Framework) BeforeEach()

func (*Framework) CreateYAML

func (f *Framework) CreateYAML(yamlBytes []byte) error

CreateYAML can be used for creating kubernetes object in yaml format. It is prepared for some CRD objects which have no client imported.

func (*Framework) ForceCleanBackups

func (f *Framework) ForceCleanBackups(ns string)

func (*Framework) LoadConfig

func (f *Framework) LoadConfig() (*rest.Config, error)

func (*Framework) RecycleReleasedPV

func (f *Framework) RecycleReleasedPV()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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