Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Constraints ¶
func Constraints(client *Client, config *types.InstallConfig, controlPlanes []machineapi.Machine, computes []machineapi.MachineSet) []quota.Constraint
Constraints returns a list of quota constraints based on the InstallConfig. These constraints can be used to check if there is enough quota for creating a cluster for the isntall config.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is GCP client for calculating quota constraint.
func (*Client) GetMachineType ¶
GetMachineType returns the machine type info for a type in a zone using the client.
type MachineTypeGetter ¶
type MachineTypeGetter interface {
GetMachineType(zone string, machineType string) (*computev1.MachineType, error)
}
MachineTypeGetter returns the machine type info for a type in a zone using GCP API.
Click to show internal directories.
Click to hide internal directories.