configmanager

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestResultsPath = "test_results/"

	// LogPath is the path to store the dumped log files and should be equal to the artifact path set in pre-commit.yaml.
	LogPath = "build/e2e/"

	YKScheduler          = "yunikorn-scheduler"
	YKSchedulerContainer = "yunikorn-scheduler-k8s"
	SchedulerName        = "yunikorn"
	YKAdmCtrl            = "yunikorn-admission-controller"
	YKSvcName            = "yunikorn-service" // YuniKorn service name
	YKDeploymentName     = "yunikorn-scheduler"

	YKAdmCtrlName = "yunikorn-admission-controller-service" // YuniKorn Admission controller serivce name

	// REST endpoints of YuniKorn
	PartitionsPath    = "ws/v1/partitions"
	QueuesPath        = "ws/v1/partition/%s/queues"
	AppsPath          = "ws/v1/partition/%s/queue/%s/applications"
	AppPath           = "ws/v1/partition/%s/queue/%s/application/%s"
	CompletedAppsPath = "ws/v1/partition/%s/applications/completed"
	ConfigPath        = "ws/v1/config"
	ClustersPath      = "ws/v1/clusters"
	NodesPath         = "ws/v1/partition/%s/nodes"
	UserUsagePath     = "ws/v1/partition/%s/usage/user/%s"
	GroupUsagePath    = "ws/v1/partition/%s/usage/group/%s"
	HealthCheckPath   = "ws/v1/scheduler/healthcheck"
	ValidateConfPath  = "ws/v1/validate-conf"
	FullStateDumpPath = "ws/v1/fullstatedump"

	// YuniKorn Service Details
	DefaultYuniKornHost   = "localhost"
	DefaultYuniKornPort   = "9080"
	DefaultYuniKornScheme = "http"

	DefaultYuniKornConfigMap = "yunikorn-configs"
	DefaultPluginConfigMap   = "yunikorn-configs"
	DefaultPolicyGroup       = "queues.yaml"

	// Queues
	RootQueue = "root"

	// Partitions
	DefaultPartition = "default"
)

Variables

View Source
var YuniKornTestConfig = YuniKornTestConfigType{}

YuniKornTestConfig holds the global configuration of commandline flags in the ginkgo-based testing environment.

Functions

func GetConfigMapName added in v1.2.0

func GetConfigMapName() string

Types

type YuniKornTestConfigType

type YuniKornTestConfigType struct {
	JSONLogs    bool
	LogLevel    string
	Timeout     time.Duration
	KubeConfig  string
	LogFile     string
	YkNamespace string
	YkHost      string
	YkPort      string
	YkScheme    string
	LogDir      string
	Plugin      bool
}

YuniKornTestConfigType holds all configurable elements of the testsuite

func (*YuniKornTestConfigType) ParseFlags

func (c *YuniKornTestConfigType) ParseFlags()

ParseFlags parses commandline flags relevant to testing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL