Documentation ¶
Index ¶
- func GetClientFromSecret(metaClient clientset.Interface, name, namespace string) (*clientset.Clientset, error)
- func GetMaxQuota(quotalist *corev1.ResourceQuotaList) corev1.ResourceList
- func GetNamespaceQuota(client clientset.Interface, namespace string) (corev1.ResourceList, error)
- func GetNodeCondition(status *corev1.NodeStatus, conditionType corev1.NodeConditionType) (int, *corev1.NodeCondition)
- func GetPodRequirements(pod *corev1.Pod) corev1.ResourceList
- func GetPodSchedulingInfo(pod *corev1.Pod) string
- func GetProvisionedSlices(namespace *corev1.Namespace, clusterID, key string) ([]*internalcache.Slice, error)
- func GetSchedulingInfo(namespace *corev1.Namespace) (map[string]int, corev1.ResourceList, error)
- func GetSuperClusterCapacity(client clientset.Interface) (corev1.ResourceList, error)
- func GetSuperClusterID(client clientset.Interface) (string, error)
- func Min(a, b int) int
- func SyncSuperClusterState(metaClient clientset.Interface, super *v1alpha4.Cluster, ...) error
- func SyncVirtualClusterState(metaClient clientset.Interface, vc *v1alpha1.VirtualCluster, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientFromSecret ¶
func GetMaxQuota ¶
func GetMaxQuota(quotalist *corev1.ResourceQuotaList) corev1.ResourceList
func GetNamespaceQuota ¶
GetNamespaceQuota returns the namespace quota for cpu and memory resouces. If there are multiple quota resources available, the largest quota is chosen.
func GetNodeCondition ¶
func GetNodeCondition(status *corev1.NodeStatus, conditionType corev1.NodeConditionType) (int, *corev1.NodeCondition)
func GetPodRequirements ¶
func GetPodRequirements(pod *corev1.Pod) corev1.ResourceList
func GetPodSchedulingInfo ¶
func GetProvisionedSlices ¶
func GetSchedulingInfo ¶
GetSchedulingInfo returns the placement result and the quotaslice size
func GetSuperClusterCapacity ¶
func GetSuperClusterCapacity(client clientset.Interface) (corev1.ResourceList, error)
func SyncSuperClusterState ¶
func SyncVirtualClusterState ¶
func SyncVirtualClusterState(metaClient clientset.Interface, vc *v1alpha1.VirtualCluster, cache internalcache.Cache) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.