configmanager

package
v1.4.0-1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestResultsPath = "test_results/"

	// LogPerm is the permission for files that are created by this framework
	// that contain logs, outputs etc
	LogPerm = os.FileMode(0666)

	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"
	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"

	// 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