Documentation ¶
Index ¶
Constants ¶
const ControllerName = "plank"
const (
Evicted = "Evicted"
)
PodStatus constants
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 IsTerminalError ¶
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 clusters 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 BuildClustes() call.
func TerminalError ¶
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" )