Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the modoki v1alpha1 API group +kubebuilder:object:generate=true +groupName=modoki.tsuzu.dev
Index ¶
- Variables
- type AppPipeline
- type AppPipelineList
- type AppPipelineSpec
- type AppPipelineStatus
- type Application
- type ApplicationList
- type ApplicationRef
- type ApplicationResource
- type ApplicationSpec
- type ApplicationSpecTemplate
- type ApplicationStatus
- type ApplicationStatusType
- type ApplicationTemplate
- type Base
- type GitHub
- type GitHubPipeline
- type Image
- type MetadataTemplate
- type PipelineBase
- type RemoteSync
- type RemoteSyncList
- type RemoteSyncSpec
- type RemoteSyncStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "modoki.tsuzu.dev", 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 AppPipeline ¶
type AppPipeline struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AppPipelineSpec `json:"spec,omitempty"` Status AppPipelineStatus `json:"status,omitempty"` }
AppPipeline is the Schema for the apppipelines API
func (*AppPipeline) DeepCopy ¶
func (in *AppPipeline) DeepCopy() *AppPipeline
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppPipeline.
func (*AppPipeline) DeepCopyInto ¶
func (in *AppPipeline) DeepCopyInto(out *AppPipeline)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AppPipeline) DeepCopyObject ¶
func (in *AppPipeline) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AppPipelineList ¶
type AppPipelineList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AppPipeline `json:"items"` }
AppPipelineList contains a list of AppPipeline
func (*AppPipelineList) DeepCopy ¶
func (in *AppPipelineList) DeepCopy() *AppPipelineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppPipelineList.
func (*AppPipelineList) DeepCopyInto ¶
func (in *AppPipelineList) DeepCopyInto(out *AppPipelineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AppPipelineList) DeepCopyObject ¶
func (in *AppPipelineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AppPipelineSpec ¶
type AppPipelineSpec struct { DomainBase string `json:"domainBase"` ApplicationTemplate ApplicationTemplate `json:"applicationTemplate"` Base PipelineBase `json:"base"` Image Image `json:"image"` }
AppPipelineSpec defines the desired state of AppPipeline
func (*AppPipelineSpec) DeepCopy ¶
func (in *AppPipelineSpec) DeepCopy() *AppPipelineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppPipelineSpec.
func (*AppPipelineSpec) DeepCopyInto ¶
func (in *AppPipelineSpec) DeepCopyInto(out *AppPipelineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AppPipelineStatus ¶
type AppPipelineStatus struct { // Message is the detailed status or reason for the currnt status // +kubebuilder:validation:Optional Message string `json:"message,omitempty"` }
AppPipelineStatus defines the observed state of AppPipeline
func (*AppPipelineStatus) DeepCopy ¶
func (in *AppPipelineStatus) DeepCopy() *AppPipelineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppPipelineStatus.
func (*AppPipelineStatus) DeepCopyInto ¶
func (in *AppPipelineStatus) DeepCopyInto(out *AppPipelineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Application ¶
type Application struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ApplicationSpec `json:"spec,omitempty"` Status ApplicationStatus `json:"status,omitempty"` }
Application is the Schema for the applications API
func (*Application) DeepCopy ¶
func (in *Application) DeepCopy() *Application
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Application.
func (*Application) DeepCopyInto ¶
func (in *Application) DeepCopyInto(out *Application)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Application) DeepCopyObject ¶
func (in *Application) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationList ¶
type ApplicationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Application `json:"items"` }
ApplicationList contains a list of Application
func (*ApplicationList) DeepCopy ¶
func (in *ApplicationList) DeepCopy() *ApplicationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationList.
func (*ApplicationList) DeepCopyInto ¶
func (in *ApplicationList) DeepCopyInto(out *ApplicationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationList) DeepCopyObject ¶
func (in *ApplicationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationRef ¶
type ApplicationRef struct {
Name string `json:"name"`
}
ApplicationRef is the name of the Application resource
func (*ApplicationRef) DeepCopy ¶
func (in *ApplicationRef) DeepCopy() *ApplicationRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationRef.
func (*ApplicationRef) DeepCopyInto ¶
func (in *ApplicationRef) DeepCopyInto(out *ApplicationRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationResource ¶
type ApplicationResource struct { metav1.TypeMeta `json:",inline"` Name string `json:"name"` Namespace string `json:"namespace,omitempty"` }
ApplicationResource is a resource in Kubernetes
func FilterApplicationResource ¶
func FilterApplicationResource(src, target []ApplicationResource) []ApplicationResource
FilterApplicationResource returns an array of resources in src, but not in target
func (*ApplicationResource) DeepCopy ¶
func (in *ApplicationResource) DeepCopy() *ApplicationResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationResource.
func (*ApplicationResource) DeepCopyInto ¶
func (in *ApplicationResource) DeepCopyInto(out *ApplicationResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationSpec ¶
type ApplicationSpec struct { // Domains are requested domains for the ingress of the application Domains []string `json:"domains"` // Image is the url for Docker registry // +kubebuilder:validation:Optional Image string `json:"image,omitempty"` // Command is an entrypoint array // +kubebuilder:validation:Optional Command []string `json:"command,omitempty"` // Args is the arguments to the entrypoint // +kubebuilder:validation:Optional Args []string `json:"args,omitempty"` // Attributes is parameters for the generator // +kubebuilder:validation:Optional Attributes map[string]string `json:"attributes,omitempty"` // ServiceAccount is the name of the ServiceAccount to use to run this Application // +kubebuilder:validation:Optional ServiceAccount string `json:"serviceAccount,omitempty"` // ImagePullSecret is the name of the ImagePullSecret to pull your image // +kubebuilder:validation:Optional ImagePullSecret string `json:"imagePullSecret,omitempty"` }
ApplicationSpec defines the desired state of Application
func (*ApplicationSpec) DeepCopy ¶
func (in *ApplicationSpec) DeepCopy() *ApplicationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSpec.
func (*ApplicationSpec) DeepCopyInto ¶
func (in *ApplicationSpec) DeepCopyInto(out *ApplicationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationSpecTemplate ¶
type ApplicationSpecTemplate struct { // Command is an entrypoint array // +kubebuilder:validation:Optional Command []string `json:"command,omitempty"` // Args is the arguments to the entrypoint // +kubebuilder:validation:Optional Args []string `json:"args,omitempty"` // Attributes is parameters for the generator // +kubebuilder:validation:Optional Attributes map[string]string `json:"attributes,omitempty"` }
ApplicationSpecTemplate defines the desired state of Application
func (*ApplicationSpecTemplate) DeepCopy ¶
func (in *ApplicationSpecTemplate) DeepCopy() *ApplicationSpecTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSpecTemplate.
func (*ApplicationSpecTemplate) DeepCopyInto ¶
func (in *ApplicationSpecTemplate) DeepCopyInto(out *ApplicationSpecTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationStatus ¶
type ApplicationStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file // Domains are assigned domains for the application Domains []string `json:"domains"` // Status is the current status of the application Status ApplicationStatusType `json:"status"` // Message is the detailed status or reason for the currnt status // +kubebuilder:validation:Optional Message string `json:"message,omitempty"` // Resources are the generated resources by modoki Resources []ApplicationResource `json:"resources"` }
ApplicationStatus defines the observed state of Application
func (*ApplicationStatus) DeepCopy ¶
func (in *ApplicationStatus) DeepCopy() *ApplicationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationStatus.
func (*ApplicationStatus) DeepCopyInto ¶
func (in *ApplicationStatus) DeepCopyInto(out *ApplicationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationStatusType ¶
type ApplicationStatusType string
ApplicationStatusType is the Status enum for Application
const ( // ApplicationDeployed means all updated specs are applied ApplicationDeployed ApplicationStatusType = "deployed" // ApplicationProgressing means specs are being updated ApplicationProgressing ApplicationStatusType = "progressing" // ApplicationDeploymentFailed means deployment failed ApplicationDeploymentFailed ApplicationStatusType = "failed" // ApplicationError means some errors occurred in the application ApplicationError ApplicationStatusType = "error" )
type ApplicationTemplate ¶
type ApplicationTemplate struct { // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +kubebuilder:validation:Optional MetadataTemplate `json:"metadata,omitempty"` // +kubebuilder:validation:Optional Spec ApplicationSpecTemplate `json:"spec"` }
func (*ApplicationTemplate) DeepCopy ¶
func (in *ApplicationTemplate) DeepCopy() *ApplicationTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationTemplate.
func (*ApplicationTemplate) DeepCopyInto ¶
func (in *ApplicationTemplate) DeepCopyInto(out *ApplicationTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Base ¶
type Base struct { GitHub GitHub `json:"github"` // SubPath is the target directory in your repository // +kubebuilder:validation:Optional SubPath string `json:"subPath"` }
func (*Base) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Base.
func (*Base) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitHub ¶
type GitHub struct { // Owner is the repository's owner Owner string `json:"owner"` // Repository is the repository's name Repository string `json:"repo"` // SHA is the sha of a commit(optional) // +kubebuilder:validation:Optional SHA string `json:"sha,omitempty"` // Branch is the branch name(optional) // +kubebuilder:validation:Optional Branch string `json:"branch,omitempty"` // PullRequest is the pull request id(optional) // +kubebuilder:validation:Optional PullRequest *int `json:"pullRequest,omitempty"` // SecretName is the name of the Secret resource saving a GitHub token SecretName string `json:"secretName"` }
GitHub is the source from GitHub
func (*GitHub) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHub.
func (*GitHub) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitHubPipeline ¶
type GitHubPipeline struct { // Owner is the repository's owner Owner string `json:"owner"` // Repository is the repository's name Repository string `json:"repo"` // SecretName is the name of the Secret resource saving a GitHub token SecretName string `json:"secretName"` }
GitHubPipeline is the source from GitHub
func (*GitHubPipeline) DeepCopy ¶
func (in *GitHubPipeline) DeepCopy() *GitHubPipeline
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubPipeline.
func (*GitHubPipeline) DeepCopyInto ¶
func (in *GitHubPipeline) DeepCopyInto(out *GitHubPipeline)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Image ¶
type Image struct { Name string `json:"name"` // SecretName is the secret to pull from / push to the image registry // +kubebuilder:validation:Optional SecretName string `json:"secretName"` }
func (*Image) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Image.
func (*Image) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetadataTemplate ¶
type MetadataTemplate struct { // Map of string keys and values that can be used to organize and categorize // (scope and select) objects. May match selectors of replication controllers // and services. // More info: http://kubernetes.io/docs/user-guide/labels // +kubebuilder:validation:Optional Labels map[string]string `json:"labels,omitempty"` // Annotations is an unstructured key value map stored with a resource that may be // set by external tools to store and retrieve arbitrary metadata. They are not // queryable and should be preserved when modifying objects. // More info: http://kubernetes.io/docs/user-guide/annotations // +kubebuilder:validation:Optional Annotations map[string]string `json:"annotations,omitempty"` }
func (*MetadataTemplate) DeepCopy ¶
func (in *MetadataTemplate) DeepCopy() *MetadataTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetadataTemplate.
func (*MetadataTemplate) DeepCopyInto ¶
func (in *MetadataTemplate) DeepCopyInto(out *MetadataTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineBase ¶
type PipelineBase struct { GitHub GitHubPipeline `json:"github"` // SubPath is the target directory in your repository // +kubebuilder:validation:Optional SubPath string `json:"subPath"` }
func (*PipelineBase) DeepCopy ¶
func (in *PipelineBase) DeepCopy() *PipelineBase
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineBase.
func (*PipelineBase) DeepCopyInto ¶
func (in *PipelineBase) DeepCopyInto(out *PipelineBase)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RemoteSync ¶
type RemoteSync struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RemoteSyncSpec `json:"spec,omitempty"` Status RemoteSyncStatus `json:"status,omitempty"` }
RemoteSync is the Schema for the remotesyncs API
func (*RemoteSync) DeepCopy ¶
func (in *RemoteSync) DeepCopy() *RemoteSync
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteSync.
func (*RemoteSync) DeepCopyInto ¶
func (in *RemoteSync) DeepCopyInto(out *RemoteSync)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RemoteSync) DeepCopyObject ¶
func (in *RemoteSync) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RemoteSyncList ¶
type RemoteSyncList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RemoteSync `json:"items"` }
RemoteSyncList contains a list of RemoteSync
func (*RemoteSyncList) DeepCopy ¶
func (in *RemoteSyncList) DeepCopy() *RemoteSyncList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteSyncList.
func (*RemoteSyncList) DeepCopyInto ¶
func (in *RemoteSyncList) DeepCopyInto(out *RemoteSyncList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RemoteSyncList) DeepCopyObject ¶
func (in *RemoteSyncList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RemoteSyncSpec ¶
type RemoteSyncSpec struct { // Enabled Enabled `json:"enabled"` ApplicationRef ApplicationRef `json:"applicationRef"` Base Base `json:"base"` Image Image `json:"image"` }
RemoteSyncSpec defines the desired state of RemoteSync
func (*RemoteSyncSpec) DeepCopy ¶
func (in *RemoteSyncSpec) DeepCopy() *RemoteSyncSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteSyncSpec.
func (*RemoteSyncSpec) DeepCopyInto ¶
func (in *RemoteSyncSpec) DeepCopyInto(out *RemoteSyncSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RemoteSyncStatus ¶
type RemoteSyncStatus struct { // Message is the detailed status or reason for the currnt status // +kubebuilder:validation:Optional Message string `json:"message,omitempty"` }
RemoteSyncStatus defines the observed state of RemoteSync
func (*RemoteSyncStatus) DeepCopy ¶
func (in *RemoteSyncStatus) DeepCopy() *RemoteSyncStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteSyncStatus.
func (*RemoteSyncStatus) DeepCopyInto ¶
func (in *RemoteSyncStatus) DeepCopyInto(out *RemoteSyncStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.