Documentation ¶
Index ¶
- Constants
- Variables
- func ComputeStatus(ctx context.Context, tf terraformer.Terraformer, ...) (*apiv1alpha1.InfrastructureStatus, error)
- func ComputeTerraformerTemplateValues(infra *extensionsv1alpha1.Infrastructure, config *api.InfrastructureConfig, ...) (map[string]interface{}, error)
- func StatusFromTerraformState(state *TerraformState) *apiv1alpha1.InfrastructureStatus
- type TerraformFiles
- type TerraformState
Constants ¶
View Source
const ( // TerraformerPurpose is a constant for the complete Terraform setup with purpose 'infrastructure'. TerraformerPurpose = "infra" // TerraformOutputKeyNetworkName is the private worker network. TerraformOutputKeyNetworkName = "network_name" // TerraformOutputKeyEdgeName is the name of edge gateway. TerraformOutputKeyEdgeName = "edge_name" // TerraformOutputKeyGwIP is the IP of the Gateway CIDR IP for worker. TerraformOutputKeyGwIP = "gw_ip" // MaxApiCallRetries sets the maximum retries for failed requests. MaxApiCallRetries = "10" )
Variables ¶
View Source
var StatusTypeMeta = metav1.TypeMeta{ APIVersion: apiv1alpha1.SchemeGroupVersion.String(), Kind: "InfrastructureStatus", }
StatusTypeMeta is the TypeMeta of the vCloud InfrastructureStatus
Functions ¶
func ComputeStatus ¶
func ComputeStatus(ctx context.Context, tf terraformer.Terraformer, config *api.InfrastructureConfig) (*apiv1alpha1.InfrastructureStatus, error)
ComputeStatus computes the status based on the Terraformer and the given InfrastructureConfig.
func ComputeTerraformerTemplateValues ¶
func ComputeTerraformerTemplateValues( infra *extensionsv1alpha1.Infrastructure, config *api.InfrastructureConfig, cluster *controller.Cluster, ) (map[string]interface{}, error)
ComputeTerraformerTemplateValues computes the values for the OpenStack Terraformer chart.
func StatusFromTerraformState ¶
func StatusFromTerraformState(state *TerraformState) *apiv1alpha1.InfrastructureStatus
StatusFromTerraformState computes an InfrastructureStatus from the given Terraform variables.
Types ¶
type TerraformFiles ¶
TerraformFiles are the files that have been rendered from the infrastructure chart.
func RenderTerraformerTemplate ¶
func RenderTerraformerTemplate( infra *extensionsv1alpha1.Infrastructure, config *api.InfrastructureConfig, cluster *controller.Cluster, ) (*TerraformFiles, error)
RenderTerraformerTemplate renders the openstack infrastructure templates with the given values.
type TerraformState ¶
type TerraformState struct { // NetworkName is the private worker network. NetworkName string // EdgeName is the name the of edge gateway. EdgeName string // GwIP is IP of gateway CIDR IP for workers. GwIP string }
TerraformState is the Terraform state for an infrastructure.
func ExtractTerraformState ¶
func ExtractTerraformState(ctx context.Context, tf terraformer.Terraformer) (*TerraformState, error)
ExtractTerraformState extracts the TerraformState from the given Terraformer.
Click to show internal directories.
Click to hide internal directories.