workloads

package
v0.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvailableNames

func AvailableNames() []string

func New

func New(name, branch string, pvcSpec config.PVCSpec) (types.Workload, error)

func NewDeployment

func NewDeployment(branch string, pvcSpec config.PVCSpec) types.Workload

func NewVM

func NewVM(branch string, pvcSpec config.PVCSpec) types.Workload

Types

type Deployment

type Deployment struct {
	Name    string
	Branch  string
	PVCSpec config.PVCSpec
}

func (Deployment) GetAppName

func (w Deployment) GetAppName() string

func (Deployment) GetBranch

func (w Deployment) GetBranch() string

func (Deployment) GetChecks

func (w Deployment) GetChecks(namespace string) []*recipe.Check

func (Deployment) GetLabelSelector

func (w Deployment) GetLabelSelector() *metav1.LabelSelector

func (Deployment) GetName

func (w Deployment) GetName() string

func (Deployment) GetOperations

func (w Deployment) GetOperations(namespace string) []*recipe.Operation

func (Deployment) GetPath

func (w Deployment) GetPath() string

func (Deployment) GetResources

func (w Deployment) GetResources() error

func (Deployment) GetSelectResource

func (w Deployment) GetSelectResource() string

func (Deployment) Health

func (w Deployment) Health(ctx types.TestContext, cluster *types.Cluster) error

Check the workload health deployed in a cluster

func (Deployment) Kustomize

func (w Deployment) Kustomize() string

func (Deployment) Status

Status returns the deployment status across managed clusters.

type VM

type VM struct {
	Name    string
	Branch  string
	PVCSpec config.PVCSpec
}

func (*VM) GetAppName

func (w *VM) GetAppName() string

func (*VM) GetBranch

func (w *VM) GetBranch() string

func (*VM) GetChecks

func (w *VM) GetChecks(namespace string) []*recipe.Check

TODO: To be implemented according to the VM workload

func (*VM) GetLabelSelector

func (w *VM) GetLabelSelector() *metav1.LabelSelector

func (*VM) GetName

func (w *VM) GetName() string

func (*VM) GetOperations

func (w *VM) GetOperations(namespace string) []*recipe.Operation

TODO: To be implemented according to the VM workload

func (*VM) GetPath

func (w *VM) GetPath() string

func (*VM) GetResources

func (w *VM) GetResources() error

func (*VM) GetSelectResource

func (w *VM) GetSelectResource() string

func (*VM) Health

func (w *VM) Health(ctx types.TestContext, cluster *types.Cluster) error

Health method checks if the VirtualMachine status updates are safe and are as desired, failing which will report an appropriate error message

func (*VM) Kustomize

func (w *VM) Kustomize() string

func (*VM) Status

func (w *VM) Status(ctx types.TestContext) ([]types.WorkloadStatus, error)

Status returns the VM workload deployment status across managed clusters.

Jump to

Keyboard shortcuts

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