Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the promoter v1alpha1 API group +kubebuilder:object:generate=true +groupName=promoter.argoproj.io
Index ¶
- Constants
- Variables
- type ApplicationsSelected
- type ArgoCDCommitStatus
- type ArgoCDCommitStatusList
- type ArgoCDCommitStatusSpec
- type ArgoCDCommitStatusStatus
- type ChangeRequestPolicyCommitStatusPhase
- type ChangeTransferPolicy
- type ChangeTransferPolicyList
- type ChangeTransferPolicySpec
- type ChangeTransferPolicyStatus
- type ClusterScmProvider
- type ClusterScmProviderList
- type CommitBranchState
- type CommitMetadata
- type CommitShaState
- type CommitStatus
- type CommitStatusList
- type CommitStatusPhase
- type CommitStatusSelector
- type CommitStatusSpec
- type CommitStatusStatus
- type ControllerConfiguration
- type ControllerConfigurationList
- type ControllerConfigurationSpec
- type ControllerConfigurationStatus
- type Environment
- type EnvironmentStatus
- type Fake
- type FakeRepo
- type Forgejo
- type ForgejoRepo
- type GenericScmProvider
- type GitHub
- type GitHubRepo
- type GitLab
- type GitLabRepo
- type GitRepository
- type GitRepositoryList
- type GitRepositorySpec
- type GitRepositoryStatus
- type HealthyDryShas
- type ObjectReference
- type PromotionStrategy
- type PromotionStrategyBranchStateStatus
- type PromotionStrategyCommitStatus
- type PromotionStrategyList
- type PromotionStrategySpec
- type PromotionStrategyStatus
- type PullRequest
- type PullRequestConfiguration
- type PullRequestList
- type PullRequestSpec
- type PullRequestState
- type PullRequestStatus
- type PullRequestTemplate
- type RevertCommit
- type RevertCommitList
- type RevertCommitSpec
- type RevertCommitStatus
- type RevisionReference
- type ScmProvider
- type ScmProviderList
- type ScmProviderObjectReference
- type ScmProviderSpec
- type ScmProviderStatus
Constants ¶
const ChangeTransferPolicyLabel = "promoter.argoproj.io/change-transfer-policy"
const CommitStatusCopyLabel = "promoter.argoproj.io/commit-status-copy"
CommitStatusCopyLabel is the label used to identify copied commit statuses (true or false)
const CommitStatusFromBranchLabel = "promoter.argoproj.io/commit-status-copy-from-branch"
CommitStatusFromBranchLabel the branch/environment that we were copied from
const CommitStatusLabel = "promoter.argoproj.io/commit-status"
CommitStatusLabel is the label used to identify commit statuses, this is used to look up commit statuses configured in the PromotionStrategy CR
const CommitStatusPreviousEnvironmentStatusesAnnotation = "promoter.argoproj.io/previous-environment-statuses"
CommitStatusPreviousEnvironmentStatusesAnnotation is the label used to identify commit statuses that make up the aggregated active commit status
const CommmitStatusFromShaLabel = "promoter.argoproj.io/commit-status-copy-from-sha"
CommmitStatusFromShaLabel is the commit status hydrated sha that we were copied from
const CopiedCommitStatusFromLabel = "promoter.argoproj.io/commit-status-copy-from"
CopiedCommitStatusFromLabel is the commit status that we were copied from
const EnvironmentLabel = "promoter.argoproj.io/environment"
EnvironmentLabel the environment branch for the proposed commit
const PreviousEnvProposedCommitPrefixNameLabel = "promoter-previous-env-"
PreviousEnvProposedCommitPrefixNameLabel is the prefix name for copied proposed commits
const PreviousEnvironmentCommitStatusKey = "promoter-previous-environment"
PreviousEnvironmentCommitStatusKey the commit status key name used to indicate the previous environment health
const PromotionStrategyLabel = "promoter.argoproj.io/promotion-strategy"
PromotionStrategyLabel the promotion strategy which the proposed commit is associated with
const ReconcileAtAnnotation = "promoter.argoproj.io/reconcile-at"
ReconcileAtAnnotation is the annotation used to indicate when the webhook triggered a reconcile
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 )
var ClusterScmProviderKind = reflect.TypeOf(ClusterScmProvider{}).Name()
var ScmProviderKind = reflect.TypeOf(ScmProvider{}).Name()
Functions ¶
This section is empty.
Types ¶
type ApplicationsSelected ¶
type ApplicationsSelected struct {
Namespace string `json:"namespace"`
Name string `json:"name"`
Phase CommitStatusPhase `json:"phase"`
Sha string `json:"sha"`
// +kubebuilder:validation:Optional
LastTransitionTime *metav1.Time `json:"lastTransitionTime"`
}
func (*ApplicationsSelected) DeepCopy ¶
func (in *ApplicationsSelected) DeepCopy() *ApplicationsSelected
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationsSelected.
func (*ApplicationsSelected) DeepCopyInto ¶
func (in *ApplicationsSelected) DeepCopyInto(out *ApplicationsSelected)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArgoCDCommitStatus ¶
type ArgoCDCommitStatus struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ArgoCDCommitStatusSpec `json:"spec,omitempty"`
Status ArgoCDCommitStatusStatus `json:"status,omitempty"`
}
ArgoCDCommitStatus is the Schema for the argocdcommitstatuses API.
func (*ArgoCDCommitStatus) DeepCopy ¶
func (in *ArgoCDCommitStatus) DeepCopy() *ArgoCDCommitStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArgoCDCommitStatus.
func (*ArgoCDCommitStatus) DeepCopyInto ¶
func (in *ArgoCDCommitStatus) DeepCopyInto(out *ArgoCDCommitStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ArgoCDCommitStatus) DeepCopyObject ¶
func (in *ArgoCDCommitStatus) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ArgoCDCommitStatusList ¶
type ArgoCDCommitStatusList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ArgoCDCommitStatus `json:"items"`
}
ArgoCDCommitStatusList contains a list of ArgoCDCommitStatus.
func (*ArgoCDCommitStatusList) DeepCopy ¶
func (in *ArgoCDCommitStatusList) DeepCopy() *ArgoCDCommitStatusList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArgoCDCommitStatusList.
func (*ArgoCDCommitStatusList) DeepCopyInto ¶
func (in *ArgoCDCommitStatusList) DeepCopyInto(out *ArgoCDCommitStatusList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ArgoCDCommitStatusList) DeepCopyObject ¶
func (in *ArgoCDCommitStatusList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ArgoCDCommitStatusSpec ¶
type ArgoCDCommitStatusSpec struct {
// +kubebuilder:validation:Required
PromotionStrategyRef ObjectReference `json:"promotionStrategyRef,omitempty"`
// +kubebuilder:validation:Required
ApplicationSelector *metav1.LabelSelector `json:"applicationSelector,omitempty"`
}
ArgoCDCommitStatusSpec defines the desired state of ArgoCDCommitStatus.
func (*ArgoCDCommitStatusSpec) DeepCopy ¶
func (in *ArgoCDCommitStatusSpec) DeepCopy() *ArgoCDCommitStatusSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArgoCDCommitStatusSpec.
func (*ArgoCDCommitStatusSpec) DeepCopyInto ¶
func (in *ArgoCDCommitStatusSpec) DeepCopyInto(out *ArgoCDCommitStatusSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArgoCDCommitStatusStatus ¶
type ArgoCDCommitStatusStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file
ApplicationsSelected []ApplicationsSelected `json:"applicationsSelected,omitempty"`
}
ArgoCDCommitStatusStatus defines the observed state of ArgoCDCommitStatus.
func (*ArgoCDCommitStatusStatus) DeepCopy ¶
func (in *ArgoCDCommitStatusStatus) DeepCopy() *ArgoCDCommitStatusStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArgoCDCommitStatusStatus.
func (*ArgoCDCommitStatusStatus) DeepCopyInto ¶
func (in *ArgoCDCommitStatusStatus) DeepCopyInto(out *ArgoCDCommitStatusStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChangeRequestPolicyCommitStatusPhase ¶
type ChangeRequestPolicyCommitStatusPhase struct {
// Key staging hydrated branch
// +kubebuilder:validation:Required
Key string `json:"key"`
// Phase what phase is the status in
// +kubebuilder:validation:Required
// +kubebuilder:validation:Enum:=pending;success;failure
Phase string `json:"phase"`
// Url is the URL of the commit status
Url string `json:"url,omitempty"`
}
func (*ChangeRequestPolicyCommitStatusPhase) DeepCopy ¶
func (in *ChangeRequestPolicyCommitStatusPhase) DeepCopy() *ChangeRequestPolicyCommitStatusPhase
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChangeRequestPolicyCommitStatusPhase.
func (*ChangeRequestPolicyCommitStatusPhase) DeepCopyInto ¶
func (in *ChangeRequestPolicyCommitStatusPhase) DeepCopyInto(out *ChangeRequestPolicyCommitStatusPhase)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChangeTransferPolicy ¶
type ChangeTransferPolicy struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ChangeTransferPolicySpec `json:"spec,omitempty"`
Status ChangeTransferPolicyStatus `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` ChangeTransferPolicy is the Schema for the changetransferpolicies API
func (*ChangeTransferPolicy) DeepCopy ¶
func (in *ChangeTransferPolicy) DeepCopy() *ChangeTransferPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChangeTransferPolicy.
func (*ChangeTransferPolicy) DeepCopyInto ¶
func (in *ChangeTransferPolicy) DeepCopyInto(out *ChangeTransferPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ChangeTransferPolicy) DeepCopyObject ¶
func (in *ChangeTransferPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ChangeTransferPolicyList ¶
type ChangeTransferPolicyList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ChangeTransferPolicy `json:"items"`
}
ChangeTransferPolicyList contains a list of ChangeTransferPolicy
func (*ChangeTransferPolicyList) DeepCopy ¶
func (in *ChangeTransferPolicyList) DeepCopy() *ChangeTransferPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChangeTransferPolicyList.
func (*ChangeTransferPolicyList) DeepCopyInto ¶
func (in *ChangeTransferPolicyList) DeepCopyInto(out *ChangeTransferPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ChangeTransferPolicyList) DeepCopyObject ¶
func (in *ChangeTransferPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ChangeTransferPolicySpec ¶
type ChangeTransferPolicySpec struct {
// RepositoryReference what repository to open the PR on.
// +kubebuilder:validation:Required
RepositoryReference ObjectReference `json:"gitRepositoryRef"`
// ProposedBranch staging hydrated branch
// +kubebuilder:validation:Required
ProposedBranch string `json:"proposedBranch"`
// ActiveBranch staging hydrated branch
// +kubebuilder:validation:Required
ActiveBranch string `json:"activeBranch"`
// +kubebuilder:validation:Optional
// +kubebuilder:default:=true
AutoMerge *bool `json:"autoMerge,omitempty"`
// ActiveCommitStatuses lists the statuses to be monitored on the active branch
// +kubebuilder:validation:Optional
// +listType:=map
// +listMapKey=key
ActiveCommitStatuses []CommitStatusSelector `json:"activeCommitStatuses"`
// ProposedCommitStatuses lists the statuses to be monitored on the proposed branch
// +kubebuilder:validation:Optional
// +listType:=map
// +listMapKey=key
ProposedCommitStatuses []CommitStatusSelector `json:"proposedCommitStatuses"`
}
ChangeTransferPolicySpec defines the desired state of ChangeTransferPolicy
func (*ChangeTransferPolicySpec) DeepCopy ¶
func (in *ChangeTransferPolicySpec) DeepCopy() *ChangeTransferPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChangeTransferPolicySpec.
func (*ChangeTransferPolicySpec) DeepCopyInto ¶
func (in *ChangeTransferPolicySpec) DeepCopyInto(out *ChangeTransferPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChangeTransferPolicyStatus ¶
type ChangeTransferPolicyStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file
Proposed CommitBranchState `json:"proposed,omitempty"`
Active CommitBranchState `json:"active,omitempty"`
}
ChangeTransferPolicyStatus defines the observed state of ChangeTransferPolicy
func (*ChangeTransferPolicyStatus) DeepCopy ¶
func (in *ChangeTransferPolicyStatus) DeepCopy() *ChangeTransferPolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChangeTransferPolicyStatus.
func (*ChangeTransferPolicyStatus) DeepCopyInto ¶
func (in *ChangeTransferPolicyStatus) DeepCopyInto(out *ChangeTransferPolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterScmProvider ¶ added in v0.4.0
type ClusterScmProvider struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ScmProviderSpec `json:"spec,omitempty"`
Status ScmProviderStatus `json:"status,omitempty"`
}
ClusterScmProvider is the Schema for the clusterscmproviders API.
func (*ClusterScmProvider) DeepCopy ¶ added in v0.4.0
func (in *ClusterScmProvider) DeepCopy() *ClusterScmProvider
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterScmProvider.
func (*ClusterScmProvider) DeepCopyInto ¶ added in v0.4.0
func (in *ClusterScmProvider) DeepCopyInto(out *ClusterScmProvider)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterScmProvider) DeepCopyObject ¶ added in v0.4.0
func (in *ClusterScmProvider) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterScmProvider) GetSpec ¶ added in v0.4.0
func (s *ClusterScmProvider) GetSpec() *ScmProviderSpec
type ClusterScmProviderList ¶ added in v0.4.0
type ClusterScmProviderList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ClusterScmProvider `json:"items"`
}
ClusterScmProviderList contains a list of ClusterScmProvider.
func (*ClusterScmProviderList) DeepCopy ¶ added in v0.4.0
func (in *ClusterScmProviderList) DeepCopy() *ClusterScmProviderList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterScmProviderList.
func (*ClusterScmProviderList) DeepCopyInto ¶ added in v0.4.0
func (in *ClusterScmProviderList) DeepCopyInto(out *ClusterScmProviderList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterScmProviderList) DeepCopyObject ¶ added in v0.4.0
func (in *ClusterScmProviderList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CommitBranchState ¶
type CommitBranchState struct {
Dry CommitShaState `json:"dry,omitempty"`
Hydrated CommitShaState `json:"hydrated,omitempty"`
// +kubebuilder:validation:Optional
// +listType:=map
// +listMapKey=key
CommitStatuses []ChangeRequestPolicyCommitStatusPhase `json:"commitStatuses,omitempty"`
}
func (*CommitBranchState) DeepCopy ¶
func (in *CommitBranchState) DeepCopy() *CommitBranchState
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitBranchState.
func (*CommitBranchState) DeepCopyInto ¶
func (in *CommitBranchState) DeepCopyInto(out *CommitBranchState)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CommitBranchState) DryShaShort ¶
func (b *CommitBranchState) DryShaShort() string
type CommitMetadata ¶ added in v0.6.0
type CommitMetadata struct {
// Author is the author of the commit.
Author string `json:"author,omitempty"`
// Date is the date of the commit, formatted as by `git show -s --format=%aI`.
Date *metav1.Time `json:"date,omitempty"`
// Subject is the subject line of the commit message, i.e. `git show --format=%s`.
Subject string `json:"message,omitempty"`
// Body is the body of the commit message, excluding the subject line, i.e. `git show --format=%b`.
Body string `json:"body,omitempty"`
// Sha is the commit hash.
Sha string `json:"sha,omitempty"`
// RepoURL is the URL of the repository where the commit is located.
RepoURL string `json:"repoURL,omitempty"`
}
CommitMetadata contains metadata about a commit that is related in some way to another commit.
func (*CommitMetadata) DeepCopy ¶ added in v0.6.0
func (in *CommitMetadata) DeepCopy() *CommitMetadata
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitMetadata.
func (*CommitMetadata) DeepCopyInto ¶ added in v0.6.0
func (in *CommitMetadata) DeepCopyInto(out *CommitMetadata)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CommitShaState ¶
type CommitShaState struct {
// Sha is the SHA of the commit in the branch
Sha string `json:"sha,omitempty"`
// CommitTime is the time the commit was made
CommitTime metav1.Time `json:"commitTime,omitempty"`
// RepoURL is the URL of the repository where the commit is located
RepoURL string `json:"repoURL,omitempty"`
// Author is the author of the commit
Author string `json:"author,omitempty"`
// Subject is the subject line of the commit message
Subject string `json:"subject,omitempty"`
// Body is the body of the commit message without the subject line
Body string `json:"body,omitempty"`
// References are the references to other commits, that went into the hydration of the branch
References []RevisionReference `json:"references,omitempty"`
}
func (*CommitShaState) DeepCopy ¶
func (in *CommitShaState) DeepCopy() *CommitShaState
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommitShaState.
func (*CommitShaState) DeepCopyInto ¶
func (in *CommitShaState) DeepCopyInto(out *CommitShaState)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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="Phase",type=string,JSONPath=`.status.phase` 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 CommitStatusPhase ¶
type CommitStatusPhase string
const ( CommitPhaseFailure CommitStatusPhase = "failure" CommitPhaseSuccess CommitStatusPhase = "success" CommitPhasePending CommitStatusPhase = "pending" )
type CommitStatusSelector ¶
type CommitStatusSelector struct {
// +required
// +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 ObjectReference `json:"gitRepositoryRef"`
// +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
Phase CommitStatusPhase `json:"phase"` // pending, success, failure
// Url is a URL that the user can follow to see more details about the status
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 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 is the unique identifier of the commit status, set by the SCM
Id string `json:"id"`
Sha string `json:"sha"`
// +kubebuilder:default:=pending
// +kubebuilder:validation:Enum:=pending;success;failure
Phase CommitStatusPhase `json:"phase"`
}
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 ControllerConfiguration ¶ added in v0.2.0
type ControllerConfiguration struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ControllerConfigurationSpec `json:"spec,omitempty"`
Status ControllerConfigurationStatus `json:"status,omitempty"`
}
ControllerConfiguration is the Schema for the controllerconfigurations API.
func (*ControllerConfiguration) DeepCopy ¶ added in v0.2.0
func (in *ControllerConfiguration) DeepCopy() *ControllerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerConfiguration.
func (*ControllerConfiguration) DeepCopyInto ¶ added in v0.2.0
func (in *ControllerConfiguration) DeepCopyInto(out *ControllerConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ControllerConfiguration) DeepCopyObject ¶ added in v0.2.0
func (in *ControllerConfiguration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ControllerConfigurationList ¶ added in v0.2.0
type ControllerConfigurationList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ControllerConfiguration `json:"items"`
}
ControllerConfigurationList contains a list of ControllerConfiguration.
func (*ControllerConfigurationList) DeepCopy ¶ added in v0.2.0
func (in *ControllerConfigurationList) DeepCopy() *ControllerConfigurationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerConfigurationList.
func (*ControllerConfigurationList) DeepCopyInto ¶ added in v0.2.0
func (in *ControllerConfigurationList) DeepCopyInto(out *ControllerConfigurationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ControllerConfigurationList) DeepCopyObject ¶ added in v0.2.0
func (in *ControllerConfigurationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ControllerConfigurationSpec ¶ added in v0.2.0
type ControllerConfigurationSpec struct {
// +required
PullRequest PullRequestConfiguration `json:"pullRequest,omitempty"`
// How frequently to requeue promotion strategy resources for auto reconciliation. Default: "5m".
// Format is go's time.Duration, e.g. "5m" for 5 minutes.
// +required
PromotionStrategyRequeueDuration metav1.Duration `json:"promotionStrategyRequeueDuration,omitempty"`
// How frequently to requeue proposed commit resources for auto reconciliation. Default: "5m".
// Format is go's time.Duration, e.g. "5m" for 5 minutes.
// +required
ChangeTransferPolicyRequeueDuration metav1.Duration `json:"changeTransferPolicyRequeueDuration,omitempty"`
// How frequently to requeue commit status resources for auto reconciliation. Default: "15s".
// Format is go's time.Duration, e.g. "5m" for 5 minutes.
// +required
ArgoCDCommitStatusRequeueDuration metav1.Duration `json:"argocdCommitStatusRequeueDuration,omitempty"`
// How frequently to requeue pull request resources for auto reconciliation. Default: "5m".
// Format is go's time.Duration, e.g. "5m" for 5 minutes.
// +required
PullRequestRequeueDuration metav1.Duration `json:"pullRequestRequeueDuration,omitempty"`
}
ControllerConfigurationSpec defines the desired state of ControllerConfiguration.
func (*ControllerConfigurationSpec) DeepCopy ¶ added in v0.2.0
func (in *ControllerConfigurationSpec) DeepCopy() *ControllerConfigurationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerConfigurationSpec.
func (*ControllerConfigurationSpec) DeepCopyInto ¶ added in v0.2.0
func (in *ControllerConfigurationSpec) DeepCopyInto(out *ControllerConfigurationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ControllerConfigurationStatus ¶ added in v0.2.0
type ControllerConfigurationStatus struct {
}
ControllerConfigurationStatus defines the observed state of ControllerConfiguration.
func (*ControllerConfigurationStatus) DeepCopy ¶ added in v0.2.0
func (in *ControllerConfigurationStatus) DeepCopy() *ControllerConfigurationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerConfigurationStatus.
func (*ControllerConfigurationStatus) DeepCopyInto ¶ added in v0.2.0
func (in *ControllerConfigurationStatus) DeepCopyInto(out *ControllerConfigurationStatus)
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"`
// AutoMerge determines whether the dry commit should be automatically merged into the next branch in the sequence.
// If false, the dry commit will be proposed but not merged.
// +kubebuilder:validation:Optional
// +kubebuilder:default:=true
AutoMerge *bool `json:"autoMerge,omitempty"`
// ActiveCommitStatuses are commit statuses describing an actively running dry commit. If an active commit status
// is failing for an environment, subsequent environments will not deploy the failing commit.
//
// The commit statuses specified in this field apply to this environment only. You can also specify commit statuses
// for all environments in the `spec.activeCommitStatuses` field.
// +kubebuilder:validation:Optional
// +listType:=map
// +listMapKey=key
ActiveCommitStatuses []CommitStatusSelector `json:"activeCommitStatuses"`
// ProposedCommitStatuses are commit statuses describing a proposed dry commit, i.e. one that is not yet running
// in a live environment. If a proposed commit status is failing for a given environment, the dry commit will not
// be promoted to that environment.
//
// The commit statuses specified in this field apply to this environment only. You can also specify commit statuses
// for all environments in the `spec.proposedCommitStatuses` field.
// +kubebuilder:validation:Optional
// +listType:=map
// +listMapKey=key
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
GetAutoMerge returns the value of the AutoMerge field, defaulting to true if the field is nil.
type EnvironmentStatus ¶
type EnvironmentStatus struct {
Branch string `json:"branch"`
Proposed CommitBranchState `json:"proposed"`
Active CommitBranchState `json:"active"`
// +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 FakeRepo ¶ added in v0.1.0
type FakeRepo struct {
// +kubebuilder:validation:Required
Owner string `json:"owner"`
// +kubebuilder:validation:Required
Name string `json:"name"`
}
func (*FakeRepo) DeepCopy ¶ added in v0.1.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FakeRepo.
func (*FakeRepo) DeepCopyInto ¶ added in v0.1.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Forgejo ¶ added in v0.6.0
type Forgejo struct {
// Domain is the Forgejo domain, such as "codeberg.org" or "forgejo.mycompany.com".
// There is no default domain since Forgejo is not a service like Gitlab or Github.
// +kubebuilder:validation:Required
Domain string `json:"domain"`
}
func (*Forgejo) DeepCopy ¶ added in v0.6.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Forgejo.
func (*Forgejo) DeepCopyInto ¶ added in v0.6.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ForgejoRepo ¶ added in v0.6.0
type ForgejoRepo struct {
// +kubebuilder:validation:Required
Owner string `json:"owner"`
// +kubebuilder:validation:Required
Name string `json:"name"`
}
func (*ForgejoRepo) DeepCopy ¶ added in v0.6.0
func (in *ForgejoRepo) DeepCopy() *ForgejoRepo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ForgejoRepo.
func (*ForgejoRepo) DeepCopyInto ¶ added in v0.6.0
func (in *ForgejoRepo) DeepCopyInto(out *ForgejoRepo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GenericScmProvider ¶ added in v0.4.0
type GenericScmProvider interface {
runtime.Object
metav1.Object
GetSpec() *ScmProviderSpec
}
GenericScmProvider is a common interface for interacting with either cluster-scoped ClusterScmProvider or namespaced ScmProviders.
type GitHub ¶
type GitHub struct {
// Domain is the GitHub domain, such as "github.mycompany.com". If using the default GitHub domain, leave this field
// empty.
// +kubebuilder:validation:XValidation:rule=`self != "github.com"`, message="Instead of setting the domain to github.com, leave the field blank"
Domain string `json:"domain,omitempty"`
// AppID is the GitHub App ID.
// +kubebuilder:validation:Required
AppID int64 `json:"appID"`
// InstallationID is the GitHub App Installation ID.
// +kubebuilder:validation:Required
InstallationID int64 `json:"installationID"`
}
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 GitHubRepo ¶ added in v0.1.0
type GitHubRepo struct {
// +kubebuilder:validation:Required
Owner string `json:"owner"`
// +kubebuilder:validation:Required
Name string `json:"name"`
}
func (*GitHubRepo) DeepCopy ¶ added in v0.1.0
func (in *GitHubRepo) DeepCopy() *GitHubRepo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubRepo.
func (*GitHubRepo) DeepCopyInto ¶ added in v0.1.0
func (in *GitHubRepo) DeepCopyInto(out *GitHubRepo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitLab ¶ added in v0.1.0
type GitLab struct {
Domain string `json:"domain,omitempty"`
}
func (*GitLab) DeepCopy ¶ added in v0.1.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitLab.
func (*GitLab) DeepCopyInto ¶ added in v0.1.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitLabRepo ¶ added in v0.1.0
type GitLabRepo struct {
// User, group or group with subgroup (e.g. group/subgroup).
// +kubebuilder:validation:Required
// +kubebuilder:validation:Pattern=^[a-zA-Z0-9_\-\/.]+$
Namespace string `json:"namespace"`
// Project slug of the repository.
// +kubebuilder:validation:Required
// +kubebuilder:validation:Pattern=^[a-zA-Z0-9_\-\/.]+$
Name string `json:"name"`
// +kubebuilder:validation:Required
ProjectID int `json:"projectId"`
}
func (*GitLabRepo) DeepCopy ¶ added in v0.1.0
func (in *GitLabRepo) DeepCopy() *GitLabRepo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitLabRepo.
func (*GitLabRepo) DeepCopyInto ¶ added in v0.1.0
func (in *GitLabRepo) DeepCopyInto(out *GitLabRepo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepository ¶
type GitRepository struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec GitRepositorySpec `json:"spec,omitempty"`
Status GitRepositoryStatus `json:"status,omitempty"`
}
GitRepository is the Schema for the gitrepositories API
func (*GitRepository) DeepCopy ¶
func (in *GitRepository) DeepCopy() *GitRepository
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepository.
func (*GitRepository) DeepCopyInto ¶
func (in *GitRepository) DeepCopyInto(out *GitRepository)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitRepository) DeepCopyObject ¶
func (in *GitRepository) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GitRepositoryList ¶
type GitRepositoryList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []GitRepository `json:"items"`
}
GitRepositoryList contains a list of GitRepository
func (*GitRepositoryList) DeepCopy ¶
func (in *GitRepositoryList) DeepCopy() *GitRepositoryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepositoryList.
func (*GitRepositoryList) DeepCopyInto ¶
func (in *GitRepositoryList) DeepCopyInto(out *GitRepositoryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitRepositoryList) DeepCopyObject ¶
func (in *GitRepositoryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GitRepositorySpec ¶
type GitRepositorySpec struct {
GitHub *GitHubRepo `json:"github,omitempty"`
GitLab *GitLabRepo `json:"gitlab,omitempty"`
Forgejo *ForgejoRepo `json:"forgejo,omitempty"`
Fake *FakeRepo `json:"fake,omitempty"`
// +kubebuilder:validation:Required
ScmProviderRef ScmProviderObjectReference `json:"scmProviderRef"`
}
GitRepositorySpec defines the desired state of GitRepository
func (*GitRepositorySpec) DeepCopy ¶
func (in *GitRepositorySpec) DeepCopy() *GitRepositorySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepositorySpec.
func (*GitRepositorySpec) DeepCopyInto ¶
func (in *GitRepositorySpec) DeepCopyInto(out *GitRepositorySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepositoryStatus ¶
type GitRepositoryStatus struct {
}
GitRepositoryStatus defines the observed state of GitRepository
func (*GitRepositoryStatus) DeepCopy ¶
func (in *GitRepositoryStatus) DeepCopy() *GitRepositoryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepositoryStatus.
func (*GitRepositoryStatus) DeepCopyInto ¶
func (in *GitRepositoryStatus) DeepCopyInto(out *GitRepositoryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HealthyDryShas ¶
type HealthyDryShas struct {
Sha string `json:"sha"`
// FIXME: docs, is this commit time, first-became-healthy time, most-recently-observed-healthy time, etc?
Time metav1.Time `json:"time"`
}
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 ObjectReference ¶
type ObjectReference struct {
// +kubebuilder:validation:Required
Name string `json:"name"`
}
func (*ObjectReference) DeepCopy ¶
func (in *ObjectReference) DeepCopy() *ObjectReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReference.
func (*ObjectReference) DeepCopyInto ¶
func (in *ObjectReference) DeepCopyInto(out *ObjectReference)
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 CommitShaState `json:"dry"`
Hydrated CommitShaState `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 ¶
type PromotionStrategyCommitStatus struct {
Sha string `json:"sha"`
// +kubebuilder:validation:Enum:=pending;success;failure
Phase string `json:"phase"`
}
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 ObjectReference `json:"gitRepositoryRef"`
// ActiveCommitStatuses are commit statuses describing an actively running dry commit. If an active commit status
// is failing for an environment, subsequent environments will not deploy the failing commit.
//
// The commit statuses specified in this field apply to all environments in the promotion sequence. You can also
// specify commit statuses for individual environments in the `environments` field.
// +kubebuilder:validation:Optional
// +listType:=map
// +listMapKey=key
ActiveCommitStatuses []CommitStatusSelector `json:"activeCommitStatuses"`
// ProposedCommitStatuses are commit statuses describing a proposed dry commit, i.e. one that is not yet running
// in a live environment. If a proposed commit status is failing for a given environment, the dry commit will not
// be promoted to that environment.
//
// The commit statuses specified in this field apply to all environments in the promotion sequence. You can also
// specify commit statuses for individual environments in the `environments` field.
// +kubebuilder:validation:Optional
// +listType:=map
// +listMapKey=key
ProposedCommitStatuses []CommitStatusSelector `json:"proposedCommitStatuses"`
// Environments is the sequence of environments that a dry commit will be promoted through.
// +kubebuilder:validation:MinItems:=1
// +listType:=map
// +listMapKey=branch
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 {
// +listType:=map
// +listMapKey=branch
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 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.
type PullRequestConfiguration ¶ added in v0.1.0
type PullRequestConfiguration struct {
// +required
Template PullRequestTemplate `json:"template,omitempty"`
}
func (*PullRequestConfiguration) DeepCopy ¶ added in v0.1.0
func (in *PullRequestConfiguration) DeepCopy() *PullRequestConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestConfiguration.
func (*PullRequestConfiguration) DeepCopyInto ¶ added in v0.1.0
func (in *PullRequestConfiguration) DeepCopyInto(out *PullRequestConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ObjectReference `json:"gitRepositoryRef"`
// 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
// +kubebuilder:validation:Enum=closed;merged;open
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 {
// ObservedGeneration the generation observed by the controller
ObservedGeneration int64 `json:"observedGeneration"`
// ID the id of the pull request
ID string `json:"id,omitempty"`
// State of the merge request closed/merged/open
// +kubebuilder:validation:Enum="";closed;merged;open
State PullRequestState `json:"state,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 PullRequestTemplate ¶ added in v0.1.0
type PullRequestTemplate struct {
// Template used to generate the title of the pull request.
// Uses Go template syntax and Sprig functions are available.
// +required
Title string `json:"title,omitempty"`
// Template used to generate the description of the pull request.
// Uses Go template syntax and Sprig functions are available.
// +required
Description string `json:"description,omitempty"`
}
func (*PullRequestTemplate) DeepCopy ¶ added in v0.1.0
func (in *PullRequestTemplate) DeepCopy() *PullRequestTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestTemplate.
func (*PullRequestTemplate) DeepCopyInto ¶ added in v0.1.0
func (in *PullRequestTemplate) DeepCopyInto(out *PullRequestTemplate)
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 RevisionReference ¶ added in v0.6.0
type RevisionReference struct {
// Commit contains metadata about the commit that is related in some way to another commit.
Commit *CommitMetadata `json:"commit,omitempty"`
}
RevisionReference contains a reference to a some information that is related in some way to another commit. For now, it supports only references to a commit. In the future, it may support other types of references.
func (*RevisionReference) DeepCopy ¶ added in v0.6.0
func (in *RevisionReference) DeepCopy() *RevisionReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RevisionReference.
func (*RevisionReference) DeepCopyInto ¶ added in v0.6.0
func (in *RevisionReference) DeepCopyInto(out *RevisionReference)
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.
func (*ScmProvider) GetSpec ¶ added in v0.4.0
func (s *ScmProvider) GetSpec() *ScmProviderSpec
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 ScmProviderObjectReference ¶ added in v0.4.0
type ScmProviderObjectReference struct {
// Kind is the type of resource being referenced
// +kubebuilder:validation:Required
// +kubebuilder:default:=ScmProvider
// +kubebuilder:validation:Enum:=ScmProvider;ClusterScmProvider
Kind string `json:"kind"`
// +kubebuilder:validation:Required
Name string `json:"name"`
}
func (*ScmProviderObjectReference) DeepCopy ¶ added in v0.4.0
func (in *ScmProviderObjectReference) DeepCopy() *ScmProviderObjectReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScmProviderObjectReference.
func (*ScmProviderObjectReference) DeepCopyInto ¶ added in v0.4.0
func (in *ScmProviderObjectReference) DeepCopyInto(out *ScmProviderObjectReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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"`
// GitLab required configuration for GitLab as the SCM provider
GitLab *GitLab `json:"gitlab,omitempty"`
// Forgejo required configuration for Forgejo as the SCM provider
Forgejo *Forgejo `json:"forgejo,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.
Source Files
¶
- argocdcommitstatus_types.go
- changetransferpolicy_types.go
- clusterscmprovider_types.go
- commitstatus_types.go
- common_types.go
- constants.go
- controllerconfiguration_types.go
- gitrepository_types.go
- groupversion_info.go
- promotionstrategy_types.go
- pullrequest_types.go
- revertcommit_types.go
- scmprovider_types.go
- zz_generated.deepcopy.go