...

Package gce

import "k8s.io/kubernetes/test/e2e_node/remote/gce"
Overview
Index

Overview ▾

func NewGCERunner

func NewGCERunner(cfg remote.Config) remote.Runner

type Accelerator

Accelerator contains type and count about resource.

type Accelerator struct {
    Type  string `json:"type,omitempty"`
    Count int64  `json:"count,omitempty"`
}

type GCEImage

GCEImage contains some information about GCE Image.

type GCEImage struct {
    Image      string `json:"image,omitempty"`
    ImageRegex string `json:"image_regex,omitempty"`
    // ImageFamily is the image family to use. The latest image from the image family will be used, e.g cos-81-lts.
    ImageFamily     string    `json:"image_family,omitempty"`
    ImageDesc       string    `json:"image_description,omitempty"`
    KernelArguments []string  `json:"kernel_arguments,omitempty"`
    Project         string    `json:"project"`
    Metadata        string    `json:"metadata"`
    Machine         string    `json:"machine,omitempty"`
    Resources       Resources `json:"resources,omitempty"`
}

type GCEImageConfig

GCEImageConfig specifies what images should be run and how for these tests. It can be created via the `--images` and `--image-project` flags, or by specifying the `--image-config-file` flag, pointing to a json or yaml file of the form:

images:
  short-name:
    image: gce-image-name
    project: gce-image-project
    machine: for benchmark only, the machine type (GCE instance) to run test
    tests: for benchmark only, a list of ginkgo focus strings to match tests

TODO(coufon): replace 'image' with 'node' in configurations and we plan to support testing custom machines other than GCE by specifying Host

type GCEImageConfig struct {
    Images map[string]GCEImage `json:"images"`
}

type GCERunner

type GCERunner struct {
    // contains filtered or unexported fields
}

func (*GCERunner) DeleteGCEInstance

func (g *GCERunner) DeleteGCEInstance(host string)

func (*GCERunner) StartTests

func (g *GCERunner) StartTests(suite remote.TestSuite, archivePath string, results chan *remote.TestResult) (numTests int)

func (*GCERunner) Validate

func (g *GCERunner) Validate() error

type Resources

Resources contains accelerators array.

type Resources struct {
    Accelerators []Accelerator `json:"accelerators,omitempty"`
}