Documentation ¶
Index ¶
- Constants
- Variables
- func AKSAzureSize(ctx context.Context, cred resources.AKSCredentials, location string) (apiv2.AKSVMSizeList, error)
- func AWSSizeNoCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func AWSSizes(region, architecture string, ...) (apiv1.AWSSizeList, error)
- func AWSSubnetNoCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func AlibabaInstanceTypesWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func AlibabaVswitchesWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func AlibabaZonesWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func AnexiaTemplatesWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func AnexiaVlansWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func AzureAvailabilityZonesWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func AzureResourceGroupEndpoint(ctx context.Context, ...) (*apiv1.AzureResourceGroupsList, error)
- func AzureRouteTableEndpoint(ctx context.Context, ...) (*apiv1.AzureRouteTablesList, error)
- func AzureSKUAvailabilityZones(ctx context.Context, ...) (*apiv1.AzureAvailabilityZonesList, error)
- func AzureSecurityGroupEndpoint(ctx context.Context, ...) (*apiv1.AzureSecurityGroupsList, error)
- func AzureSize(ctx context.Context, quota kubermaticv1.MachineDeploymentVMResourceQuota, ...) (apiv1.AzureSizeList, error)
- func AzureSizeWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func AzureSubnetEndpoint(ctx context.Context, ...) (*apiv1.AzureSubnetsList, error)
- func AzureVnetEndpoint(ctx context.Context, ...) (*apiv1.AzureVirtualNetworksList, error)
- func DescribeAlibabaInstanceTypes(accessKeyID, accessKeySecret, region, instanceType string) (*ecs.DescribeInstanceTypesResponse, error)
- func DescribeDigitaloceanSize(ctx context.Context, token, sizeName string) (godo.Size, error)
- func DescribePacketSize(apiKey, projectID, instanceType string) (packngo.Plan, error)
- func DigitaloceanSize(ctx context.Context, quota kubermaticv1.MachineDeploymentVMResourceQuota, ...) (apiv1.DigitaloceanSizeList, error)
- func DigitaloceanSizeWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func GCPDiskTypesWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func GCPNetworkWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func GCPSizeWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func GCPSubnetworkWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func GCPZoneWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func GetAWSInstance(instanceType string) (*apiv1.AWSSize, error)
- func GetAzureVMSize(ctx context.Context, ...) (*apiv1.AzureSize, error)
- func GetGCPInstanceSize(ctx context.Context, machineType, sa, zone string) (*apiv1.GCPMachineSize, error)
- func GetHetznerServerType(ctx context.Context, token string, serverTypeName string) (*hcloud.ServerType, error)
- func GetKubeVirtPresetResourceDetails(presetSpec kubevirtv1.VirtualMachineInstancePresetSpec) (resource.Quantity, resource.Quantity, error)
- func GetOpenStackFlavorSize(credentials *resources.OpenstackCredentials, authURL, region string, ...) (*apiv1.OpenstackSize, error)
- func GetOpenstackAvailabilityZones(datacenter *kubermaticv1.Datacenter, ...) ([]apiv1.OpenstackAvailabilityZone, error)
- func GetOpenstackNetworks(ctx context.Context, userInfo *provider.UserInfo, ...) ([]apiv1.OpenstackNetwork, error)
- func GetOpenstackProjects(userInfo *provider.UserInfo, seedsGetter provider.SeedsGetter, ...) ([]apiv1.OpenstackTenant, error)
- func GetOpenstackSecurityGroups(ctx context.Context, userInfo *provider.UserInfo, ...) ([]apiv1.OpenstackSecurityGroup, error)
- func GetOpenstackSizes(credentials *resources.OpenstackCredentials, ...) ([]apiv1.OpenstackSize, error)
- func GetOpenstackSubnetPools(ctx context.Context, userInfo *provider.UserInfo, ...) ([]apiv2.OpenstackSubnetPool, error)
- func GetOpenstackSubnets(ctx context.Context, userInfo *provider.UserInfo, ...) ([]apiv1.OpenstackSubnet, error)
- func GetVsphereDatastoreList(ctx context.Context, userInfo *provider.UserInfo, ...) (*apiv1.VSphereDatastoreList, error)
- func GetVsphereFolders(ctx context.Context, userInfo *provider.UserInfo, ...) ([]apiv1.VSphereFolder, error)
- func GetVsphereNetworks(ctx context.Context, userInfo *provider.UserInfo, ...) ([]apiv1.VSphereNetwork, error)
- func HetznerSize(ctx context.Context, quota kubermaticv1.MachineDeploymentVMResourceQuota, ...) (apiv1.HetznerSizeList, error)
- func HetznerSizeWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func IsFlavorEnabled(apiSize apiv1.OpenstackSize, enabledFlavors []string) bool
- func KubeVirtStorageClasses(ctx context.Context, kubeconfig string) (apiv2.StorageClassList, error)
- func KubeVirtStorageClassesWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func KubeVirtVMIPreset(ctx context.Context, kubeconfig, flavor string) (*kubevirtv1.VirtualMachineInstancePreset, error)
- func KubeVirtVMIPresets(ctx context.Context, kubeconfig string, cluster *kubermaticv1.Cluster, ...) (apiv2.VirtualMachineInstancePresetList, error)
- func KubeVirtVMIPresetsWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func ListAKSClusters(ctx context.Context, projectProvider provider.ProjectProvider, ...) (apiv2.AKSClusterList, error)
- func ListAKSVMSizes(ctx context.Context, cred resources.AKSCredentials, location string) (apiv2.AKSVMSizeList, error)
- func ListAWSSubnets(ctx context.Context, accessKeyID, secretAccessKey, assumeRoleID string, ...) (apiv1.AWSSubnetList, error)
- func ListAlibabaInstanceTypes(accessKeyID string, accessKeySecret string, region string, ...) (apiv1.AlibabaInstanceTypeList, error)
- func ListAlibabaVSwitches(accessKeyID, accessKeySecret, region string) (apiv1.AlibabaVSwitchList, error)
- func ListAlibabaZones(accessKeyID string, accessKeySecret string, region string) (apiv1.AlibabaZoneList, error)
- func ListAnexiaTemplates(ctx context.Context, token, locationID string) (apiv1.AnexiaTemplateList, error)
- func ListAnexiaVlans(ctx context.Context, token string) (apiv1.AnexiaVlanList, error)
- func ListDigitaloceanSizes(ctx context.Context, token string) ([]godo.Size, error)
- func ListEKSClusters(ctx context.Context, projectProvider provider.ProjectProvider, ...) (apiv2.EKSClusterList, error)
- func ListEKSRegions(ctx context.Context, cred resources.EKSCredential) (apiv2.EKSRegionList, error)
- func ListEKSSecurityGroup(ctx context.Context, cred resources.EKSCredential, vpcID string) (apiv2.EKSSecurityGroupList, error)
- func ListEKSSubnetIDs(ctx context.Context, cred resources.EKSCredential, vpcID string) (apiv2.EKSSubnetList, error)
- func ListEKSVPC(ctx context.Context, cred resources.EKSCredential) (apiv2.EKSVPCList, error)
- func ListGCPDiskTypes(ctx context.Context, sa string, zone string) (apiv1.GCPDiskTypeList, error)
- func ListGCPNetworks(ctx context.Context, sa string) (apiv1.GCPNetworkList, error)
- func ListGCPSizes(ctx context.Context, quota kubermaticv1.MachineDeploymentVMResourceQuota, ...) (apiv1.GCPMachineSizeList, error)
- func ListGCPSubnetworks(ctx context.Context, userInfo *provider.UserInfo, datacenterName string, ...) (apiv1.GCPSubnetworkList, error)
- func ListGCPZones(ctx context.Context, userInfo *provider.UserInfo, sa, datacenterName string, ...) (apiv1.GCPZoneList, error)
- func ListInstanceTypes(ctx context.Context, cred resources.EKSCredential) (apiv2.EKSInstanceTypeList, error)
- func MeetsOpenstackNodeSizeRequirement(apiSize apiv1.OpenstackSize, ...) bool
- func NutanixCategoriesWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func NutanixCategoryValuesWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func NutanixSubnetsWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func OpenstackAvailabilityZoneWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func OpenstackNetworkWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func OpenstackSecurityGroupWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func OpenstackSizeWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func OpenstackSubnetsWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func OpenstackTenantWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func PacketSizes(apiKey, projectID string, quota kubermaticv1.MachineDeploymentVMResourceQuota) (apiv1.PacketSizeList, error)
- func PacketSizesWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func SetDefaultSubnet(machineDeployments *clusterv1alpha1.MachineDeploymentList, ...) (apiv1.AWSSubnetList, error)
- func VsphereFoldersWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func VsphereNetworksWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- type AWSCredential
- type AzureClientSet
- type NutanixClientSet
- type NutanixCredentials
Constants ¶
View Source
const MinimumVMCores = 2
View Source
const RegionEndpoint = "eu-central-1"
Region value will instruct the SDK where to make service API requests to. Region must be provided before a service client request is made.
Variables ¶
View Source
var NewAzureClientSet = func(subscriptionID, clientID, clientSecret, tenantID string) (AzureClientSet, error) { cred, err := azidentity.NewClientSecretCredential(tenantID, clientID, clientSecret, nil) if err != nil { return nil, err } sizesClient, err := armcompute.NewVirtualMachineSizesClient(subscriptionID, cred, nil) if err != nil { return nil, err } skusClient, err := armcompute.NewResourceSKUsClient(subscriptionID, cred, nil) if err != nil { return nil, err } securityGroupsClient, err := armnetwork.NewSecurityGroupsClient(subscriptionID, cred, nil) if err != nil { return nil, err } resourceGroupsClient, err := armresources.NewResourceGroupsClient(subscriptionID, cred, nil) if err != nil { return nil, err } routeTablesClient, err := armnetwork.NewRouteTablesClient(subscriptionID, cred, nil) if err != nil { return nil, err } subnetsClient, err := armnetwork.NewSubnetsClient(subscriptionID, cred, nil) if err != nil { return nil, err } vnetClient, err := armnetwork.NewVirtualNetworksClient(subscriptionID, cred, nil) if err != nil { return nil, err } return &azureClientSetImpl{ vmSizeClient: sizesClient, skusClient: skusClient, securityGroupsClient: securityGroupsClient, resourceGroupsClient: resourceGroupsClient, subnetsClient: subnetsClient, vnetClient: vnetClient, routeTablesClient: routeTablesClient, }, nil }
View Source
var NewKubeVirtClient = func(kubeconfig string) (ctrlruntimeclient.Client, error) { config, err := base64.StdEncoding.DecodeString(kubeconfig) if err != nil { return nil, err } clientConfig, err := clientcmd.RESTConfigFromKubeConfig(config) if err != nil { return nil, err } client, err := ctrlruntimeclient.New(clientConfig, ctrlruntimeclient.Options{}) if err != nil { return nil, err } if err := kubevirtv1.AddToScheme(client.Scheme()); err != nil { return nil, err } return client, nil }
View Source
var NewNutanixClient = func(dc *kubermaticv1.DatacenterSpecNutanix, creds *NutanixCredentials) NutanixClientSet {
return &nutanixClientImpl{
dc: dc,
creds: creds,
}
}
Functions ¶
func AKSAzureSize ¶ added in v2.21.0
func AKSAzureSize(ctx context.Context, cred resources.AKSCredentials, location string) (apiv2.AKSVMSizeList, error)
func AWSSizeNoCredentialsEndpoint ¶
func AWSSizeNoCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, settingsProvider provider.SettingsProvider, projectID, clusterID, architecture string) (interface{}, error)
func AWSSizes ¶
func AWSSizes(region, architecture string, quota kubermaticv1.MachineDeploymentVMResourceQuota) (apiv1.AWSSizeList, error)
func AWSSubnetNoCredentialsEndpoint ¶
func AWSSubnetNoCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, projectID, clusterID string) (interface{}, error)
func AlibabaInstanceTypesWithClusterCredentialsEndpoint ¶
func AlibabaInstanceTypesWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, settingsProvider provider.SettingsProvider, projectID, clusterID, region string) (interface{}, error)
func AlibabaVswitchesWithClusterCredentialsEndpoint ¶ added in v2.17.0
func AlibabaVswitchesWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, projectID, clusterID, region string) (interface{}, error)
func AlibabaZonesWithClusterCredentialsEndpoint ¶
func AlibabaZonesWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, projectID, clusterID, region string) (interface{}, error)
func AnexiaTemplatesWithClusterCredentialsEndpoint ¶ added in v2.17.0
func AnexiaTemplatesWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, projectID, clusterID string) (interface{}, error)
func AnexiaVlansWithClusterCredentialsEndpoint ¶ added in v2.17.0
func AnexiaVlansWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, projectID, clusterID string) (interface{}, error)
func AzureAvailabilityZonesWithClusterCredentialsEndpoint ¶
func AzureAvailabilityZonesWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, projectID, clusterID, skuName string) (interface{}, error)
func AzureRouteTableEndpoint ¶
func AzureSize ¶
func AzureSize(ctx context.Context, quota kubermaticv1.MachineDeploymentVMResourceQuota, subscriptionID, clientID, clientSecret, tenantID, location string) (apiv1.AzureSizeList, error)
func AzureSizeWithClusterCredentialsEndpoint ¶
func AzureSizeWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, settingsProvider provider.SettingsProvider, projectID, clusterID string) (interface{}, error)
func AzureSubnetEndpoint ¶
func AzureVnetEndpoint ¶
func DescribeAlibabaInstanceTypes ¶ added in v2.21.0
func DescribeAlibabaInstanceTypes(accessKeyID, accessKeySecret, region, instanceType string) (*ecs.DescribeInstanceTypesResponse, error)
func DescribeDigitaloceanSize ¶ added in v2.21.0
func DescribePacketSize ¶ added in v2.21.0
func DigitaloceanSize ¶
func DigitaloceanSize(ctx context.Context, quota kubermaticv1.MachineDeploymentVMResourceQuota, token string) (apiv1.DigitaloceanSizeList, error)
func DigitaloceanSizeWithClusterCredentialsEndpoint ¶
func DigitaloceanSizeWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, settingsProvider provider.SettingsProvider, projectID, clusterID string) (interface{}, error)
func GCPDiskTypesWithClusterCredentialsEndpoint ¶
func GCPDiskTypesWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, projectID, clusterID, zone string) (interface{}, error)
func GCPNetworkWithClusterCredentialsEndpoint ¶
func GCPNetworkWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, projectID, clusterID string) (interface{}, error)
func GCPSizeWithClusterCredentialsEndpoint ¶
func GCPSizeWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, settingsProvider provider.SettingsProvider, projectID, clusterID, zone string) (interface{}, error)
func GCPSubnetworkWithClusterCredentialsEndpoint ¶
func GCPSubnetworkWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, projectID, clusterID, network string) (interface{}, error)
func GCPZoneWithClusterCredentialsEndpoint ¶
func GCPZoneWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, projectID, clusterID string) (interface{}, error)
func GetAWSInstance ¶ added in v2.21.0
func GetAzureVMSize ¶ added in v2.21.0
func GetGCPInstanceSize ¶ added in v2.21.0
func GetHetznerServerType ¶ added in v2.21.0
func GetKubeVirtPresetResourceDetails ¶ added in v2.21.0
func GetKubeVirtPresetResourceDetails(presetSpec kubevirtv1.VirtualMachineInstancePresetSpec) (resource.Quantity, resource.Quantity, error)
GetKubeVirtPresetResourceDetails extracts cpu and mem resource requests from the kubevirt preset for CPU, take the value by priority: - check if spec.cpu is set, if socket and threads are set then do the calculation, use that - if resource request is set, use that - if resource limit is set, use that for memory, take the value by priority: - if resource request is set, use that - if resource limit is set, use that.
func GetOpenStackFlavorSize ¶ added in v2.21.0
func GetOpenStackFlavorSize(credentials *resources.OpenstackCredentials, authURL, region string, caBundle *x509.CertPool, flavorName string) (*apiv1.OpenstackSize, error)
func GetOpenstackAvailabilityZones ¶
func GetOpenstackAvailabilityZones(datacenter *kubermaticv1.Datacenter, credentials *resources.OpenstackCredentials, caBundle *x509.CertPool) ([]apiv1.OpenstackAvailabilityZone, error)
func GetOpenstackNetworks ¶
func GetOpenstackNetworks(ctx context.Context, userInfo *provider.UserInfo, seedsGetter provider.SeedsGetter, credentials *resources.OpenstackCredentials, datacenterName string, caBundle *x509.CertPool) ([]apiv1.OpenstackNetwork, error)
func GetOpenstackProjects ¶ added in v2.20.0
func GetOpenstackProjects(userInfo *provider.UserInfo, seedsGetter provider.SeedsGetter, credentials *resources.OpenstackCredentials, datacenterName string, caBundle *x509.CertPool) ([]apiv1.OpenstackTenant, error)
func GetOpenstackSecurityGroups ¶
func GetOpenstackSecurityGroups(ctx context.Context, userInfo *provider.UserInfo, seedsGetter provider.SeedsGetter, credentials *resources.OpenstackCredentials, datacenterName string, caBundle *x509.CertPool) ([]apiv1.OpenstackSecurityGroup, error)
func GetOpenstackSizes ¶
func GetOpenstackSizes(credentials *resources.OpenstackCredentials, datacenter *kubermaticv1.Datacenter, quota kubermaticv1.MachineDeploymentVMResourceQuota, caBundle *x509.CertPool) ([]apiv1.OpenstackSize, error)
func GetOpenstackSubnetPools ¶ added in v2.21.0
func GetOpenstackSubnetPools(ctx context.Context, userInfo *provider.UserInfo, seedsGetter provider.SeedsGetter, credentials *resources.OpenstackCredentials, datacenterName string, ipVersion int, caBundle *x509.CertPool) ([]apiv2.OpenstackSubnetPool, error)
func GetOpenstackSubnets ¶
func GetOpenstackSubnets(ctx context.Context, userInfo *provider.UserInfo, seedsGetter provider.SeedsGetter, credentials *resources.OpenstackCredentials, networkID, datacenterName string, caBundle *x509.CertPool) ([]apiv1.OpenstackSubnet, error)
func GetVsphereDatastoreList ¶ added in v2.17.0
func GetVsphereFolders ¶
func GetVsphereNetworks ¶
func HetznerSize ¶
func HetznerSize(ctx context.Context, quota kubermaticv1.MachineDeploymentVMResourceQuota, token string) (apiv1.HetznerSizeList, error)
func HetznerSizeWithClusterCredentialsEndpoint ¶
func HetznerSizeWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, settingsProvider provider.SettingsProvider, projectID, clusterID string) (interface{}, error)
func IsFlavorEnabled ¶ added in v2.17.0
func IsFlavorEnabled(apiSize apiv1.OpenstackSize, enabledFlavors []string) bool
func KubeVirtStorageClasses ¶ added in v2.19.0
func KubeVirtStorageClassesWithClusterCredentialsEndpoint ¶ added in v2.19.0
func KubeVirtStorageClassesWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, projectID, clusterID string) (interface{}, error)
func KubeVirtVMIPreset ¶ added in v2.21.0
func KubeVirtVMIPreset(ctx context.Context, kubeconfig, flavor string) (*kubevirtv1.VirtualMachineInstancePreset, error)
func KubeVirtVMIPresets ¶ added in v2.19.0
func KubeVirtVMIPresets(ctx context.Context, kubeconfig string, cluster *kubermaticv1.Cluster, settingsProvider provider.SettingsProvider) (apiv2.VirtualMachineInstancePresetList, error)
func KubeVirtVMIPresetsWithClusterCredentialsEndpoint ¶ added in v2.19.0
func KubeVirtVMIPresetsWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, projectID, clusterID string, settingsProvider provider.SettingsProvider) (interface{}, error)
func ListAKSClusters ¶ added in v2.19.0
func ListAKSClusters(ctx context.Context, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, userInfoGetter provider.UserInfoGetter, clusterProvider provider.ExternalClusterProvider, cred resources.AKSCredentials, projectID string) (apiv2.AKSClusterList, error)
func ListAKSVMSizes ¶ added in v2.21.0
func ListAKSVMSizes(ctx context.Context, cred resources.AKSCredentials, location string) (apiv2.AKSVMSizeList, error)
func ListAWSSubnets ¶
func ListAWSSubnets(ctx context.Context, accessKeyID, secretAccessKey, assumeRoleID string, assumeRoleExternalID string, vpcID string, datacenter *kubermaticv1.Datacenter) (apiv1.AWSSubnetList, error)
func ListAlibabaInstanceTypes ¶
func ListAlibabaInstanceTypes(accessKeyID string, accessKeySecret string, region string, quota kubermaticv1.MachineDeploymentVMResourceQuota) (apiv1.AlibabaInstanceTypeList, error)
func ListAlibabaVSwitches ¶ added in v2.17.0
func ListAlibabaVSwitches(accessKeyID, accessKeySecret, region string) (apiv1.AlibabaVSwitchList, error)
func ListAlibabaZones ¶
func ListAnexiaTemplates ¶ added in v2.17.0
func ListAnexiaVlans ¶ added in v2.17.0
func ListDigitaloceanSizes ¶ added in v2.21.0
func ListEKSClusters ¶ added in v2.19.0
func ListEKSClusters(ctx context.Context, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, userInfoGetter provider.UserInfoGetter, clusterProvider provider.ExternalClusterProvider, cred resources.EKSCredential, projectID string) (apiv2.EKSClusterList, error)
func ListEKSRegions ¶ added in v2.21.0
func ListEKSRegions(ctx context.Context, cred resources.EKSCredential) (apiv2.EKSRegionList, error)
func ListEKSSecurityGroup ¶ added in v2.21.0
func ListEKSSecurityGroup(ctx context.Context, cred resources.EKSCredential, vpcID string) (apiv2.EKSSecurityGroupList, error)
func ListEKSSubnetIDs ¶ added in v2.21.0
func ListEKSSubnetIDs(ctx context.Context, cred resources.EKSCredential, vpcID string) (apiv2.EKSSubnetList, error)
func ListEKSVPC ¶ added in v2.21.0
func ListEKSVPC(ctx context.Context, cred resources.EKSCredential) (apiv2.EKSVPCList, error)
func ListGCPDiskTypes ¶
func ListGCPNetworks ¶
func ListGCPSizes ¶
func ListGCPSizes(ctx context.Context, quota kubermaticv1.MachineDeploymentVMResourceQuota, sa, zone string) (apiv1.GCPMachineSizeList, error)
func ListGCPSubnetworks ¶
func ListGCPZones ¶
func ListGCPZones(ctx context.Context, userInfo *provider.UserInfo, sa, datacenterName string, seedsGetter provider.SeedsGetter) (apiv1.GCPZoneList, error)
func ListInstanceTypes ¶ added in v2.21.0
func ListInstanceTypes(ctx context.Context, cred resources.EKSCredential) (apiv2.EKSInstanceTypeList, error)
func MeetsOpenstackNodeSizeRequirement ¶
func MeetsOpenstackNodeSizeRequirement(apiSize apiv1.OpenstackSize, requirements kubermaticv1.OpenstackNodeSizeRequirements) bool
func NutanixCategoriesWithClusterCredentialsEndpoint ¶ added in v2.21.0
func NutanixCategoriesWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, projectID, clusterID string) (interface{}, error)
func NutanixCategoryValuesWithClusterCredentialsEndpoint ¶ added in v2.21.0
func NutanixCategoryValuesWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, projectID, clusterID, categoryName string) (interface{}, error)
func NutanixSubnetsWithClusterCredentialsEndpoint ¶ added in v2.19.1
func NutanixSubnetsWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, projectID, clusterID string) (interface{}, error)
func OpenstackAvailabilityZoneWithClusterCredentialsEndpoint ¶
func OpenstackAvailabilityZoneWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, projectID, clusterID string, caBundle *x509.CertPool) (interface{}, error)
func OpenstackNetworkWithClusterCredentialsEndpoint ¶
func OpenstackNetworkWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, projectID, clusterID string, caBundle *x509.CertPool) (interface{}, error)
func OpenstackSecurityGroupWithClusterCredentialsEndpoint ¶
func OpenstackSecurityGroupWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, projectID, clusterID string, caBundle *x509.CertPool) (interface{}, error)
func OpenstackSizeWithClusterCredentialsEndpoint ¶
func OpenstackSizeWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, settingsProvider provider.SettingsProvider, projectID, clusterID string, caBundle *x509.CertPool) (interface{}, error)
func OpenstackSubnetsWithClusterCredentialsEndpoint ¶
func OpenstackSubnetsWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, projectID, clusterID, networkID string, caBundle *x509.CertPool) (interface{}, error)
func OpenstackTenantWithClusterCredentialsEndpoint ¶
func OpenstackTenantWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, projectID, clusterID string, caBundle *x509.CertPool) (interface{}, error)
func PacketSizes ¶
func PacketSizes(apiKey, projectID string, quota kubermaticv1.MachineDeploymentVMResourceQuota) (apiv1.PacketSizeList, error)
func PacketSizesWithClusterCredentialsEndpoint ¶
func PacketSizesWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, settingsProvider provider.SettingsProvider, projectID, clusterID string) (interface{}, error)
func SetDefaultSubnet ¶
func SetDefaultSubnet(machineDeployments *clusterv1alpha1.MachineDeploymentList, subnets apiv1.AWSSubnetList) (apiv1.AWSSubnetList, error)
func VsphereFoldersWithClusterCredentialsEndpoint ¶
func VsphereFoldersWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, projectID, clusterID string, caBundle *x509.CertPool, ) (interface{}, error)
func VsphereNetworksWithClusterCredentialsEndpoint ¶
func VsphereNetworksWithClusterCredentialsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, projectID, clusterID string, caBundle *x509.CertPool, ) (interface{}, error)
Types ¶
type AWSCredential ¶ added in v2.19.0
type AzureClientSet ¶
type AzureClientSet interface { ListVMSize(ctx context.Context, location string) ([]armcompute.VirtualMachineSize, error) ListSKU(ctx context.Context, location string) ([]armcompute.ResourceSKU, error) ListSecurityGroups(ctx context.Context, resourceGroupName string) ([]armnetwork.SecurityGroup, error) ListResourceGroups(ctx context.Context) ([]armresources.ResourceGroup, error) ListRouteTables(ctx context.Context, resourceGroupName string) ([]armnetwork.RouteTable, error) ListVnets(ctx context.Context, resourceGroupName string) ([]armnetwork.VirtualNetwork, error) ListSubnets(ctx context.Context, resourceGroupName, virtualNetworkName string) ([]armnetwork.Subnet, error) }
type NutanixClientSet ¶ added in v2.19.1
type NutanixClientSet interface { ListNutanixClusters(ctx context.Context) (apiv1.NutanixClusterList, error) ListNutanixProjects(ctx context.Context) (apiv1.NutanixProjectList, error) ListNutanixSubnets(ctx context.Context, clusterName, projectName string) (apiv1.NutanixSubnetList, error) ListNutanixCategories(ctx context.Context) (apiv1.NutanixCategoryList, error) ListNutanixCategoryValues(ctx context.Context, categoryName string) (apiv1.NutanixCategoryValueList, error) }
type NutanixCredentials ¶ added in v2.19.1
Click to show internal directories.
Click to hide internal directories.