Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the promoter v1alpha1 API group +kubebuilder:object:generate=true +groupName=promoter.argoproj.io
Index ¶
- Variables
- type CommitStatus
- type CommitStatusList
- type CommitStatusProposedCommitSpec
- type CommitStatusProposedCommitStatus
- type CommitStatusSelector
- type CommitStatusSpec
- type CommitStatusState
- type CommitStatusStatus
- type Environment
- type EnvironmentStatus
- type Fake
- type GitHub
- type HealthyDryShas
- type NamespacedObjectReference
- type PromotionStrategy
- type PromotionStrategyBranchStateStatus
- type PromotionStrategyCommitStatus
- type PromotionStrategyList
- type PromotionStrategySpec
- type PromotionStrategyStatus
- type ProposedCommit
- type ProposedCommitBranchState
- type ProposedCommitList
- type ProposedCommitShaState
- type ProposedCommitSpec
- type ProposedCommitStatus
- type PullRequest
- type PullRequestList
- type PullRequestSpec
- type PullRequestState
- type PullRequestStatus
- type Repository
- type RevertCommit
- type RevertCommitList
- type RevertCommitSpec
- type RevertCommitStatus
- type ScmProvider
- type ScmProviderList
- type ScmProviderSpec
- type ScmProviderStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "promoter.argoproj.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 CommitStatus ¶
type CommitStatus struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CommitStatusSpec `json:"spec,omitempty"` Status CommitStatusStatus `json:"status,omitempty"` }
+kubebuilder:printcolumn:name="Sha",type=string,JSONPath=`.status.sha` +kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.state` CommitStatus is the Schema for the commitstatuses API
func (*CommitStatus) DeepCopy ¶
func (in *CommitStatus) DeepCopy() *CommitStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitStatus.
func (*CommitStatus) DeepCopyInto ¶
func (in *CommitStatus) DeepCopyInto(out *CommitStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CommitStatus) DeepCopyObject ¶
func (in *CommitStatus) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CommitStatusList ¶
type CommitStatusList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CommitStatus `json:"items"` }
CommitStatusList contains a list of CommitStatus
func (*CommitStatusList) DeepCopy ¶
func (in *CommitStatusList) DeepCopy() *CommitStatusList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitStatusList.
func (*CommitStatusList) DeepCopyInto ¶
func (in *CommitStatusList) DeepCopyInto(out *CommitStatusList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CommitStatusList) DeepCopyObject ¶
func (in *CommitStatusList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CommitStatusProposedCommitSpec ¶
type CommitStatusProposedCommitSpec struct { // Key staging hydrated branch // +kubebuilder:validation:Required Key string `json:"key"` }
func (*CommitStatusProposedCommitSpec) DeepCopy ¶
func (in *CommitStatusProposedCommitSpec) DeepCopy() *CommitStatusProposedCommitSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitStatusProposedCommitSpec.
func (*CommitStatusProposedCommitSpec) DeepCopyInto ¶
func (in *CommitStatusProposedCommitSpec) DeepCopyInto(out *CommitStatusProposedCommitSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CommitStatusProposedCommitStatus ¶
type CommitStatusProposedCommitStatus struct { // Key staging hydrated branch // +kubebuilder:validation:Required Key string `json:"key"` // Phase what phase is the status in // +kubebuilder:validation:Required Phase string `json:"phase"` }
func (*CommitStatusProposedCommitStatus) DeepCopy ¶
func (in *CommitStatusProposedCommitStatus) DeepCopy() *CommitStatusProposedCommitStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitStatusProposedCommitStatus.
func (*CommitStatusProposedCommitStatus) DeepCopyInto ¶
func (in *CommitStatusProposedCommitStatus) DeepCopyInto(out *CommitStatusProposedCommitStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CommitStatusSelector ¶
type CommitStatusSelector struct { // +kubebuilder:validation:Pattern:=(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])? Key string `json:"key"` }
func (*CommitStatusSelector) DeepCopy ¶
func (in *CommitStatusSelector) DeepCopy() *CommitStatusSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitStatusSelector.
func (*CommitStatusSelector) DeepCopyInto ¶
func (in *CommitStatusSelector) DeepCopyInto(out *CommitStatusSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CommitStatusSpec ¶
type CommitStatusSpec struct { // +kubebuilder:validation:Required RepositoryReference *Repository `json:"repository"` // +kubebuilder:validation:Required Sha string `json:"sha"` // +kubebuilder:validation:Required Name string `json:"name"` Description string `json:"description"` // +kubebuilder:validation:Required // +kubebuilder:default:=pending // +kubebuilder:validation:Enum:=pending;success;failure State CommitStatusState `json:"state"` // pending, success, failure Url string `json:"url"` }
CommitStatusSpec defines the desired state of CommitStatus
func (*CommitStatusSpec) DeepCopy ¶
func (in *CommitStatusSpec) DeepCopy() *CommitStatusSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitStatusSpec.
func (*CommitStatusSpec) DeepCopyInto ¶
func (in *CommitStatusSpec) DeepCopyInto(out *CommitStatusSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CommitStatusState ¶
type CommitStatusState string
const ( CommitStatusFailure CommitStatusState = "failure" CommitStatusSuccess CommitStatusState = "success" CommitStatusPending CommitStatusState = "pending" )
type CommitStatusStatus ¶
type CommitStatusStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file ObservedGeneration int64 `json:"observedGeneration"` Id string `json:"id"` Sha string `json:"sha"` State CommitStatusState `json:"state"` }
CommitStatusStatus defines the observed state of CommitStatus
func (*CommitStatusStatus) DeepCopy ¶
func (in *CommitStatusStatus) DeepCopy() *CommitStatusStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitStatusStatus.
func (*CommitStatusStatus) DeepCopyInto ¶
func (in *CommitStatusStatus) DeepCopyInto(out *CommitStatusStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Environment ¶
type Environment struct { // +kubebuilder:validation:Required Branch string `json:"branch"` // +kubebuilder:validation:Optional // +kubebuilder:default:=true AutoMerge *bool `json:"autoMerge,omitempty"` // +kubebuilder:validation:Optional ActiveCommitStatuses []CommitStatusSelector `json:"activeCommitStatuses"` // +kubebuilder:validation:Optional ProposedCommitStatuses []CommitStatusSelector `json:"proposedCommitStatuses"` }
func (*Environment) DeepCopy ¶
func (in *Environment) DeepCopy() *Environment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Environment.
func (*Environment) DeepCopyInto ¶
func (in *Environment) DeepCopyInto(out *Environment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Environment) GetAutoMerge ¶
func (e *Environment) GetAutoMerge() bool
type EnvironmentStatus ¶
type EnvironmentStatus struct { Branch string `json:"branch"` Active PromotionStrategyBranchStateStatus `json:"active"` Proposed PromotionStrategyBranchStateStatus `json:"proposed"` // +kubebuilder:validation:Optional LastHealthyDryShas []HealthyDryShas `json:"lastHealthyDryShas"` }
func (*EnvironmentStatus) DeepCopy ¶
func (in *EnvironmentStatus) DeepCopy() *EnvironmentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentStatus.
func (*EnvironmentStatus) DeepCopyInto ¶
func (in *EnvironmentStatus) DeepCopyInto(out *EnvironmentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Fake ¶
type Fake struct {
Domain string `json:"domain,omitempty"`
}
func (*Fake) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Fake.
func (*Fake) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitHub ¶
type GitHub struct {
Domain string `json:"domain,omitempty"`
}
func (*GitHub) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHub.
func (*GitHub) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HealthyDryShas ¶
func (*HealthyDryShas) DeepCopy ¶
func (in *HealthyDryShas) DeepCopy() *HealthyDryShas
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthyDryShas.
func (*HealthyDryShas) DeepCopyInto ¶
func (in *HealthyDryShas) DeepCopyInto(out *HealthyDryShas)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamespacedObjectReference ¶
type NamespacedObjectReference struct { // +kubebuilder:validation:Required Name string `json:"name"` Namespace string `json:"namespace,omitempty"` }
func (*NamespacedObjectReference) DeepCopy ¶
func (in *NamespacedObjectReference) DeepCopy() *NamespacedObjectReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacedObjectReference.
func (*NamespacedObjectReference) DeepCopyInto ¶
func (in *NamespacedObjectReference) DeepCopyInto(out *NamespacedObjectReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PromotionStrategy ¶
type PromotionStrategy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PromotionStrategySpec `json:"spec,omitempty"` Status PromotionStrategyStatus `json:"status,omitempty"` }
+kubebuilder:printcolumn:name="Active Dry Sha",type=string,JSONPath=`.status.active.dry.sha` +kubebuilder:printcolumn:name="Proposed Dry Sha",type=string,JSONPath=`.status.proposed.dry.sha` PromotionStrategy is the Schema for the promotionstrategies API
func (*PromotionStrategy) DeepCopy ¶
func (in *PromotionStrategy) DeepCopy() *PromotionStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PromotionStrategy.
func (*PromotionStrategy) DeepCopyInto ¶
func (in *PromotionStrategy) DeepCopyInto(out *PromotionStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PromotionStrategy) DeepCopyObject ¶
func (in *PromotionStrategy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PromotionStrategyBranchStateStatus ¶
type PromotionStrategyBranchStateStatus struct { Dry ProposedCommitShaState `json:"dry"` Hydrated ProposedCommitShaState `json:"hydrated"` CommitStatus PromotionStrategyCommitStatus `json:"commitStatus"` }
func (*PromotionStrategyBranchStateStatus) DeepCopy ¶
func (in *PromotionStrategyBranchStateStatus) DeepCopy() *PromotionStrategyBranchStateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PromotionStrategyBranchStateStatus.
func (*PromotionStrategyBranchStateStatus) DeepCopyInto ¶
func (in *PromotionStrategyBranchStateStatus) DeepCopyInto(out *PromotionStrategyBranchStateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PromotionStrategyCommitStatus ¶
func (*PromotionStrategyCommitStatus) DeepCopy ¶
func (in *PromotionStrategyCommitStatus) DeepCopy() *PromotionStrategyCommitStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PromotionStrategyCommitStatus.
func (*PromotionStrategyCommitStatus) DeepCopyInto ¶
func (in *PromotionStrategyCommitStatus) DeepCopyInto(out *PromotionStrategyCommitStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PromotionStrategyList ¶
type PromotionStrategyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PromotionStrategy `json:"items"` }
PromotionStrategyList contains a list of PromotionStrategy
func (*PromotionStrategyList) DeepCopy ¶
func (in *PromotionStrategyList) DeepCopy() *PromotionStrategyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PromotionStrategyList.
func (*PromotionStrategyList) DeepCopyInto ¶
func (in *PromotionStrategyList) DeepCopyInto(out *PromotionStrategyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PromotionStrategyList) DeepCopyObject ¶
func (in *PromotionStrategyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PromotionStrategySpec ¶
type PromotionStrategySpec struct { // +kubebuilder:validation:Required RepositoryReference *Repository `json:"repository"` // +kubebuilder:validation:Required DryBanch string `json:"dryBranch"` // +kubebuilder:validation:Optional ActiveCommitStatuses []CommitStatusSelector `json:"activeCommitStatuses"` // +kubebuilder:validation:Optional ProposedCommitStatuses []CommitStatusSelector `json:"proposedCommitStatuses"` // +kubebuilder:validation:MinItems:=1 Environments []Environment `json:"environments"` }
PromotionStrategySpec defines the desired state of PromotionStrategy
func (*PromotionStrategySpec) DeepCopy ¶
func (in *PromotionStrategySpec) DeepCopy() *PromotionStrategySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PromotionStrategySpec.
func (*PromotionStrategySpec) DeepCopyInto ¶
func (in *PromotionStrategySpec) DeepCopyInto(out *PromotionStrategySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PromotionStrategyStatus ¶
type PromotionStrategyStatus struct {
Environments []EnvironmentStatus `json:"environments"`
}
PromotionStrategyStatus defines the observed state of PromotionStrategy
func (*PromotionStrategyStatus) DeepCopy ¶
func (in *PromotionStrategyStatus) DeepCopy() *PromotionStrategyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PromotionStrategyStatus.
func (*PromotionStrategyStatus) DeepCopyInto ¶
func (in *PromotionStrategyStatus) DeepCopyInto(out *PromotionStrategyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProposedCommit ¶
type ProposedCommit struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ProposedCommitSpec `json:"spec,omitempty"` Status ProposedCommitStatus `json:"status,omitempty"` }
+kubebuilder:printcolumn:name="Active Dry Sha",type=string,JSONPath=`.status.active.dry.sha` +kubebuilder:printcolumn:name="Proposed Dry Sha",type=string,JSONPath=`.status.proposed.dry.sha` ProposedCommit is the Schema for the proposedcommits API
func (*ProposedCommit) DeepCopy ¶
func (in *ProposedCommit) DeepCopy() *ProposedCommit
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProposedCommit.
func (*ProposedCommit) DeepCopyInto ¶
func (in *ProposedCommit) DeepCopyInto(out *ProposedCommit)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProposedCommit) DeepCopyObject ¶
func (in *ProposedCommit) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProposedCommitBranchState ¶
type ProposedCommitBranchState struct { Dry ProposedCommitShaState `json:"dry,omitempty"` Hydrated ProposedCommitShaState `json:"hydrated,omitempty"` }
func (*ProposedCommitBranchState) DeepCopy ¶
func (in *ProposedCommitBranchState) DeepCopy() *ProposedCommitBranchState
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProposedCommitBranchState.
func (*ProposedCommitBranchState) DeepCopyInto ¶
func (in *ProposedCommitBranchState) DeepCopyInto(out *ProposedCommitBranchState)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProposedCommitBranchState) DryShaShort ¶
func (b *ProposedCommitBranchState) DryShaShort() string
type ProposedCommitList ¶
type ProposedCommitList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ProposedCommit `json:"items"` }
ProposedCommitList contains a list of ProposedCommit
func (*ProposedCommitList) DeepCopy ¶
func (in *ProposedCommitList) DeepCopy() *ProposedCommitList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProposedCommitList.
func (*ProposedCommitList) DeepCopyInto ¶
func (in *ProposedCommitList) DeepCopyInto(out *ProposedCommitList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProposedCommitList) DeepCopyObject ¶
func (in *ProposedCommitList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProposedCommitShaState ¶
type ProposedCommitShaState struct { Sha string `json:"sha,omitempty"` CommitTime metav1.Time `json:"commitTime,omitempty"` }
func (*ProposedCommitShaState) DeepCopy ¶
func (in *ProposedCommitShaState) DeepCopy() *ProposedCommitShaState
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProposedCommitShaState.
func (*ProposedCommitShaState) DeepCopyInto ¶
func (in *ProposedCommitShaState) DeepCopyInto(out *ProposedCommitShaState)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProposedCommitSpec ¶
type ProposedCommitSpec struct { // RepositoryReference what repository to open the PR on. // +kubebuilder:validation:Required RepositoryReference *Repository `json:"repository"` // ProposedBranch staging hydrated branch // +kubebuilder:validation:Required ProposedBranch string `json:"proposedBranch"` // ActiveBranch staging hydrated branch // +kubebuilder:validation:Required ActiveBranch string `json:"activeBranch"` CommitStatuses []CommitStatusProposedCommitSpec `json:"commitStatuses,omitempty"` }
ProposedCommitSpec defines the desired state of ProposedCommit
func (*ProposedCommitSpec) DeepCopy ¶
func (in *ProposedCommitSpec) DeepCopy() *ProposedCommitSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProposedCommitSpec.
func (*ProposedCommitSpec) DeepCopyInto ¶
func (in *ProposedCommitSpec) DeepCopyInto(out *ProposedCommitSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProposedCommitStatus ¶
type ProposedCommitStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file Proposed ProposedCommitBranchState `json:"proposed,omitempty"` Active ProposedCommitBranchState `json:"active,omitempty"` CommitStatuses []CommitStatusProposedCommitStatus `json:"commitStatuses,omitempty"` }
ProposedCommitStatus defines the observed state of ProposedCommit
func (*ProposedCommitStatus) DeepCopy ¶
func (in *ProposedCommitStatus) DeepCopy() *ProposedCommitStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProposedCommitStatus.
func (*ProposedCommitStatus) DeepCopyInto ¶
func (in *ProposedCommitStatus) DeepCopyInto(out *ProposedCommitStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PullRequest ¶
type PullRequest struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PullRequestSpec `json:"spec,omitempty"` Status PullRequestStatus `json:"status,omitempty"` }
PullRequest is the Schema for the pullrequests API +kubebuilder:printcolumn:name="ID",type=string,JSONPath=`.status.id` +kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.state`
func (*PullRequest) DeepCopy ¶
func (in *PullRequest) DeepCopy() *PullRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequest.
func (*PullRequest) DeepCopyInto ¶
func (in *PullRequest) DeepCopyInto(out *PullRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PullRequest) DeepCopyObject ¶
func (in *PullRequest) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (PullRequest) Hash ¶
func (pr PullRequest) Hash() (string, error)
type PullRequestList ¶
type PullRequestList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PullRequest `json:"items"` }
PullRequestList contains a list of PullRequest
func (*PullRequestList) DeepCopy ¶
func (in *PullRequestList) DeepCopy() *PullRequestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestList.
func (*PullRequestList) DeepCopyInto ¶
func (in *PullRequestList) DeepCopyInto(out *PullRequestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PullRequestList) DeepCopyObject ¶
func (in *PullRequestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PullRequestSpec ¶
type PullRequestSpec struct { // RepositoryReference what repository to open the PR on. // +kubebuilder:validation:Required RepositoryReference *Repository `json:"repository"` // Title is the title of the pull request. // +kubebuilder:validation:Required Title string `json:"title"` // Head the git reference we are merging from Head ---> Base // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Value is immutable" // +kubebuilder:validation:Required TargetBranch string `json:"targetBranch"` // Base the git reference that we are merging into Head ---> Base // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Value is immutable" // +kubebuilder:validation:Required SourceBranch string `json:"sourceBranch"` // Body the description body of the pull/merge request Description string `json:"description,omitempty"` // State of the merge request closed/merged/open // +kubebuilder:default:=open // +kubebuilder:validation:Required State PullRequestState `json:"state"` }
PullRequestSpec defines the desired state of PullRequest
func (*PullRequestSpec) DeepCopy ¶
func (in *PullRequestSpec) DeepCopy() *PullRequestSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestSpec.
func (*PullRequestSpec) DeepCopyInto ¶
func (in *PullRequestSpec) DeepCopyInto(out *PullRequestSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PullRequestState ¶
type PullRequestState string
const ( PullRequestClosed PullRequestState = "closed" PullRequestOpen PullRequestState = "open" PullRequestMerged PullRequestState = "merged" )
type PullRequestStatus ¶
type PullRequestStatus struct { // ID the id of the pull request ID string `json:"id,omitempty"` // State of the merge request closed/merged/open State PullRequestState `json:"state,omitempty"` // SpecHash used to track if we need to update, should maybe use observedGeneration pattern SpecHash string `json:"specHash,omitempty"` // PRCreationTime the time the PR was created PRCreationTime metav1.Time `json:"prCreationTime,omitempty"` }
PullRequestStatus defines the observed state of PullRequest
func (*PullRequestStatus) DeepCopy ¶
func (in *PullRequestStatus) DeepCopy() *PullRequestStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestStatus.
func (*PullRequestStatus) DeepCopyInto ¶
func (in *PullRequestStatus) DeepCopyInto(out *PullRequestStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Repository ¶
type Repository struct { // +kubebuilder:validation:Required Owner string `json:"owner"` // +kubebuilder:validation:Required Name string `json:"name"` // +kubebuilder:validation:Required ScmProviderRef NamespacedObjectReference `json:"scmProviderRef"` }
func (*Repository) DeepCopy ¶
func (in *Repository) DeepCopy() *Repository
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Repository.
func (*Repository) DeepCopyInto ¶
func (in *Repository) DeepCopyInto(out *Repository)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RevertCommit ¶
type RevertCommit struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RevertCommitSpec `json:"spec,omitempty"` Status RevertCommitStatus `json:"status,omitempty"` }
RevertCommit is the Schema for the revertcommits API
func (*RevertCommit) DeepCopy ¶
func (in *RevertCommit) DeepCopy() *RevertCommit
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RevertCommit.
func (*RevertCommit) DeepCopyInto ¶
func (in *RevertCommit) DeepCopyInto(out *RevertCommit)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RevertCommit) DeepCopyObject ¶
func (in *RevertCommit) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RevertCommitList ¶
type RevertCommitList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RevertCommit `json:"items"` }
RevertCommitList contains a list of RevertCommit
func (*RevertCommitList) DeepCopy ¶
func (in *RevertCommitList) DeepCopy() *RevertCommitList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RevertCommitList.
func (*RevertCommitList) DeepCopyInto ¶
func (in *RevertCommitList) DeepCopyInto(out *RevertCommitList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RevertCommitList) DeepCopyObject ¶
func (in *RevertCommitList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RevertCommitSpec ¶
type RevertCommitSpec struct { // Foo is an example field of RevertCommit. Edit revertcommit_types.go to remove/update Foo string `json:"foo,omitempty"` }
RevertCommitSpec defines the desired state of RevertCommit
func (*RevertCommitSpec) DeepCopy ¶
func (in *RevertCommitSpec) DeepCopy() *RevertCommitSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RevertCommitSpec.
func (*RevertCommitSpec) DeepCopyInto ¶
func (in *RevertCommitSpec) DeepCopyInto(out *RevertCommitSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RevertCommitStatus ¶
type RevertCommitStatus struct { }
RevertCommitStatus defines the observed state of RevertCommit
func (*RevertCommitStatus) DeepCopy ¶
func (in *RevertCommitStatus) DeepCopy() *RevertCommitStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RevertCommitStatus.
func (*RevertCommitStatus) DeepCopyInto ¶
func (in *RevertCommitStatus) DeepCopyInto(out *RevertCommitStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScmProvider ¶
type ScmProvider struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ScmProviderSpec `json:"spec,omitempty"` Status ScmProviderStatus `json:"status,omitempty"` }
ScmProvider is the Schema for the scmproviders API
func (*ScmProvider) DeepCopy ¶
func (in *ScmProvider) DeepCopy() *ScmProvider
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScmProvider.
func (*ScmProvider) DeepCopyInto ¶
func (in *ScmProvider) DeepCopyInto(out *ScmProvider)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ScmProvider) DeepCopyObject ¶
func (in *ScmProvider) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScmProviderList ¶
type ScmProviderList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ScmProvider `json:"items"` }
ScmProviderList contains a list of ScmProvider
func (*ScmProviderList) DeepCopy ¶
func (in *ScmProviderList) DeepCopy() *ScmProviderList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScmProviderList.
func (*ScmProviderList) DeepCopyInto ¶
func (in *ScmProviderList) DeepCopyInto(out *ScmProviderList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ScmProviderList) DeepCopyObject ¶
func (in *ScmProviderList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScmProviderSpec ¶
type ScmProviderSpec struct { // SecretRef contains the credentials required to auth to a specific provider SecretRef *v1.LocalObjectReference `json:"secretRef,omitempty"` // GitHub required configuration for GitHub as the SCM provider GitHub *GitHub `json:"github,omitempty"` // Fake required configuration for Fake as the SCM provider Fake *Fake `json:"fake,omitempty"` }
ScmProviderSpec defines the desired state of ScmProvider
func (*ScmProviderSpec) DeepCopy ¶
func (in *ScmProviderSpec) DeepCopy() *ScmProviderSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScmProviderSpec.
func (*ScmProviderSpec) DeepCopyInto ¶
func (in *ScmProviderSpec) DeepCopyInto(out *ScmProviderSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScmProviderStatus ¶
type ScmProviderStatus struct { }
ScmProviderStatus defines the observed state of ScmProvider
func (*ScmProviderStatus) DeepCopy ¶
func (in *ScmProviderStatus) DeepCopy() *ScmProviderStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScmProviderStatus.
func (*ScmProviderStatus) DeepCopyInto ¶
func (in *ScmProviderStatus) DeepCopyInto(out *ScmProviderStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.