kusttest_test

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KustTestHarness

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

KustTestHarness helps test kustomization generation and transformation.

func NewKustTestHarness

func NewKustTestHarness(t *testing.T, path string) *KustTestHarness

func NewKustTestHarnessFull

func NewKustTestHarnessFull(
	t *testing.T, path string,
	lr loader.LoadRestrictorFunc, pc *types.PluginConfig) *KustTestHarness

func NewKustTestNoLoadRestrictorHarness

func NewKustTestNoLoadRestrictorHarness(t *testing.T, path string) *KustTestHarness

func NewKustTestPluginHarness

func NewKustTestPluginHarness(t *testing.T, path string) *KustTestHarness

func (*KustTestHarness) AssertActualEqualsExpected

func (th *KustTestHarness) AssertActualEqualsExpected(
	m resmap.ResMap, expected string)

func (*KustTestHarness) ErrorFromLoadAndRunTransformer

func (th *KustTestHarness) ErrorFromLoadAndRunTransformer(
	config, input string) error

func (*KustTestHarness) FromMap

func (th *KustTestHarness) FromMap(m map[string]interface{}) *resource.Resource

func (*KustTestHarness) FromMapAndOption

func (th *KustTestHarness) FromMapAndOption(m map[string]interface{}, args *types.GeneratorArgs, option *types.GeneratorOptions) *resource.Resource

func (*KustTestHarness) LoadAndRunGenerator

func (th *KustTestHarness) LoadAndRunGenerator(
	config string) resmap.ResMap

func (*KustTestHarness) LoadAndRunTransformer

func (th *KustTestHarness) LoadAndRunTransformer(
	config, input string) resmap.ResMap

func (*KustTestHarness) MakeKustTarget

func (th *KustTestHarness) MakeKustTarget() *target.KustTarget

func (*KustTestHarness) RF

func (th *KustTestHarness) RF() *resource.Factory

func (*KustTestHarness) RunTransformer

func (th *KustTestHarness) RunTransformer(
	config, input string) (resmap.ResMap, error)

func (*KustTestHarness) RunTransformerFromResMap added in v3.2.0

func (th *KustTestHarness) RunTransformerFromResMap(
	config string, resMap resmap.ResMap) (resmap.ResMap, error)

func (*KustTestHarness) WriteDefaultConfigs

func (th *KustTestHarness) WriteDefaultConfigs(fName string)

func (*KustTestHarness) WriteF

func (th *KustTestHarness) WriteF(dir string, content string)

func (*KustTestHarness) WriteK

func (th *KustTestHarness) WriteK(dir string, content string)

Jump to

Keyboard shortcuts

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