package scale
import "k8s.io/kubernetes/test/e2e/network/scale"
Index ¶
- type IngressScaleFramework
- func NewIngressScaleFramework(cs clientset.Interface, ns string, cloudConfig framework.CloudConfig) *IngressScaleFramework
- func (f *IngressScaleFramework) CleanupScaleTest() []error
- func (f *IngressScaleFramework) GetFormattedLatencies() string
- func (f *IngressScaleFramework) PrepareScaleTest() error
- func (f *IngressScaleFramework) RunScaleTest() []error
Types ¶
type IngressScaleFramework ¶
type IngressScaleFramework struct { Clientset clientset.Interface Jig *ingress.TestJig GCEController *gce.GCEIngressController CloudConfig framework.CloudConfig Logger ingress.TestLogger Namespace string EnableTLS bool NumIngressesTest []int OutputFile string ScaleTestDeploy *apps.Deployment ScaleTestSvcs []*v1.Service ScaleTestIngs []*extensions.Ingress // BatchCreateLatencies stores all ingress creation latencies, in different // batches. BatchCreateLatencies [][]time.Duration // BatchDurations stores the total duration for each ingress batch creation. BatchDurations []time.Duration // StepCreateLatencies stores the single ingress creation latency, which happens // after each ingress batch creation is complete. StepCreateLatencies []time.Duration // StepCreateLatencies stores the single ingress update latency, which happens // after each ingress batch creation is complete. StepUpdateLatencies []time.Duration }
IngressScaleFramework defines the framework for ingress scale testing.
func NewIngressScaleFramework ¶
func NewIngressScaleFramework(cs clientset.Interface, ns string, cloudConfig framework.CloudConfig) *IngressScaleFramework
NewIngressScaleFramework returns a new framework for ingress scale testing.
func (*IngressScaleFramework) CleanupScaleTest ¶
func (f *IngressScaleFramework) CleanupScaleTest() []error
CleanupScaleTest cleans up framework for ingress scale testing.
func (*IngressScaleFramework) GetFormattedLatencies ¶
func (f *IngressScaleFramework) GetFormattedLatencies() string
GetFormattedLatencies returns the formatted latencies output. TODO: Need a better way/format for data output.
func (*IngressScaleFramework) PrepareScaleTest ¶
func (f *IngressScaleFramework) PrepareScaleTest() error
PrepareScaleTest prepares framework for ingress scale testing.
func (*IngressScaleFramework) RunScaleTest ¶
func (f *IngressScaleFramework) RunScaleTest() []error
RunScaleTest runs ingress scale testing.
Source Files ¶
ingress.go
Directories ¶
Path | Synopsis |
---|---|
test/e2e/network/scale/localrun |
- Version
- v1.14.6
- Published
- Aug 16, 2019
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- 2 minutes ago –
Tools for package owners.