Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TFVars ¶
func TFVars(sources TFVarsSources) ([]byte, error)
TFVars generates gcp-specific Terraform variables launching the cluster.
Types ¶
type Auth ¶
type Auth struct {
ProjectID string `json:"gcp_project_id,omitempty"`
NetworkProjectID string `json:"gcp_network_project_id,omitempty"`
ServiceAccount string `json:"gcp_service_account,omitempty"`
}
Auth is the collection of credentials that will be used by terrform.
type TFVarsSources ¶
type TFVarsSources struct {
Auth Auth
CreateFirewallRules bool
MasterConfigs []*machineapi.GCPMachineProviderSpec
WorkerConfigs []*machineapi.GCPMachineProviderSpec
PublicZoneName string
PrivateZoneName string
PublishStrategy types.PublishingStrategy
PreexistingNetwork bool
InfrastructureName string
UserProvisionedDNS bool
UserTags map[string]string
IgnitionShim string
PresignedURL string
}
TFVarsSources contains the parameters to be converted into Terraform variables
Click to show internal directories.
Click to hide internal directories.