Documentation
¶
Index ¶
- func CreateMergePatch(original, new interface{}) ([]byte, error)
- func GetGangGroupId(s []string) string
- func GetGangMatchPolicyByPod(pod *v1.Pod) string
- func GetGangMinNumFromPod(pod *v1.Pod) (minNum int, err error)
- func GetGangNameByPod(pod *v1.Pod) string
- func GetId(namespace, name string) string
- func GetWaitTimeDuration(pg *v1alpha1.PodGroup, defaultTimeout time.Duration) time.Duration
- func IsPodNeedGang(pod *v1.Pod) bool
- func StringToGangGroupSlice(s string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMergePatch ¶
CreateMergePatch return patch generated from original and new interfaces
func GetGangGroupId ¶ added in v1.1.1
func GetGangMatchPolicyByPod ¶ added in v1.3.0
func GetGangMinNumFromPod ¶ added in v1.2.0
func GetGangNameByPod ¶
func GetWaitTimeDuration ¶ added in v1.2.0
GetWaitTimeDuration returns a wait timeout based on the following precedences: 1. spec.scheduleTimeoutSeconds of the given pg, if specified 2. fall back to defaultTimeout
func IsPodNeedGang ¶
func StringToGangGroupSlice ¶
StringToGangGroupSlice Parse gang group's annotation like :"["nsA/gangA","nsB/gangB"]" => goLang slice : []string{"nsA/gangA"."nsB/gangB"}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.