power

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(mCtx *mc.Context, args *PowerArgs) (*string, error)

func WaitForVolumeAvailable added in v0.14.2

func WaitForVolumeAvailable(mCtx *mc.Context, cloudInstanceId, volumeId string) (string, error)

WaitForVolumeAvailable polls the IBM Cloud PowerVS API until the volume reaches "available" (or "in-use") state, retrying on 500 errors. This is necessary because the Terraform IBM Cloud provider's ibm_pi_volume_attach resource polls volume state via GET but does not retry on HTTP 500, causing spurious failures when the IBM Cloud backend returns a transient 500 shortly after volume creation. Running this wait before the Pulumi attachment resource is registered ensures the volume is in a stable state before the provider's own polling begins.

Types

type PowerArgs

type PowerArgs struct {
	InstanceArgs    models.PVMInstanceCreate
	CloudInstanceId string
}

Jump to

Keyboard shortcuts

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