Versions in this module Expand all Collapse all v0 v0.0.1 Feb 15, 2023 Changes in this version + const DefaultNamespace + var CleanupTestNamespace = EnvWithDefaultBool("TEST_NAMESPACE_DELETE", true) + var MultiNamespace = Namespace != OperatorNamespace + var MysqlConfigMap = &corev1.ConfigMap + var MysqlConnectionSecret = &corev1.Secret + var MysqlDeployment = &appsv1.Deployment + var MysqlService = &corev1.Service + var Namespace = EnvWithDefault("TEST_NAMESPACE", DefaultNamespace) + var OperatorNamespace = EnvWithDefault("TEST_OPERATOR_NAMESPACE", DefaultNamespace) + var OutputDir = EnvWithDefault("TEST_OUTPUT_DIR", os.TempDir() + "/gingersnap-operator") + func EnvWithDefault(name, defValue string) string + func EnvWithDefaultBool(name string, defValue bool) bool + func WithDefault(value, defValue string) string + type TestClient struct + Ctx context.Context + Rest rest.Interface + func (c *TestClient) DeleteAllForeground(set map[string]string, obj runtimeClient.Object) error + func (c *TestClient) Logs(pod, container, namespace string) (string, error) + func (c *TestClient) WriteAllResourcesToFile(dir string) + func (c *TestClient) WriteKindToFile(dir, namespace, suffix string, list runtimeClient.ObjectList, set labels.Set)