plank

package
v0.0.0-...-4359601 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "plank"
View Source
const (
	Evicted = "Evicted"
)

PodStatus constants

View Source
const (
	// NodeUnreachablePodReason is the reason on a pod when its state cannot be confirmed as kubelet is unresponsive
	// on the node it is (was) running.
	NodeUnreachablePodReason = "NodeLost"
)

NodeStatus constants

Variables

This section is empty.

Functions

func Add

func Add(
	mgr controllerruntime.Manager,
	buildMgrs map[string]controllerruntime.Manager,
	knownClusters map[string]rest.Config,
	cfg config.Getter,
	opener io.Opener,
	totURL string,
	additionalSelector string,
) error

func IsTerminalError

func IsTerminalError(err error) bool

func RequiredTestPodVerbs

func RequiredTestPodVerbs() []string

RequiredTestPodVerbs returns a list of verbs that we expect to be able to have permissions for when interacting with the test pods. This is used during startup to check that we have the necessary authorizations on build clusters.

NOTE: Setting up build cluster managers is tricky because if we don't have the required permissions, the controller manager setup machinery (library code, not our code) can return an error and this can essentially result in a fatal error, resulting in a crash loop on startup. Although other components such as crier, deck, and hook also need to talk to build clusters, we only perform this preemptive requiredTestPodVerbs check for PCM and sinker because only these latter components make use of the BuildClusterManagers() call.

func TerminalError

func TerminalError(err error) error

TerminalError wraps an error and return a nonRetryableError error

Types

type ClusterStatus

type ClusterStatus string
const (
	ClusterStatusReachable          ClusterStatus = "Reachable"
	ClusterStatusNoManager          ClusterStatus = "No-Manager"
	ClusterStatusError              ClusterStatus = "Error"
	ClusterStatusMissingPermissions ClusterStatus = "MissingPermissions"
)

Jump to

Keyboard shortcuts

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