internal

package
v0.0.0-...-cd07ea3 Latest Latest
Warning

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

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

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.

Jump to

Keyboard shortcuts

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