Documentation ¶
Index ¶
- Variables
- func TailLogs(ctx context.Context, c kubernetes.Interface, pod *v1.Pod, container string)
- func Watch(ctx context.Context, c kubernetes.Interface, watchPod *v1.Pod) (<-chan WatchEvent, error)
- type PipelineDefinition
- type PipelineDefinitionStep
- type PodDefinition
- type PodEnvVariable
- type PodSecret
- type WatchEvent
- type WatchEventType
Constants ¶
This section is empty.
Variables ¶
View Source
var PipelineCmd = &cobra.Command{
Use: "pipeline",
Short: "Manage Canoe pipelines",
Long: "Run and control Canoe pipelines",
}
Functions ¶
func Watch ¶
func Watch(ctx context.Context, c kubernetes.Interface, watchPod *v1.Pod) (<-chan WatchEvent, error)
Types ¶
type PipelineDefinition ¶
type PipelineDefinition struct { Pipeline string `yaml:"pipeline"` Bucket string `yaml:"bucket"` Namespace string `yaml:"namespace"` Steps []PipelineDefinitionStep `yaml:"steps"` Secrets []string }
type PipelineDefinitionStep ¶
type PipelineDefinitionStep struct { Step string `yaml:"step"` Version string `yaml:"version"` Branch string `yaml:"branch"` Image string `yaml:"image"` Inputs []struct { Step string `yaml:"step"` Version string `yaml:"version"` Branch string `yaml:"branch"` Path string `yaml:"path"` Bucket string `yaml:"bucket"` } `yaml:"inputs"` Commands []string `yaml:"commands"` Resources struct { CPU int `yaml:"cpu"` Memory string `yaml:"memory"` Storage int `yaml:"storage-mb"` } `yaml:"resources"` }
func (*PipelineDefinitionStep) OverrideBranch ¶ added in v0.8.7
func (p *PipelineDefinitionStep) OverrideBranch(branch string, overrideInputs bool)
func (*PipelineDefinitionStep) OverrideTag ¶ added in v0.8.0
func (p *PipelineDefinitionStep) OverrideTag(tag string)
func (*PipelineDefinitionStep) OverrideVersion ¶ added in v0.8.7
func (p *PipelineDefinitionStep) OverrideVersion(version string, overrideInputs bool)
type PodDefinition ¶
type PodDefinition struct { PodName string StepName string StepVersion string BranchName string Namespace string Bucket string Secrets []PodSecret Env []PodEnvVariable BucketOverrides map[string]string Step PipelineDefinitionStep }
func NewPodDefinition ¶
func NewPodDefinition(pipelineDefinition *PipelineDefinition, pipelineDefinitionStep *PipelineDefinitionStep) *PodDefinition
type PodEnvVariable ¶ added in v0.6.0
type WatchEvent ¶
type WatchEvent struct { Type WatchEventType Pod *v1.Pod Container string Message string }
type WatchEventType ¶
type WatchEventType string
const ( Added WatchEventType = "ADDED" Deleted WatchEventType = "DELETED" Removed WatchEventType = "REMOVED" Completed WatchEventType = "COMPLETED" Failed WatchEventType = "FAILED" )
Click to show internal directories.
Click to hide internal directories.