Documentation ¶
Index ¶
- type Artifact
- type Deployer
- type HelmDeployer
- type KubectlDeployer
- func (k *KubectlDeployer) Cleanup(ctx context.Context, out io.Writer) error
- func (k *KubectlDeployer) Dependencies() ([]string, error)
- func (k *KubectlDeployer) Deploy(ctx context.Context, out io.Writer, builds []build.Artifact) ([]Artifact, error)
- func (k *KubectlDeployer) Labels() map[string]string
- type KustomizeDeployer
- func (k *KustomizeDeployer) Cleanup(ctx context.Context, out io.Writer) error
- func (k *KustomizeDeployer) Dependencies() ([]string, error)
- func (k *KustomizeDeployer) Deploy(ctx context.Context, out io.Writer, builds []build.Artifact) ([]Artifact, error)
- func (k *KustomizeDeployer) Labels() map[string]string
- type Labeller
- type Warner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deployer ¶
type Deployer interface { Labels() map[string]string // Deploy should ensure that the build results are deployed to the Kubernetes // cluster. Deploy(context.Context, io.Writer, []build.Artifact) ([]Artifact, error) // Dependencies returns a list of files that the deployer depends on. // In dev mode, a redeploy will be triggered Dependencies() ([]string, error) // Cleanup deletes what was deployed by calling Deploy. Cleanup(context.Context, io.Writer) error }
Deployer is the Deploy API of skaffold and responsible for deploying the build results to a Kubernetes cluster
func WithLabels ¶ added in v0.9.0
WithLabels creates a deployer that sets labels on deployed resources.
type HelmDeployer ¶
type HelmDeployer struct { *v1alpha2.HelmDeploy // contains filtered or unexported fields }
func NewHelmDeployer ¶
func NewHelmDeployer(cfg *v1alpha2.HelmDeploy, kubeContext string, namespace string) *HelmDeployer
NewHelmDeployer returns a new HelmDeployer for a DeployConfig filled with the needed configuration for `helm`
func (*HelmDeployer) Dependencies ¶ added in v0.5.0
func (h *HelmDeployer) Dependencies() ([]string, error)
func (*HelmDeployer) Labels ¶ added in v0.8.0
func (h *HelmDeployer) Labels() map[string]string
type KubectlDeployer ¶
type KubectlDeployer struct { *v1alpha2.KubectlDeploy // contains filtered or unexported fields }
KubectlDeployer deploys workflows using kubectl CLI.
func NewKubectlDeployer ¶
func NewKubectlDeployer(workingDir string, cfg *v1alpha2.KubectlDeploy, kubeContext string) *KubectlDeployer
NewKubectlDeployer returns a new KubectlDeployer for a DeployConfig filled with the needed configuration for `kubectl apply`
func (*KubectlDeployer) Cleanup ¶ added in v0.5.0
Cleanup deletes what was deployed by calling Deploy.
func (*KubectlDeployer) Dependencies ¶ added in v0.5.0
func (k *KubectlDeployer) Dependencies() ([]string, error)
func (*KubectlDeployer) Deploy ¶ added in v0.3.0
func (k *KubectlDeployer) Deploy(ctx context.Context, out io.Writer, builds []build.Artifact) ([]Artifact, error)
Deploy templates the provided manifests with a simple `find and replace` and runs `kubectl apply` on those manifests
func (*KubectlDeployer) Labels ¶ added in v0.8.0
func (k *KubectlDeployer) Labels() map[string]string
type KustomizeDeployer ¶ added in v0.7.0
type KustomizeDeployer struct { *v1alpha2.KustomizeDeploy // contains filtered or unexported fields }
func NewKustomizeDeployer ¶ added in v0.7.0
func NewKustomizeDeployer(cfg *v1alpha2.KustomizeDeploy, kubeContext string) *KustomizeDeployer
func (*KustomizeDeployer) Dependencies ¶ added in v0.7.0
func (k *KustomizeDeployer) Dependencies() ([]string, error)
func (*KustomizeDeployer) Labels ¶ added in v0.8.0
func (k *KustomizeDeployer) Labels() map[string]string