Documentation
¶
Index ¶
- type WorkflowEngine
- func (w *WorkflowEngine) CreateLayoutWithResources(c *stack.Cluster, rulesInterface interface{}) (interface{}, error)
- func (w *WorkflowEngine) GenerateBootstrap(config *stack.BootstrapConfig, rootNode *stack.Node) ([]client.Object, error)
- func (w *WorkflowEngine) GenerateFromBundle(b *stack.Bundle) ([]client.Object, error)
- func (w *WorkflowEngine) GenerateFromCluster(c *stack.Cluster) ([]client.Object, error)
- func (w *WorkflowEngine) GenerateFromNode(n *stack.Node) ([]client.Object, error)
- func (w *WorkflowEngine) GetName() string
- func (w *WorkflowEngine) GetVersion() string
- func (w *WorkflowEngine) IntegrateWithLayout(ml *layout.ManifestLayout, c *stack.Cluster, rules layout.LayoutRules) error
- func (w *WorkflowEngine) SetDefaultNamespace(namespace string)
- func (w *WorkflowEngine) SetRepoURL(repoURL string)
- func (w *WorkflowEngine) SupportedBootstrapModes() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkflowEngine ¶
type WorkflowEngine struct {
// RepoURL is used as the source repo for generated Applications
RepoURL string
// DefaultNamespace is the default namespace for ArgoCD Applications
DefaultNamespace string
}
WorkflowEngine implements the stack.Workflow interface for ArgoCD.
func (*WorkflowEngine) CreateLayoutWithResources ¶
func (w *WorkflowEngine) CreateLayoutWithResources(c *stack.Cluster, rulesInterface interface{}) (interface{}, error)
CreateLayoutWithResources creates a new layout that includes ArgoCD Applications.
func (*WorkflowEngine) GenerateBootstrap ¶
func (w *WorkflowEngine) GenerateBootstrap(config *stack.BootstrapConfig, rootNode *stack.Node) ([]client.Object, error)
GenerateBootstrap creates bootstrap resources for setting up ArgoCD.
func (*WorkflowEngine) GenerateFromBundle ¶
GenerateFromBundle creates an ArgoCD Application from a bundle definition.
func (*WorkflowEngine) GenerateFromCluster ¶
GenerateFromCluster creates ArgoCD Applications from a cluster definition.
func (*WorkflowEngine) GenerateFromNode ¶
GenerateFromNode creates ArgoCD Applications from a node and its children.
func (*WorkflowEngine) GetName ¶
func (w *WorkflowEngine) GetName() string
GetName returns a human-readable name for this workflow engine.
func (*WorkflowEngine) GetVersion ¶
func (w *WorkflowEngine) GetVersion() string
GetVersion returns the version of this workflow engine.
func (*WorkflowEngine) IntegrateWithLayout ¶
func (w *WorkflowEngine) IntegrateWithLayout(ml *layout.ManifestLayout, c *stack.Cluster, rules layout.LayoutRules) error
IntegrateWithLayout adds ArgoCD Applications to an existing manifest layout. For ArgoCD, this is typically not needed as Applications reference external repos.
func (*WorkflowEngine) SetDefaultNamespace ¶
func (w *WorkflowEngine) SetDefaultNamespace(namespace string)
SetDefaultNamespace configures the default namespace for ArgoCD Applications.
func (*WorkflowEngine) SetRepoURL ¶
func (w *WorkflowEngine) SetRepoURL(repoURL string)
SetRepoURL configures the repository URL for generated Applications.
func (*WorkflowEngine) SupportedBootstrapModes ¶
func (w *WorkflowEngine) SupportedBootstrapModes() []string
SupportedBootstrapModes returns the bootstrap modes supported by ArgoCD.