util

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSocketDir = "/tmp/klog-socks" // Default directory storing socket files
	SocketSuffix     = "-klog.sock"
	SocketDirEnvName = "DEBUG_SOCKET_DIR"
)

Variables

This section is empty.

Functions

func GenerateComponentName

func GenerateComponentName(schedulerNames []string) string

GenerateComponentName generate component name volcano

func GenerateSchedulerName

func GenerateSchedulerName(schedulerNames []string) string

GenerateSchedulerName generate scheduler name for volcano job

func LeaderElectionDefault added in v1.10.0

func LeaderElectionDefault(l *config.LeaderElectionConfiguration)

LeaderElectionDefault set the LeaderElectionConfiguration struct fields default value

func ListenAndServeKlogLogLevel added in v1.9.0

func ListenAndServeKlogLogLevel(componentName string, startupLogLevel string, socketDir string)

ListenAndServeKlogLogLevel registers a server on specific component to handle the HTTP request which set/get klog log level

Types

This section is empty.

Jump to

Keyboard shortcuts

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