mirror of
https://github.com/hanzoai/visor.git
synced 2026-09-24 17:04:14 +00:00
- Add RuntimeTypeMicroVM with kata-clh handler, microvm RuntimeClass overhead, node selector, and toleration configurations. - Automatically configure nested virtualization when creating MicroVM nodepools. - Add GKE API environment (--env) and endpoint override (--endpoint) support for testing against common GKE environments (prod, staging, staging2, test). User flags take precedence over environment variables. - Store endpoint in TestRange and Cluster protos to allow locating and deleting clusters across environments. - Calculate memory requests with headroom to satisfy node allocatable limits on GKE nodepools. PiperOrigin-RevId: 970078173
49 lines
1.4 KiB
Python
49 lines
1.4 KiB
Python
load("//tools:defs.bzl", "go_library", "go_test")
|
|
|
|
package(
|
|
default_applicable_licenses = ["//:license"],
|
|
licenses = ["notice"],
|
|
)
|
|
|
|
go_library(
|
|
name = "testcluster",
|
|
srcs = [
|
|
"client.go",
|
|
"objects.go",
|
|
"testcluster.go",
|
|
],
|
|
visibility = [
|
|
"//visibility:public",
|
|
],
|
|
deps = [
|
|
"//pkg/log",
|
|
"//pkg/rand",
|
|
"//pkg/sync",
|
|
"//test/kubernetes:test_range_config_go_proto",
|
|
"@io_k8s_api//apps/v1:go_default_library",
|
|
"@io_k8s_api//core/v1:go_default_library",
|
|
"@io_k8s_api//events/v1:go_default_library",
|
|
"@io_k8s_api//node/v1:go_default_library",
|
|
"@io_k8s_apimachinery//pkg/api/resource:go_default_library",
|
|
"@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library",
|
|
"@io_k8s_client_go//kubernetes:go_default_library",
|
|
"@io_k8s_client_go//tools/clientcmd:go_default_library",
|
|
"@org_golang_google_genproto//googleapis/container/v1:container",
|
|
"@org_golang_google_protobuf//proto:go_default_library",
|
|
"@org_golang_x_sync//errgroup:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "testcluster_test",
|
|
srcs = [
|
|
"objects_test.go",
|
|
],
|
|
library = ":testcluster",
|
|
deps = [
|
|
"@io_k8s_api//core/v1:go_default_library",
|
|
"@io_k8s_apimachinery//pkg/api/resource:go_default_library",
|
|
"@org_golang_google_genproto//googleapis/container/v1:container",
|
|
],
|
|
)
|