ephemeral

package
v0.6.27 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Supported = func() bool {
	k8sVersion := os.Getenv("TEST_KUBERNETES_VERSION")

	if k8sVersion == "" {

		framework.Logf("No Kubernetes version set! Providing (via TEST_KUBERNETES_VERSION environment) the right Kubernetes version might affect the test suites to be run.")
		return true
	}
	var major, minor int
	if _, err := fmt.Sscanf(k8sVersion, "%d.%d", &major, &minor); err != nil {
		framework.Logf("Failed to parse 'TEST_KUBERNETES_VERSION=%s': %s. Enabling ephemeral volume tests.", k8sVersion, err.Error())

		return true
	}
	if (major <= 0) || (major == 1 && minor <= 14) {

		framework.Logf("Provided Kubernetes version '%s' does not support ephemeral volumes. Tests involving ephemeral volumes are disabled.", k8sVersion)
		return false
	}

	return true
}()

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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