config

package
v0.0.0-...-539166f Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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

func DumpKustomizeConfigToTempDir() (path string, cleaner func(), err error)

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.

Jump to

Keyboard shortcuts

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