package gce
import "k8s.io/kubernetes/test/e2e_node/remote/gce"
Index ¶
- func NewGCERunner(cfg remote.Config) remote.Runner
- type Accelerator
- type GCEImage
- type GCEImageConfig
- type GCERunner
- func (g *GCERunner) DeleteGCEInstance(host string)
- func (g *GCERunner) StartTests(suite remote.TestSuite, archivePath string, results chan *remote.TestResult) (numTests int)
- func (g *GCERunner) Validate() error
- type Resources
Functions ¶
func NewGCERunner ¶
Types ¶
type Accelerator ¶
type Accelerator struct { Type string `json:"type,omitempty"` Count int64 `json:"count,omitempty"` }
Accelerator contains type and count about resource.
type GCEImage ¶
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"` }
GCEImage contains some information about GCE Image.
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 GCERunner ¶
type GCERunner struct {
// contains filtered or unexported fields
}
func (*GCERunner) DeleteGCEInstance ¶
func (*GCERunner) StartTests ¶
func (g *GCERunner) StartTests(suite remote.TestSuite, archivePath string, results chan *remote.TestResult) (numTests int)
func (*GCERunner) Validate ¶
type Resources ¶
type Resources struct { Accelerators []Accelerator `json:"accelerators,omitempty"` }
Resources contains accelerators array.
Source Files ¶
gce_runner.go gcloud.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 17 packages
- Last checked
- 3 hours ago –
Tools for package owners.