Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the http v1alpha1 API group +kubebuilder:object:generate=true +groupName=http.keda.sh
Index ¶
- Variables
- func Resource(resource string) schema.GroupResource
- type HTTPScaledObject
- type HTTPScaledObjectCondition
- type HTTPScaledObjectConditionReason
- type HTTPScaledObjectCreationStatus
- type HTTPScaledObjectList
- type HTTPScaledObjectSpec
- type HTTPScaledObjectStatus
- type ReplicaStruct
- type ScaleTargetRef
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "http.keda.sh", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type HTTPScaledObject ¶
type HTTPScaledObject struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec HTTPScaledObjectSpec `json:"spec,omitempty"`
Status HTTPScaledObjectStatus `json:"status,omitempty"`
}
HTTPScaledObject is the Schema for the httpscaledobjects API
func (*HTTPScaledObject) DeepCopy ¶
func (in *HTTPScaledObject) DeepCopy() *HTTPScaledObject
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPScaledObject.
func (*HTTPScaledObject) DeepCopyInto ¶
func (in *HTTPScaledObject) DeepCopyInto(out *HTTPScaledObject)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HTTPScaledObject) DeepCopyObject ¶
func (in *HTTPScaledObject) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HTTPScaledObjectCondition ¶
type HTTPScaledObjectCondition struct {
// Timestamp of the condition
// +optional
Timestamp string `json:"timestamp" description:"Timestamp of this condition"`
// Type of condition
// +required
Type HTTPScaledObjectCreationStatus `json:"type" description:"type of status condition"`
// Status of the condition, one of True, False, Unknown.
// +required
Status metav1.ConditionStatus `json:"status" description:"status of the condition, one of True, False, Unknown"`
// Reason for the condition's last transition.
// +optional
Reason HTTPScaledObjectConditionReason `json:"reason,omitempty" description:"one-word CamelCase reason for the condition's last transition"`
// Message indicating details about the transition.
// +optional
Message string `json:"message,omitempty" description:"human-readable message indicating details about last transition"`
}
HTTPScaledObjectCondition stores the condition state
func (*HTTPScaledObjectCondition) DeepCopy ¶
func (in *HTTPScaledObjectCondition) DeepCopy() *HTTPScaledObjectCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPScaledObjectCondition.
func (*HTTPScaledObjectCondition) DeepCopyInto ¶
func (in *HTTPScaledObjectCondition) DeepCopyInto(out *HTTPScaledObjectCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HTTPScaledObjectConditionReason ¶
type HTTPScaledObjectConditionReason string
HTTPScaledObjectConditionReason describes the reason why the condition transitioned
const ( ErrorCreatingAppScaledObject HTTPScaledObjectConditionReason = "ErrorCreatingAppScaledObject" AppScaledObjectCreated HTTPScaledObjectConditionReason = "AppScaledObjectCreated" TerminatingResources HTTPScaledObjectConditionReason = "TerminatingResources" AppScaledObjectTerminated HTTPScaledObjectConditionReason = "AppScaledObjectTerminated" AppScaledObjectTerminationError HTTPScaledObjectConditionReason = "AppScaledObjectTerminationError" PendingCreation HTTPScaledObjectConditionReason = "PendingCreation" HTTPScaledObjectIsReady HTTPScaledObjectConditionReason = "HTTPScaledObjectIsReady" )
type HTTPScaledObjectCreationStatus ¶
type HTTPScaledObjectCreationStatus string
HTTPScaledObjectCreationStatus describes the creation status of the scaler's additional resources such as Services, Ingresses and Deployments
const ( // Created indicates the resource has been created Created HTTPScaledObjectCreationStatus = "Created" // Terminated indicates the resource has been terminated Terminated HTTPScaledObjectCreationStatus = "Terminated" // Error indicates the resource had an error Error HTTPScaledObjectCreationStatus = "Error" // Pending indicates the resource hasn't been created Pending HTTPScaledObjectCreationStatus = "Pending" // Terminating indicates that the resource is marked for deletion but hasn't // been deleted yet Terminating HTTPScaledObjectCreationStatus = "Terminating" // Unknown indicates the status is unavailable Unknown HTTPScaledObjectCreationStatus = "Unknown" // Ready indicates the object is fully created Ready HTTPScaledObjectCreationStatus = "Ready" )
type HTTPScaledObjectList ¶
type HTTPScaledObjectList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []HTTPScaledObject `json:"items"`
}
HTTPScaledObjectList contains a list of HTTPScaledObject
func (*HTTPScaledObjectList) DeepCopy ¶
func (in *HTTPScaledObjectList) DeepCopy() *HTTPScaledObjectList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPScaledObjectList.
func (*HTTPScaledObjectList) DeepCopyInto ¶
func (in *HTTPScaledObjectList) DeepCopyInto(out *HTTPScaledObjectList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HTTPScaledObjectList) DeepCopyObject ¶
func (in *HTTPScaledObjectList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HTTPScaledObjectSpec ¶
type HTTPScaledObjectSpec struct {
// The hosts to route. All requests which the "Host" header
// matches any .spec.hosts and the Request Target matches any
// .spec.pathPrefixes will be routed to the Service and Port specified in
// the scaleTargetRef. The .spec.hosts field is mutually exclusive with the
// .spec.host field.
// +optional
Hosts []string `json:"hosts,omitempty"`
// (optional) The paths to route. All requests which the Request Target
// matches any .spec.pathPrefixes and the "Host" header matches any
// .spec.hosts will be routed to the Service and Port specified in the
// scaleTargetRef. The .spec.hosts field is mutually exclusive with the
// .spec.host field. When this field is null, any path is matched.
// +optional
PathPrefixes []string `json:"pathPrefixes,omitempty"`
// The name of the deployment to route HTTP requests to (and to autoscale).
ScaleTargetRef ScaleTargetRef `json:"scaleTargetRef"`
// (optional) Replica information
// +optional
Replicas *ReplicaStruct `json:"replicas,omitempty"`
// (optional) Target metric value
// +optional
TargetPendingRequests *int32 `json:"targetPendingRequests,omitempty" description:"The target metric value for the HPA (Default 100)"`
// (optional) Cooldown period value
// +optional
CooldownPeriod *int32 `json:"scaledownPeriod,omitempty" description:"Cooldown period (seconds) for resources to scale down (Default 300)"`
}
HTTPScaledObjectSpec defines the desired state of HTTPScaledObject
func (*HTTPScaledObjectSpec) DeepCopy ¶
func (in *HTTPScaledObjectSpec) DeepCopy() *HTTPScaledObjectSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPScaledObjectSpec.
func (*HTTPScaledObjectSpec) DeepCopyInto ¶
func (in *HTTPScaledObjectSpec) DeepCopyInto(out *HTTPScaledObjectSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HTTPScaledObjectStatus ¶
type HTTPScaledObjectStatus struct {
// TargetWorkload reflects details about the scaled workload.
// +optional
TargetWorkload string `json:"targetWorkload,omitempty" description:"It reflects details about the scaled workload"`
// TargetService reflects details about the scaled service.
// +optional
TargetService string `json:"targetService,omitempty" description:"It reflects details about the scaled service"`
// Conditions of the operator
Conditions []HTTPScaledObjectCondition `json:"conditions,omitempty" description:"List of auditable conditions of the operator"`
}
HTTPScaledObjectStatus defines the observed state of HTTPScaledObject
func (*HTTPScaledObjectStatus) DeepCopy ¶
func (in *HTTPScaledObjectStatus) DeepCopy() *HTTPScaledObjectStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPScaledObjectStatus.
func (*HTTPScaledObjectStatus) DeepCopyInto ¶
func (in *HTTPScaledObjectStatus) DeepCopyInto(out *HTTPScaledObjectStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReplicaStruct ¶
type ReplicaStruct struct {
// Minimum amount of replicas to have in the deployment (Default 0)
Min *int32 `json:"min,omitempty" description:"Minimum amount of replicas to have in the deployment (Default 0)"`
// Maximum amount of replicas to have in the deployment (Default 100)
Max *int32 `json:"max,omitempty" description:"Maximum amount of replicas to have in the deployment (Default 100)"`
}
ReplicaStruct contains the minimum and maximum amount of replicas to have in the deployment
func (*ReplicaStruct) DeepCopy ¶
func (in *ReplicaStruct) DeepCopy() *ReplicaStruct
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaStruct.
func (*ReplicaStruct) DeepCopyInto ¶
func (in *ReplicaStruct) DeepCopyInto(out *ReplicaStruct)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScaleTargetRef ¶
type ScaleTargetRef struct {
// Deprecated: The name of the deployment to scale according to HTTP traffic
// +optional
Deployment string `json:"deployment"`
// +optional
Name string `json:"name"`
// +optional
APIVersion string `json:"apiVersion,omitempty"`
// +optional
Kind string `json:"kind,omitempty"`
// The name of the service to route to
Service string `json:"service"`
// The port to route to
Port int32 `json:"port"`
}
ScaleTargetRef contains all the details about an HTTP application to scale and route to
func (*ScaleTargetRef) DeepCopy ¶
func (in *ScaleTargetRef) DeepCopy() *ScaleTargetRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleTargetRef.
func (*ScaleTargetRef) DeepCopyInto ¶
func (in *ScaleTargetRef) DeepCopyInto(out *ScaleTargetRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.