Documentation ¶
Overview ¶
Package apiserver implements the logic to perform the tests concerning the interaction with the local API server from an offloaded pod.
Index ¶
- Constants
- func CreateKubectlJob(ctx context.Context, cl client.Client, namespace string, v *version.Info) error
- func CreateRoleBinding(ctx context.Context, cl client.Client, namespace string) error
- func CreateServiceAccount(ctx context.Context, cl client.Client, namespace string) error
- func RetrieveJobLogs(ctx context.Context, cl kubernetes.Interface, namespace string) (podName, retrieved string, err error)
Constants ¶
View Source
const (
// JobName -> the name of the tester job.
JobName = "kubectl"
)
Variables ¶
This section is empty.
Functions ¶
func CreateKubectlJob ¶
func CreateKubectlJob(ctx context.Context, cl client.Client, namespace string, v *version.Info) error
CreateKubectlJob creates the offloaded kubectl job to perform a request on the remote API server.
func CreateRoleBinding ¶
CreateRoleBinding creates the role binding granting the appropriate permissions to the service account.
func CreateServiceAccount ¶
CreateServiceAccount creates the service account leveraged by the kubectl pod.
func RetrieveJobLogs ¶
func RetrieveJobLogs(ctx context.Context, cl kubernetes.Interface, namespace string) (podName, retrieved string, err error)
RetrieveJobLogs retrieves the logs from the offloaded kubectl pod.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.