Version: v1.22.4 Latest Latest

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 22 Imported by: 16




This section is empty.


View Source
var AppArmorDistros = []string{"gci", "ubuntu"}

AppArmorDistros are distros with AppArmor support


func RunIfContainerRuntimeIs

func RunIfContainerRuntimeIs(runtimes ...string)

RunIfContainerRuntimeIs runs if the container runtime is included in the runtimes.

func RunIfSystemSpecNameIs

func RunIfSystemSpecNameIs(names ...string)

RunIfSystemSpecNameIs runs if the system spec name is included in the names.

func SkipIfAppArmorNotSupported

func SkipIfAppArmorNotSupported()

SkipIfAppArmorNotSupported skips if the AppArmor is not supported by the node OS distro.

func SkipIfCSIMigrationEnabled added in v1.22.0

func SkipIfCSIMigrationEnabled()

func SkipIfMissingResource

func SkipIfMissingResource(dynamicClient dynamic.Interface, gvr schema.GroupVersionResource, namespace string)

SkipIfMissingResource skips if the gvr resource is missing.

func SkipIfMultizone

func SkipIfMultizone(c clientset.Interface)

SkipIfMultizone skips if the cluster has multizone.

func SkipIfNodeOSDistroIs

func SkipIfNodeOSDistroIs(unsupportedNodeOsDistros ...string)

SkipIfNodeOSDistroIs skips if the node OS distro is included in the unsupportedNodeOsDistros.

func SkipIfProviderIs

func SkipIfProviderIs(unsupportedProviders ...string)

SkipIfProviderIs skips if the provider is included in the unsupportedProviders.

func SkipUnlessAtLeast

func SkipUnlessAtLeast(value int, minValue int, message string)

SkipUnlessAtLeast skips if the value is less than the minValue.

func SkipUnlessComponentRunsAsPodsAndClientCanDeleteThem added in v1.20.0

func SkipUnlessComponentRunsAsPodsAndClientCanDeleteThem(componentName string, c clientset.Interface, ns string, labelSet labels.Set)

SkipUnlessComponentRunsAsPodsAndClientCanDeleteThem run if the component run as pods and client can delete them

func SkipUnlessDownwardAPIHugePagesEnabled added in v1.21.0

func SkipUnlessDownwardAPIHugePagesEnabled()

func SkipUnlessExecProbeTimeoutEnabled added in v1.21.0

func SkipUnlessExecProbeTimeoutEnabled()

func SkipUnlessLocalEphemeralStorageEnabled

func SkipUnlessLocalEphemeralStorageEnabled()

SkipUnlessLocalEphemeralStorageEnabled skips if the LocalStorageCapacityIsolation is not enabled.

func SkipUnlessMasterOSDistroIs

func SkipUnlessMasterOSDistroIs(supportedMasterOsDistros ...string)

SkipUnlessMasterOSDistroIs skips if the master OS distro is not included in the supportedMasterOsDistros.

func SkipUnlessMultizone

func SkipUnlessMultizone(c clientset.Interface)

SkipUnlessMultizone skips if the cluster does not have multizone.

func SkipUnlessNodeCountIsAtLeast

func SkipUnlessNodeCountIsAtLeast(minNodeCount int)

SkipUnlessNodeCountIsAtLeast skips if the number of nodes is less than the minNodeCount.

func SkipUnlessNodeCountIsAtMost

func SkipUnlessNodeCountIsAtMost(maxNodeCount int)

SkipUnlessNodeCountIsAtMost skips if the number of nodes is greater than the maxNodeCount.

func SkipUnlessNodeOSArchIs added in v1.19.0

func SkipUnlessNodeOSArchIs(supportedNodeOsArchs ...string)

SkipUnlessNodeOSArchIs skips if the node OS distro is not included in the supportedNodeOsArchs.

func SkipUnlessNodeOSDistroIs

func SkipUnlessNodeOSDistroIs(supportedNodeOsDistros ...string)

SkipUnlessNodeOSDistroIs skips if the node OS distro is not included in the supportedNodeOsDistros.

func SkipUnlessProviderIs

func SkipUnlessProviderIs(supportedProviders ...string)

SkipUnlessProviderIs skips if the provider is not included in the supportedProviders.

func SkipUnlessSSHKeyPresent

func SkipUnlessSSHKeyPresent()

SkipUnlessSSHKeyPresent skips if no SSH key is found.

func SkipUnlessServerVersionGTE

func SkipUnlessServerVersionGTE(v *utilversion.Version, c discovery.ServerVersionInterface)

SkipUnlessServerVersionGTE skips if the server version is less than v.

func Skipf

func Skipf(format string, args ...interface{})

Skipf skips with information about why the test is being skipped.


type SkipPanic

type SkipPanic struct {
	Message        string // The failure message passed to Fail
	Filename       string // The filename that is the source of the failure
	Line           int    // The line number of the filename that is the source of the failure
	FullStackTrace string // A full stack trace starting at the source of the failure

SkipPanic is the value that will be panicked from Skip.

func (SkipPanic) String

func (SkipPanic) String() string

String makes SkipPanic look like the old Ginkgo panic when printed.

Source Files

Jump to

Keyboard shortcuts

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