Documentation
¶
Index ¶
- Constants
- func CheckMinimumKernelVersion(t testing.TB, minKernelVersion string) bool
- func GetKernelVersion(t testing.TB) *kernel.VersionInfo
- func InitUnitTest(t testing.TB)
- func MinimumKernelVersion(t testing.TB, minKernelVersion string)
- func RemoveMemlock(t testing.TB)
- func RequireEnvironmentVariables(t testing.TB)
- func SkipK8sDistros(t testing.TB, distros ...string)
Constants ¶
View Source
const ( K8sDistroAKSAzureLinux = "aks-AzureLinux" K8sDistroAKSUbuntu = "aks-Ubuntu" K8sDistroARO = "aro" K8sDistroMinikubeGH = "minikube-github" K8sDistroEKSAmazonLinux = "eks-AmazonLinux" K8sDistroGKECOS = "gke-COS_containerd" )
View Source
const ( BusyBoxImage = "ghcr.io/inspektor-gadget/ci/busybox:latest" NginxImage = "ghcr.io/inspektor-gadget/ci/nginx:latest" GccImage = "ghcr.io/inspektor-gadget/ci/gcc:latest" NetworkMultitoolImage = "ghcr.io/inspektor-gadget/ci/network-multitool:latest" )
Variables ¶
This section is empty.
Functions ¶
func CheckMinimumKernelVersion ¶ added in v0.39.0
CheckMinimumKernelVersion returns true if the current kernel version is less than minKernelVersion. When used in Kubernetes, it gets the kernel version from a random node in the cluster.
func GetKernelVersion ¶ added in v0.39.0
func GetKernelVersion(t testing.TB) *kernel.VersionInfo
GetKernelVersion returns the kernel version of the current node. When used in Kubernetes, it gets the kernel version from a random node in the cluster.
func InitUnitTest ¶ added in v0.35.0
func MinimumKernelVersion ¶ added in v0.35.0
MinimumKernelVersion skips the test if the current kernel version is less than minKernelVersion. When used in Kubernetes, it gets the kernel version from a random node in the cluster.
func RemoveMemlock ¶ added in v0.35.0
func SkipK8sDistros ¶ added in v0.38.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.