Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ProviderName is provider name for install.
ProviderName = "multicluster"
)
Variables ¶
This section is empty.
Functions ¶
func Install ¶
func Install(p wfTypes.Providers, c client.Client, app *v1beta1.Application, af *appfile.Appfile, apply oamProvider.ComponentApply, healthCheck oamProvider.ComponentHealthCheck, renderer oamProvider.WorkloadRenderer)
Install register handlers to provider discover.
Types ¶
type DeployParameter ¶ added in v1.7.0
type DeployParameter struct { // Declare the policies that used for this deployment. If not specified, the components will be deployed to the hub cluster. Policies []string `json:"policies,omitempty"` // Maximum number of concurrent delivered components. Parallelism int64 `json:"parallelism"` // If set false, this step will apply the components with the terraform workload. IgnoreTerraformComponent bool `json:"ignoreTerraformComponent"` // The policies that embeds in the `deploy` step directly InlinePolicies []v1beta1.AppPolicy `json:"inlinePolicies,omitempty"` }
DeployParameter is the parameter of deploy workflow step
type DeployWorkflowStepExecutor ¶ added in v1.4.0
type DeployWorkflowStepExecutor interface {
Deploy(ctx context.Context) (healthy bool, reason string, err error)
}
DeployWorkflowStepExecutor executor to run deploy workflow step
func NewDeployWorkflowStepExecutor ¶ added in v1.4.0
func NewDeployWorkflowStepExecutor(cli client.Client, af *appfile.Appfile, apply oamProvider.ComponentApply, healthCheck oamProvider.ComponentHealthCheck, renderer oamProvider.WorkloadRenderer, parameter DeployParameter) DeployWorkflowStepExecutor
NewDeployWorkflowStepExecutor .
Click to show internal directories.
Click to hide internal directories.