v1alpha1

package
v0.0.0-...-11937f7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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

View Source
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

func (in *Connector) DeepCopy() *Connector

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Connector.

func (*Connector) DeepCopyInto

func (in *Connector) DeepCopyInto(out *Connector)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Connector) DeepCopyObject

func (in *Connector) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Connector) String

func (in *Connector) String() string

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 CustomScaling struct {
	// +optional
	CheckInterval *int32 `json:"checkInterval,omitempty"`
	// +optional
	CooldownPeriod *int32 `json:"cooldownPeriod,omitempty"`

	Triggers []Trigger `json:"triggers"`
}

type HTTPScaling

type HTTPScaling struct {
	Host string `json:"host"`
	// +optional
	SvcType string `json:"svcType,omitempty"`
	// +optional
	PendingRequests int32 `json:"pendingRequests,omitempty" description:"The target metric value for the HPA (Default 100)"`
}

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 Trigger

type Trigger struct {
	Type      string            `json:"type"`
	Metadata  map[string]string `json:"metadata"`
	SecretRef string            `json:"secretRef,omitempty"`
}

type TriggerType

type TriggerType string
const (
	MySQL TriggerType = "mysql"
	SQS   TriggerType = "aws-sqs-queue"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL