ansibletest

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: 5 Imported by: 0

Documentation

Overview

Package ansibletest provides constants and utilities for Ansible-based testing functionality

Index

Constants

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

	// AnsibleTest is the definition of the ansibletest group
	AnsibleTest storage.PropagationType = "AnsibleTest"

	// PodRunAsUser is the UID to run the AnsibleTest pod as
	PodRunAsUser = int64(227)

	// PodRunAsGroup is the GID to run the AnsibleTest pod as
	PodRunAsGroup = int64(227)
)

Variables

View Source
var (
	// AnsibleTestPropagation is the definition of the Ansible Test propagation service
	AnsibleTestPropagation = []storage.PropagationType{AnsibleTest}

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

Functions

func GetVolumeMounts

func GetVolumeMounts(
	instance *testv1beta1.AnsibleTest,
	mountCerts bool,
	svc []storage.PropagationType,
	externalWorkflowCounter int,
) []corev1.VolumeMount

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

func GetVolumes

func GetVolumes(
	instance *testv1beta1.AnsibleTest,
	logsPVCName string,
	mountCerts bool,
	svc []storage.PropagationType,
	externalWorkflowCounter int,
) []corev1.Volume

GetVolumes - returns a list of volumes for the test pod

func Pod

func Pod(
	instance *testv1beta1.AnsibleTest,
	labels map[string]string,
	podName string,
	logsPVCName string,
	mountCerts bool,
	envVars map[string]env.Setter,
	externalWorkflowCounter int,
	containerImage string,
) *corev1.Pod

Pod - prepare pod to run AnsibleTests tests

Types

This section is empty.

Jump to

Keyboard shortcuts

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