Documentation
¶
Index ¶
- Constants
- func BuildKubeSchedulerCompletedConfig(config, kubeconfig string) (*schedconfig.CompletedConfig, error)
- func BuildRestConfig(config string) (*restclient.Config, error)
- func ComputePodResourceRequest(pod *corev1.Pod) *framework.Resource
- func GetPodSource(pod *corev1.Pod) (string, error)
- func InitPod(podTemplate *corev1.Pod) *corev1.Pod
- func IsCloneSetPod(ownerRefList []metav1.OwnerReference) bool
- func IsDaemonsetPod(ownerRefList []metav1.OwnerReference) bool
- func IsMirrorPod(pod *corev1.Pod) bool
- func IsPodTerminating(pod *corev1.Pod) bool
- func IsPodWithLocalStorage(pod *corev1.Pod) bool
- func IsStaticPod(pod *corev1.Pod) bool
- func PrintJson(r pkg.Printer) error
- func PrintYaml(r pkg.Printer) error
Constants ¶
View Source
const ( DefaultQPS = 10000 DefaultBurst = 20000 )
Variables ¶
This section is empty.
Functions ¶
func BuildKubeSchedulerCompletedConfig ¶
func BuildKubeSchedulerCompletedConfig(config, kubeconfig string) (*schedconfig.CompletedConfig, error)
func BuildRestConfig ¶
func BuildRestConfig(config string) (*restclient.Config, error)
func GetPodSource ¶
GetPodSource returns the source of the pod based on the annotation.
func IsCloneSetPod ¶
func IsCloneSetPod(ownerRefList []metav1.OwnerReference) bool
IsCloneSetPod returns true if the pod is a IsCloneSetPod.
func IsDaemonsetPod ¶
func IsDaemonsetPod(ownerRefList []metav1.OwnerReference) bool
IsDaemonsetPod returns true if the pod is a IsDaemonsetPod.
func IsMirrorPod ¶
IsMirrorPod returns true if the pod is a Mirror Pod.
func IsPodTerminating ¶
IsPodTerminating returns true if the pod DeletionTimestamp is set.
func IsPodWithLocalStorage ¶
IsPodWithLocalStorage returns true if the pod has local storage.
func IsStaticPod ¶
IsStaticPod returns true if the pod is a static pod.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.