Documentation
¶
Index ¶
- Constants
- func CmdEnv(cmd *exec.Cmd, c Cluster) *exec.Cmd
- func DeleteTestCluster(clusterName string) error
- func Initialize(t *testing.T)
- func KindClusterKubeconfig(name string) ([]byte, error)
- func LoggingInfra(ctx context.Context, t *testing.T, c client.Client, nsInfra string, ...)
- func LoggingRoute(ctx context.Context, t *testing.T, c client.Client)
- func LoggingTenant(ctx context.Context, t *testing.T, c client.Client, ...)
- func RequireNoError(t *testing.T, err error)
- func Resource(obj client.Object, ns, name string) client.Object
- func SetupCurlPod(ctx context.Context, c client.Client, namespace, name string, ...) (*corev1.Pod, error)
- func WaitForPodReady(ctx context.Context, c client.Client, pod *corev1.Pod, ...) error
- func WithCluster(name string, t *testing.T, fn func(*testing.T, Cluster), ...)
- type Cluster
- type PrintLogConfig
Constants ¶
View Source
const ( FluentdImageRepo = "fluentd-full" FluentdImageTag = "local" ConfigReloaderRepo = "config-reloader" ConfigReloaderTag = "local" SyslogNGReloaderRepo = "syslog-ng-reloader" SyslogNGReloaderTag = "local" FluentdDrainWatchRepo = "fluentd-drain-watch" FluentdDrainWatchTag = "local" NodeExporterRepo = "node-exporter" NodeExporterTag = "local" )
View Source
const KindClusterCreationTimeout = "3m"
KindClusterCreationTimeout is passed to `kind create cluster --wait`, which bounds only the last of kind's actions, waiting for control plane readiness. The whole invocation is bounded by Kind.CommandTimeout instead.
Variables ¶
This section is empty.
Functions ¶
func DeleteTestCluster ¶
func Initialize ¶
func KindClusterKubeconfig ¶
func LoggingInfra ¶
func LoggingTenant ¶
func RequireNoError ¶
func SetupCurlPod ¶
func SetupCurlPod(ctx context.Context, c client.Client, namespace, name string, pollInterval, pollTimeout time.Duration) (*corev1.Pod, error)
SetupCurlPod creates a curl pod for testing HTTP endpoints and waits for it to be ready
Types ¶
type Cluster ¶
type PrintLogConfig ¶
Click to show internal directories.
Click to hide internal directories.