template

package
v0.6.0-alpha.16 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: AGPL-3.0 Imports: 35 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 NewComponentTemplateRenderCmd

func NewComponentTemplateRenderCmd(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

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