Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the devops v1alpha1 API group +kubebuilder:object:generate=true +groupName=devops.kubesphere.io
Index ¶
- Variables
- type Action
- type Condition
- type ConditionStatus
- type ConditionType
- type GitOps
- type Phase
- type Provider
- type Releaser
- func (in *Releaser) DeepCopy() *Releaser
- func (in *Releaser) DeepCopyInto(out *Releaser)
- func (in *Releaser) DeepCopyObject() runtime.Object
- func (r *Releaser) Default()
- func (r *Releaser) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Releaser) ValidateCreate() error
- func (r *Releaser) ValidateDelete() error
- func (r *Releaser) ValidateUpdate(old runtime.Object) error
- type ReleaserList
- type ReleaserSpec
- type ReleaserStatus
- type Repository
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "devops.kubesphere.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 Condition ¶
type Condition struct { ConditionType ConditionType `json:"conditionType"` Status ConditionStatus `json:"status"` Message string `json:"message"` }
Condition indicates the status of each git repositories
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionStatus ¶ added in v0.0.5
type ConditionStatus string
ConditionStatus is the status of a condition
const ( ConditionStatusSuccess ConditionStatus = "success" ConditionStatusFailed ConditionStatus = "failed" )
type ConditionType ¶ added in v0.0.5
type ConditionType string
ConditionType is the type of condition
const ( ConditionTypeRelease ConditionType = "release" ConditionTypeOther ConditionType = "other" )
type GitOps ¶ added in v0.0.2
type GitOps struct { Enable bool `json:"enable,omitempty"` Repository Repository `json:"repository,omitempty"` Secret v1.SecretReference `json:"secret,omitempty"` }
GitOps indicates to integrate with GitOps
func (*GitOps) DeepCopy ¶ added in v0.0.2
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitOps.
func (*GitOps) DeepCopyInto ¶ added in v0.0.2
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Provider ¶
type Provider string
Provider represents a git provider, such as: GitHub, Gitlab
func GetDefaultProvider ¶ added in v0.0.12
func GetDefaultProvider(r *Repository) Provider
GetDefaultProvider returns the default git provider
type Releaser ¶
type Releaser struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` Spec ReleaserSpec `json:"spec,omitempty"` // +optional Status ReleaserStatus `json:"status,omitempty"` }
Releaser is the Schema for the releasers API
func (*Releaser) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Releaser.
func (*Releaser) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Releaser) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Releaser) Default ¶
func (r *Releaser) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*Releaser) SetupWebhookWithManager ¶
func (*Releaser) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Releaser) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type ReleaserList ¶
type ReleaserList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Releaser `json:"items"` }
ReleaserList contains a list of Releaser
func (*ReleaserList) DeepCopy ¶
func (in *ReleaserList) DeepCopy() *ReleaserList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReleaserList.
func (*ReleaserList) DeepCopyInto ¶
func (in *ReleaserList) DeepCopyInto(out *ReleaserList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ReleaserList) DeepCopyObject ¶
func (in *ReleaserList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReleaserSpec ¶
type ReleaserSpec struct { // Phase is the stage of a release request Phase Phase `json:"phase,omitempty"` Version string `json:"version,omitempty"` Repositories []Repository `json:"repositories,omitempty"` GitOps *GitOps `json:"gitOps,omitempty"` Secret v1.SecretReference `json:"secret,omitempty"` }
ReleaserSpec defines the desired state of Releaser
func (*ReleaserSpec) DeepCopy ¶
func (in *ReleaserSpec) DeepCopy() *ReleaserSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReleaserSpec.
func (*ReleaserSpec) DeepCopyInto ¶
func (in *ReleaserSpec) DeepCopyInto(out *ReleaserSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReleaserStatus ¶
type ReleaserStatus struct { // +optional StartTime *metav1.Time `json:"startTime,omitempty"` // +optional CompletionTime *metav1.Time `json:"completionTime,omitempty"` Conditions []Condition `json:"conditions,omitempty"` }
ReleaserStatus defines the observed state of Releaser
func (*ReleaserStatus) DeepCopy ¶
func (in *ReleaserStatus) DeepCopy() *ReleaserStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReleaserStatus.
func (*ReleaserStatus) DeepCopyInto ¶
func (in *ReleaserStatus) DeepCopyInto(out *ReleaserStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Repository ¶
type Repository struct { // +optional Name string `json:"name"` // +optional Provider Provider `json:"provider,omitempty"` Address string `json:"address"` // +optional Branch string `json:"branch,omitempty"` // +optional Version string `json:"version,omitempty"` // +optional Message string `json:"message,omitempty"` // +optional Action Action `json:"action,omitempty"` }
Repository represents a git repository
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.