options

package
v0.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// The port where the debugger listens for remote connections
	// ( This is a port on the container that runs the debugger )
	DebuggerPort = 1235
	// OutPort is proxied by the debug-container process so that it can detect disconnections and terminate the debug session.
	// TODO(mitchdraft) - import this value from a common place (across squash and its IDE extensions)
	OutPort = 1236

	// The name used inside of a pod spec to refer to the container that runs the debugger
	PlankContainerName = "plank"

	// The root name (of the container image repo name) that will be shared among debugger-specific containers
	// Examples of particular container names: <RootName>-dlv, <RootName>-gdb, etc.
	ParticularContainerRootName = PlankContainerName

	SquashLabelSelectorKey    = "squash"
	SquashLabelSelectorValue  = PlankContainerName
	SquashLabelSelectorString = fmt.Sprintf("%v=%v", SquashLabelSelectorKey, SquashLabelSelectorValue)

	// TODO(mitchdraft) - enable these debuggers
	// AvailableDebuggers = []string{"dlv", "gdb", "java", "java-port", "nodejs", "nodejs8", "python"}
	AvailableDebuggers = []string{"dlv", "java", "java-port"}

	SquashNamespace = "squash-debugger"

	// squash permissions
	SquashServiceAccountName     = "squash"
	SquashClusterRoleName        = "squash-cr-pods"
	SquashClusterRoleBindingName = "squash-crb-pods"

	// plank permissions
	PlankServiceAccountName     = "squash-plank"
	PlankClusterRoleName        = "squash-plank-cr"
	PlankClusterRoleBindingName = "squash-plank-crb"

	PlankEnvDebugAttachmentNamespace = "SQUASH_DEBUG_ATTACHMENT_NAMESPACE"
	PlankEnvDebugAttachmentName      = "SQUASH_DEBUG_ATTACHMENT_NAME"

	KubeEnvPodName = "HOSTNAME"

	// This value is set in the Dockerfile
	PlankDockerEnvDebuggerType = "DEBUGGER"
)

Functions

func GeneratePlankLabels

func GeneratePlankLabels(da *core.ResourceRef) map[string]string

GeneratePlankLabels returns labels that associate a plank with a given debug attachment

Types

This section is empty.

Jump to

Keyboard shortcuts

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