definition

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OutputFieldName is the name of the struct contains the CR data
	OutputFieldName = process.OutputFieldName
	// OutputsFieldName is the name of the struct contains the map[string]CR data
	OutputsFieldName = process.OutputsFieldName
	// PatchFieldName is the name of the struct contains the patch of CR data
	PatchFieldName = "patch"
	// CustomMessage defines the custom message in definition template
	CustomMessage = "message"
	// HealthCheckPolicy defines the health check policy in definition template
	HealthCheckPolicy = "isHealth"
)
View Source
const (
	// AuxiliaryWorkload defines the extra workload obj from a workloadDefinition,
	// e.g. a workload composed by deployment and service, the service will be marked as AuxiliaryWorkload
	AuxiliaryWorkload = "AuxiliaryWorkload"
)

Variables

This section is empty.

Functions

func AddKubeCUEPackagesFromCluster

func AddKubeCUEPackagesFromCluster(config *rest.Config) error

AddKubeCUEPackagesFromCluster use K8s native API and CRD definition as a reference package in template rendering

func AddVelaInternalPackagesFor

func AddVelaInternalPackagesFor(bi *build.Instance)

AddVelaInternalPackagesFor will add KubeVela built-in packages into your CUE instance

Types

type AbstractEngine added in v0.3.3

type AbstractEngine interface {
	Params(params interface{}) AbstractEngine
	Complete(ctx process.Context, abstractTemplate string) error
	HealthCheck(ctx process.Context, cli client.Client, ns string, healthPolicyTemplate string) (bool, error)
	Status(ctx process.Context, cli client.Client, ns string, customStatusTemplate string) (string, error)
}

AbstractEngine defines Definition's Render interface

func NewTraitAbstractEngine added in v0.3.3

func NewTraitAbstractEngine(name string) AbstractEngine

NewTraitAbstractEngine create Trait Definition AbstractEngine

func NewWorkloadAbstractEngine added in v0.3.3

func NewWorkloadAbstractEngine(name string) AbstractEngine

NewWorkloadAbstractEngine create Workload Definition AbstractEngine

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳