Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the edp v1alpha1 API group +kubebuilder:object:generate=true +groupName=edp.epam.com
Index ¶
Constants ¶
const ( TaskApproved = "Approved" TaskRejected = "Rejected" TaskCanceled = "Canceled" TaskPending = "Pending" ApprovalTaskKind = "ApprovalTask" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "edp.epam.com", 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 ApprovalTask ¶
type ApprovalTask struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ApprovalTaskSpec `json:"spec,omitempty"`
Status ApprovalTaskStatus `json:"status,omitempty"`
}
+kubebuilder:object:root=true +kubebuilder:subresource:status ApprovalTask is the Schema for the approvaltasks API
func (*ApprovalTask) DeepCopy ¶
func (in *ApprovalTask) DeepCopy() *ApprovalTask
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApprovalTask.
func (*ApprovalTask) DeepCopyInto ¶
func (in *ApprovalTask) DeepCopyInto(out *ApprovalTask)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApprovalTask) DeepCopyObject ¶
func (in *ApprovalTask) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ApprovalTask) IsApproved ¶
func (a *ApprovalTask) IsApproved() bool
func (*ApprovalTask) IsRejected ¶
func (a *ApprovalTask) IsRejected() bool
type ApprovalTaskList ¶
type ApprovalTaskList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ApprovalTask `json:"items"`
}
+kubebuilder:object:root=true ApprovalTaskList contains a list of ApprovalTask
func (*ApprovalTaskList) DeepCopy ¶
func (in *ApprovalTaskList) DeepCopy() *ApprovalTaskList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApprovalTaskList.
func (*ApprovalTaskList) DeepCopyInto ¶
func (in *ApprovalTaskList) DeepCopyInto(out *ApprovalTaskList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApprovalTaskList) DeepCopyObject ¶
func (in *ApprovalTaskList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApprovalTaskSpec ¶
type ApprovalTaskSpec struct {
// Action is the action to be taken on the task.
// +optional
// +kubebuilder:validation:Enum=Pending;Approved;Rejected;Canceled
// +kubebuilder:default=Pending
Action string `json:"action,omitempty"`
// Description that is shown to the user for the approval action.
// +optional
// +kubebuilder:default=Proceed
Description string `json:"description,omitempty"`
// Approve is the approval information.
// +optional
Approve *Approve `json:"approve,omitempty"`
}
ApprovalTaskSpec defines the desired state of ApprovalTask
func (*ApprovalTaskSpec) DeepCopy ¶
func (in *ApprovalTaskSpec) DeepCopy() *ApprovalTaskSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApprovalTaskSpec.
func (*ApprovalTaskSpec) DeepCopyInto ¶
func (in *ApprovalTaskSpec) DeepCopyInto(out *ApprovalTaskSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApprovalTaskStatus ¶
type ApprovalTaskStatus struct {
}
ApprovalTaskStatus defines the observed state of ApprovalTask
func (*ApprovalTaskStatus) DeepCopy ¶
func (in *ApprovalTaskStatus) DeepCopy() *ApprovalTaskStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApprovalTaskStatus.
func (*ApprovalTaskStatus) DeepCopyInto ¶
func (in *ApprovalTaskStatus) DeepCopyInto(out *ApprovalTaskStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Approve ¶
type Approve struct {
// ApprovedBy is indicating the identity of the approver.
// +required
ApprovedBy string `json:"approvedBy"`
// Comment is the comment provided by the approver.
// +optional
Comment string `json:"comment,omitempty"`
}
func (*Approve) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Approve.
func (*Approve) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineRef ¶
type PipelineRef struct {
// Name of the Tekton pipeline.
// +required
Name string `json:"name"`
}
func (*PipelineRef) DeepCopy ¶
func (in *PipelineRef) DeepCopy() *PipelineRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRef.
func (*PipelineRef) DeepCopyInto ¶
func (in *PipelineRef) DeepCopyInto(out *PipelineRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.