Documentation ¶
Index ¶
- type KustTestHarness
- func NewKustTestHarness(t *testing.T, path string) *KustTestHarness
- func NewKustTestHarnessFull(t *testing.T, path string, lr loader.LoadRestrictorFunc, ...) *KustTestHarness
- func NewKustTestNoLoadRestrictorHarness(t *testing.T, path string) *KustTestHarness
- func NewKustTestPluginHarness(t *testing.T, path string) *KustTestHarness
- func (th *KustTestHarness) AssertActualEqualsExpected(m resmap.ResMap, expected string)
- func (th *KustTestHarness) ErrorFromLoadAndRunTransformer(config, input string) error
- func (th *KustTestHarness) FromMap(m map[string]interface{}) *resource.Resource
- func (th *KustTestHarness) FromMapAndOption(m map[string]interface{}, args *types.GeneratorArgs, ...) *resource.Resource
- func (th *KustTestHarness) LoadAndRunGenerator(config string) resmap.ResMap
- func (th *KustTestHarness) LoadAndRunTransformer(config, input string) resmap.ResMap
- func (th *KustTestHarness) MakeKustTarget() *target.KustTarget
- func (th *KustTestHarness) RF() *resource.Factory
- func (th *KustTestHarness) RunTransformer(config, input string) (resmap.ResMap, error)
- func (th *KustTestHarness) RunTransformerFromResMap(config string, resMap resmap.ResMap) (resmap.ResMap, error)
- func (th *KustTestHarness) WriteDefaultConfigs(fName string)
- func (th *KustTestHarness) WriteF(dir string, content string)
- func (th *KustTestHarness) WriteK(dir string, content string)
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 (*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)
Click to show internal directories.
Click to hide internal directories.