Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=vance.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "vance.io", 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 Connector ¶
type Connector struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ConnectorSpec `json:"spec"` Status ConnectorStatus `json:"status,omitempty"` }
Connector is the Schema for the connectors API
func (*Connector) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Connector.
func (*Connector) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Connector) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConnectorCondition ¶
type ConnectorCondition struct { Timestamp string `json:"timestamp" description:"Timestamp of this condition"` Type ConnectorCreationStatus `json:"type" description:"type of status condition"` Status metav1.ConditionStatus `json:"status" description:"status of the condition, one of True, False, Unknown"` Reason ConnectorConditionReason `json:"reason,omitempty" description:"one-word CamelCase reason for the condition's last transition"` Message string `json:"message,omitempty" description:"human-readable message indicating details about last transition"` }
func (*ConnectorCondition) DeepCopy ¶
func (in *ConnectorCondition) DeepCopy() *ConnectorCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectorCondition.
func (*ConnectorCondition) DeepCopyInto ¶
func (in *ConnectorCondition) DeepCopyInto(out *ConnectorCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConnectorConditionReason ¶
type ConnectorConditionReason string
const ( ErrorCreatingAppScaledObject ConnectorConditionReason = "ErrorCreatingAppScaledObject" AppScaledObjectCreated ConnectorConditionReason = "AppScaledObjectCreated" TerminatingResources ConnectorConditionReason = "TerminatingResources" AppScaledObjectTerminated ConnectorConditionReason = "AppScaledObjectTerminated" AppScaledObjectTerminationError ConnectorConditionReason = "AppScaledObjectTerminationError" PendingCreation ConnectorConditionReason = "PendingCreation" HTTPScaledObjectIsReady ConnectorConditionReason = "HTTPScaledObjectIsReady" )
type ConnectorCreationStatus ¶
type ConnectorCreationStatus string
const ( // Created indicates the resource has been created Created ConnectorCreationStatus = "Created" // Terminated indicates the resource has been terminated Terminated ConnectorCreationStatus = "Terminated" // Error indicates the resource had an error Error ConnectorCreationStatus = "Error" // Pending indicates the resource hasn't been created Pending ConnectorCreationStatus = "Pending" // Terminating indicates that the resource is marked for deletion but hasn't // been deleted yet Terminating ConnectorCreationStatus = "Terminating" // Unknown indicates the status is unavailable Unknown ConnectorCreationStatus = "Unknown" // Ready indicates the object is fully created Ready ConnectorCreationStatus = "Ready" )
type ConnectorList ¶
type ConnectorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Connector `json:"items"` }
ConnectorList contains a list of Connector
func (*ConnectorList) DeepCopy ¶
func (in *ConnectorList) DeepCopy() *ConnectorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectorList.
func (*ConnectorList) DeepCopyInto ¶
func (in *ConnectorList) DeepCopyInto(out *ConnectorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConnectorList) DeepCopyObject ¶
func (in *ConnectorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConnectorSpec ¶
type ConnectorSpec struct { // The image uri of your connector Image string `json:"image,omitempty"` // Specify the container in detail if needed Containers []v1.Container `json:"containers,omitempty"` ExposePort *int32 `json:"exposePort"` ConfigRef string `json:"configRef,omitempty"` SecretRef string `json:"secretRef,omitempty"` ScalingRule *ScalingRule `json:"scalingRule,omitempty"` }
ConnectorSpec defines the desired state of Connector
func (*ConnectorSpec) DeepCopy ¶
func (in *ConnectorSpec) DeepCopy() *ConnectorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectorSpec.
func (*ConnectorSpec) DeepCopyInto ¶
func (in *ConnectorSpec) DeepCopyInto(out *ConnectorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConnectorStatus ¶
type ConnectorStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file Conditions []ConnectorCondition `json:"conditions,omitempty"` }
ConnectorStatus defines the observed state of Connector
func (*ConnectorStatus) DeepCopy ¶
func (in *ConnectorStatus) DeepCopy() *ConnectorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectorStatus.
func (*ConnectorStatus) DeepCopyInto ¶
func (in *ConnectorStatus) DeepCopyInto(out *ConnectorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CustomScaling ¶
type HTTPScaling ¶
type ResourceType ¶
type ResourceType string
const ( DeployResType ResourceType = "deployment" SvcResType ResourceType = "service" CLSvcResType ResourceType = "cl-service" LBSvcResType ResourceType = "lb-service" HttpSOResType ResourceType = "httpScaledObject" SoResType ResourceType = "scaledObject" TAResType ResourceType = "triggerAuthentication" )
type ScalingRule ¶
type ScalingRule struct { // +optional MaxReplicaCount *int32 `json:"maxReplicaCount,omitempty"` // +optional MinReplicaCount *int32 `json:"minReplicaCount,omitempty"` // +optional CustomScaling *CustomScaling `json:"customScaling,omitempty"` // +optional HTTPScaling *HTTPScaling `json:"httpScaling,omitempty"` }
type TriggerType ¶
type TriggerType string
const ( MySQL TriggerType = "mysql" SQS TriggerType = "aws-sqs-queue" )