Documentation ¶
Index ¶
- Constants
- Variables
- func AllocLogToStrings(log []*dao.AllocationAskLogDAOInfo) []string
- func CreateDefaultConfigMap() *v1.ConfigMap
- func EnsureYuniKornConfigsPresent()
- func GetFailedHealthChecks() (string, error)
- func GetSchedulerPodName(kClient k8s.KubeCtl) (string, error)
- func GetYKHost() string
- func GetYKScheme() string
- func GetYKUrl() string
- func RestartYunikorn(kClient *k8s.KubeCtl)
- func RestartYunikornAndAddTolerations(kClient *k8s.KubeCtl, addTolerations bool, newTolerations []v1.Toleration)
- func RestoreConfigMapWrapper(oldConfigMap *v1.ConfigMap, annotation string)
- func RestorePortForwarding(kClient *k8s.KubeCtl)
- func UpdateConfigMapWrapper(oldConfigMap *v1.ConfigMap, schedPolicy string, annotation string)
- func UpdateCustomConfigMapWrapper(oldConfigMap *v1.ConfigMap, schedPolicy string, annotation string, ...)
- func UpdateCustomConfigMapWrapperWithMap(oldConfigMap *v1.ConfigMap, schedPolicy string, annotation string, ...)
- func WaitForAdmissionControllerRefreshConfAfterAction(action func())
- func WaitForQueueTS(queuePathStr string, ts string, timeout time.Duration) error
- func WaitForSchedPolicy(policy string, timeout time.Duration) error
- type AllStates
- type ApplicationStates
- type NodeStates
- type RClient
- func (c *RClient) AreAllExecPodsAllotted(partition string, queueName string, appID string, execPodCount int) wait.ConditionFunc
- func (c *RClient) GetAllAppInfos() (*dao.ApplicationsDAOInfo, error)
- func (c *RClient) GetAllocationLog(partition string, queueName string, appID string, podName string) ([]*dao.AllocationAskLogDAOInfo, error)
- func (c *RClient) GetAppInfo(partition string, queueName string, appID string) (*dao.ApplicationDAOInfo, error)
- func (c *RClient) GetApps(partition string, queueName string) ([]*dao.ApplicationDAOInfo, error)
- func (c *RClient) GetCompletedAppInfo(partition string, appID string) (*dao.ApplicationDAOInfo, error)
- func (c *RClient) GetConfig() (*dao.ConfigDAOInfo, error)
- func (c *RClient) GetFullStateDump() (string, error)
- func (c *RClient) GetGroupUsage(partition string, groupName string) (*dao.GroupResourceUsageDAOInfo, error)
- func (c *RClient) GetHealthCheck() (dao.SchedulerHealthDAOInfo, error)
- func (c *RClient) GetNodes(partition string) (*[]dao.NodeDAOInfo, error)
- func (c *RClient) GetPartitions(partition string) (*dao.PartitionQueueDAOInfo, error)
- func (c *RClient) GetQueue(partition string, queueName string) (*dao.PartitionQueueDAOInfo, error)
- func (c *RClient) GetQueues(partition string) (*dao.PartitionQueueDAOInfo, error)
- func (c *RClient) GetUserUsage(partition string, userName string) (*dao.UserResourceUsageDAOInfo, error)
- func (c *RClient) IsQueuePresent(partition string, queueName string) wait.ConditionFunc
- func (c *RClient) LogAppsInfo(ns string) error
- func (c *RClient) LogNodesInfo() error
- func (c *RClient) LogQueuesInfo() error
- func (c *RClient) ValidateSchedulerConfig(cm v1.ConfigMap) (*dao.ValidateConfResponse, error)
- func (c *RClient) WaitForAllocationLog(partition string, queueName string, appID string, podName string, timeout int) error
- func (c *RClient) WaitForAppStateTransition(partition string, queue string, appID string, state string, timeout int) error
- func (c *RClient) WaitForCompletedAppStateTransition(partition string, appID string, state string, timeout int) error
- func (c *RClient) WaitforQueueToAppear(partition string, queueName string, timeout int) error
- type ResourceUsage
Constants ¶
View Source
const DefaultPartition = "default"
Variables ¶
View Source
var AfterEach = ginkgo.AfterEach
View Source
var AfterSuite = ginkgo.AfterSuite
View Source
var BeEquivalentTo = gomega.BeEquivalentTo
View Source
var BeNil = gomega.BeNil
View Source
var BeforeEach = ginkgo.BeforeEach
View Source
var BeforeSuite = ginkgo.BeforeSuite
View Source
var By = ginkgo.By
View Source
var Describe = ginkgo.Describe
View Source
var Equal = gomega.Equal
View Source
var HaveOccurred = gomega.HaveOccurred
View Source
var It = ginkgo.It
View Source
var Ω = gomega.Expect
Functions ¶
func AllocLogToStrings ¶ added in v1.1.0
func AllocLogToStrings(log []*dao.AllocationAskLogDAOInfo) []string
func CreateDefaultConfigMap ¶ added in v1.2.0
func EnsureYuniKornConfigsPresent ¶ added in v1.2.0
func EnsureYuniKornConfigsPresent()
func GetFailedHealthChecks ¶
func GetSchedulerPodName ¶ added in v1.2.0
func GetYKScheme ¶
func GetYKScheme() string
func RestartYunikorn ¶ added in v1.2.0
func RestartYunikornAndAddTolerations ¶ added in v1.3.0
func RestartYunikornAndAddTolerations(kClient *k8s.KubeCtl, addTolerations bool, newTolerations []v1.Toleration)
func RestoreConfigMapWrapper ¶ added in v1.1.0
func RestorePortForwarding ¶ added in v1.2.0
func UpdateConfigMapWrapper ¶ added in v1.1.0
func UpdateCustomConfigMapWrapper ¶ added in v1.2.0
func UpdateCustomConfigMapWrapperWithMap ¶ added in v1.4.0
func WaitForAdmissionControllerRefreshConfAfterAction ¶ added in v1.4.0
func WaitForAdmissionControllerRefreshConfAfterAction(action func())
There is no available method to check whether the config in admission controller has been updated As a temporary solution, we are checking the update event using the informer, followed by a 1-second sleep. Please refer to YUNIKORN-1998 for more details
func WaitForQueueTS ¶ added in v1.1.0
Expects queuePath to use periods as delimiters. ie "root.queueA.child"
Types ¶
type AllStates ¶
type AllStates struct { Application *ApplicationStates Node *NodeStates }
type ApplicationStates ¶
type NodeStates ¶
type RClient ¶
func (*RClient) AreAllExecPodsAllotted ¶
func (*RClient) GetAllAppInfos ¶ added in v1.2.0
func (c *RClient) GetAllAppInfos() (*dao.ApplicationsDAOInfo, error)
func (*RClient) GetAllocationLog ¶ added in v1.1.0
func (*RClient) GetAppInfo ¶
func (*RClient) GetCompletedAppInfo ¶ added in v1.5.0
func (*RClient) GetConfig ¶ added in v1.5.0
func (c *RClient) GetConfig() (*dao.ConfigDAOInfo, error)
func (*RClient) GetFullStateDump ¶ added in v1.5.0
func (*RClient) GetGroupUsage ¶ added in v1.4.0
func (*RClient) GetHealthCheck ¶
func (c *RClient) GetHealthCheck() (dao.SchedulerHealthDAOInfo, error)
func (*RClient) GetNodes ¶ added in v1.2.0
func (c *RClient) GetNodes(partition string) (*[]dao.NodeDAOInfo, error)
func (*RClient) GetPartitions ¶
func (c *RClient) GetPartitions(partition string) (*dao.PartitionQueueDAOInfo, error)
func (*RClient) GetQueues ¶
func (c *RClient) GetQueues(partition string) (*dao.PartitionQueueDAOInfo, error)
func (*RClient) GetUserUsage ¶ added in v1.4.0
func (*RClient) IsQueuePresent ¶ added in v1.3.0
func (c *RClient) IsQueuePresent(partition string, queueName string) wait.ConditionFunc
func (*RClient) LogAppsInfo ¶ added in v1.2.0
func (*RClient) LogNodesInfo ¶ added in v1.2.0
func (*RClient) LogQueuesInfo ¶ added in v1.2.0
func (*RClient) ValidateSchedulerConfig ¶
func (*RClient) WaitForAllocationLog ¶ added in v1.1.0
func (*RClient) WaitForAppStateTransition ¶
func (*RClient) WaitForCompletedAppStateTransition ¶ added in v1.5.0
type ResourceUsage ¶
type ResourceUsage struct {
// contains filtered or unexported fields
}
func (*ResourceUsage) GetCPU ¶ added in v1.3.0
func (r *ResourceUsage) GetCPU() res.Quantity
func (*ResourceUsage) GetMemory ¶
func (r *ResourceUsage) GetMemory() res.Quantity
func (*ResourceUsage) GetResourceValue ¶ added in v1.2.0
func (r *ResourceUsage) GetResourceValue(resourceName string) int64
func (*ResourceUsage) ParseResourceUsage ¶
func (r *ResourceUsage) ParseResourceUsage(resource map[string]int64)
Click to show internal directories.
Click to hide internal directories.