utils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package utils is a collection of misc. utilities used elsewhere in the code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKustomizeComponent

func AddKustomizeComponent(path string, componentPaths []string) error

AddKustomizeComponent adds a component to an existing kustomization file.

func AddKustomizeResources added in v0.3.0

func AddKustomizeResources(path string, resourcePaths []string) error

func ConfigureLogging

func ConfigureLogging()

func FindRepoDir

func FindRepoDir() (string, error)

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

func PathExists(path string) (bool, error)

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.

Jump to

Keyboard shortcuts

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