Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the kubetempura v1 API group +kubebuilder:object:generate=true +groupName=kubetempura.mercari.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "kubetempura.mercari.com", Version: "v1"} // 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 PR ¶
type PR struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PRSpec `json:"spec,omitempty"` Status PRStatus `json:"status,omitempty"` }
PR is the Schema for the prs API. PR is the internal CRD for each PRs. The GitHub Webhooks' handler will create/update/delete this resource.
func (*PR) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PR.
func (*PR) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PR) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PRList ¶
type PRList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PR `json:"items"` }
PRList contains a list of PR
func (*PRList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PRList.
func (*PRList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PRList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PRSpec ¶
type PRSpec struct { // +kubebuilder:validation:Required // The parent review app name ParentReviewApp string `json:"parentReviewApp"` // +kubebuilder:validation:Required // PR Number PRNumber string `json:"prNumber"` // +kubebuilder:validation:Required // The sha of the latest commit. HeadCommitRef string `json:"headCommitRef"` // +kubebuilder:pruning:PreserveUnknownFields // Environment variables for adding / overriding the default values. EnvVars []corev1.EnvVar `json:"envVars,omitempty"` }
PRSpec defines the desired state of PR
func (*PRSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PRSpec.
func (*PRSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PRStatus ¶
type PRStatus struct { }
PRStatus defines the observed state of PR
func (*PRStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PRStatus.
func (*PRStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReviewApp ¶
type ReviewApp struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ReviewAppSpec `json:"spec,omitempty"` Status ReviewAppStatus `json:"status,omitempty"` }
ReviewApp is the Schema for the reviewapps API
func (*ReviewApp) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReviewApp.
func (*ReviewApp) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ReviewApp) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReviewAppList ¶
type ReviewAppList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ReviewApp `json:"items"` }
ReviewAppList contains a list of ReviewApp
func (*ReviewAppList) DeepCopy ¶
func (in *ReviewAppList) DeepCopy() *ReviewAppList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReviewAppList.
func (*ReviewAppList) DeepCopyInto ¶
func (in *ReviewAppList) DeepCopyInto(out *ReviewAppList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ReviewAppList) DeepCopyObject ¶
func (in *ReviewAppList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReviewAppSpec ¶
type ReviewAppSpec struct { // +kubebuilder:validation:Required // +kubebuilder:validation:MinLength=1 // The GitHub URL of the repository. E.g. https://github.com/kouzoh/mercari-echo-us GithubRepository string `json:"githubRepository"` // +kubebuilder:validation:Required // +kubebuilder:pruning:PreserveUnknownFields // Resource is a field for any kind of Kubernetes resources. It can be deployment or service or anything. Resources []unstructured.Unstructured `json:"resources"` }
ReviewAppSpec defines the desired state of ReviewApp
func (*ReviewAppSpec) DeepCopy ¶
func (in *ReviewAppSpec) DeepCopy() *ReviewAppSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReviewAppSpec.
func (*ReviewAppSpec) DeepCopyInto ¶
func (in *ReviewAppSpec) DeepCopyInto(out *ReviewAppSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReviewAppStatus ¶
type ReviewAppStatus struct { }
ReviewAppStatus defines the observed state of ReviewApp
func (*ReviewAppStatus) DeepCopy ¶
func (in *ReviewAppStatus) DeepCopy() *ReviewAppStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReviewAppStatus.
func (*ReviewAppStatus) DeepCopyInto ¶
func (in *ReviewAppStatus) DeepCopyInto(out *ReviewAppStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.