app

package
v0.5.3-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateObjectsFromDirectory

func CreateObjectsFromDirectory(rootPath string) ([]client.Object, error)

func CreateTypedObjectFromYamlByte

func CreateTypedObjectFromYamlByte[T generics.Object, PT generics.PObject[T],
	L generics.ObjList[T]](yamlBytes []byte, _ func(T, L)) PT

func CustomizedObjFromYaml

func CustomizedObjFromYaml[T generics.Object, PT generics.PObject[T],
	L generics.ObjList[T]](filePath string, signature func(T, L)) (PT, error)

func CustomizedObjectListFromYaml

func CustomizedObjectListFromYaml[T generics.Object, PT generics.PObject[T],
	L generics.ObjList[T]](yamlfile string, signature func(T, L)) ([]PT, error)

func GetTypedResourceObjectBySignature

func GetTypedResourceObjectBySignature[T generics.Object, PT generics.PObject[T],
	L generics.ObjList[T]](objects []client.Object, _ func(T, L)) PT

func NewWorkflowTemplateRender

func NewWorkflowTemplateRender(helmTemplateDir string, opts RenderedOptions) (*templateRenderWorkflow, error)

func RandomString

func RandomString(n int) string

Types

type RenderedOptions

type RenderedOptions struct {
	ConfigSpec     string
	AllConfigSpecs bool

	// mock cluster object
	Name      string
	Namespace string

	Replicas       int32
	DataVolumeName string
	ComponentName  string

	CPU    string
	Memory string
}

Jump to

Keyboard shortcuts

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