pkg

package
v0.0.0-...-703489d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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 NewClient

func NewClient(environment string) (*Client, error)

NewClient will create a new Client.

func (*Client) DeleteClusters

func (gc *Client) DeleteClusters(gcpProject, repo, benchmarkRoot string) error

DeleteClusters will delete all existing clusters.

func (*Client) ReconcileClusters

func (gc *Client) ReconcileClusters(gcpProject, repo, benchmarkRoot string) error

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

func (gc *Client) RecreateClusters(gcpProject, repo, benchmarkRoot string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL