Versions in this module Expand all Collapse all v1 v1.0.2 May 5, 2022 Changes in this version + func CollectionCordonNode(client *kubernetes.Clientset, nodeName []string) error + func CollectionNodeUnschedule(client *kubernetes.Clientset, nodeName []string) error + func CordonNode(client *kubernetes.Clientset, nodeName string) (bool, error) + func GetNodeResource(client *kubernetes.Clientset) (namespaces int, deployments int, pods int) + func NodeUnschdulable(client *kubernetes.Clientset, nodeName string, unschdulable bool) (bool, error) + func PodRequestsAndLimits(pod *v1.Pod) (reqs, limits v1.ResourceList, err error) + func RemoveNode(client *kubernetes.Clientset, nodeName string) (bool, error) + type Node struct + AllocatedResources k8s.NodeAllocatedResources + NodeIP k8s.NodeIP + NodeInfo v1.NodeSystemInfo + ObjectMeta k8s.ObjectMeta + Ready v1.ConditionStatus + TypeMeta k8s.TypeMeta + Unschedulable k8s.Unschedulable + type NodeAllocatedResources struct + AllocatedPods int + CPUCapacity int64 + CPULimits int64 + CPULimitsFraction float64 + CPURequests int64 + CPURequestsFraction float64 + MemoryCapacity int64 + MemoryLimits int64 + MemoryLimitsFraction float64 + MemoryRequests int64 + MemoryRequestsFraction float64 + PodCapacity int64 + PodFraction float64 + type NodeCell v1.Node + func (self NodeCell) GetProperty(name dataselect.PropertyName) dataselect.ComparableValue + type NodeDetail struct + Addresses []v1.NodeAddress + Conditions []k8scommon.Condition + ContainerImages []string + EventList v1.EventList + NodeIP k8s.NodeIP + NodeInfo v1.NodeSystemInfo + Phase v1.NodePhase + PodCIDR string + PodList v1.PodList + ProviderID string + Ready v1.ConditionStatus + Taints []v1.Taint + UID k8s.UID + Unschedulable bool + func GetNodeDetail(client *kubernetes.Clientset, name string) (*NodeDetail, error) + type NodeList struct + ListMeta k8s.ListMeta + Nodes []Node + func GetNodeList(client *kubernetes.Clientset, dsQuery *gin.Context) (*NodeList, error)