Documentation ¶
Index ¶
Constants ¶
View Source
const Type = "deploy"
Type is the string value of the RawTarget type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Target *Target Artifact *Artifact K8sClient kube.Client Broker cqrs.Broker ManifestDir string Logger logz.FieldLogger }
Action is the executor for deploying a manifest
func (*Action) UseK8sClient ¶
UseK8sClient injects the Kubernetes client into the Action
func (*Action) UseLogger ¶
func (a *Action) UseLogger(logger logz.FieldLogger)
UseLogger injects a logger into the target's action
type Artifact ¶
type Artifact struct {
ark.RawArtifact `mapstructure:",squash"`
}
Artifact is the result of a successful actions.Deploy
func (Artifact) Cacheable ¶
Cacheable always returns false because a deploy target should be apply-able at all times
func (Artifact) LocallyCached ¶
LocallyCached always returns false because the target is not cacheable
type Step ¶
type Step struct { Command []string `mapstructure:"manifest" json:"manifest"` WorkDir string `mapstructure:"workDir" json:"workDir"` Patterns []string `mapstructure:"patterns" json:"patterns"` }
Step defines the required fields to execute one or more commands when a changed file matches a given pattern
type Target ¶
type Target struct { ark.RawTarget `mapstructure:",squash"` Manifest string `mapstructure:"manifest" json:"manifest"` PortForward portbinder.PortMap `mapstructure:"portForward" json:"portForward"` // TODO: There's no input validation for this in this code LiveSyncEnabled bool `mapstructure:"liveSyncEnabled" json:"liveSyncEnabled"` LiveSyncRestartMode string `mapstructure:"liveSyncRestartMode" json:"liveSyncRestartMode"` // TODO: There's no input validation for this code or setting of a default LiveSyncOnStep []Step `mapstructure:"liveSyncOnStep" json:"liveSyncOnStep"` Env []map[string]string `mapstructure:"env" json:"env"` }
Target expresses an intention to construct a deployable manifest
Click to show internal directories.
Click to hide internal directories.