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 []build.Artifact) ([]string, error)
- func (k *Deployer) Render(ctx context.Context, out io.Writer, builds []build.Artifact, offline bool, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultKustomizePath = "."
)
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 { *latest.KustomizeDeploy // contains filtered or unexported fields }
Deployer deploys workflows using kustomize CLI.
func NewDeployer ¶
func (*Deployer) Dependencies ¶
Dependencies lists all the files that describe what needs to be deployed.
Click to show internal directories.
Click to hide internal directories.