Documentation
¶
Index ¶
- Variables
- func ConvertClusterMetrics(podMetrics *v1beta1.PodMetricsList, nodeMetrics []v1beta1.NodeMetrics, ...) (*apiv1.ClusterMetrics, error)
- func ConvertNodeMetrics(metrics []v1beta1.NodeMetrics, ...) ([]apiv1.NodeMetric, error)
- func CreateEndpoint(ctx context.Context, projectID string, body apiv1.CreateClusterSpec, ...) (interface{}, error)
- func DeleteEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func GetCluster(ctx context.Context, projectProvider provider.ProjectProvider, ...) (*kubermaticv1.Cluster, error)
- func GetClusterEventsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func GetEndpoint(ctx context.Context, projectProvider provider.ProjectProvider, ...) (interface{}, error)
- func GetExternalClusters(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) ([]*apiv1.Cluster, error)
- func GetInternalCluster(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (*kubermaticv1.Cluster, error)
- func PatchEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) (interface{}, error)
- func UpdateClusterSSHKey(ctx context.Context, userInfoGetter provider.UserInfoGetter, ...) error
- func ValidateClusterSpec(clusterType kubermaticv1.ClusterType, updateManager common.UpdateManager, ...) error
- type NodeDeploymentEvent
Constants ¶
This section is empty.
Variables ¶
View Source
var ClusterTypes = sets.NewString(apiv1.OpenShiftClusterType, apiv1.KubernetesClusterType)
ClusterTypes holds a list of supported cluster types
Functions ¶
func ConvertClusterMetrics ¶
func ConvertClusterMetrics(podMetrics *v1beta1.PodMetricsList, nodeMetrics []v1beta1.NodeMetrics, availableNodesResources map[string]corev1.ResourceList, clusterName string) (*apiv1.ClusterMetrics, error)
func ConvertNodeMetrics ¶
func ConvertNodeMetrics(metrics []v1beta1.NodeMetrics, availableResources map[string]corev1.ResourceList) ([]apiv1.NodeMetric, error)
func CreateEndpoint ¶
func CreateEndpoint(ctx context.Context, projectID string, body apiv1.CreateClusterSpec, sshKeyProvider provider.SSHKeyProvider, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, seedsGetter provider.SeedsGetter, initNodeDeploymentFailures *prometheus.CounterVec, eventRecorderProvider provider.EventRecorderProvider, credentialManager provider.PresetProvider, exposeStrategy corev1.ServiceType, userInfoGetter provider.UserInfoGetter) (interface{}, error)
func DeleteEndpoint ¶
func DeleteEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectID, clusterID string, deleteVolumes, deleteLoadBalancers bool, sshKeyProvider provider.SSHKeyProvider, privilegedSSHKeyProvider provider.PrivilegedSSHKeyProvider, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider) (interface{}, error)
func GetCluster ¶
func GetCluster(ctx context.Context, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, userInfoGetter provider.UserInfoGetter, projectID, clusterID string, options *provider.ClusterGetOptions) (*kubermaticv1.Cluster, error)
GetCluster returns the cluster for a given request
func GetClusterEventsEndpoint ¶
func GetClusterEventsEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectID, clusterID, eventType string, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider) (interface{}, error)
func GetEndpoint ¶
func GetEndpoint(ctx context.Context, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, userInfoGetter provider.UserInfoGetter, projectID, clusterID string) (interface{}, error)
func GetExternalClusters ¶
func GetExternalClusters(ctx context.Context, userInfoGetter provider.UserInfoGetter, clusterProvider provider.ClusterProvider, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, projectID string) ([]*apiv1.Cluster, error)
func GetInternalCluster ¶
func GetInternalCluster(ctx context.Context, userInfoGetter provider.UserInfoGetter, clusterProvider provider.ClusterProvider, privilegedClusterProvider provider.PrivilegedClusterProvider, project *kubermaticv1.Project, projectID, clusterID string, options *provider.ClusterGetOptions) (*kubermaticv1.Cluster, error)
func PatchEndpoint ¶
func PatchEndpoint(ctx context.Context, userInfoGetter provider.UserInfoGetter, projectID, clusterID string, patch json.RawMessage, seedsGetter provider.SeedsGetter, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider) (interface{}, error)
func UpdateClusterSSHKey ¶
func UpdateClusterSSHKey(ctx context.Context, userInfoGetter provider.UserInfoGetter, sshKeyProvider provider.SSHKeyProvider, privilegedSSHKeyProvider provider.PrivilegedSSHKeyProvider, clusterSSHKey *kubermaticv1.UserSSHKey, projectID string) error
func ValidateClusterSpec ¶
func ValidateClusterSpec(clusterType kubermaticv1.ClusterType, updateManager common.UpdateManager, body apiv1.CreateClusterSpec) error
Types ¶
type NodeDeploymentEvent ¶
type NodeDeploymentEvent string
NodeDeploymentEvent represents type of events related to Node Deployment
Click to show internal directories.
Click to hide internal directories.