integration

package
v0.0.0-...-db62745 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

README

Integration Tests

This suite is testing Eirini with a real K8s cluster. For that, it expects the path to a valid kubeconfig file as INTEGRATION_KUBECONFIG environment variable. If INTEGRATION_KUBECONFIG is not provided, this will default to ~/.kube/config.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfigFile

func CreateConfigFile(config interface{}) (*os.File, error)

func CreateEmptySecret

func CreateEmptySecret(namespace, secretName string, clientset kubernetes.Interface) error

func CreateSecretWithStringData

func CreateSecretWithStringData(namespace, secretName string, clientset kubernetes.Interface, stringData map[string]string) error

func CreateTestServer

func CreateTestServer(certPath, keyPath, caCertPath string) (*ghttp.Server, error)

func DefaultAPIConfig

func DefaultAPIConfig(namespace string, tlsPort int) *eirini.APIConfig

func DefaultControllerConfig

func DefaultControllerConfig(namespace string) *eirini.ControllerConfig

func GetPDB

func GetPDB(clientset kubernetes.Interface, namespace, lrpGUID, lrpVersion string) policyv1.PodDisruptionBudget

func GetPDBItems

func GetPDBItems(clientset kubernetes.Interface, namespace, lrpGUID, lrpVersion string) ([]policyv1.PodDisruptionBudget, error)

func GetRegistrySecretName

func GetRegistrySecretName(clientset kubernetes.Interface, namespace, taskGUID, secretName string) string

func GetStatefulSet

func GetStatefulSet(clientset kubernetes.Interface, namespace, guid, version string) *appsv1.StatefulSet

func GetTaskJobConditions

func GetTaskJobConditions(clientset kubernetes.Interface, namespace, taskGUID string) func() []batchv1.JobCondition

func ListJobs