Documentation ¶
Overview ¶
Package internal separates out some of the internal builder logic from the top level execaccessbuilder package to make it easier to see the interface-implementing methods as separate from the backend business logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PodPhaseRunning = corev1.PodRunning
PodPhaseRunning is exposed here so that we can reconfigure the search during tests to look for Pending pods.
Functions ¶
func GetPod ¶
func GetPod( ctx context.Context, client client.Client, req *v1alpha1.ExecAccessRequest, tmpl *v1alpha1.ExecAccessTemplate, ) (pod *corev1.Pod, err error)
GetPod is used to discover the target pod that the user is going to have access to. This function is designed to be idempotent - so once a pod name has been selected, it will be used on each and every reconcile going forward.
Returns:
pod: *corev1.Pod of an existing pod (or nil in a failure) error: Any errors generating the podName.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.