Documentation ¶
Overview ¶
Package utils is a collection of misc. utilities used elsewhere in the code.
Index ¶
- func AddKustomizeComponent(path string, componentPaths []string) error
- func AddKustomizeResources(path string, resourcePaths []string) error
- func ConfigureLogging()
- func FindRepoDir() (string, error)
- func PathExists(path string) (bool, error)
- func WriteKustomization(path string, kustom kustomizationAPITypes.Kustomization) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddKustomizeComponent ¶
AddKustomizeComponent adds a component to an existing kustomization file.
func AddKustomizeResources ¶ added in v0.3.0
func ConfigureLogging ¶
func ConfigureLogging()
func FindRepoDir ¶
FindRepoDir returns the path to the top directory of a git repository. If it is run outside of a git repository, or otherwise cannot determine the top directory, it returns an error.
func PathExists ¶
PathExists returns true if the given path exists, and false if it does not. If it cannot determine whether or not a path exists (e.g., because of a permissions problem), it will log an error and exit.
func WriteKustomization ¶
func WriteKustomization(path string, kustom kustomizationAPITypes.Kustomization) error
WriteKustomization creates a kustomization.yaml in the given path. This will work for a Kustomization or Components.
Types ¶
This section is empty.