Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the image v1alpha1 API group +kubebuilder:object:generate=true +groupName=image.toolkit.fluxcd.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "image.toolkit.fluxcd.io", 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 CommitSpec ¶
type CommitSpec struct {
// AuthorName gives the name to provide when making a commit
// +required
AuthorName string `json:"authorName"`
// AuthorEmail gives the email to provide when making a commit
// +required
AuthorEmail string `json:"authorEmail"`
// MessageTemplate provides a template for the commit message,
// into which will be interpolated the details of the change made.
// +optional
MessageTemplate string `json:"messageTemplate,omitempty"`
}
CommitSpec specifies how to commit changes to the git repository
func (*CommitSpec) DeepCopy ¶
func (in *CommitSpec) DeepCopy() *CommitSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitSpec.
func (*CommitSpec) DeepCopyInto ¶
func (in *CommitSpec) DeepCopyInto(out *CommitSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCheckoutSpec ¶
type GitCheckoutSpec struct {
// GitRepositoryRef refers to the resource giving access details
// to a git repository to update files in.
// +required
GitRepositoryRef corev1.LocalObjectReference `json:"gitRepositoryRef"`
// Branch gives the branch to clone from the git repository. If
// missing, it will be left to default; be aware this may give
// indeterminate results.
// +optional
Branch string `json:"branch,omitempty"`
}
func (*GitCheckoutSpec) DeepCopy ¶
func (in *GitCheckoutSpec) DeepCopy() *GitCheckoutSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCheckoutSpec.
func (*GitCheckoutSpec) DeepCopyInto ¶
func (in *GitCheckoutSpec) DeepCopyInto(out *GitCheckoutSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageUpdateAutomation ¶
type ImageUpdateAutomation struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ImageUpdateAutomationSpec `json:"spec,omitempty"`
Status ImageUpdateAutomationStatus `json:"status,omitempty"`
}
ImageUpdateAutomation is the Schema for the imageupdateautomations API
func (*ImageUpdateAutomation) DeepCopy ¶
func (in *ImageUpdateAutomation) DeepCopy() *ImageUpdateAutomation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageUpdateAutomation.
func (*ImageUpdateAutomation) DeepCopyInto ¶
func (in *ImageUpdateAutomation) DeepCopyInto(out *ImageUpdateAutomation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageUpdateAutomation) DeepCopyObject ¶
func (in *ImageUpdateAutomation) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ImageUpdateAutomationList ¶
type ImageUpdateAutomationList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ImageUpdateAutomation `json:"items"`
}
ImageUpdateAutomationList contains a list of ImageUpdateAutomation
func (*ImageUpdateAutomationList) DeepCopy ¶
func (in *ImageUpdateAutomationList) DeepCopy() *ImageUpdateAutomationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageUpdateAutomationList.
func (*ImageUpdateAutomationList) DeepCopyInto ¶
func (in *ImageUpdateAutomationList) DeepCopyInto(out *ImageUpdateAutomationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageUpdateAutomationList) DeepCopyObject ¶
func (in *ImageUpdateAutomationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ImageUpdateAutomationSpec ¶
type ImageUpdateAutomationSpec struct {
// Checkout gives the parameters for cloning the git repository,
// ready to make changes.
// +required
Checkout GitCheckoutSpec `json:"checkout"`
// RunInterval gives a lower bound for how often the automation
// run should be attempted. Otherwise it will default.
// +optional
RunInterval *metav1.Duration `json:"minimumRunInterval,omitempty"`
// Update gives the specification for how to update the files in
// the repository
// +required
Update UpdateStrategy `json:"update"`
// Commit specifies how to commit to the git repo
// +required
Commit CommitSpec `json:"commit"`
}
ImageUpdateAutomationSpec defines the desired state of ImageUpdateAutomation
func (*ImageUpdateAutomationSpec) DeepCopy ¶
func (in *ImageUpdateAutomationSpec) DeepCopy() *ImageUpdateAutomationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageUpdateAutomationSpec.
func (*ImageUpdateAutomationSpec) DeepCopyInto ¶
func (in *ImageUpdateAutomationSpec) DeepCopyInto(out *ImageUpdateAutomationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageUpdateAutomationStatus ¶
type ImageUpdateAutomationStatus struct {
// LastAutomationRunTime records the last time the controller ran
// this automation through to completion (even if no updates were
// made).
// +optional
LastAutomationRunTime *metav1.Time `json:"lastAutomationRunTime,omitempty"`
}
ImageUpdateAutomationStatus defines the observed state of ImageUpdateAutomation
func (*ImageUpdateAutomationStatus) DeepCopy ¶
func (in *ImageUpdateAutomationStatus) DeepCopy() *ImageUpdateAutomationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageUpdateAutomationStatus.
func (*ImageUpdateAutomationStatus) DeepCopyInto ¶
func (in *ImageUpdateAutomationStatus) DeepCopyInto(out *ImageUpdateAutomationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SettersStrategy ¶
type SettersStrategy struct {
// Paths gives all paths that should be subject to updates using
// setters. If missing, the path `.` (the root of the git
// repository) is assumed.
// +optional
Paths []string `json:"paths,omitempty"`
}
SettersStrategy specifies how to use kyaml setters to update the git repository.
func (*SettersStrategy) DeepCopy ¶
func (in *SettersStrategy) DeepCopy() *SettersStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SettersStrategy.
func (*SettersStrategy) DeepCopyInto ¶
func (in *SettersStrategy) DeepCopyInto(out *SettersStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UpdateStrategy ¶
type UpdateStrategy struct {
// Setters if present means update workloads using setters, via
// fields marked in the files themselves.
// +optional
Setters *SettersStrategy `json:"setters,omitempty"`
}
UpdateStrategy is a union of the various strategies for updating the git repository.
func (*UpdateStrategy) DeepCopy ¶
func (in *UpdateStrategy) DeepCopy() *UpdateStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateStrategy.
func (*UpdateStrategy) DeepCopyInto ¶
func (in *UpdateStrategy) DeepCopyInto(out *UpdateStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.