Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group
Deprecated: Due to breaking changes, v1alpha2 is a new default, and this version will be removed in upcoming releases.
+kubebuilder:object:generate=true +groupName=image-builder.anza-labs.dev
Index ¶
- Variables
- type Imagedeprecated
- type ImageListdeprecated
- type ImageSpec
- type ImageStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "image-builder.anza-labs.dev", 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 Image
deprecated
type Image struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ImageSpec `json:"spec,omitempty"`
Status ImageStatus `json:"status,omitempty"`
}
Image is the Schema for the images API.
Deprecated: Due to breaking changes, v1alpha2 is a new default, and this version will be removed in upcoming releases.
func (*Image) ConvertFrom ¶ added in v0.3.0
func (dst *Image) ConvertFrom(srcRaw conversion.Hub) error
ConvertFrom converts from the Hub version to this version.
func (*Image) ConvertTo ¶ added in v0.3.0
func (src *Image) ConvertTo(dstRaw conversion.Hub) error
ConvertTo converts this Image to the Hub version.
func (*Image) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Image.
func (*Image) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Image) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ImageList
deprecated
type ImageList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Image `json:"items"`
}
ImageList contains a list of Image.
Deprecated: Due to breaking changes, v1alpha2 is a new default, and this version will be removed in upcoming releases.
func (*ImageList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageList.
func (*ImageList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ImageSpec ¶
type ImageSpec struct {
// BuilderImage indicates the container image to use for the Builder job.
// +optional
BuilderImage string `json:"builderImage,omitempty"`
// BuilderVerbosity specifies log verbosity of the builder.
// +optional
// +default=4
// +kubebuilder:default=4
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Maximum=10
BuilderVerbosity uint8 `json:"builderVerbosity"`
// Resources describe the compute resource requirements.
// +optional
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
// Affinity specifies the scheduling constraints for Pods.
// +optional
Affinity *corev1.Affinity `json:"affinity,omitempty"`
// Format specifies the image format.
// +kubebuilder:validation:Enum=aws;docker;dynamic-vhd;gcp;iso-bios;iso-efi;iso-efi-initrd;kernel+initrd;kernel+iso;kernel+squashfs;qcow2-bios;qcow2-efi;raw-bios;raw-efi;rpi3;tar;tar-kernel-initrd;vhd;vmdk
// +required
Format string `json:"format"`
// Configuration is a YAML formatted Linuxkit config.
// +required
Configuration string `json:"configuration"`
// Result is a local reference that lists downloadable objects, that are results of the image building.
// Defaults to the Image.Metadata.Name.
// +optional
Result corev1.LocalObjectReference `json:"result"`
// BucketCredentials is a reference to the credentials for S3, where the image will be stored.
// +required
BucketCredentials corev1.LocalObjectReference `json:"bucketCredentials"`
}
ImageSpec defines the desired state of Image.
func (*ImageSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageSpec.
func (*ImageSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageStatus ¶
type ImageStatus struct {
// Ready indicates whether the image is ready.
// +optional
Ready bool `json:"ready"`
}
ImageStatus defines the observed state of Image.
func (*ImageStatus) DeepCopy ¶
func (in *ImageStatus) DeepCopy() *ImageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageStatus.
func (*ImageStatus) DeepCopyInto ¶
func (in *ImageStatus) DeepCopyInto(out *ImageStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.