Documentation ¶
Index ¶
Constants ¶
View Source
const (
ListLength = 100
)
Variables ¶
Functions ¶
Types ¶
type ImportCache ¶
type ImportCache struct { Namespaces []string MappingRules MappingRules LocalQueues map[string]map[string]*kueue.LocalQueue ClusterQueues map[string]*kueue.ClusterQueue ResourceFlavors map[kueue.ResourceFlavorReference]*kueue.ResourceFlavor PriorityClasses map[string]*schedulingv1.PriorityClass AddLabels map[string]string }
func LoadImportCache ¶
func LoadImportCache(ctx context.Context, c client.Client, namespaces []string, mappingRules MappingRules, addLabels map[string]string) (*ImportCache, error)
func (*ImportCache) ClusterQueue ¶
func (mappingCache *ImportCache) ClusterQueue(p *corev1.Pod) (*kueue.ClusterQueue, bool, error)
func (*ImportCache) LocalQueue ¶
func (mappingCache *ImportCache) LocalQueue(p *corev1.Pod) (*kueue.LocalQueue, bool, error)
type MappingMatch ¶
type MappingRule ¶
type MappingRule struct { Match MappingMatch `json:"match"` ToLocalQueue string `json:"toLocalQueue"` Skip bool `json:"skip"` }
type MappingRules ¶
type MappingRules []MappingRule
func MappingRulesForLabel ¶
func MappingRulesForLabel(label string, m map[string]string) MappingRules
func MappingRulesFromFile ¶
func MappingRulesFromFile(mappingFile string) (MappingRules, error)
type ProcessSummary ¶
type ProcessSummary struct { TotalPods int SkippedPods int FailedPods int ErrorsForPods map[string][]string Errors []error }
func ConcurrentProcessPod ¶
Click to show internal directories.
Click to hide internal directories.