policy

package
v0.0.0-...-1a56975 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestPolicy

type TestPolicy struct {
	// contains filtered or unexported fields
}

func ApplyPolicyFile

func ApplyPolicyFile(t *testing.T, env *kube.Environment, namespace string, fileName string) *TestPolicy

ApplyPolicyFile applies a policy file from testdata directory of the test.

func ApplyPolicyFiles

func ApplyPolicyFiles(t *testing.T, env *kube.Environment, namespace string, fileNames []string) []*TestPolicy

ApplyPolicyFiles applies multiple policy files to the same namespace

func ApplyPolicyFromFilePath

func ApplyPolicyFromFilePath(t *testing.T, env *kube.Environment, namespace string, fileName string) *TestPolicy

ApplyPolicyFromFilePath runs `kubectl -f <namespace> <fileName>` where fileName is the real/explicit path of the file.

func (TestPolicy) TearDown

func (p TestPolicy) TearDown()

Jump to

Keyboard shortcuts

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