Documentation
¶
Overview ¶
Package horizontest provides constants and utilities for horizon testing functionality
Index ¶
- Constants
- Variables
- func GetVolumeMounts(instance *testv1beta1.HorizonTest, mountCerts bool, mountKubeconfig bool, ...) []corev1.VolumeMount
- func GetVolumes(instance *testv1beta1.HorizonTest, logsPVCName string, mountCerts bool, ...) []corev1.Volume
- func Pod(instance *testv1beta1.HorizonTest, labels map[string]string, podName string, ...) *corev1.Pod
Constants ¶
View Source
const ( // ServiceName is the name of the horizon test service ServiceName = "horizontest" // HorizonTest is the definition of the horizontest group HorizonTest storage.PropagationType = "HorizonTest" // PodRunAsUser is the UID to run the HorizonTest pod as PodRunAsUser = int64(42455) // PodRunAsGroup is the GID to run the HorizonTest pod as PodRunAsGroup = int64(42455) )
Variables ¶
View Source
var ( // HorizonTestPropagation is the definition of the HorizonTest propagation service HorizonTestPropagation = []storage.PropagationType{HorizonTest} // PodCapabilities defines the Linux capabilities for HorizonTest pods PodCapabilities = []corev1.Capability{"NET_ADMIN", "NET_RAW"} )
Functions ¶
func GetVolumeMounts ¶
func GetVolumeMounts( instance *testv1beta1.HorizonTest, mountCerts 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.HorizonTest, logsPVCName string, mountCerts bool, mountKubeconfig bool, svc []storage.PropagationType, ) []corev1.Volume
GetVolumes - returns a list of volumes for the test pod
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.