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

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