Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TFVars ¶
func TFVars(sources TFVarsSources) ([]byte, error)
TFVars generates ibmcloud-specific Terraform variables launching the cluster.
Types ¶
type Auth ¶
type Auth struct {
APIKey string `json:"ibmcloud_api_key,omitempty"`
}
Auth is the collection of credentials that will be used by terrform.
type DedicatedHost ¶
type DedicatedHost struct { ID string `json:"id,omitempty"` Profile string `json:"profile,omitempty"` }
DedicatedHost is the format used by terraform.
type TFVarsSources ¶
type TFVarsSources struct { Auth Auth CISInstanceCRN string DNSInstanceID string ImageURL string MasterConfigs []*ibmcloudprovider.IBMCloudMachineProviderSpec MasterDedicatedHosts []DedicatedHost NetworkResourceGroupName string PreexistingVPC bool PublishStrategy types.PublishingStrategy ResourceGroupName string VPCPermitted bool WorkerConfigs []*ibmcloudprovider.IBMCloudMachineProviderSpec WorkerDedicatedHosts []DedicatedHost }
TFVarsSources contains the parameters to be converted into Terraform variables
Click to show internal directories.
Click to hide internal directories.