Documentation
¶
Index ¶
- func AvailableNames() []string
- func New(name, branch string, pvcSpec config.PVCSpec) (types.Workload, error)
- func NewDeployment(branch string, pvcSpec config.PVCSpec) types.Workload
- func NewVM(branch string, pvcSpec config.PVCSpec) types.Workload
- type Deployment
- func (w Deployment) GetAppName() string
- func (w Deployment) GetBranch() string
- func (w Deployment) GetChecks(namespace string) []*recipe.Check
- func (w Deployment) GetLabelSelector() *metav1.LabelSelector
- func (w Deployment) GetName() string
- func (w Deployment) GetOperations(namespace string) []*recipe.Operation
- func (w Deployment) GetPath() string
- func (w Deployment) GetResources() error
- func (w Deployment) GetSelectResource() string
- func (w Deployment) Health(ctx types.TestContext, cluster *types.Cluster) error
- func (w Deployment) Kustomize() string
- func (w Deployment) Status(ctx types.TestContext) ([]types.WorkloadStatus, error)
- type VM
- func (w *VM) GetAppName() string
- func (w *VM) GetBranch() string
- func (w *VM) GetChecks(namespace string) []*recipe.Check
- func (w *VM) GetLabelSelector() *metav1.LabelSelector
- func (w *VM) GetName() string
- func (w *VM) GetOperations(namespace string) []*recipe.Operation
- func (w *VM) GetPath() string
- func (w *VM) GetResources() error
- func (w *VM) GetSelectResource() string
- func (w *VM) Health(ctx types.TestContext, cluster *types.Cluster) error
- func (w *VM) Kustomize() string
- func (w *VM) Status(ctx types.TestContext) ([]types.WorkloadStatus, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailableNames ¶
func AvailableNames() []string
Types ¶
type Deployment ¶
func (Deployment) GetAppName ¶
func (w Deployment) GetAppName() string
func (Deployment) GetBranch ¶
func (w Deployment) GetBranch() string
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 ¶
func (w Deployment) Status(ctx types.TestContext) ([]types.WorkloadStatus, error)
Status returns the deployment status across managed clusters.
type VM ¶
func (*VM) GetAppName ¶
func (*VM) GetLabelSelector ¶
func (w *VM) GetLabelSelector() *metav1.LabelSelector
func (*VM) GetOperations ¶
TODO: To be implemented according to the VM workload
func (*VM) GetResources ¶
func (*VM) GetSelectResource ¶
func (*VM) Health ¶
Health method checks if the VirtualMachine status updates are safe and are as desired, failing which will report an appropriate error message
func (*VM) Status ¶
func (w *VM) Status(ctx types.TestContext) ([]types.WorkloadStatus, error)
Status returns the VM workload deployment status across managed clusters.
Click to show internal directories.
Click to hide internal directories.