Documentation ¶
Index ¶
- Variables
- func BuildCommandArgs(buildArgs []string, kustomizePath string) []string
- func DependenciesForKustomization(dir string) ([]string, error)
- func FindKustomizationConfig(dir string) (string, error)
- func IsKustomizationBase(path string) bool
- func IsKustomizationPath(path string) bool
- 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) 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) HasRunnableHooks() bool
- func (k *Deployer) PostDeployHooks(ctx context.Context, out io.Writer) error
- func (k *Deployer) PreDeployHooks(ctx context.Context, out io.Writer) error
- func (k *Deployer) RegisterLocalImages(images []graph.Artifact)
- func (k *Deployer) Render(ctx context.Context, out io.Writer, builds []graph.Artifact, offline bool, ...) error
- func (k *Deployer) TrackBuildArtifacts(artifacts []graph.Artifact)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultKustomizePath = "." KustomizeFilePaths = []string{"kustomization.yaml", "kustomization.yml", "Kustomization"} KustomizeBinaryCheck = kustomizeBinaryExists // For testing )
Functions ¶
func BuildCommandArgs ¶
BuildCommandArgs returns a list of build args to be passed to kustomize.
func DependenciesForKustomization ¶
DependenciesForKustomization finds common kustomize artifacts relative to the provided working dir, and collects them into a list of files to be passed to the file watcher.
func FindKustomizationConfig ¶
FindKustomizationConfig finds the kustomization config relative to the provided dir. A Kustomization config must be at the root of the directory. Kustomize will error if more than one of these files exists so order doesn't matter.
func IsKustomizationBase ¶
func IsKustomizationPath ¶
Types ¶
type Deployer ¶
type Deployer struct { *latestV1.KustomizeDeploy // contains filtered or unexported fields }
Deployer deploys workflows using kustomize CLI.
func NewDeployer ¶
func NewDeployer(cfg kubectl.Config, labeller *label.DefaultLabeller, d *latestV1.KustomizeDeploy) (*Deployer, error)
func (*Deployer) Dependencies ¶
Dependencies lists all the files that describe what needs to be deployed.
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) HasRunnableHooks ¶ added in v1.32.0
func (*Deployer) PostDeployHooks ¶ added in v1.31.0
func (*Deployer) PreDeployHooks ¶ added in v1.31.0
func (*Deployer) RegisterLocalImages ¶ added in v1.28.0
func (*Deployer) TrackBuildArtifacts ¶ added in v1.27.0
Click to show internal directories.
Click to hide internal directories.