MCPcopy
hub / github.com/kptdev/kpt / TektonTask

Struct TektonTask

internal/cmdexport/orchestrators/tekton.go:135–140  ·  view source on GitHub ↗

TektonTask represents a Task object in Tekton. @see https://github.com/tektoncd/pipeline/blob/master/docs/tasks.md

Source from the content-addressed store, hash-verified

133// TektonTask represents a Task object in Tekton.
134// @see https://github.com/tektoncd/pipeline/blob/master/docs/tasks.md
135type TektonTask struct {
136 APIVersion string `yaml:"apiVersion,omitempty"`
137 Kind string `yaml:",omitempty"`
138 Metadata *TektonMetadata `yaml:",omitempty"`
139 Spec *TektonTaskSpec `yaml:",omitempty"`
140}
141
142func (task *TektonTask) Init(config *TektonTaskConfig) *TektonTask {
143 task.APIVersion = "tekton.dev/v1beta1"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected