Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the forge v1alpha1 API group +kubebuilder:object:generate=true +groupName=forge.dominodatalab.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "forge.dominodatalab.com", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type BuildState ¶
type BuildState string
const ( Building BuildState = "Building" Completed BuildState = "Completed" Failed BuildState = "Failed" )
type ContainerImageBuild ¶
type ContainerImageBuild struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ContainerImageBuildSpec `json:"spec,omitempty"`
Status ContainerImageBuildStatus `json:"status,omitempty"`
}
ContainerImageBuild is the Schema for the containerimagebuilds API
func (*ContainerImageBuild) DeepCopy ¶
func (in *ContainerImageBuild) DeepCopy() *ContainerImageBuild
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerImageBuild.
func (*ContainerImageBuild) DeepCopyInto ¶
func (in *ContainerImageBuild) DeepCopyInto(out *ContainerImageBuild)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ContainerImageBuild) DeepCopyObject ¶
func (in *ContainerImageBuild) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ContainerImageBuildList ¶
type ContainerImageBuildList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ContainerImageBuild `json:"items"`
}
ContainerImageBuildList contains a list of ContainerImageBuild
func (*ContainerImageBuildList) DeepCopy ¶
func (in *ContainerImageBuildList) DeepCopy() *ContainerImageBuildList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerImageBuildList.
func (*ContainerImageBuildList) DeepCopyInto ¶
func (in *ContainerImageBuildList) DeepCopyInto(out *ContainerImageBuildList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ContainerImageBuildList) DeepCopyObject ¶
func (in *ContainerImageBuildList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ContainerImageBuildSpec ¶
type ContainerImageBuildSpec struct {
// Registry where an image should be pushed at the end of a successful build.
// +kubebuilder:validation:MinLength=1
PushRegistry string `json:"pushRegistry"`
// Name used to build an image.
// +kubebuilder:validation:MinLength=1
ImageName string `json:"imageName"`
// Build context for the image. This can be a local path or url.
Context string `json:"context"`
// Image build arguments.
// +kubebuilder:validation:Optional
BuildArgs []string `json:"buildArgs"`
// Labels added to the image during build.
// +kubebuilder:validation:Optional
Labels map[string]string `json:"labels"`
// Disable the use of cache layers for a build.
// +kubebuilder:validation:Optional
NoCache bool `json:"noCache"`
// Limits build cpu consumption (value should be some value from 0 to 100_000).
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Minimum=10000
// +kubebuilder:validation:Maximum=100000
CpuQuota uint16 `json:"cpuQuota"`
// Limits build memory consumption.
// +kubebuilder:validation:Optional
Memory string `json:"memory"`
// Optional deadline in seconds for image build to complete (defaults to 300).
// +kubebuilder:validation:Optional
TimeoutSeconds uint16 `json:"timeoutSeconds"`
// Prevents images larger than this size (in bytes) from being pushed to a registry. By default,
// an image of any size will be pushed.
// +kubebuilder:validation:Optional
ImageSizeLimit uint64 `json:"imageSizeLimit"`
}
ContainerImageBuildSpec defines the desired state of ContainerImageBuild
func (*ContainerImageBuildSpec) DeepCopy ¶
func (in *ContainerImageBuildSpec) DeepCopy() *ContainerImageBuildSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerImageBuildSpec.
func (*ContainerImageBuildSpec) DeepCopyInto ¶
func (in *ContainerImageBuildSpec) DeepCopyInto(out *ContainerImageBuildSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContainerImageBuildStatus ¶
type ContainerImageBuildStatus struct {
State BuildState `json:"state,omitempty"`
ImageURL string `json:"imageURL,omitempty"`
ErrorMessage string `json:"errorMessage,omitempty"`
BuildStartedAt *metav1.Time `json:"buildStartedAt,omitempty"`
BuildCompletedAt *metav1.Time `json:"buildCompletedAt,omitempty"`
}
ContainerImageBuildStatus defines the observed state of ContainerImageBuild
func (*ContainerImageBuildStatus) DeepCopy ¶
func (in *ContainerImageBuildStatus) DeepCopy() *ContainerImageBuildStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerImageBuildStatus.
func (*ContainerImageBuildStatus) DeepCopyInto ¶
func (in *ContainerImageBuildStatus) DeepCopyInto(out *ContainerImageBuildStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.