v1

package
v0.0.0-...-2a1b705 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

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

View Source
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

func (in *PR) DeepCopy() *PR

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PR.

func (*PR) DeepCopyInto

func (in *PR) DeepCopyInto(out *PR)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PR) DeepCopyObject

func (in *PR) DeepCopyObject() runtime.Object

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

func (in *PRList) DeepCopy() *PRList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PRList.

func (*PRList) DeepCopyInto

func (in *PRList) DeepCopyInto(out *PRList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PRList) DeepCopyObject

func (in *PRList) DeepCopyObject() runtime.Object

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

func (in *PRSpec) DeepCopy() *PRSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PRSpec.

func (*PRSpec) DeepCopyInto

func (in *PRSpec) DeepCopyInto(out *PRSpec)

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

func (in *PRStatus) DeepCopy() *PRStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PRStatus.

func (*PRStatus) DeepCopyInto

func (in *PRStatus) DeepCopyInto(out *PRStatus)

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

func (in *ReviewApp) DeepCopy() *ReviewApp

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReviewApp.

func (*ReviewApp) DeepCopyInto

func (in *ReviewApp) DeepCopyInto(out *ReviewApp)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ReviewApp) DeepCopyObject

func (in *ReviewApp) DeepCopyObject() runtime.Object

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL