utils

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultPermission = 0755
)

Variables

This section is empty.

Functions

func ChartValidator

func ChartValidator(chart, release string) error

func CleanStatus

func CleanStatus(m map[string]interface{})

CleanStatus omit status field

func CleanSvc

func CleanSvc(f *unstructured.Unstructured) error

CleanSvc omit clusterIP/clusterIPs fields

func CommonCleaning

func CommonCleaning(f *unstructured.Unstructured)

CommonCleaning omit unnecessary fields

func Contains

func Contains(m map[string][]string, val string) ([]string, bool)

func CreateChartDirectory

func CreateChartDirectory(name string) (string, error)

func DebugPrinter

func DebugPrinter(format string, debug bool, out io.Writer, v ...interface{})

func GetAllArgs

func GetAllArgs(set []string) (map[string][]string, error)

func GetPrettyYaml

func GetPrettyYaml(obj interface{}) ([]byte, error)

GetPrettyYaml generate a well formatted yaml file

func MergeMapsBytes

func MergeMapsBytes(m1, m2 map[string][]byte) map[string][]byte

func ReplaceStr

func ReplaceStr(src, newStr, old string) []byte

func WriteToFile

func WriteToFile(content []byte, name string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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