skipper

package
v1.29.3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 15 Imported by: 51

Documentation

Index

Constants

This section is empty.

Variables

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

AppArmorDistros are distros with AppArmor support

Functions

func InitFeatureGates added in v1.25.0

func InitFeatureGates(defaults featuregate.FeatureGate, overrides map[string]bool) error

InitFeatureGates must be called in test suites that have a --feature-gates parameter. If not called, SkipUnlessFeatureGateEnabled and SkipIfFeatureGateEnabled will record a test failure.

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 SkipIfFeatureGateEnabled added in v1.23.0

func SkipIfFeatureGateEnabled(gate featuregate.Feature)

SkipIfFeatureGateEnabled skips if the feature is enabled.

Beware that this only works in test suites that have a --feature-gate parameter and call InitFeatureGates. In test/e2e, the `Feature: XYZ` tag has to be used instead and invocations have to make sure that they only run tests that work with the given test cluster.

func SkipIfIPv6 added in v1.24.0

func SkipIfIPv6(unsupportedProviders ...string)

SkipIfIPv6 skips if the cluster IP family is IPv6 and the provider is included in the unsupportedProviders.

func SkipIfMissingResource

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

SkipIfMissingResource skips if the gvr resource is missing.

func SkipIfMultizone

func SkipIfMultizone(ctx context.Context, 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(ctx context.Context, componentName string, c clientset.Interface, ns string, labelSet labels.Set)

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

func SkipUnlessFeatureGateEnabled added in v1.23.0

func SkipUnlessFeatureGateEnabled(gate featuregate.Feature)

SkipUnlessFeatureGateEnabled skips if the feature is disabled.

Beware that this only works in test suites that have a --feature-gate parameter and call InitFeatureGates. In test/e2e, the `Feature: XYZ` tag has to be used instead and invocations have to make sure that they only run tests that work with the given test cluster.

func SkipUnlessMasterOSDistroIs

func SkipUnlessMasterOSDistroIs(supportedMasterOsDistros ...string)

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

func SkipUnlessMultizone

func SkipUnlessMultizone(ctx context.Context, 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. The direct caller is recorded in the callstack.

Types

This section is empty.

Jump to

Keyboard shortcuts

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