Documentation ¶
Index ¶
- Constants
- Variables
- func CheckCadvisorHealthOnAllNodes(c clientset.Interface, timeout time.Duration)
- func ClusterLevelLoggingWithKibana(f *framework.Framework)
- func NewRestartConfig(nodeName, daemonName string, healthzPort int, ...) *restartDaemonConfig
- func PodsUseStaticPVsOrFail(f *framework.Framework, podCount int, image string)
- func Query(c clientset.Interface, query string) (*influxdb.Response, error)
- func RemoveCleanupAction(p CleanupActionHandle)
- func RunCleanupActions()
- func RunE2ETests(t *testing.T)
- func RunLogPodsWithSleepOf(f *framework.Framework, sleep time.Duration, podname string, ...)
- func SpreadRCOrFail(f *framework.Framework, replicaCount int32, image string)
- func SpreadServiceOrFail(f *framework.Framework, replicaCount int, image string)
- func WaitForTerminatedContainer(f *framework.Framework, pod *v1.Pod, containerName string) error
- type CleanupActionHandle
- type Foo
- type FooList
- type IPerfResult
- type IPerfResults
- type LBCTester
- type State
- type StaticPVTestConfig
- type StrSlice
Constants ¶
const ( ADD = "ADD" DEL = "DEL" UPDATE = "UPDATE" )
Variables ¶
var ( CronJobGroupVersionResource = schema.GroupVersionResource{Group: batchv2alpha1.GroupName, Version: "v2alpha1", Resource: "cronjobs"} ScheduledJobGroupVersionResource = schema.GroupVersionResource{Group: batchv2alpha1.GroupName, Version: "v2alpha1", Resource: "scheduledjobs"} )
Functions ¶
func CheckCadvisorHealthOnAllNodes ¶ added in v0.13.1
func ClusterLevelLoggingWithKibana ¶ added in v1.0.0
ClusterLevelLoggingWithKibana is an end to end test that checks to see if Kibana is alive.
func NewRestartConfig ¶ added in v1.2.3
func NewRestartConfig(nodeName, daemonName string, healthzPort int, pollInterval, pollTimeout time.Duration) *restartDaemonConfig
NewRestartConfig creates a restartDaemonConfig for the given node and daemon.
func PodsUseStaticPVsOrFail ¶ added in v1.7.0
Check that the pods using statically created PVs get scheduled to the same zone that the PV is in.
func RemoveCleanupAction ¶ added in v1.2.3
func RemoveCleanupAction(p CleanupActionHandle)
RemoveCleanupAction removes a function that was installed by AddCleanupAction.
func RunCleanupActions ¶ added in v1.2.3
func RunCleanupActions()
RunCleanupActions runs all functions installed by AddCleanupAction. It does not remove them (see RemoveCleanupAction) but it does run unlocked, so they may remove themselves.
func RunE2ETests ¶
TestE2E checks configuration parameters (specified through flags) and then runs E2E tests using the Ginkgo runner. If a "report directory" is specified, one or more JUnit test reports will be generated in this directory, and cluster logs will also be saved. This function is called on each Ginkgo node in parallel mode.
func RunLogPodsWithSleepOf ¶ added in v1.5.1
func RunLogPodsWithSleepOf(f *framework.Framework, sleep time.Duration, podname string, timeout time.Duration)
RunLogPodsWithSleepOf creates a pod on every node, logs continuously (with "sleep" pauses), and verifies that the log string was produced in each and every pod at least once. The final arg is the timeout for the test to verify all the pods got logs.
func SpreadRCOrFail ¶ added in v1.2.3
Check that the pods comprising a replication controller get spread evenly across available zones
func SpreadServiceOrFail ¶ added in v1.2.3
Check that the pods comprising a service get spread evenly across available zones
Types ¶
type CleanupActionHandle ¶ added in v1.2.3
type CleanupActionHandle *int
func AddCleanupAction ¶ added in v1.2.3
func AddCleanupAction(fn func()) CleanupActionHandle
AddCleanupAction installs a function that will be called in the event of the whole test being terminated. This allows arbitrary pieces of the overall test to hook into SynchronizedAfterSuite().
type IPerfResult ¶ added in v1.3.0
type IPerfResult struct {
// contains filtered or unexported fields
}
IPerfResult struct modelling an iperf record.... 20160314154239,172.17.0.3,34152,172.17.0.2,5001,3,0.0-10.0,33843707904,27074774092
func NewIPerf ¶ added in v1.3.0
func NewIPerf(csvLine string) *IPerfResult
NewIPerf parses an IPerf CSV output line into an IPerfResult.
type IPerfResults ¶ added in v1.3.0
func (*IPerfResults) Add ¶ added in v1.3.0
func (i *IPerfResults) Add(ipr *IPerfResult)
Add adds a new result to the Results struct.
func (*IPerfResults) ToTSV ¶ added in v1.3.0
func (i *IPerfResults) ToTSV() string
ToTSV exports an easily readable tab delimited format of all IPerfResults.
type LBCTester ¶ added in v1.2.3
type LBCTester interface {
// contains filtered or unexported methods
}
LBCTester is an interface used to test loadbalancer controllers.
type StaticPVTestConfig ¶ added in v1.7.0
type StaticPVTestConfig struct {
// contains filtered or unexported fields
}
Source Files ¶
- addon_update.go
- apparmor.go
- audit.go
- cadvisor.go
- certificates.go
- cluster_upgrade.go
- cronjob.go
- custom_resource_definition.go
- daemon_restart.go
- daemon_set.go
- dashboard.go
- deployment.go
- disruption.go
- dns.go
- dns_common.go
- dns_configmap.go
- e2e.go
- empty.go
- empty_dir_wrapper.go
- etcd_failure.go
- events.go
- example_cluster_dns.go
- examples.go
- firewall.go
- garbage_collector.go
- generated_clientset.go
- gke_local_ssd.go
- gke_node_pools.go
- ha_master.go
- ingress.go
- job.go
- kibana_logging.go
- kube_proxy.go
- kubectl.go
- kubelet.go
- kubelet_perf.go
- limit_range.go
- logging_soak.go
- monitoring.go
- namespace.go
- network_partition.go
- network_policy.go
- networking.go
- networking_perf.go
- no-snat.go
- nodeoutofdisk.go
- nvidia-gpus.go
- pod_gc.go
- podpreset.go
- pods.go
- portforward.go
- pre_stop.go
- proxy.go
- rc.go
- reboot.go
- replica_set.go
- resize_nodes.go
- resource_quota.go
- restart.go
- security_context.go
- service.go
- service_accounts.go
- service_latency.go
- serviceloadbalancers.go
- ssh.go
- stackdriver_monitoring.go
- statefulset.go
- third-party.go
- ubernetes_lite.go
- util_iperf.go
Directories ¶
Path | Synopsis |
---|---|
ginkgowrapper
Package ginkgowrapper wraps Ginkgo Fail and Skip functions to panic with structured data instead of a constant string.
|
Package ginkgowrapper wraps Ginkgo Fail and Skip functions to panic with structured data instead of a constant string. |
Package upgrades provides a framework for testing Kubernetes features before, during, and after different types of upgrades.
|
Package upgrades provides a framework for testing Kubernetes features before, during, and after different types of upgrades. |