Documentation ¶
Index ¶
- type Config
- type Deployer
- func (k *Deployer) Cleanup(ctx context.Context, out io.Writer, dryRun bool) error
- func (k *Deployer) Dependencies() ([]string, error)
- func (k *Deployer) Deploy(ctx context.Context, out io.Writer, builds []graph.Artifact) error
- func (k *Deployer) GetAccessor() access.Accessor
- func (k *Deployer) GetDebugger() debug.Debugger
- func (k *Deployer) GetLogger() log.Logger
- func (k *Deployer) GetStatusMonitor() status.Monitor
- func (k *Deployer) GetSyncer() sync.Syncer
- func (k *Deployer) RegisterLocalImages(images []graph.Artifact)
- func (k *Deployer) Render(ctx context.Context, out io.Writer, builds []graph.Artifact, _ bool, ...) error
- func (k *Deployer) TrackBuildArtifacts(artifacts []graph.Artifact)
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 ¶
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.
func (*Deployer) GetAccessor ¶ added in v1.27.0
func (*Deployer) GetDebugger ¶ added in v1.27.0
func (*Deployer) GetStatusMonitor ¶ added in v1.27.0
func (*Deployer) RegisterLocalImages ¶ added in v1.28.0
func (*Deployer) Render ¶
func (k *Deployer) Render(ctx context.Context, out io.Writer, builds []graph.Artifact, _ bool, filepath string) error
Render hydrates manifests using both kustomization and kpt functions.