Documentation
¶
Overview ¶
Package tobiko provides constants and utilities for OpenStack Tobiko testing functionality
Index ¶
- Constants
- Variables
- func GetConfigMapName(instance *testv1beta1.Tobiko, infix string, workflowStepIndex int) string
- func GetVolumeMounts(instance *testv1beta1.Tobiko, mountCerts bool, mountKeys bool, ...) []corev1.VolumeMount
- func GetVolumes(instance *testv1beta1.Tobiko, logsPVCName string, mountCerts bool, ...) []corev1.Volume
- func Pod(instance *testv1beta1.Tobiko, labels map[string]string, ...) *corev1.Pod
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.
Click to show internal directories.
Click to hide internal directories.