Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=build.knative.dev
Copyright 2018 The Knative Authors ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- func ValidateVolumes(volumes []corev1.Volume) *apis.FieldError
- type ArgumentSpec
- type Build
- type BuildList
- type BuildProvider
- type BuildSpec
- type BuildSpecStatus
- type BuildStatus
- func (in *BuildStatus) DeepCopy() *BuildStatus
- func (in *BuildStatus) DeepCopyInto(out *BuildStatus)
- func (bs *BuildStatus) GetCondition(t duckv1alpha1.ConditionType) *duckv1alpha1.Condition
- func (bs *BuildStatus) GetConditions() duckv1alpha1.Conditions
- func (bs *BuildStatus) SetCondition(newCond *duckv1alpha1.Condition)
- func (bs *BuildStatus) SetConditions(conditions duckv1alpha1.Conditions)
- type BuildTemplate
- func (bt *BuildTemplate) Copy() BuildTemplateInterface
- func (in *BuildTemplate) DeepCopy() *BuildTemplate
- func (in *BuildTemplate) DeepCopyInto(out *BuildTemplate)
- func (in *BuildTemplate) DeepCopyObject() runtime.Object
- func (bt *BuildTemplate) GetGroupVersionKind() schema.GroupVersionKind
- func (bt *BuildTemplate) SetDefaults(ctx context.Context)
- func (bt *BuildTemplate) TemplateSpec() BuildTemplateSpec
- func (b *BuildTemplate) Validate(ctx context.Context) *apis.FieldError
- type BuildTemplateInterface
- type BuildTemplateList
- type BuildTemplateSpec
- type ClusterBuildTemplate
- func (bt *ClusterBuildTemplate) Copy() BuildTemplateInterface
- func (in *ClusterBuildTemplate) DeepCopy() *ClusterBuildTemplate
- func (in *ClusterBuildTemplate) DeepCopyInto(out *ClusterBuildTemplate)
- func (in *ClusterBuildTemplate) DeepCopyObject() runtime.Object
- func (bt *ClusterBuildTemplate) GetGroupVersionKind() schema.GroupVersionKind
- func (b *ClusterBuildTemplate) SetDefaults(ctx context.Context)
- func (bt *ClusterBuildTemplate) TemplateSpec() BuildTemplateSpec
- func (b *ClusterBuildTemplate) Validate(ctx context.Context) *apis.FieldError
- type ClusterBuildTemplateList
- type ClusterSpec
- type GCSSourceSpec
- type GCSSourceType
- type GitSourceSpec
- type GoogleSpec
- type ParameterSpec
- type SourceSpec
- type Template
- type TemplateInstantiationSpec
- type TemplateKind
Constants ¶
const BuildCancelled duckv1alpha1.ConditionType = "Cancelled"
const ( // BuildSpecStatusCancelled indicates that the user wants to cancel the build, // if not already cancelled or terminated BuildSpecStatusCancelled = "BuildCancelled" )
const BuildSucceeded = duckv1alpha1.ConditionSucceeded
BuildSucceeded is set when the build is running, and becomes True when the build finishes successfully.
If the build is ongoing, its status will be Unknown. If it fails, its status will be False.
const DefaultTimeout = 10 * time.Minute
DefaultTimeout is 10min
Variables ¶
var (
// AddToScheme adds Build types to the scheme.
AddToScheme = schemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: build.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
func ValidateVolumes ¶ added in v0.2.0
func ValidateVolumes(volumes []corev1.Volume) *apis.FieldError
ValidateVolumes validates collection of volumes that are available to mount into the steps of the build ot build template.
Types ¶
type ArgumentSpec ¶
type ArgumentSpec struct { // Name is the name of the argument. Name string `json:"name"` // Value is the value of the argument. Value string `json:"value"` }
ArgumentSpec defines the actual values to use to populate a template's parameters.
func (*ArgumentSpec) DeepCopy ¶
func (in *ArgumentSpec) DeepCopy() *ArgumentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArgumentSpec.
func (*ArgumentSpec) DeepCopyInto ¶
func (in *ArgumentSpec) DeepCopyInto(out *ArgumentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Build ¶
type Build struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BuildSpec `json:"spec"` Status BuildStatus `json:"status"` }
Build represents a build of a container image. A Build is made up of a source, and a set of steps. Steps can mount volumes to share data between themselves. A build may be created by instantiating a BuildTemplate.
func (*Build) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Build.
func (*Build) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Build) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Build) GetGroupVersionKind ¶ added in v0.2.0
func (b *Build) GetGroupVersionKind() schema.GroupVersionKind
func (*Build) SetDefaults ¶ added in v0.2.0
SetDefaults for build
type BuildList ¶
type BuildList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` // Items is the list of Build items in this list. Items []Build `json:"items"` }
BuildList is a list of Build resources
func (*BuildList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildList.
func (*BuildList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BuildList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BuildProvider ¶
type BuildProvider string
BuildProvider defines a build execution implementation.
const ( // GoogleBuildProvider indicates that this build was performed with Google Cloud Build. GoogleBuildProvider BuildProvider = "Google" // ClusterBuildProvider indicates that this build was performed on-cluster. ClusterBuildProvider BuildProvider = "Cluster" )
type BuildSpec ¶
type BuildSpec struct { // TODO(dprotaso) Metadata.Generation should increment so we // can drop this property when conversion webhooks enable us // to migrate // +optional DeprecatedGeneration int64 `json:"generation,omitempty"` // Source specifies the input to the build. // +optional Source *SourceSpec `json:"source,omitempty"` // Sources specifies the inputs to the build. // +optional Sources []SourceSpec `json:"sources,omitempty"` // Steps are the steps of the build; each step is run sequentially with the // source mounted into /workspace. // +optional Steps []corev1.Container `json:"steps,omitempty"` // Volumes is a collection of volumes that are available to mount into the // steps of the build. // +optional Volumes []corev1.Volume `json:"volumes,omitempty"` // The name of the service account as which to run this build. // +optional ServiceAccountName string `json:"serviceAccountName,omitempty"` // Template, if specified, references a BuildTemplate resource to use to // populate fields in the build, and optional Arguments to pass to the // template. The default Kind of template is BuildTemplate // +optional Template *TemplateInstantiationSpec `json:"template,omitempty"` // NodeSelector is a selector which must be true for the pod to fit on a node. // Selector which must match a node's labels for the pod to be scheduled on that node. // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ // +optional NodeSelector map[string]string `json:"nodeSelector,omitempty"` // Time after which the build times out. Defaults to 10 minutes. // Specified build timeout should be less than 24h. // Refer Go's ParseDuration documentation for expected format: https://golang.org/pkg/time/#ParseDuration // +optional Timeout *metav1.Duration `json:"timeout,omitempty"` // If specified, the pod's scheduling constraints // +optional Affinity *corev1.Affinity `json:"affinity,omitempty"` // Used for cancelling a job (and maybe more later on) // +optional Status BuildSpecStatus }
BuildSpec is the spec for a Build resource.
func (*BuildSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildSpec.
func (*BuildSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BuildSpecStatus ¶ added in v0.4.0
type BuildSpecStatus string
BuildSpecStatus defines the build spec status the user can provide
type BuildStatus ¶
type BuildStatus struct { duckv1alpha1.Status `json:",inline"` // +optional Builder BuildProvider `json:"builder,omitempty"` // Cluster provides additional information if the builder is Cluster. // +optional Cluster *ClusterSpec `json:"cluster,omitempty"` // Google provides additional information if the builder is Google. // +optional Google *GoogleSpec `json:"google,omitempty"` // StartTime is the time the build is actually started. // +optional StartTime *metav1.Time `json:"startTime,omitempty"` // CompletionTime is the time the build completed. // +optional CompletionTime *metav1.Time `json:"completionTime,omitempty"` // StepStates describes the state of each build step container. // +optional StepStates []corev1.ContainerState `json:"stepStates,omitempty"` // StepsCompleted lists the name of build steps completed. // +optional StepsCompleted []string `json:"stepsCompleted",omitempty` }
BuildStatus is the status for a Build resource
func (*BuildStatus) DeepCopy ¶
func (in *BuildStatus) DeepCopy() *BuildStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildStatus.
func (*BuildStatus) DeepCopyInto ¶
func (in *BuildStatus) DeepCopyInto(out *BuildStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BuildStatus) GetCondition ¶
func (bs *BuildStatus) GetCondition(t duckv1alpha1.ConditionType) *duckv1alpha1.Condition
GetCondition returns the Condition matching the given type.
func (*BuildStatus) GetConditions ¶ added in v0.2.0
func (bs *BuildStatus) GetConditions() duckv1alpha1.Conditions
GetConditions returns the Conditions array. This enables generic handling of conditions by implementing the duckv1alpha1.Conditions interface.
func (*BuildStatus) SetCondition ¶
func (bs *BuildStatus) SetCondition(newCond *duckv1alpha1.Condition)
SetCondition sets the condition, unsetting previous conditions with the same type as necessary.
func (*BuildStatus) SetConditions ¶ added in v0.2.0
func (bs *BuildStatus) SetConditions(conditions duckv1alpha1.Conditions)
SetConditions sets the Conditions array. This enables generic handling of conditions by implementing the duckv1alpha1.Conditions interface.
type BuildTemplate ¶
type BuildTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BuildTemplateSpec `json:"spec"` }
BuildTemplate is a template that can used to easily create Builds.
func (*BuildTemplate) Copy ¶ added in v0.2.0
func (bt *BuildTemplate) Copy() BuildTemplateInterface
Copy performes a deep copy
func (*BuildTemplate) DeepCopy ¶
func (in *BuildTemplate) DeepCopy() *BuildTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildTemplate.
func (*BuildTemplate) DeepCopyInto ¶
func (in *BuildTemplate) DeepCopyInto(out *BuildTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BuildTemplate) DeepCopyObject ¶
func (in *BuildTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*BuildTemplate) GetGroupVersionKind ¶ added in v0.2.0
func (bt *BuildTemplate) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind gives kind
func (*BuildTemplate) SetDefaults ¶ added in v0.2.0
func (bt *BuildTemplate) SetDefaults(ctx context.Context)
SetDefaults for build template
func (*BuildTemplate) TemplateSpec ¶ added in v0.2.0
func (bt *BuildTemplate) TemplateSpec() BuildTemplateSpec
TemplateSpec returnes the Spec used by the template
func (*BuildTemplate) Validate ¶ added in v0.2.0
func (b *BuildTemplate) Validate(ctx context.Context) *apis.FieldError
Validate build template
type BuildTemplateInterface ¶ added in v0.2.0
type BuildTemplateInterface interface { TemplateSpec() BuildTemplateSpec Copy() BuildTemplateInterface }
BuildTemplateInterface is implemented by BuildTemplate and ClusterBuildTemplate
type BuildTemplateList ¶
type BuildTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []BuildTemplate `json:"items"` }
BuildTemplateList is a list of BuildTemplate resources.
func (*BuildTemplateList) DeepCopy ¶
func (in *BuildTemplateList) DeepCopy() *BuildTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildTemplateList.
func (*BuildTemplateList) DeepCopyInto ¶
func (in *BuildTemplateList) DeepCopyInto(out *BuildTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BuildTemplateList) DeepCopyObject ¶
func (in *BuildTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BuildTemplateSpec ¶
type BuildTemplateSpec struct { // TODO(dprotaso) Metadata.Generation should increment so we // can drop this property when conversion webhooks enable us // to migrate // +optional DeprecatedGeneration int64 `json:"generation,omitempty"` // Parameters defines the parameters that can be populated in a template. Parameters []ParameterSpec `json:"parameters,omitempty"` // Steps are the steps of the build; each step is run sequentially with the // source mounted into /workspace. Steps []corev1.Container `json:"steps"` // Volumes is a collection of volumes that are available to mount into the // steps of the build. Volumes []corev1.Volume `json:"volumes"` }
BuildTemplateSpec is the spec for a BuildTemplate.
func (*BuildTemplateSpec) DeepCopy ¶
func (in *BuildTemplateSpec) DeepCopy() *BuildTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildTemplateSpec.
func (*BuildTemplateSpec) DeepCopyInto ¶
func (in *BuildTemplateSpec) DeepCopyInto(out *BuildTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BuildTemplateSpec) Validate ¶ added in v0.2.0
func (b *BuildTemplateSpec) Validate(ctx context.Context) *apis.FieldError
Validate Build Template
type ClusterBuildTemplate ¶ added in v0.2.0
type ClusterBuildTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BuildTemplateSpec `json:"spec"` }
ClusterBuildTemplate is a template that can used to easily create Builds.
func (*ClusterBuildTemplate) Copy ¶ added in v0.2.0
func (bt *ClusterBuildTemplate) Copy() BuildTemplateInterface
Copy performes a deep copy
func (*ClusterBuildTemplate) DeepCopy ¶ added in v0.2.0
func (in *ClusterBuildTemplate) DeepCopy() *ClusterBuildTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterBuildTemplate.
func (*ClusterBuildTemplate) DeepCopyInto ¶ added in v0.2.0
func (in *ClusterBuildTemplate) DeepCopyInto(out *ClusterBuildTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterBuildTemplate) DeepCopyObject ¶ added in v0.2.0
func (in *ClusterBuildTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterBuildTemplate) GetGroupVersionKind ¶ added in v0.2.0
func (bt *ClusterBuildTemplate) GetGroupVersionKind() schema.GroupVersionKind
func (*ClusterBuildTemplate) SetDefaults ¶ added in v0.2.0
func (b *ClusterBuildTemplate) SetDefaults(ctx context.Context)
SetDefaults
func (*ClusterBuildTemplate) TemplateSpec ¶ added in v0.2.0
func (bt *ClusterBuildTemplate) TemplateSpec() BuildTemplateSpec
TemplateSpec returnes the Spec used by the template
func (*ClusterBuildTemplate) Validate ¶ added in v0.2.0
func (b *ClusterBuildTemplate) Validate(ctx context.Context) *apis.FieldError
Validate ClusterBuildTemplate
type ClusterBuildTemplateList ¶ added in v0.2.0
type ClusterBuildTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []ClusterBuildTemplate `json:"items"` }
ClusterBuildTemplateList is a list of BuildTemplate resources.
func (*ClusterBuildTemplateList) DeepCopy ¶ added in v0.2.0
func (in *ClusterBuildTemplateList) DeepCopy() *ClusterBuildTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterBuildTemplateList.
func (*ClusterBuildTemplateList) DeepCopyInto ¶ added in v0.2.0
func (in *ClusterBuildTemplateList) DeepCopyInto(out *ClusterBuildTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterBuildTemplateList) DeepCopyObject ¶ added in v0.2.0
func (in *ClusterBuildTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterSpec ¶
type ClusterSpec struct { // Namespace is the namespace in which the pod is running. Namespace string `json:"namespace"` // PodName is the name of the pod responsible for executing this build's steps. PodName string `json:"podName"` }
ClusterSpec provides information about the on-cluster build, if applicable.
func (*ClusterSpec) DeepCopy ¶
func (in *ClusterSpec) DeepCopy() *ClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec.
func (*ClusterSpec) DeepCopyInto ¶
func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GCSSourceSpec ¶
type GCSSourceSpec struct { // Type declares the style of source to fetch. Type GCSSourceType `json:"type,omitempty"` // Location specifies the location of the source archive or manifest file. Location string `json:"location,omitempty"` }
GCSSourceSpec describes source input to the Build in the form of an archive, or a source manifest describing files to fetch.
func (*GCSSourceSpec) DeepCopy ¶
func (in *GCSSourceSpec) DeepCopy() *GCSSourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCSSourceSpec.
func (*GCSSourceSpec) DeepCopyInto ¶
func (in *GCSSourceSpec) DeepCopyInto(out *GCSSourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GCSSourceType ¶
type GCSSourceType string
GCSSourceType defines a type of GCS source fetch.
const ( // GCSArchive indicates that source should be fetched from a typical archive file. GCSArchive GCSSourceType = "Archive" // GCSManifest indicates that source should be fetched using a // manifest-based protocol which enables incremental source upload. GCSManifest GCSSourceType = "Manifest" )
type GitSourceSpec ¶
type GitSourceSpec struct { // URL of the Git repository to clone from. Url string `json:"url"` // Git revision (branch, tag, commit SHA or ref) to clone. See // https://git-scm.com/docs/gitrevisions#_specifying_revisions for more // information. Revision string `json:"revision"` }
GitSourceSpec describes a Git repo source input to the Build.
func (*GitSourceSpec) DeepCopy ¶
func (in *GitSourceSpec) DeepCopy() *GitSourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitSourceSpec.
func (*GitSourceSpec) DeepCopyInto ¶
func (in *GitSourceSpec) DeepCopyInto(out *GitSourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GoogleSpec ¶
type GoogleSpec struct { // Operation is the unique name of the GCB API Operation for the build. Operation string `json:"operation"` }
GoogleSpec provides information about the GCB build, if applicable.
func (*GoogleSpec) DeepCopy ¶
func (in *GoogleSpec) DeepCopy() *GoogleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GoogleSpec.
func (*GoogleSpec) DeepCopyInto ¶
func (in *GoogleSpec) DeepCopyInto(out *GoogleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ParameterSpec ¶
type ParameterSpec struct { // Name is the unique name of this template parameter. Name string `json:"name"` // Description is a human-readable explanation of this template parameter. Description string `json:"description,omitempty"` // Default, if specified, defines the default value that should be applied if // the build does not specify the value for this parameter. Default *string `json:"default,omitempty"` }
ParameterSpec defines the possible parameters that can be populated in a template.
func (*ParameterSpec) DeepCopy ¶
func (in *ParameterSpec) DeepCopy() *ParameterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParameterSpec.
func (*ParameterSpec) DeepCopyInto ¶
func (in *ParameterSpec) DeepCopyInto(out *ParameterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SourceSpec ¶
type SourceSpec struct { // Git represents source in a Git repository. // +optional Git *GitSourceSpec `json:"git,omitempty"` // GCS represents source in Google Cloud Storage. // +optional GCS *GCSSourceSpec `json:"gcs,omitempty"` // Custom indicates that source should be retrieved using a custom // process defined in a container invocation. // +optional Custom *corev1.Container `json:"custom,omitempty"` // SubPath specifies a path within the fetched source which should be // built. This option makes parent directories *inaccessible* to the // build steps. (The specific source type may, in fact, not even fetch // files not in the SubPath.) // +optional SubPath string `json:"subPath,omitempty"` // Name is the name of source. This field is used to uniquely identify the // source init containers // Restrictions on the allowed charatcers // Must be a basename (no /) // Must be a valid DNS name (only alphanumeric characters, no _) // https://tools.ietf.org/html/rfc1123#section-2 // +optional Name string `json:"name,omitempty"` // TargetPath is the path in workspace directory where the source will be copied. // TargetPath is optional and if its not set source will be copied under workspace. // TargetPath should not be set for custom source. TargetPath string `json:"targetPath,omitempty"` }
SourceSpec defines the input to the Build
func (*SourceSpec) DeepCopy ¶
func (in *SourceSpec) DeepCopy() *SourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceSpec.
func (*SourceSpec) DeepCopyInto ¶
func (in *SourceSpec) DeepCopyInto(out *SourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Template ¶ added in v0.2.0
type Template interface {
TemplateSpec() BuildTemplateSpec
}
Template is an interface for accessing the BuildTemplateSpec from various forms of template (namespace-/cluster-scoped).
type TemplateInstantiationSpec ¶
type TemplateInstantiationSpec struct { // Name references the BuildTemplate resource to use. // The template is assumed to exist in the Build's namespace. Name string `json:"name"` // The Kind of the template to be used, possible values are BuildTemplate // or ClusterBuildTemplate. If nothing is specified, the default if is BuildTemplate // +optional Kind TemplateKind `json:"kind,omitempty"` // Arguments, if specified, lists values that should be applied to the // parameters specified by the template. // +optional Arguments []ArgumentSpec `json:"arguments,omitempty"` // Env, if specified will provide variables to all build template steps. // This will override any of the template's steps environment variables. // +optional Env []corev1.EnvVar `json:"env,omitempty"` }
TemplateInstantiationSpec specifies how a BuildTemplate is instantiated into a Build.
func (*TemplateInstantiationSpec) DeepCopy ¶
func (in *TemplateInstantiationSpec) DeepCopy() *TemplateInstantiationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateInstantiationSpec.
func (*TemplateInstantiationSpec) DeepCopyInto ¶
func (in *TemplateInstantiationSpec) DeepCopyInto(out *TemplateInstantiationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TemplateInstantiationSpec) Validate ¶ added in v0.2.0
func (b *TemplateInstantiationSpec) Validate(ctx context.Context) *apis.FieldError
Validate template
type TemplateKind ¶ added in v0.2.0
type TemplateKind string
TemplateKind defines the type of BuildTemplate used by the build.
const ( // BuildTemplateKind indicates that the template type has a namepace scope. BuildTemplateKind TemplateKind = "BuildTemplate" // ClusterBuildTemplateKind indicates that template type has a cluster scope. ClusterBuildTemplateKind TemplateKind = "ClusterBuildTemplate" )