Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is defined for perf tests operations.
func (*Client) DeleteClusters ¶
DeleteClusters will delete all existing clusters.
func (*Client) ReconcileClusters ¶
ReconcileClusters will reconcile all clusters to make them consistent with the benchmarks' cluster configs.
There can be 4 scenarios: 1. If the benchmark's cluster config is unchanged, do nothing 2. If the benchmark's config is changed, delete the old cluster and create a new one with the new config 3. If the benchmark is renamed, delete the old cluster and create a new one with the new name 4. If the benchmark is deleted, delete the corresponding cluster
func (*Client) RecreateClusters ¶
RecreateClusters will delete and recreate the existing clusters, it will also create the clusters if they do not exist for the corresponding benchmarks.
type ClusterConfig ¶
type ClusterConfig struct { Location string `json:"location,omitempty"` NodeCount int64 `json:"nodeCount,omitempty"` NodeType string `json:"nodeType,omitempty"` Addons string `json:"addons,omitempty"` }
ClusterConfig is config for the cluster
type GKECluster ¶
type GKECluster struct {
Config ClusterConfig `json:"GKECluster,omitempty"`
}
GKECluster saves the config information for the GKE cluster