mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
test: Remove tests argument from node e2e image config
This was never being used, the only config that used it was deleted in https://github.com/kubernetes/test-infra/pull/26017 so we don't need this anymore, so let's delete it. Signed-off-by: David Porter <david@porter.me>
This commit is contained in:
parent
b670d1ba7c
commit
0980f026c9
@ -166,8 +166,6 @@ type GCEImage struct {
|
|||||||
Metadata string `json:"metadata"`
|
Metadata string `json:"metadata"`
|
||||||
Machine string `json:"machine,omitempty"`
|
Machine string `json:"machine,omitempty"`
|
||||||
Resources Resources `json:"resources,omitempty"`
|
Resources Resources `json:"resources,omitempty"`
|
||||||
// This test is for benchmark (no limit verification, more result log, node name has format 'machine-image-uuid') if 'Tests' is non-empty.
|
|
||||||
Tests []string `json:"tests,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type internalImageConfig struct {
|
type internalImageConfig struct {
|
||||||
@ -185,7 +183,6 @@ type internalGCEImage struct {
|
|||||||
resources Resources
|
resources Resources
|
||||||
metadata *compute.Metadata
|
metadata *compute.Metadata
|
||||||
machine string
|
machine string
|
||||||
tests []string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -359,7 +356,6 @@ func prepareGceImages() (*internalImageConfig, error) {
|
|||||||
metadata: getImageMetadata(metadata),
|
metadata: getImageMetadata(metadata),
|
||||||
kernelArguments: imageConfig.KernelArguments,
|
kernelArguments: imageConfig.KernelArguments,
|
||||||
machine: imageConfig.Machine,
|
machine: imageConfig.Machine,
|
||||||
tests: imageConfig.Tests,
|
|
||||||
resources: imageConfig.Resources,
|
resources: imageConfig.Resources,
|
||||||
}
|
}
|
||||||
if gceImage.imageDesc == "" {
|
if gceImage.imageDesc == "" {
|
||||||
@ -963,16 +959,3 @@ func machineType(machine string) string {
|
|||||||
}
|
}
|
||||||
return fmt.Sprintf("zones/%s/machineTypes/%s", *zone, machine)
|
return fmt.Sprintf("zones/%s/machineTypes/%s", *zone, machine)
|
||||||
}
|
}
|
||||||
|
|
||||||
// testsToGinkgoFocus converts the test string list to Ginkgo focus
|
|
||||||
func testsToGinkgoFocus(tests []string) string {
|
|
||||||
focus := "--focus=\""
|
|
||||||
for i, test := range tests {
|
|
||||||
if i == 0 {
|
|
||||||
focus += test
|
|
||||||
} else {
|
|
||||||
focus += ("|" + test)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return focus + "\""
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user