Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the reviewapps.william.nu v1alpha1 API group +kubebuilder:object:generate=true +groupName=reviewapps.william.nu
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "reviewapps.william.nu", 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 DeploymentStatus ¶
type DeploymentStatus struct { // +optional LastActive metav1.Time `json:"lastActive,omitempty"` // +optional IsActive bool `json:"isActive"` // +optional Hostnames []string `json:"hostnames"` }
func (*DeploymentStatus) DeepCopy ¶
func (in *DeploymentStatus) DeepCopy() *DeploymentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentStatus.
func (*DeploymentStatus) DeepCopyInto ¶
func (in *DeploymentStatus) DeepCopyInto(out *DeploymentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Deployments ¶
type Deployments struct { Name string `json:"name"` TargetContainerName string `json:"targetContainerName"` TargetContainerPort int32 `json:"targetContainerPort"` // +optional Replicas int32 `json:"replicas,omitempty"` // +optional StartOnDeploy bool `json:"startOnDeploy,omitempty"` // +optional // ConnectionTimeout metav1.Duration `json:"connectionTimeout,omitempty"` // +optional ScaleDownAfter metav1.Duration `json:"scaleDownAfter,omitempty"` // HostTemplates must contain at least {{.BranchName}} HostTemplates []string `json:"hostTemplates"` // generateEmbeddedObjectMeta must be set for this to work Template corev1.PodTemplateSpec `json:"template"` // +optional Strategy appsv1.DeploymentStrategy `json:"strategy,omitempty"` // +optional MinReadySeconds int32 `json:"minReadySeconds,omitempty"` // +optional ProgressDeadlineSeconds *int32 `json:"progressDeadlineSeconds,omitempty"` }
func (*Deployments) DeepCopy ¶
func (in *Deployments) DeepCopy() *Deployments
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Deployments.
func (*Deployments) DeepCopyInto ¶
func (in *Deployments) DeepCopyInto(out *Deployments)
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
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 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 { ImageName string `json:"imageName,omitempty"` BranchName string `json:"branchName,omitempty"` // The parent ReviewAppConfig ReviewAppConfigRef string `json:"reviewAppRef,omitempty"` }
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 PullRequestStatus ¶
type PullRequestStatus struct { // +optional DeployedAt metav1.Time `json:"deployedAt,omitempty"` // +optional DeployedBy string `json:"deployedBy,omitempty"` // +optional RepositoryURL string `json:"repositoryUrl,omitempty"` // +optional PullRequestURL string `json:"pullRequestUrl,omitempty"` // +optional PullRequestNumber int `json:"pullRequestNumber,omitempty"` Deployments map[string]*DeploymentStatus `json:"activeDeployments"` }
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 ReviewAppConfig ¶
type ReviewAppConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ReviewAppConfigSpec `json:"spec,omitempty"` Status ReviewAppConfigStatus `json:"status,omitempty"` }
ReviewAppConfig is the Schema for the reviewapps API
func (*ReviewAppConfig) DeepCopy ¶
func (in *ReviewAppConfig) DeepCopy() *ReviewAppConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReviewAppConfig.
func (*ReviewAppConfig) DeepCopyInto ¶
func (in *ReviewAppConfig) DeepCopyInto(out *ReviewAppConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ReviewAppConfig) DeepCopyObject ¶
func (in *ReviewAppConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReviewAppConfigList ¶
type ReviewAppConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ReviewAppConfig `json:"items"` }
ReviewAppConfigList contains a list of ReviewAppConfig
func (*ReviewAppConfigList) DeepCopy ¶
func (in *ReviewAppConfigList) DeepCopy() *ReviewAppConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReviewAppConfigList.
func (*ReviewAppConfigList) DeepCopyInto ¶
func (in *ReviewAppConfigList) DeepCopyInto(out *ReviewAppConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ReviewAppConfigList) DeepCopyObject ¶
func (in *ReviewAppConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReviewAppConfigSpec ¶
type ReviewAppConfigSpec struct { // +optional StartOnDeploy bool `json:"startOnDeploy,omitempty"` // +optional ConnectionTimeout metav1.Duration `json:"connectionTimeout,omitempty"` // +optional ScaleDownAfter metav1.Duration `json:"scaleDownAfter,omitempty"` Deployments []Deployments `json:"deployments"` }
ReviewAppConfigSpec defines the desired state of ReviewAppConfig
func (*ReviewAppConfigSpec) DeepCopy ¶
func (in *ReviewAppConfigSpec) DeepCopy() *ReviewAppConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReviewAppConfigSpec.
func (*ReviewAppConfigSpec) DeepCopyInto ¶
func (in *ReviewAppConfigSpec) DeepCopyInto(out *ReviewAppConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReviewAppConfigStatus ¶
type ReviewAppConfigStatus struct { // A list of pointers to currently running jobs. // +optional Active []corev1.ObjectReference `json:"active,omitempty"` // Information when was the last time the job was successfully scheduled. // +optional LastUpdate *metav1.Time `json:"lastUpdate,omitempty"` // +optional ActiveApps []string `json:"activeApps"` }
ReviewAppConfigStatus defines the observed state of ReviewAppConfig
func (*ReviewAppConfigStatus) DeepCopy ¶
func (in *ReviewAppConfigStatus) DeepCopy() *ReviewAppConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReviewAppConfigStatus.
func (*ReviewAppConfigStatus) DeepCopyInto ¶
func (in *ReviewAppConfigStatus) DeepCopyInto(out *ReviewAppConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.