package
4.16.15+incompatible
Repository: https://github.com/openshift/installer.git
Documentation: pkg.go.dev

# Packages

Package mock is a generated GoMock package.

# Functions

DefaultInstanceTypeForArch returns the appropriate instance type based on the target architecture.
GetBaseDomain returns a base domain chosen from among the project's public DNS zones.
GetMachineTypeList retrieves the machine type with the specified fields.
GetSession returns a GCP session by using credentials found in default locations in order: env GOOGLE_CREDENTIALS, env GOOGLE_CLOUD_KEYFILE_JSON, env GCLOUD_KEYFILE_JSON, file ~/.gcp/osServiceAccount.json, and gcloud cli defaults and, if no creds are found, asks for them and stores them on disk in a config file.
GetZones uses the GCP Compute Service API to get a list of zones from a project.
IsForbidden checks whether a response from the GPC API was forbidden, indicating that a given service account cannot access the specified project.
IsNotFound checks whether a response from the GPC API was not found.
IsThrottled checks whether a response from the GPC API returns Too Many Requests.
NewClient initializes a client with a session.
NewTagManager creates a TagManager instance.
Platform collects GCP-specific configuration.
Validate executes platform-specific validation.
ValidateCredentialMode The presence of `authorized_user` in the credentials indicates that no service account was used for authentication and requires Manual credential mode.
ValidateEnabledServices gets all the enabled services for a project and validate if any of the required services are not enabled.
ValidateForProvisioning validates that the install config is valid for provisioning the cluster.
ValidateInstanceType ensures the instance type has sufficient Vcpu and Memory.
ValidatePreExistingPublicDNS ensure no pre-existing DNS record exists in the public DNS zone for cluster's Kubernetes API.
ValidatePrivateDNSZone ensure no pre-existing DNS record exists in the private dns zone matching the name that will be used for this installation.

# Variables

RequiredBasePermissions is the list of permissions required for an installation.

# Structs

Client makes calls to the GCP API.
Session is an object representing session for GCP API.
TagManager handles resource tagging.

# Interfaces

API represents the calls made to the API.