Documentation ¶
Overview ¶
Package v1beta1 contains API Schema definitions for the web v1beta1 API group +kubebuilder:object:generate=true +groupName=web.kwite.site
Index ¶
- Variables
- type Kwite
- func (in *Kwite) DeepCopy() *Kwite
- func (in *Kwite) DeepCopyInto(out *Kwite)
- func (in *Kwite) DeepCopyObject() runtime.Object
- func (r *Kwite) Default()
- func (r *Kwite) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Kwite) ValidateCreate() error
- func (r *Kwite) ValidateDelete() error
- func (r *Kwite) ValidateUpdate(old runtime.Object) error
- type KwiteList
- type KwiteSpec
- type KwiteStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "web.kwite.site", Version: "v1beta1"} // 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 )
var (
ControllerName = "Kwite"
)
Functions ¶
This section is empty.
Types ¶
type Kwite ¶
type Kwite struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec KwiteSpec `json:"spec,omitempty"` Status KwiteStatus `json:"status,omitempty"` }
Kwite is the Schema for the kwites API
func (*Kwite) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Kwite.
func (*Kwite) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Kwite) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Kwite) Default ¶
func (r *Kwite) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*Kwite) SetupWebhookWithManager ¶
func (*Kwite) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Kwite) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type KwiteList ¶
type KwiteList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Kwite `json:"items"` }
KwiteList contains a list of Kwite
func (*KwiteList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KwiteList.
func (*KwiteList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KwiteList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KwiteSpec ¶
type KwiteSpec struct { // The URL to handle in the kwite instances, default "/" Url string `json:"url"` // Whether the url is public (i.e., needs an ingress), default false // +optional Public *bool `json:"public,omitempty"` // container image to use for the http(s) server, default is kwite:latest // +optional Image string `json:"image"` // port on which to expose the Url, default is 8080 // +optional Port int `json:"port,omitempty"` // The minimum number of page hander replicas, default is 1 (one) // +optional MinReplicas int `json:"minreplicas,omitempty"` // The maximum number of page hander replicas, default is 1 (one) // +optional MaxReplicas int `json:"maxreplicas,omitempty"` // Memory Resource request (e.g., "128Mi"), defaults to "64Mi" // +optional Memory string `json:"memory"` // CPU Resource request (e.g., "200m"), defaults to "200m" // +optional CPU string `json:"cpu"` // HorizontalPodAutoscaler CPU target utilization per pod, default is 80 // +optional TargetCpu int `json:"targetcpu,omitempty"` // Image pull secrets name for container pulls. // +optional ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets"` // The security context for kwite instance Pods, default is no specified context // +optional SecurityContext *corev1.SecurityContext `json:"securityContext,omitempty"` // The template to execute for the kwite instances Template string `json:"template"` // The template to execute for the readiness probes Ready string `json:"ready"` // The template to execute for aliveness probes Alive string `json:"alive"` }
KwiteSpec defines the desired state of Kwite
func (*KwiteSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KwiteSpec.
func (*KwiteSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KwiteStatus ¶
type KwiteStatus struct { // The service address on which the URL is exposed Address string `json:"address,omitempty"` // The number of ready replicas HPA is requesting ReadyReplicas int `json:"readyReplicas,omitempty"` // The total number of replicas HPA is requesting DesiredReplicas int `json:"desiredReplicas,omitempty"` // True if the minimum number of replicas are ready Ready bool `json:"ready"` }
KwiteStatus defines the observed state of Kwite
func (*KwiteStatus) DeepCopy ¶
func (in *KwiteStatus) DeepCopy() *KwiteStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KwiteStatus.
func (*KwiteStatus) DeepCopyInto ¶
func (in *KwiteStatus) DeepCopyInto(out *KwiteStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.