Documentation ¶
Index ¶
- type Deployer
- func (k *Deployer) Cleanup(ctx context.Context, out io.Writer) error
- func (k *Deployer) Dependencies() ([]string, error)
- func (k *Deployer) Deploy(ctx context.Context, out io.Writer, builds []graph.Artifact) ([]string, error)
- func (k *Deployer) Render(ctx context.Context, out io.Writer, builds []graph.Artifact, _ bool, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deployer ¶
Deployer deploys workflows with kpt CLI
func NewDeployer ¶
NewDeployer generates a new Deployer object contains the kptDeploy schema.
func (*Deployer) Dependencies ¶
Dependencies returns a list of files that the deployer depends on. This does NOT include applyDir. In dev mode, a redeploy will be triggered if one of these files is updated.
func (*Deployer) Deploy ¶
func (k *Deployer) Deploy(ctx context.Context, out io.Writer, builds []graph.Artifact) ([]string, error)
Deploy hydrates the manifests using kustomizations and kpt functions as described in the render method, outputs them to the applyDir, and runs `kpt live apply` against applyDir to create resources in the cluster. `kpt live apply` supports automated pruning declaratively via resources in the applyDir.
Click to show internal directories.
Click to hide internal directories.