preprovision

package
v0.90.17 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceBootstrapIgnitionInTFVars

func ReplaceBootstrapIgnitionInTFVars(ctx context.Context, tfvarsFile *asset.File, installConfig *installconfig.InstallConfig, clusterID *installconfig.ClusterID) error

ReplaceBootstrapIgnitionInTFVars replaces the ignition file in the terraform variables.

func SecurityGroups

func SecurityGroups(ctx context.Context, installConfig *installconfig.InstallConfig, infraID string, mastersSchedulable bool) error

SecurityGroups creates the master and worker security groups with the security group rules.

func ServerGroups

func ServerGroups(ctx context.Context, installConfig *installconfig.InstallConfig, capiMachines []capo.OpenStackMachine, mapoWorkerProviderSpecs []mapov1alpha1.OpenstackProviderSpec) error

ServerGroups creates server groups referenced by name in the Machine manifests if they don't exist already. The newly created server groups have the policy defined in the install-config's machine-pools.

func SetTerraformEnvironment

func SetTerraformEnvironment() error

SetTerraformEnvironment injects the environment variables required authenticate against the OpenStack API.

func TagVIPPorts

func TagVIPPorts(ctx context.Context, installConfig *installconfig.InstallConfig, infraID string) error

TagVIPPorts tags the VIP Ports pre-created by the user.

func UploadBaseImage

func UploadBaseImage(ctx context.Context, cloud string, rhcosImage string, imageName string, infraID string, imageProperties map[string]string) error

UploadBaseImage creates a new image in Glance and uploads the RHCOS image there.

func UploadIgnitionAndBuildShim

func UploadIgnitionAndBuildShim(ctx context.Context, cloud string, infraID string, proxy *types.Proxy, bootstrapIgn []byte) ([]byte, error)

UploadIgnitionAndBuildShim uploads the bootstrap Ignition config in Glance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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