Documentation ¶
Index ¶
Constants ¶
View Source
const IBMCloudEndpointJSONFileName = "ibmcloud_endpoints_override.json"
IBMCloudEndpointJSONFileName is the file containing the IBM Cloud Terraform provider's endpoint override JSON.
Variables ¶
This section is empty.
Functions ¶
func CreateEndpointJSON ¶ added in v0.9.153
func CreateEndpointJSON(endpoints []configv1.IBMCloudServiceEndpoint, region string) ([]byte, error)
CreateEndpointJSON creates JSON data containing IBM Cloud service endpoint override mappings.
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 EndpointsJSONFile string ImageURL string MasterConfigs []*ibmcloudprovider.IBMCloudMachineProviderSpec MasterDedicatedHosts []DedicatedHost NetworkResourceGroupName string PreexistingVPC bool PublishStrategy types.PublishingStrategy ResourceGroupName string TerraformPrivateVisibility bool 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.