Documentation ¶
Index ¶
- Constants
- Variables
- func CheckCadvisorHealthOnAllNodes(c clientset.Interface, timeout time.Duration)
- func ClusterLevelLoggingWithKibana(f *framework.Framework)
- func CreateNamespaces(f *framework.Framework, namespaceCount int, namePrefix string) ([]*v1.Namespace, error)
- func CreateNodeSelectorPods(f *framework.Framework, id string, replicas int, ...)
- func GetGroupNodes(group string) ([]string, error)
- func GroupSize(group string) (int, error)
- func NewRestartConfig(nodeName, daemonName string, healthzPort int, ...) *restartDaemonConfig
- func Query(c clientset.Interface, query string) (*influxdb.Response, error)
- func RemoveCleanupAction(p CleanupActionHandle)
- func ReplicaSetServeImageOrFail(f *framework.Framework, test string, image string)
- func ReserveMemory(f *framework.Framework, id string, replicas, megabytes int, expectRunning bool)
- func ResizeGroup(group string, size int32) error
- func RunCleanupActions()
- func RunE2ETests(t *testing.T)
- func RunLogPodsWithSleepOf(f *framework.Framework, sleep time.Duration, podname string, ...)
- func ServeImageOrFail(f *framework.Framework, test string, image string)
- func SpreadRCOrFail(f *framework.Framework, replicaCount int32, image string)
- func SpreadServiceOrFail(f *framework.Framework, replicaCount int, image string)
- func WaitForClusterSizeFunc(c clientset.Interface, sizeFunc func(int) bool, timeout time.Duration) error
- func WaitForGroupSize(group string, size int32) error
- func WaitForTerminatedContainer(f *framework.Framework, pod *v1.Pod, containerName string) error
- type CleanupActionHandle
- type DNSParamsLinear
- type DensityTestConfig
- type Foo
- type FooList
- type HPAScaleTest
- type IPerfResult
- type IPerfResults
- type LBCTester
- type State
- type StrSlice
- type VolumeTest
- type VolumeTestConfig
Constants ¶
const ( ADD = "ADD" DEL = "DEL" UPDATE = "UPDATE" )
const ( MinSaturationThreshold = 2 * time.Minute MinPodsPerSecondThroughput = 8 DensityPollInterval = 10 * time.Second )
const ( DNSdefaultTimeout = 5 * time.Minute ClusterAddonLabelKey = "k8s-app" DNSLabelName = "kube-dns" DNSAutoscalerLabelName = "kube-dns-autoscaler" )
const ( MinNodes = 2 NodeStateTimeout = 1 * time.Minute )
const ( NfsServerImage string = "gcr.io/google_containers/volume-nfs:0.8" IscsiServerImage string = "gcr.io/google_containers/volume-iscsi:0.1" GlusterfsServerImage string = "gcr.io/google_containers/volume-gluster:0.2" CephServerImage string = "gcr.io/google_containers/volume-ceph:0.1" RbdServerImage string = "gcr.io/google_containers/volume-rbd:0.1" )
Current supported images for e2e volume testing to be assigned to VolumeTestConfig.serverImage
Variables ¶
var ( CronJobGroupVersionResource = schema.GroupVersionResource{Group: batchv2alpha1.GroupName, Version: "v2alpha1", Resource: "cronjobs"} ScheduledJobGroupVersionResource = schema.GroupVersionResource{Group: batchv2alpha1.GroupName, Version: "v2alpha1", Resource: "scheduledjobs"} )
var MaxContainerFailures = 0
Maximum container failures this test tolerates before failing.
Functions ¶
func CheckCadvisorHealthOnAllNodes ¶ added in v0.11.0
func ClusterLevelLoggingWithKibana ¶ added in v1.0.0
ClusterLevelLoggingWithKibana is an end to end test that checks to see if Kibana is alive.
func CreateNamespaces ¶ added in v1.5.0
func CreateNodeSelectorPods ¶ added in v1.3.0
func GetGroupNodes ¶ added in v1.3.0
func NewRestartConfig ¶ added in v1.1.0
func NewRestartConfig(nodeName, daemonName string, healthzPort int, pollInterval, pollTimeout time.Duration) *restartDaemonConfig
NewRestartConfig creates a restartDaemonConfig for the given node and daemon.
func RemoveCleanupAction ¶ added in v1.2.0
func RemoveCleanupAction(p CleanupActionHandle)
RemoveCleanupAction removes a function that was installed by AddCleanupAction.
func ReplicaSetServeImageOrFail ¶ added in v1.2.0
A basic test to check the deployment of an image using a ReplicaSet. The image serves its hostname which is checked for each replica.
func ReserveMemory ¶ added in v1.1.0
func ResizeGroup ¶ added in v1.3.0
func RunCleanupActions ¶ added in v1.2.0
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.0
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 ServeImageOrFail ¶ added in v0.11.0
A basic test to check the deployment of an image using a replication controller. The image serves its hostname which is checked for each replica.
func SpreadRCOrFail ¶ added in v1.2.0
Check that the pods comprising a replication controller get spread evenly across available zones
func SpreadServiceOrFail ¶ added in v1.2.0
Check that the pods comprising a service get spread evenly across available zones
func WaitForClusterSizeFunc ¶ added in v1.3.0
func WaitForClusterSizeFunc(c clientset.Interface, sizeFunc func(int) bool, timeout time.Duration) error
WaitForClusterSize waits until the cluster size matches the given function.
func WaitForGroupSize ¶ added in v1.3.0
Types ¶
type CleanupActionHandle ¶ added in v1.2.0
type CleanupActionHandle *int
func AddCleanupAction ¶ added in v1.2.0
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 DNSParamsLinear ¶ added in v1.5.0
type DNSParamsLinear struct {
// contains filtered or unexported fields
}
type DensityTestConfig ¶ added in v1.4.0
type DensityTestConfig struct { Configs []testutils.RunObjectConfig ClientSet clientset.Interface InternalClientset internalclientset.Interface PollInterval time.Duration PodCount int SecretConfigs []*testutils.SecretConfig DaemonConfigs []*testutils.DaemonConfig // contains filtered or unexported fields }
type HPAScaleTest ¶ added in v1.2.0
type HPAScaleTest struct {
// contains filtered or unexported fields
}
HPAScaleTest struct is used by the scale(...) function.
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.1.1
type LBCTester interface {
// contains filtered or unexported methods
}
LBCTester is an interface used to test loadbalancer controllers.
type VolumeTest ¶
type VolumeTest struct {
// contains filtered or unexported fields
}
VolumeTest contains a volumes to mount into a client pod and its expected content.
type VolumeTestConfig ¶ added in v0.18.0
type VolumeTestConfig struct {
// contains filtered or unexported fields
}
Configuration of one tests. The test consist of: - server pod - runs serverImage, exports ports[] - client pod - does not need any special configuration
Source Files ¶
- addon_update.go
- apparmor.go
- cadvisor.go
- cluster_logging_es.go
- cluster_logging_es_utils.go
- cluster_logging_gcl.go
- cluster_logging_gcl_load.go
- cluster_logging_gcl_utils.go
- cluster_logging_utils.go
- cluster_size_autoscaling.go
- cluster_upgrade.go
- cronjob.go
- daemon_restart.go
- daemon_set.go
- dashboard.go
- density.go
- deployment.go
- disruption.go
- dns.go
- dns_autoscaling.go
- dns_common.go
- dns_configmap.go
- e2e.go
- empty.go
- empty_dir_wrapper.go
- etcd_failure.go
- events.go
- example_cluster_dns.go
- example_k8petstore.go
- examples.go
- firewall.go
- garbage_collector.go
- generated_clientset.go
- gke_local_ssd.go
- gke_node_pools.go
- ha_master.go
- horizontal_pod_autoscaling.go
- ingress.go
- initial_resources.go
- job.go
- kibana_logging.go
- kube_proxy.go
- kubectl.go
- kubelet.go
- kubelet_perf.go
- limit_range.go
- load.go
- logging_soak.go
- mesos.go
- monitoring.go
- namespace.go
- network_partition.go
- networking.go
- networking_perf.go
- nodeoutofdisk.go
- pd.go
- persistent_volumes-disruptive.go
- persistent_volumes-vsphere.go
- persistent_volumes.go
- pod_gc.go
- podpreset.go
- pods.go
- portforward.go
- pre_stop.go
- proxy.go
- pv_reclaimpolicy.go
- pvc_label_selector.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
- statefulset.go
- third-party.go
- ubernetes_lite.go
- util_iperf.go
- volume_provisioning.go
- volumes.go
- vsphere_utils.go
- vsphere_volume_diskformat.go
- vsphere_volume_placement.go
Directories ¶
Path | Synopsis |
---|---|
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. |