package
0.0.0-20240731153805-8f3d6417353c
Repository: https://github.com/hkust-adsl/kubernetes-scheduler-simulator.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
CreateClusterResourceFromClient returns a ResourceTypes struct by kube-client that connects a real cluster.
CreateClusterResourceFromClusterConfig return a ResourceTypes struct based on the cluster config.
GenerateValidPodsFromAppResources generate valid pods from resources.
GetAndSetSchedulerConfig gets scheduler CompletedConfig and sets the list of scheduler bind plugins to Simon.
GetObjectFromYamlContent decodes the yaml content and returns the kubernetes objects.
No description provided by the author
GetValidPodExcludeDaemonSet gets valid pod by resources exclude DaemonSet that needs to be handled specially.
No description provided by the author
No description provided by the author
No description provided by the author
MarkPodUnscheduledAnno will directly modify the input and add an unscheduled annotation.
MatchAndSetLocalStorageAnnotationOnNode add storage information configured by json file, belonging to the node that matches the json file name, to annotation of this node.
New generates all components that will be needed to simulate scheduling and returns a complete simulator.
No description provided by the author
Simulate is used for simulating and deploying apps in a cluster.
No description provided by the author
WithKubeConfig sets kubeconfig for Simulator, the default value is "".
WithSchedulerConfig sets schedulerConfig for Simulator, the default value is "".

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
An Item is something we manage in a priority queue.
No description provided by the author
Simulator is used to simulate a cluster and pods scheduling.

# Interfaces

No description provided by the author

# Type aliases

Option configures a Simulator.
A PriorityQueue implements heap.Interface and holds Items.