Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the apps v1alpha1 API group +kubebuilder:object:generate=true +groupName=apps.mohammadne.me
Index ¶
- Variables
- type Executer
- func (in *Executer) DeepCopy() *Executer
- func (in *Executer) DeepCopyInto(out *Executer)
- func (in *Executer) DeepCopyObject() runtime.Object
- func (r *Executer) Default()
- func (r *Executer) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (e *Executer) ShouldCreateIngress() bool
- func (e *Executer) ShouldCreateService() bool
- func (r *Executer) ValidateCreate() error
- func (r *Executer) ValidateDelete() error
- func (r *Executer) ValidateUpdate(old runtime.Object) error
- type ExecuterList
- type ExecuterSpec
- type ExecuterStatus
- type Ingress
- type ResourceState
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "apps.mohammadne.me", 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 Executer ¶
type Executer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ExecuterSpec `json:"spec,omitempty"` Status ExecuterStatus `json:"status,omitempty"` }
Executer is the Schema for the executers API
func (*Executer) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Executer.
func (*Executer) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Executer) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Executer) Default ¶
func (r *Executer) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*Executer) SetupWebhookWithManager ¶
func (*Executer) ShouldCreateIngress ¶ added in v0.1.3
func (*Executer) ShouldCreateService ¶ added in v0.1.3
func (*Executer) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Executer) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type ExecuterList ¶
type ExecuterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Executer `json:"items"` }
ExecuterList contains a list of Executer
func (*ExecuterList) DeepCopy ¶
func (in *ExecuterList) DeepCopy() *ExecuterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecuterList.
func (*ExecuterList) DeepCopyInto ¶
func (in *ExecuterList) DeepCopyInto(out *ExecuterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExecuterList) DeepCopyObject ¶
func (in *ExecuterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ExecuterSpec ¶
type ExecuterSpec struct { // Image is the name of the image to be used for executer // +kubebuilder:validation:Required Image string `json:"image,omitempty"` // Commands is the command to be run inside the container // +kubebuilder:validation:Required // +kubebuilder:validation:MinItems:=1 Commands []string `json:"commands,omitempty"` // Replication is the replicas for the executer // +kubebuilder:validation:Optional Replication int32 `json:"replication,omitempty"` // Port is the container-port to be exposed // +kubebuilder:validation:Optional Port int32 `json:"port,omitempty"` // Ingress to expose executer service // +kubebuilder:validation:Optional Ingress *Ingress `json:"ingress,omitempty"` }
ExecuterSpec defines the desired state of Executer
func (*ExecuterSpec) DeepCopy ¶
func (in *ExecuterSpec) DeepCopy() *ExecuterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecuterSpec.
func (*ExecuterSpec) DeepCopyInto ¶
func (in *ExecuterSpec) DeepCopyInto(out *ExecuterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExecuterStatus ¶
type ExecuterStatus struct { DeploymentState ResourceState `json:"deploymentState,omitempty"` ServiceState ResourceState `json:"serviceState,omitempty"` IngressState ResourceState `json:"ingressState,omitempty"` }
ExecuterStatus defines the observed state of Executer
func (*ExecuterStatus) DeepCopy ¶
func (in *ExecuterStatus) DeepCopy() *ExecuterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecuterStatus.
func (*ExecuterStatus) DeepCopyInto ¶
func (in *ExecuterStatus) DeepCopyInto(out *ExecuterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Ingress ¶
type Ingress struct { // +kubebuilder:validation:Optional Name string `json:"name,omitempty"` }
func (*Ingress) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ingress.
func (*Ingress) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceState ¶
type ResourceState string
const ( ResourceStateUnknown ResourceState = "Unknown" ResourceStateIdle ResourceState = "Idle" ResourceStateCreating ResourceState = "Creating" ResourceStateCreated ResourceState = "Created" ResourceStateUpdating ResourceState = "Updating" ResourceStateFailed ResourceState = "Failed" )