Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Deployer ¶
type Deployer interface {
// Run should ensure that the build results are deployed to the Kubernetes
// cluster.
Run(io.Writer, *build.BuildResult) (*Result, error)
}
Deployer is the Deploy API of skaffold and responsible for deploying the build results to a Kubernetes cluster
type HelmDeployer ¶
type HelmDeployer struct {
*config.DeployConfig
}
func NewHelmDeployer ¶
func NewHelmDeployer(cfg *config.DeployConfig) (*HelmDeployer, error)
func (*HelmDeployer) Run ¶
func (h *HelmDeployer) Run(out io.Writer, b *build.BuildResult) (*Result, error)
type KubectlDeployer ¶
type KubectlDeployer struct {
*config.DeployConfig
}
func NewKubectlDeployer ¶
func NewKubectlDeployer(cfg *config.DeployConfig) (*KubectlDeployer, error)
NewKubectlDeployer returns a new KubectlDeployer for a DeployConfig filled with the needed configuration for `kubectl apply`
func (*KubectlDeployer) Run ¶
func (k *KubectlDeployer) Run(out io.Writer, b *build.BuildResult) (*Result, error)
Run templates the provided manifests with a simple `find and replace` and runs `kubectl apply` on those manifests
Click to show internal directories.
Click to hide internal directories.