Documentation ¶
Index ¶
- Variables
- func GetCloudResourceNameFromKopsMachinePool(kmp kinfrastructurev1alpha1.KopsMachinePool) (string, error)
- func GetKopsMachinePoolsWithLabel(ctx context.Context, c client.Client, key, value string) ([]kinfrastructurev1alpha1.KopsMachinePool, error)
- func GetRegionFromKopsSubnet(subnet kopsapi.ClusterSubnetSpec) (*string, error)
- func GetSubnetFromKopsControlPlane(kcp *kcontrolplanev1alpha1.KopsControlPlane) (*kopsapi.ClusterSubnetSpec, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrLabelKeyEmpty is returned when the label key is empty ErrLabelKeyEmpty = errors.New("label key is empty") // ErrLabelValueEmpty is returned when the label value is empty ErrLabelValueEmpty = errors.New("label value is empty") )
Functions ¶
func GetCloudResourceNameFromKopsMachinePool ¶
func GetCloudResourceNameFromKopsMachinePool(kmp kinfrastructurev1alpha1.KopsMachinePool) (string, error)
func GetKopsMachinePoolsWithLabel ¶
func GetKopsMachinePoolsWithLabel(ctx context.Context, c client.Client, key, value string) ([]kinfrastructurev1alpha1.KopsMachinePool, error)
GetKopsMachinePoolsWithLabel retrieve all KopsMachinePool with the given label
func GetRegionFromKopsSubnet ¶
func GetRegionFromKopsSubnet(subnet kopsapi.ClusterSubnetSpec) (*string, error)
func GetSubnetFromKopsControlPlane ¶
func GetSubnetFromKopsControlPlane(kcp *kcontrolplanev1alpha1.KopsControlPlane) (*kopsapi.ClusterSubnetSpec, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.