Documentation ¶
Index ¶
- Variables
- func GatedFeatures(c *types.InstallConfig) []featuregates.GatedInstallConfigFeature
- func ValidateDefaultDiskType(p *gcp.MachinePool, fldPath *field.Path) field.ErrorList
- func ValidateMachinePool(platform *gcp.Platform, p *gcp.MachinePool, fldPath *field.Path) field.ErrorList
- func ValidateMasterDiskType(p *types.MachinePool, fldPath *field.Path) field.ErrorList
- func ValidatePlatform(p *gcp.Platform, fldPath *field.Path, ic *types.InstallConfig) field.ErrorList
- func ValidateServiceAccount(platform *gcp.Platform, p *types.MachinePool, fldPath *field.Path) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Regions is a map of known GCP regions. The key of the map is // the short name of the region. The value of the map is the long // name of the region. Regions = map[string]string{ "africa-south1": "Johannesburg, South Africa", "asia-east1": "Changhua County, Taiwan", "asia-east2": "Hong Kong", "asia-northeast1": "Tokyo, Japan", "asia-northeast2": "Osaka, Japan", "asia-northeast3": "Seoul, South Korea", "asia-south1": "Mumbai, India", "asia-south2": "Delhi, India", "asia-southeast1": "Jurong West, Singapore", "asia-southeast2": "Jakarta, Indonesia", "australia-southeast1": "Sydney, Australia", "australia-southeast2": "Melbourne, Australia", "europe-central2": "Warsaw, Poland", "europe-north1": "Hamina, Finland", "europe-west1": "St. Ghislain, Belgium", "europe-west2": "London, England, UK", "europe-west3": "Frankfurt, Germany", "europe-west4": "Eemshaven, Netherlands", "europe-west6": "Zürich, Switzerland", "europe-west8": "Milan, Italy", "europe-west9": "Paris, France", "europe-west12": "Turin, Italy", "europe-southwest1": "Madrid, Spain", "me-central1": "Doha, Qatar, Middle East", "me-central2": "Dammam, Saudi Arabia, Middle East", "me-west1": "Tel Aviv, Israel", "northamerica-northeast1": "Montréal, Québec, Canada", "northamerica-northeast2": "Toronto, Ontario, Canada", "southamerica-east1": "São Paulo, Brazil", "southamerica-west1": "Santiago, Chile", "us-central1": "Council Bluffs, Iowa, USA", "us-east1": "Moncks Corner, South Carolina, USA", "us-east4": "Ashburn, Virginia, USA", "us-east5": "Columbus, Ohio, USA", "us-south1": "Dallas, Texas, USA", "us-west1": "The Dalles, Oregon, USA", "us-west2": "Los Angeles, California, USA", "us-west3": "Salt Lake City, Utah, USA", "us-west4": "Las Vegas, Nevada, USA", } )
Functions ¶
func GatedFeatures ¶ added in v0.9.153
func GatedFeatures(c *types.InstallConfig) []featuregates.GatedInstallConfigFeature
GatedFeatures determines all of the install config fields that should be validated to ensure that the proper featuregate is enabled when the field is used.
func ValidateDefaultDiskType ¶
ValidateDefaultDiskType checks that the specified disk type is valid for default GCP Machine Platform.
func ValidateMachinePool ¶
func ValidateMachinePool(platform *gcp.Platform, p *gcp.MachinePool, fldPath *field.Path) field.ErrorList
ValidateMachinePool checks that the specified machine pool is valid.
func ValidateMasterDiskType ¶
ValidateMasterDiskType checks that the specified disk type is valid for control plane.
func ValidatePlatform ¶
func ValidatePlatform(p *gcp.Platform, fldPath *field.Path, ic *types.InstallConfig) field.ErrorList
ValidatePlatform checks that the specified platform is valid.
func ValidateServiceAccount ¶ added in v0.9.153
func ValidateServiceAccount(platform *gcp.Platform, p *types.MachinePool, fldPath *field.Path) field.ErrorList
ValidateServiceAccount checks that the service account is only supplied for control plane nodes and during a shared vpn installation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.