config

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: EPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Name of the current DevWorkspace
	DevWorkspaceName string

	// Namespace for the current DevWorkspace
	DevWorkspaceNamespace string

	// ID for the current DevWorkspace
	DevWorkspaceID string

	// URL to listen on (default :4444)
	URL string

	// AuthenticatedUserID OpenShift UID of user authorized to access DevWorksapce. Required; may be specified as empty
	// string for users that do not have a UID (e.g. kubeadmin)
	AuthenticatedUserID string

	// IdleTimeout is a inactivity period after which workspace should be stopped
	// Default -1, which mean - does not stop
	IdleTimeout time.Duration

	// StopRetryPeriod is a period after which workspace should be tried to stop if the previous try failed
	// Defaults 10 second
	StopRetryPeriod time.Duration

	// PodSelector set of labels to be used as selector for getting workspace pod.
	// Default value is controller.devfile.io/devworkspace_id=${DEVWORKSPACE_ID}
	PodSelector string

	// UseTLS (deprecated) kept for compatibility but if specified must have 'true' value
	UseTLS bool

	// UseBearerToken (deprecated) kept for compatibility but if specified must have 'true' value
	UseBearerToken bool
)

Functions

func ParseConfig

func ParseConfig() error

func ResetConfigForTest

func ResetConfigForTest()

Types

This section is empty.

Jump to

Keyboard shortcuts

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