tobiko

package
v0.0.0-...-9117f35 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package tobiko provides constants and utilities for OpenStack Tobiko testing functionality

Index

Constants

View Source
const (
	// ServiceName - tobiko service name
	ServiceName = "tobiko"

	// Tobiko is the definition of the tobiko group
	Tobiko storage.PropagationType = "Tobiko"

	// PodRunAsUser is the UID to run the Tobiko pod as
	PodRunAsUser = int64(42495)

	// PodRunAsGroup is the GID to run the Tobiko pod as
	PodRunAsGroup = int64(42495)
)
View Source
const (
	ConfigMapInfixConfig     = "-" + tobikoConfig + "-"
	ConfigMapInfixPrivateKey = "-" + tobikoPrivateKey + "-"
	ConfigMapInfixPublicKey  = "-" + tobikoPublicKey + "-"
)

ConfigMap name infixes used to construct workflow-step-specific ConfigMap names

View Source
const (
	ConfigFileName     = "tobiko.conf"
	PrivateKeyFileName = "id_ecdsa"
	PublicKeyFileName  = "id_ecdsa.pub"
)

ConfigMap data key names for file contents

Variables

View Source
var (
	// TobikoPropagation is the definition of the Tobiko propagation service
	TobikoPropagation = []storage.PropagationType{Tobiko}

	// PodCapabilities defines the Linux capabilities for Tobiko pods
	PodCapabilities = []corev1.Capability{"NET_ADMIN", "NET_RAW"}
)

Functions

func GetConfigMapName

func GetConfigMapName(instance *testv1beta1.Tobiko, infix string, workflowStepIndex int) string

GetConfigMapName returns the name of the custom data ConfigMap for the given workflow step

func GetVolumeMounts

func GetVolumeMounts(
	instance *testv1beta1.Tobiko,
	mountCerts bool,
	mountKeys bool,
	mountKubeconfig bool,
	svc []storage.PropagationType,
) []corev1.VolumeMount

GetVolumeMounts - returns a list of volume mounts for the test container

func GetVolumes

func GetVolumes(
	instance *testv1beta1.Tobiko,
	logsPVCName string,
	mountCerts bool,
	mountKeys bool,
	mountKubeconfig bool,
	workflowStepIndex int,
	svc []storage.PropagationType,
) []corev1.Volume

GetVolumes - returns a list of volumes for the test pod

func Pod

func Pod(
	instance *testv1beta1.Tobiko,
	labels map[string]string,
	annotations map[string]string,
	podName string,
	logsPVCName string,
	mountCerts bool,
	mountKeys bool,
	mountKubeconfig bool,
	workflowStepIndex int,
	envVars map[string]env.Setter,
	containerImage string,
) *corev1.Pod

Pod - prepare pod to run Tobiko tests

Types

This section is empty.

Jump to

Keyboard shortcuts

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