testing

package
v99.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ExampleKey = "_example"

Variables

This section is empty.

Functions

func ConfigMapFromTestFile

func ConfigMapFromTestFile(t *testing.T, name string, allowed ...string) *corev1.ConfigMap

ConfigMapFromTestFile creates a v1.ConfigMap from a YAML file It loads the YAML file from the testdata folder.

func ConfigMapsFromTestFile

func ConfigMapsFromTestFile(t *testing.T, name string, allowed ...string) (*corev1.ConfigMap, *corev1.ConfigMap)

configMapsFromTestFile creates two corev1.ConfigMap resources from the config file read from the testdata directory: 1. The raw configmap read in. 2. A second version of the configmap augmenting `data:` with what's parsed from the value of `_example:`

Types

This section is empty.

Jump to

Keyboard shortcuts

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