Documentation ¶
Overview ¶
Package config provides functions to dump kustomize config YAMLs to a directory. Those files are used in test suites that can be imported in other repositories. In such case resolved (during runtime) path ./config points to root of that other repository instead of directory ./config in this this project, so it breaks everything. This package embeds config directory as Go code (embed.FS) and allow dumping it to a temp dir during runtime to have path that can be passed to e.g. kubectl.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpKustomizeConfigToTempDir ¶
DumpKustomizeConfigToTempDir saves kustomize (directory ./config from KGO OSS repository) YAMLs used for testing to a temp dir and returns the path to the dir to be used with kubectl. Use returned cleaner function (only when no error is returned) to remove the directory.
Types ¶
This section is empty.