ibmcloud

package
v1.14.16-dcf8320c8c4e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL