Documentation ¶
Index ¶
- Variables
- func CloudProfileConfigFromCluster(cluster *controller.Cluster) (*api.CloudProfileConfig, error)
- func FindImageFromCloudProfile(cloudProfileConfig *api.CloudProfileConfig, imageName, imageVersion string) (string, error)
- func FindMachineImage(machineImages []api.MachineImage, name, version string) (*api.MachineImage, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Scheme is a Kubernetes scheme. Scheme *runtime.Scheme )
Functions ¶
func CloudProfileConfigFromCluster ¶
func CloudProfileConfigFromCluster(cluster *controller.Cluster) (*api.CloudProfileConfig, error)
CloudProfileConfigFromCluster decodes the provider specific cloud profile configuration for a cluster
func FindImageFromCloudProfile ¶
func FindImageFromCloudProfile(cloudProfileConfig *api.CloudProfileConfig, imageName, imageVersion string) (string, error)
FindImageFromCloudProfile takes a list of machine images, and the desired image name, version.. It tries to find the image with the given name and version in the desired region. If it cannot be found then an error is returned.
func FindMachineImage ¶
func FindMachineImage(machineImages []api.MachineImage, name, version string) (*api.MachineImage, error)
FindMachineImage takes a list of machine images and tries to find the first entry whose name, version, and zone matches with the given name, version, and region. If no such entry is found then an error will be returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.