Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the delivery v1alpha1 API group +kubebuilder:object:generate=true +groupName=delivery.ocm.software
Package v1alpha1 contains API Schema definitions for the delivery v1alpha1 API group +kubebuilder:object:generate=true +groupName=delivery.ocm.software
Index ¶
- Constants
- Variables
- type CommitTemplate
- type PullRequestTemplate
- type Sync
- func (in *Sync) DeepCopy() *Sync
- func (in *Sync) DeepCopyInto(out *Sync)
- func (in *Sync) DeepCopyObject() runtime.Object
- func (in *Sync) GetConditions() []metav1.Condition
- func (in Sync) GetRequeueAfter() time.Duration
- func (in *Sync) GetVID() map[string]string
- func (in *Sync) SetConditions(conditions []metav1.Condition)
- func (in *Sync) SetObservedGeneration(v int64)
- type SyncList
- type SyncSpec
- type SyncStatus
Constants ¶
const ( // SnapshotGetFailedReason is used when the needed snapshot does not exist. SnapshotGetFailedReason = "SnapshotGetFailed" // RepositoryGetFailedReason is used when the needed repository does not exist. RepositoryGetFailedReason = "RepositoryGetFailed" // CredentialsNotFoundReason is used when the needed authentication does not exist. CredentialsNotFoundReason = "CredentialsNotFound" // GitRepositoryPushFailedReason is used when the needed pushing to a git repository failed. GitRepositoryPushFailedReason = "GitRepositoryPushFailed" // CreatePullRequestFailedReason is used when creating a pull request failed. CreatePullRequestFailedReason = "CreatePullRequestFailed" )
const (
LevelDebug = 4
)
const (
// StatusCheckName defines the name of the check a PullRequest will have.
StatusCheckName = "mpas/validation-check"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "delivery.ocm.software", 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 CommitTemplate ¶
type CommitTemplate struct { Name string `json:"name"` Email string `json:"email"` Message string `json:"message"` //+optional TargetBranch string `json:"targetBranch,omitempty"` //+optional //+kubebuilder:default:=main BaseBranch string `json:"baseBranch,omitempty"` }
CommitTemplate defines the details of the commit to the external repository.
func (*CommitTemplate) DeepCopy ¶
func (in *CommitTemplate) DeepCopy() *CommitTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitTemplate.
func (*CommitTemplate) DeepCopyInto ¶
func (in *CommitTemplate) DeepCopyInto(out *CommitTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PullRequestTemplate ¶
type PullRequestTemplate struct { Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Base string `json:"base,omitempty"` }
PullRequestTemplate provides information for the created pull request.
func (*PullRequestTemplate) DeepCopy ¶
func (in *PullRequestTemplate) DeepCopy() *PullRequestTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestTemplate.
func (*PullRequestTemplate) DeepCopyInto ¶
func (in *PullRequestTemplate) DeepCopyInto(out *PullRequestTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Sync ¶
type Sync struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SyncSpec `json:"spec,omitempty"` Status SyncStatus `json:"status,omitempty"` }
Sync is the Schema for the syncs API.
func (*Sync) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sync.
func (*Sync) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Sync) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Sync) GetConditions ¶
GetConditions returns the conditions of the ComponentVersion.
func (Sync) GetRequeueAfter ¶
GetRequeueAfter returns the duration after which the ComponentVersion must be reconciled again.
func (*Sync) SetConditions ¶
SetConditions sets the conditions of the ComponentVersion.
func (*Sync) SetObservedGeneration ¶ added in v0.10.0
type SyncList ¶
type SyncList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Sync `json:"items"` }
SyncList contains a list of Sync.
func (*SyncList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncList.
func (*SyncList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SyncList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SyncSpec ¶
type SyncSpec struct { SnapshotRef v1.LocalObjectReference `json:"snapshotRef"` RepositoryRef meta.NamespacedObjectReference `json:"repositoryRef"` Interval metav1.Duration `json:"interval"` CommitTemplate CommitTemplate `json:"commitTemplate"` SubPath string `json:"subPath"` Prune bool `json:"prune,omitempty"` //+optional AutomaticPullRequestCreation bool `json:"automaticPullRequestCreation,omitempty"` //+optional PullRequestTemplate PullRequestTemplate `json:"pullRequestTemplate,omitempty"` }
SyncSpec defines the desired state of Sync.
func (*SyncSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncSpec.
func (*SyncSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SyncStatus ¶
type SyncStatus struct { Digest string `json:"digest,omitempty"` // ObservedGeneration is the last reconciled generation. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // +optional // +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description="" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description="" Conditions []metav1.Condition `json:"conditions,omitempty"` // +optional PullRequestID int `json:"pullRequestID,omitempty"` }
SyncStatus defines the observed state of Sync.
func (*SyncStatus) DeepCopy ¶
func (in *SyncStatus) DeepCopy() *SyncStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncStatus.
func (*SyncStatus) DeepCopyInto ¶
func (in *SyncStatus) DeepCopyInto(out *SyncStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.