apiserver

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

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

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

func CreateRoleBinding(ctx context.Context, cl client.Client, namespace string) error

CreateRoleBinding creates the role binding granting the appropriate permissions to the service account.

func CreateServiceAccount

func CreateServiceAccount(ctx context.Context, cl client.Client, namespace string) error

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.

Jump to

Keyboard shortcuts

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