Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the naglfar v1 API group +kubebuilder:object:generate=true +groupName=naglfar.pingcap.com
Index ¶
- Constants
- Variables
- type AvailableResource
- type BytesSize
- type ClusterTopologyRef
- type ClusterTopologyState
- type DiskBinding
- type DiskKind
- type DiskResource
- type DiskSpec
- type DockerContainerSpec
- type Duration
- type GrafanaSpec
- type Machine
- func (r *Machine) Available() *AvailableResource
- func (in *Machine) DeepCopy() *Machine
- func (in *Machine) DeepCopyInto(out *Machine)
- func (in *Machine) DeepCopyObject() runtime.Object
- func (r *Machine) Default()
- func (r *Machine) DockerURL() string
- func (r *Machine) Rest(resources ResourceRefList) (rest *AvailableResource)
- func (r *Machine) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Machine) ValidateCreate() error
- func (r *Machine) ValidateDelete() error
- func (r *Machine) ValidateUpdate(old runtime.Object) error
- type MachineInfo
- type MachineList
- type MachineRef
- type MachineSpec
- type MachineStatus
- type PDSpec
- type PrometheusSpec
- type PullImagePolicy
- type Relationship
- type RelationshipList
- type RelationshipSpec
- type RelationshipStatus
- type ReserveResources
- type ResourceBinding
- type ResourceContainerSpec
- type ResourceRef
- type ResourceRefList
- type ResourceRequestItem
- type ResourceRequestRef
- type ResourceState
- type ServerConfigs
- type StorageDevice
- type TestClusterTopology
- type TestClusterTopologyList
- type TestClusterTopologySpec
- type TestClusterTopologyStatus
- type TestResource
- func (r *TestResource) ContainerCleanerConfig(binding *ResourceBinding) (*container.Config, *container.HostConfig)
- func (r *TestResource) ContainerCleanerName() string
- func (r *TestResource) ContainerConfig(binding *ResourceBinding) (*container.Config, *container.HostConfig)
- func (r *TestResource) ContainerName() string
- func (in *TestResource) DeepCopy() *TestResource
- func (in *TestResource) DeepCopyInto(out *TestResource)
- func (in *TestResource) DeepCopyObject() runtime.Object
- func (r *TestResource) Default()
- func (r *TestResource) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *TestResource) ValidateCreate() error
- func (r *TestResource) ValidateDelete() error
- func (r *TestResource) ValidateUpdate(old runtime.Object) error
- type TestResourceList
- type TestResourceMount
- type TestResourceRequest
- func (r *TestResourceRequest) ConstructTestResource(idx int) *TestResource
- func (in *TestResourceRequest) DeepCopy() *TestResourceRequest
- func (in *TestResourceRequest) DeepCopyInto(out *TestResourceRequest)
- func (in *TestResourceRequest) DeepCopyObject() runtime.Object
- func (r *TestResourceRequest) Default()
- func (r *TestResourceRequest) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *TestResourceRequest) ValidateCreate() error
- func (r *TestResourceRequest) ValidateDelete() error
- func (r *TestResourceRequest) ValidateUpdate(old runtime.Object) error
- type TestResourceRequestList
- type TestResourceRequestSpec
- type TestResourceRequestState
- type TestResourceRequestStatus
- type TestResourceSpec
- type TestResourceStatus
- type TestWorkflow
- type TestWorkflowList
- type TestWorkflowSpec
- type TestWorkflowStatus
- type TestWorkload
- type TestWorkloadItemSpec
- type TestWorkloadList
- type TestWorkloadResult
- type TestWorkloadSpec
- type TestWorkloadState
- type TestWorkloadStatus
- type TiDBCluster
- type TiDBClusterVersion
- type TiDBSpec
- type TiKVSpec
- type WorkflowStepItem
Constants ¶
const ( ResourcePending ResourceState = "pending" ResourceFail = "fail" ResourceUninitialized = "uninitialized" ResourceReady = "ready" ResourceFinish = "finish" ResourceDestroy = "destroy" PullPolicyAlways PullImagePolicy = "Always" PullPolicyIfNotPresent = "IfNotPresent" )
const ( TestWorkloadStatePending TestWorkloadState = "pending" TestWorkloadStateRunning = "running" TestWorkloadStateFinish = "finish" )
const SSHPort = "22/tcp"
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "naglfar.pingcap.com", Version: "v1"} // 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 AvailableResource ¶
type AvailableResource struct { Memory BytesSize `json:"memory"` IdleCPUSet []int `json:"idleCPUSet,omitempty"` Disks map[string]DiskResource `json:"disks,omitempty"` }
func (*AvailableResource) DeepCopy ¶
func (in *AvailableResource) DeepCopy() *AvailableResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AvailableResource.
func (*AvailableResource) DeepCopyInto ¶
func (in *AvailableResource) DeepCopyInto(out *AvailableResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterTopologyRef ¶
type ClusterTopologyRef struct { Name string `json:"name"` // +optional AliasName string `json:"aliasName,omitempty"` }
func (*ClusterTopologyRef) DeepCopy ¶
func (in *ClusterTopologyRef) DeepCopy() *ClusterTopologyRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTopologyRef.
func (*ClusterTopologyRef) DeepCopyInto ¶
func (in *ClusterTopologyRef) DeepCopyInto(out *ClusterTopologyRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterTopologyState ¶
type ClusterTopologyState string
+kubebuilder:validation:Enum=pending;ready
const ( ClusterTopologyStatePending ClusterTopologyState = "pending" ClusterTopologyStateReady ClusterTopologyState = "ready" )
type DiskBinding ¶
type DiskBinding struct { Kind DiskKind `json:"kind"` Size BytesSize `json:"size"` Device string `json:"device"` OriginPath string `json:"originPath"` MountPath string `json:"mountPath"` }
func (*DiskBinding) DeepCopy ¶
func (in *DiskBinding) DeepCopy() *DiskBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiskBinding.
func (*DiskBinding) DeepCopyInto ¶
func (in *DiskBinding) DeepCopyInto(out *DiskBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DiskKind ¶
type DiskKind string
+kubebuilder:validation:Enum=nvme;other
const ( NVMEKind DiskKind = "nvme" OtherKind = "other" )
type DiskResource ¶
type DiskResource struct { Size BytesSize `json:"size"` Kind DiskKind `json:"kind"` MountPath string `json:"mountPath"` }
func (*DiskResource) DeepCopy ¶
func (in *DiskResource) DeepCopy() *DiskResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiskResource.
func (*DiskResource) DeepCopyInto ¶
func (in *DiskResource) DeepCopyInto(out *DiskResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DiskSpec ¶
type DiskSpec struct { // default /mnt/<name> // +optional MountPath string `json:"mountPath"` // +optional Kind DiskKind `json:"kind"` // +optional Size BytesSize `json:"size"` }
func (*DiskSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiskSpec.
func (*DiskSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DockerContainerSpec ¶
type DockerContainerSpec struct { ResourceRequest ResourceRequestRef `json:"resourceRequest"` Image string `json:"image"` // +optional ImagePullPolicy PullImagePolicy `json:"imagePullPolicy,omitempty"` // +optional Command []string `json:"command,omitempty"` }
func (*DockerContainerSpec) DeepCopy ¶
func (in *DockerContainerSpec) DeepCopy() *DockerContainerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerContainerSpec.
func (*DockerContainerSpec) DeepCopyInto ¶
func (in *DockerContainerSpec) DeepCopyInto(out *DockerContainerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GrafanaSpec ¶
type GrafanaSpec struct { Host string `json:"host"` // +optional Port int `json:"port,omitempty"` DeployDir string `json:"deployDir"` }
func (*GrafanaSpec) DeepCopy ¶
func (in *GrafanaSpec) DeepCopy() *GrafanaSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaSpec.
func (*GrafanaSpec) DeepCopyInto ¶
func (in *GrafanaSpec) DeepCopyInto(out *GrafanaSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Machine ¶
type Machine struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MachineSpec `json:"spec,omitempty"` Status MachineStatus `json:"status,omitempty"` }
Machine is the Schema for the machines API +kubebuilder:subresource:status
func (*Machine) Available ¶
func (r *Machine) Available() *AvailableResource
func (*Machine) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Machine.
func (*Machine) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Machine) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Machine) Default ¶
func (r *Machine) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*Machine) Rest ¶
func (r *Machine) Rest(resources ResourceRefList) (rest *AvailableResource)
func (*Machine) SetupWebhookWithManager ¶
func (*Machine) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Machine) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type MachineInfo ¶
type MachineInfo struct { Hostname string `json:"hostname"` Architecture string `json:"architecture"` Threads int32 `json:"threads"` Memory BytesSize `json:"memory"` StorageDevices map[string]StorageDevice `json:"devices,omitempty"` }
func (*MachineInfo) DeepCopy ¶
func (in *MachineInfo) DeepCopy() *MachineInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineInfo.
func (*MachineInfo) DeepCopyInto ¶
func (in *MachineInfo) DeepCopyInto(out *MachineInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineList ¶
type MachineList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Machine `json:"items"` }
MachineList contains a list of Machine
func (*MachineList) DeepCopy ¶
func (in *MachineList) DeepCopy() *MachineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineList.
func (*MachineList) DeepCopyInto ¶
func (in *MachineList) DeepCopyInto(out *MachineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineList) DeepCopyObject ¶
func (in *MachineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineRef ¶
type MachineRef struct { ref.Ref `json:",inline"` Binding ResourceBinding `json:"binding"` }
func (*MachineRef) DeepCopy ¶
func (in *MachineRef) DeepCopy() *MachineRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineRef.
func (*MachineRef) DeepCopyInto ¶
func (in *MachineRef) DeepCopyInto(out *MachineRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineSpec ¶
type MachineSpec struct { Username string `json:"username"` Password string `json:"password"` Host string `json:"host"` // +kubebuilder:validation:Minimum=0 // default 22 // +optional SSHPort int `json:"sshPort"` // +kubebuilder:validation:Minimum=0 // default 2375 (unencrypted) or 2376(encrypted) // +optional DockerPort int `json:"dockerPort"` // +optional DockerVersion string `json:"dockerVersion,omitempty"` // default false // +optional DockerTLS bool `json:"dockerTLS"` // default 10s // +optional Timeout Duration `json:"timeout"` // +optional Reserve *ReserveResources `json:"reserve"` // +optional ExclusiveDisks []string `json:"exclusiveDisks,omitempty"` }
MachineSpec defines the desired state of Machine
func (*MachineSpec) DeepCopy ¶
func (in *MachineSpec) DeepCopy() *MachineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSpec.
func (*MachineSpec) DeepCopyInto ¶
func (in *MachineSpec) DeepCopyInto(out *MachineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineStatus ¶
type MachineStatus struct { // +optional Info *MachineInfo `json:"info,omitempty"` }
MachineStatus defines the observed state of Machine
func (*MachineStatus) DeepCopy ¶
func (in *MachineStatus) DeepCopy() *MachineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineStatus.
func (*MachineStatus) DeepCopyInto ¶
func (in *MachineStatus) DeepCopyInto(out *MachineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PDSpec ¶
type PDSpec struct { Host string `json:"host"` // +optional ClientPort int `json:"clientPort,omitempty"` // +optional PeerPort int `json:"peerPort,omitempty"` DeployDir string `json:"deployDir"` DataDir string `json:"dataDir"` // +optional LogDir string `json:"logDir,omitempty"` }
func (*PDSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PDSpec.
func (*PDSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrometheusSpec ¶
type PrometheusSpec struct { Host string `json:"host"` // +optional Port int `json:"port,omitempty"` DeployDir string `json:"deployDir"` DataDir string `json:"dataDir"` // +optional LogDir string `json:"logDir,omitempty"` }
func (*PrometheusSpec) DeepCopy ¶
func (in *PrometheusSpec) DeepCopy() *PrometheusSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusSpec.
func (*PrometheusSpec) DeepCopyInto ¶
func (in *PrometheusSpec) DeepCopyInto(out *PrometheusSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Relationship ¶
type Relationship struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RelationshipSpec `json:"spec,omitempty"` Status RelationshipStatus `json:"status,omitempty"` }
Relationship is the Schema for the relationships API +kubebuilder:subresource:status
func (*Relationship) DeepCopy ¶
func (in *Relationship) DeepCopy() *Relationship
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Relationship.
func (*Relationship) DeepCopyInto ¶
func (in *Relationship) DeepCopyInto(out *Relationship)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Relationship) DeepCopyObject ¶
func (in *Relationship) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RelationshipList ¶
type RelationshipList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Relationship `json:"items"` }
RelationshipList contains a list of Relationship
func (*RelationshipList) DeepCopy ¶
func (in *RelationshipList) DeepCopy() *RelationshipList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RelationshipList.
func (*RelationshipList) DeepCopyInto ¶
func (in *RelationshipList) DeepCopyInto(out *RelationshipList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RelationshipList) DeepCopyObject ¶
func (in *RelationshipList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RelationshipSpec ¶
type RelationshipSpec struct { }
RelationshipSpec defines the desired state of Relationship
func (*RelationshipSpec) DeepCopy ¶
func (in *RelationshipSpec) DeepCopy() *RelationshipSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RelationshipSpec.
func (*RelationshipSpec) DeepCopyInto ¶
func (in *RelationshipSpec) DeepCopyInto(out *RelationshipSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RelationshipStatus ¶
type RelationshipStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file MachineToResources map[string]ResourceRefList `json:"machineToResources"` ResourceToMachine map[string]MachineRef `json:"resourceToMachine"` }
RelationshipStatus defines the observed state of Relationship
func (*RelationshipStatus) DeepCopy ¶
func (in *RelationshipStatus) DeepCopy() *RelationshipStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RelationshipStatus.
func (*RelationshipStatus) DeepCopyInto ¶
func (in *RelationshipStatus) DeepCopyInto(out *RelationshipStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReserveResources ¶
type ReserveResources struct { // default 1 // +optional Cores int32 `json:"cores"` // default 1 GiB // +optional Memory BytesSize `json:"memory"` }
func (*ReserveResources) DeepCopy ¶
func (in *ReserveResources) DeepCopy() *ReserveResources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReserveResources.
func (*ReserveResources) DeepCopyInto ¶
func (in *ReserveResources) DeepCopyInto(out *ReserveResources)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceBinding ¶
type ResourceBinding struct { Memory BytesSize `json:"memory"` CPUSet []int `json:"cpuSet,omitempty"` Disks map[string]DiskBinding `json:"disks,omitempty"` }
func (*ResourceBinding) DeepCopy ¶
func (in *ResourceBinding) DeepCopy() *ResourceBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceBinding.
func (*ResourceBinding) DeepCopyInto ¶
func (in *ResourceBinding) DeepCopyInto(out *ResourceBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceContainerSpec ¶
type ResourceContainerSpec struct { // +optional // default false Privilege bool `json:"privilege,omitempty"` // List of kernel capabilities to add to the container // +optional CapAdd []string `json:"capAdd,omitempty"` // Mounts specs used by the container // +optional Mounts []TestResourceMount `json:"mount,omitempty"` // List of volume bindings for this container // +optional Binds []string `json:"binds,omitempty"` // +optional Image string `json:"image,omitempty"` // +optional // default IfNotPresent ImagePullPolicy PullImagePolicy `json:"imagePullPolicy,omitempty"` // +optional Command []string `json:"command,omitempty"` // +optional Envs []string `json:"envs,omitempty"` // +optional ExposedPorts []string `json:"exposedPorts,omitempty"` // +optional PortBindings string `json:"portBindings,omitempty"` // ClusterIP is the ip address of the container in the overlay(or calico) network // +optional ClusterIP string `json:"clusterIP"` }
func (*ResourceContainerSpec) DeepCopy ¶
func (in *ResourceContainerSpec) DeepCopy() *ResourceContainerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceContainerSpec.
func (*ResourceContainerSpec) DeepCopyInto ¶
func (in *ResourceContainerSpec) DeepCopyInto(out *ResourceContainerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceRef ¶
type ResourceRef struct { ref.Ref `json:",inline"` Binding ResourceBinding `json:"binding"` }
func (*ResourceRef) DeepCopy ¶
func (in *ResourceRef) DeepCopy() *ResourceRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRef.
func (*ResourceRef) DeepCopyInto ¶
func (in *ResourceRef) DeepCopyInto(out *ResourceRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceRefList ¶
type ResourceRefList []ResourceRef
func (ResourceRefList) DeepCopy ¶
func (in ResourceRefList) DeepCopy() ResourceRefList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRefList.
func (ResourceRefList) DeepCopyInto ¶
func (in ResourceRefList) DeepCopyInto(out *ResourceRefList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceRequestItem ¶
type ResourceRequestItem struct { // Specifies the name of a node. // For example, we can use n1, n2, n3 to refer to different resources Name string `json:"name"` Spec TestResourceSpec `json:"spec"` }
func (*ResourceRequestItem) DeepCopy ¶
func (in *ResourceRequestItem) DeepCopy() *ResourceRequestItem
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRequestItem.
func (*ResourceRequestItem) DeepCopyInto ¶
func (in *ResourceRequestItem) DeepCopyInto(out *ResourceRequestItem)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceRequestRef ¶
func (*ResourceRequestRef) DeepCopy ¶
func (in *ResourceRequestRef) DeepCopy() *ResourceRequestRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRequestRef.
func (*ResourceRequestRef) DeepCopyInto ¶
func (in *ResourceRequestRef) DeepCopyInto(out *ResourceRequestRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceState ¶
type ResourceState string
+kubebuilder:validation:Enum=pending;fail;uninitialized;ready;finish;destroy
func (ResourceState) IsRequired ¶
func (r ResourceState) IsRequired() bool
func (ResourceState) ShouldUninstall ¶
func (r ResourceState) ShouldUninstall() bool
type ServerConfigs ¶
type ServerConfigs struct { // +optional TiDB string `json:"tidb,omitempty"` // +optional TiKV string `json:"tikv,omitempty"` // +optional PD string `json:"pd,omitempty"` }
func (*ServerConfigs) DeepCopy ¶
func (in *ServerConfigs) DeepCopy() *ServerConfigs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerConfigs.
func (*ServerConfigs) DeepCopyInto ¶
func (in *ServerConfigs) DeepCopyInto(out *ServerConfigs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageDevice ¶
type StorageDevice struct { Filesystem string `json:"filesystem"` Total BytesSize `json:"total"` Used BytesSize `json:"used"` MountPoint string `json:"mountPoint"` }
func (*StorageDevice) DeepCopy ¶
func (in *StorageDevice) DeepCopy() *StorageDevice
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageDevice.
func (*StorageDevice) DeepCopyInto ¶
func (in *StorageDevice) DeepCopyInto(out *StorageDevice)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestClusterTopology ¶
type TestClusterTopology struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TestClusterTopologySpec `json:"spec,omitempty"` Status TestClusterTopologyStatus `json:"status,omitempty"` }
TestClusterTopology is the Schema for the testclustertopologies API
func (*TestClusterTopology) DeepCopy ¶
func (in *TestClusterTopology) DeepCopy() *TestClusterTopology
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestClusterTopology.
func (*TestClusterTopology) DeepCopyInto ¶
func (in *TestClusterTopology) DeepCopyInto(out *TestClusterTopology)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestClusterTopology) DeepCopyObject ¶
func (in *TestClusterTopology) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TestClusterTopologyList ¶
type TestClusterTopologyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TestClusterTopology `json:"items"` }
TestClusterTopologyList contains a list of TestClusterTopology
func (*TestClusterTopologyList) DeepCopy ¶
func (in *TestClusterTopologyList) DeepCopy() *TestClusterTopologyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestClusterTopologyList.
func (*TestClusterTopologyList) DeepCopyInto ¶
func (in *TestClusterTopologyList) DeepCopyInto(out *TestClusterTopologyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestClusterTopologyList) DeepCopyObject ¶
func (in *TestClusterTopologyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TestClusterTopologySpec ¶
type TestClusterTopologySpec struct { // ResourceRequest cannot be empty if the tidbCluster field is set // +optional ResourceRequest string `json:"resourceRequest,omitempty"` // +optional TiDBCluster *TiDBCluster `json:"tidbCluster,omitempty"` }
TestClusterTopologySpec defines the desired state of TestClusterTopology
func (*TestClusterTopologySpec) DeepCopy ¶
func (in *TestClusterTopologySpec) DeepCopy() *TestClusterTopologySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestClusterTopologySpec.
func (*TestClusterTopologySpec) DeepCopyInto ¶
func (in *TestClusterTopologySpec) DeepCopyInto(out *TestClusterTopologySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestClusterTopologyStatus ¶
type TestClusterTopologyStatus struct { // default Pending State ClusterTopologyState `json:"state,omitempty"` }
TestClusterTopologyStatus defines the observed state of TestClusterTopology
func (*TestClusterTopologyStatus) DeepCopy ¶
func (in *TestClusterTopologyStatus) DeepCopy() *TestClusterTopologyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestClusterTopologyStatus.
func (*TestClusterTopologyStatus) DeepCopyInto ¶
func (in *TestClusterTopologyStatus) DeepCopyInto(out *TestClusterTopologyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestResource ¶
type TestResource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TestResourceSpec `json:"spec,omitempty"` Status TestResourceStatus `json:"status,omitempty"` }
TestResource is the Schema for the testresources API +kubebuilder:resource:shortName="tr" +kubebuilder:subresource:status +kubebuilder:printcolumn:name="State",type="string",JSONPath=".status.state",description="the state of resource" +kubebuilder:printcolumn:name="HostIP",type="string",JSONPath=".status.hostIP",description="the host ip of resource" +kubebuilder:printcolumn:name="SSHPort",type="integer",JSONPath=".status.sshPort",description="the ssh port of resource" +kubebuilder:printcolumn:name="ClusterIP",type="string",JSONPath=".status.clusterIP",description="the cluster ip of resource" +kubebuilder:printcolumn:name="PortBindings",type="string",JSONPath=".status.portBindings",description="the port bindings of resource"
func (*TestResource) ContainerCleanerConfig ¶
func (r *TestResource) ContainerCleanerConfig(binding *ResourceBinding) (*container.Config, *container.HostConfig)
func (*TestResource) ContainerCleanerName ¶
func (r *TestResource) ContainerCleanerName() string
func (*TestResource) ContainerConfig ¶
func (r *TestResource) ContainerConfig(binding *ResourceBinding) (*container.Config, *container.HostConfig)
func (*TestResource) ContainerName ¶
func (r *TestResource) ContainerName() string
func (*TestResource) DeepCopy ¶
func (in *TestResource) DeepCopy() *TestResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestResource.
func (*TestResource) DeepCopyInto ¶
func (in *TestResource) DeepCopyInto(out *TestResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestResource) DeepCopyObject ¶
func (in *TestResource) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TestResource) Default ¶
func (r *TestResource) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*TestResource) SetupWebhookWithManager ¶
func (r *TestResource) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*TestResource) ValidateCreate ¶
func (r *TestResource) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*TestResource) ValidateDelete ¶
func (r *TestResource) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*TestResource) ValidateUpdate ¶
func (r *TestResource) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type TestResourceList ¶
type TestResourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TestResource `json:"items"` }
TestResourceList contains a list of TestResource
func (*TestResourceList) DeepCopy ¶
func (in *TestResourceList) DeepCopy() *TestResourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestResourceList.
func (*TestResourceList) DeepCopyInto ¶
func (in *TestResourceList) DeepCopyInto(out *TestResourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestResourceList) DeepCopyObject ¶
func (in *TestResourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TestResourceMount ¶
type TestResourceMount struct { Type mount.Type `json:"type,omitempty"` Source string `json:"source,omitempty"` Target string `json:"target,omitempty"` ReadOnly bool `json:"readOnly,omitempty"` }
func (*TestResourceMount) DeepCopy ¶
func (in *TestResourceMount) DeepCopy() *TestResourceMount
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestResourceMount.
func (*TestResourceMount) DeepCopyInto ¶
func (in *TestResourceMount) DeepCopyInto(out *TestResourceMount)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestResourceRequest ¶
type TestResourceRequest struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TestResourceRequestSpec `json:"spec,omitempty"` Status TestResourceRequestStatus `json:"status,omitempty"` }
TestResourceRequest is the Schema for the testresourcerequests API
func (*TestResourceRequest) ConstructTestResource ¶
func (r *TestResourceRequest) ConstructTestResource(idx int) *TestResource
func (*TestResourceRequest) DeepCopy ¶
func (in *TestResourceRequest) DeepCopy() *TestResourceRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestResourceRequest.
func (*TestResourceRequest) DeepCopyInto ¶
func (in *TestResourceRequest) DeepCopyInto(out *TestResourceRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestResourceRequest) DeepCopyObject ¶
func (in *TestResourceRequest) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TestResourceRequest) Default ¶
func (r *TestResourceRequest) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*TestResourceRequest) SetupWebhookWithManager ¶
func (r *TestResourceRequest) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*TestResourceRequest) ValidateCreate ¶
func (r *TestResourceRequest) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*TestResourceRequest) ValidateDelete ¶
func (r *TestResourceRequest) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*TestResourceRequest) ValidateUpdate ¶
func (r *TestResourceRequest) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type TestResourceRequestList ¶
type TestResourceRequestList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TestResourceRequest `json:"items"` }
TestResourceRequestList contains a list of TestResourceRequest
func (*TestResourceRequestList) DeepCopy ¶
func (in *TestResourceRequestList) DeepCopy() *TestResourceRequestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestResourceRequestList.
func (*TestResourceRequestList) DeepCopyInto ¶
func (in *TestResourceRequestList) DeepCopyInto(out *TestResourceRequestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestResourceRequestList) DeepCopyObject ¶
func (in *TestResourceRequestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TestResourceRequestSpec ¶
type TestResourceRequestSpec struct { // +optional Items []*ResourceRequestItem `json:"items,omitempty"` }
TestResourceRequestSpec defines the desired state of TestResourceRequest
func (*TestResourceRequestSpec) DeepCopy ¶
func (in *TestResourceRequestSpec) DeepCopy() *TestResourceRequestSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestResourceRequestSpec.
func (*TestResourceRequestSpec) DeepCopyInto ¶
func (in *TestResourceRequestSpec) DeepCopyInto(out *TestResourceRequestSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestResourceRequestState ¶
type TestResourceRequestState string
+kubebuilder:validation:Enum=pending;ready
const ( TestResourceRequestPending TestResourceRequestState = "pending" TestResourceRequestReady TestResourceRequestState = "ready" )
type TestResourceRequestStatus ¶
type TestResourceRequestStatus struct { // default Pending State TestResourceRequestState `json:"state"` }
TestResourceRequestStatus defines the observed state of TestResourceRequest
func (*TestResourceRequestStatus) DeepCopy ¶
func (in *TestResourceRequestStatus) DeepCopy() *TestResourceRequestStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestResourceRequestStatus.
func (*TestResourceRequestStatus) DeepCopyInto ¶
func (in *TestResourceRequestStatus) DeepCopyInto(out *TestResourceRequestStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestResourceSpec ¶
type TestResourceSpec struct { Memory BytesSize `json:"memory"` Cores int32 `json:"cores"` // +optional MachineSelector string `json:"machineSelector,omitempty"` // +optional Disks map[string]DiskSpec `json:"disks,omitempty"` // If sets, it means the static machine is required // +optional TestMachineResource string `json:"testMachineResource,omitempty"` }
TestResourceSpec defines the desired state of TestResource
func (*TestResourceSpec) DeepCopy ¶
func (in *TestResourceSpec) DeepCopy() *TestResourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestResourceSpec.
func (*TestResourceSpec) DeepCopyInto ¶
func (in *TestResourceSpec) DeepCopyInto(out *TestResourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestResourceSpec) ValidateCreate ¶
func (r *TestResourceSpec) ValidateCreate() error
type TestResourceStatus ¶
type TestResourceStatus struct { // default pending // +optional State ResourceState `json:"state"` ResourceContainerSpec `json:",inline"` // HostIP is the ip address of the host machine // +optional HostIP string `json:"hostIP"` // +optional Password string `json:"password"` // +optional SSHPort int `json:"sshPort"` // +optional PortBindings string `json:"portBindings,omitempty"` }
TestResourceStatus defines the observed state of TestResource
func (*TestResourceStatus) DeepCopy ¶
func (in *TestResourceStatus) DeepCopy() *TestResourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestResourceStatus.
func (*TestResourceStatus) DeepCopyInto ¶
func (in *TestResourceStatus) DeepCopyInto(out *TestResourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestWorkflow ¶
type TestWorkflow struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TestWorkflowSpec `json:"spec,omitempty"` Status TestWorkflowStatus `json:"status,omitempty"` }
TestWorkflow is the Schema for the testworkflows API
func (*TestWorkflow) DeepCopy ¶
func (in *TestWorkflow) DeepCopy() *TestWorkflow
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestWorkflow.
func (*TestWorkflow) DeepCopyInto ¶
func (in *TestWorkflow) DeepCopyInto(out *TestWorkflow)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestWorkflow) DeepCopyObject ¶
func (in *TestWorkflow) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TestWorkflowList ¶
type TestWorkflowList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TestWorkflow `json:"items"` }
TestWorkflowList contains a list of TestWorkflow
func (*TestWorkflowList) DeepCopy ¶
func (in *TestWorkflowList) DeepCopy() *TestWorkflowList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestWorkflowList.
func (*TestWorkflowList) DeepCopyInto ¶
func (in *TestWorkflowList) DeepCopyInto(out *TestWorkflowList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestWorkflowList) DeepCopyObject ¶
func (in *TestWorkflowList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TestWorkflowSpec ¶
type TestWorkflowSpec struct { // +optional Steps []WorkflowStepItem `json:"steps,omitempty"` }
TestWorkflowSpec defines the desired state of TestWorkflow
func (*TestWorkflowSpec) DeepCopy ¶
func (in *TestWorkflowSpec) DeepCopy() *TestWorkflowSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestWorkflowSpec.
func (*TestWorkflowSpec) DeepCopyInto ¶
func (in *TestWorkflowSpec) DeepCopyInto(out *TestWorkflowSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestWorkflowStatus ¶
type TestWorkflowStatus struct { }
TestWorkflowStatus defines the observed state of TestWorkflow
func (*TestWorkflowStatus) DeepCopy ¶
func (in *TestWorkflowStatus) DeepCopy() *TestWorkflowStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestWorkflowStatus.
func (*TestWorkflowStatus) DeepCopyInto ¶
func (in *TestWorkflowStatus) DeepCopyInto(out *TestWorkflowStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestWorkload ¶
type TestWorkload struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TestWorkloadSpec `json:"spec,omitempty"` Status TestWorkloadStatus `json:"status,omitempty"` }
TestWorkload is the Schema for the testworkloads API
func (*TestWorkload) DeepCopy ¶
func (in *TestWorkload) DeepCopy() *TestWorkload
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestWorkload.
func (*TestWorkload) DeepCopyInto ¶
func (in *TestWorkload) DeepCopyInto(out *TestWorkload)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestWorkload) DeepCopyObject ¶
func (in *TestWorkload) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TestWorkloadItemSpec ¶
type TestWorkloadItemSpec struct { Name string `json:"name"` // +optional DockerContainer *DockerContainerSpec `json:"dockerContainer,omitempty"` }
func (*TestWorkloadItemSpec) DeepCopy ¶
func (in *TestWorkloadItemSpec) DeepCopy() *TestWorkloadItemSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestWorkloadItemSpec.
func (*TestWorkloadItemSpec) DeepCopyInto ¶
func (in *TestWorkloadItemSpec) DeepCopyInto(out *TestWorkloadItemSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestWorkloadList ¶
type TestWorkloadList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TestWorkload `json:"items"` }
TestWorkloadList contains a list of TestWorkload
func (*TestWorkloadList) DeepCopy ¶
func (in *TestWorkloadList) DeepCopy() *TestWorkloadList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestWorkloadList.
func (*TestWorkloadList) DeepCopyInto ¶
func (in *TestWorkloadList) DeepCopyInto(out *TestWorkloadList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestWorkloadList) DeepCopyObject ¶
func (in *TestWorkloadList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TestWorkloadResult ¶
type TestWorkloadResult struct { // plain text format // +optional PlainText string `json:"plainText,omitempty"` }
func (*TestWorkloadResult) DeepCopy ¶
func (in *TestWorkloadResult) DeepCopy() *TestWorkloadResult
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestWorkloadResult.
func (*TestWorkloadResult) DeepCopyInto ¶
func (in *TestWorkloadResult) DeepCopyInto(out *TestWorkloadResult)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestWorkloadSpec ¶
type TestWorkloadSpec struct { // ClusterTopologiesRefs references // +optional ClusterTopologiesRefs []ClusterTopologyRef `json:"clusterTopologies,omitempty"` // Workloads specifies workload templates Workloads []TestWorkloadItemSpec `json:"workloads"` // +optional TeardownTestClusterTopology []string `json:"teardownTestClusterTopology,omitempty"` }
TestWorkloadSpec defines the desired state of TestWorkload
func (*TestWorkloadSpec) DeepCopy ¶
func (in *TestWorkloadSpec) DeepCopy() *TestWorkloadSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestWorkloadSpec.
func (*TestWorkloadSpec) DeepCopyInto ¶
func (in *TestWorkloadSpec) DeepCopyInto(out *TestWorkloadSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestWorkloadState ¶
type TestWorkloadState string
+kubebuilder:validation:Enum=pending;running;finish;fail
type TestWorkloadStatus ¶
type TestWorkloadStatus struct { // default pending // +optional State TestWorkloadState `json:"state"` // Save the results passed through // +optional Results map[string]TestWorkloadResult `json:"results,omitempty"` }
TestWorkloadStatus defines the observed state of TestWorkload
func (*TestWorkloadStatus) DeepCopy ¶
func (in *TestWorkloadStatus) DeepCopy() *TestWorkloadStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestWorkloadStatus.
func (*TestWorkloadStatus) DeepCopyInto ¶
func (in *TestWorkloadStatus) DeepCopyInto(out *TestWorkloadStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TiDBCluster ¶
type TiDBCluster struct { Version TiDBClusterVersion `json:"version"` // +optional ServerConfigs ServerConfigs `json:"serverConfigs,omitempty"` // Control machine host Control string `json:"control"` // TiDB machine hosts // +optional TiDB []TiDBSpec `json:"tidb,omitempty"` // TiKV machine hosts // +optional TiKV []TiKVSpec `json:"tikv,omitempty"` // PD machine hosts // +optional PD []PDSpec `json:"pd"` // +optional Monitor []PrometheusSpec `json:"monitor,omitempty"` // +optional Grafana []GrafanaSpec `json:"grafana,omitempty"` }
func (*TiDBCluster) AllHosts ¶
func (c *TiDBCluster) AllHosts() map[string]struct{}
func (*TiDBCluster) DeepCopy ¶
func (in *TiDBCluster) DeepCopy() *TiDBCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TiDBCluster.
func (*TiDBCluster) DeepCopyInto ¶
func (in *TiDBCluster) DeepCopyInto(out *TiDBCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TiDBClusterVersion ¶
type TiDBClusterVersion struct { Version string `json:"version"` // +optional TiDBDownloadURL string `json:"tidbDownloadURL,omitempty"` // +optional TiKVDownloadURL string `json:"tikvDownloadURL,omitempty"` // +optional PDDownloadUrl string `json:"pdDownloadURL,omitempty"` }
TODO: add a deploy version spec: clusterName, base version, component versions(for PR and self build version) etc.
func (*TiDBClusterVersion) DeepCopy ¶
func (in *TiDBClusterVersion) DeepCopy() *TiDBClusterVersion
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TiDBClusterVersion.
func (*TiDBClusterVersion) DeepCopyInto ¶
func (in *TiDBClusterVersion) DeepCopyInto(out *TiDBClusterVersion)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TiDBSpec ¶
type TiDBSpec struct { Host string `json:"host"` // +optional Port int `json:"port,omitempty"` // +optional StatusPort int `json:"statusPort,omitempty"` DeployDir string `json:"deployDir"` // +optional DataDir string `json:"dataDir,omitempty"` // +optional LogDir string `json:"logDir,omitempty"` }
func (*TiDBSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TiDBSpec.
func (*TiDBSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TiKVSpec ¶
type TiKVSpec struct { Host string `json:"host"` // +optional Port int `json:"port,omitempty"` // +optional StatusPort int `json:"statusPort,omitempty"` DeployDir string `json:"deployDir"` DataDir string `json:"dataDir"` // +optional LogDir string `json:"logDir,omitempty"` }
func (*TiKVSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TiKVSpec.
func (*TiKVSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkflowStepItem ¶
type WorkflowStepItem struct { Name string `json:"name"` // +optional TestResourceRequest *TestResourceSpec `json:"testResourceRequest,omitempty"` // +optional TestClusterTopology *TestClusterTopology `json:"testClusterTopology,omitempty"` // +optional TestWorkload *TestWorkload `json:"testWorkload,omitempty"` }
func (*WorkflowStepItem) DeepCopy ¶
func (in *WorkflowStepItem) DeepCopy() *WorkflowStepItem
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowStepItem.
func (*WorkflowStepItem) DeepCopyInto ¶
func (in *WorkflowStepItem) DeepCopyInto(out *WorkflowStepItem)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Source Files ¶
- bytes_size.go
- duration.go
- groupversion_info.go
- machine_types.go
- machine_webhook.go
- relationship_types.go
- testclustertopology_types.go
- testresource_types.go
- testresource_webhook.go
- testresourcerequest_types.go
- testresourcerequest_webhook.go
- testworkflow_types.go
- testworkload_types.go
- zz_generated.deepcopy.go