Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=milvus.io
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type Component
- type ComponentSpec
- type ComponentType
- type DependencyDeletionPolicy
- type InClusterConfig
- type MiluvsConditionType
- type Milvus
- func (r *Milvus) ConvertFrom(srcRaw conversion.Hub) error
- func (r *Milvus) ConvertTo(dstRaw conversion.Hub) error
- func (in *Milvus) DeepCopy() *Milvus
- func (in *Milvus) DeepCopyInto(out *Milvus)
- func (in *Milvus) DeepCopyObject() runtime.Object
- func (r *Milvus) SetupWebhookWithManager(mgr ctrl.Manager) error
- type MilvusCluster
- type MilvusClusterDependencies
- type MilvusClusterList
- type MilvusClusterSpec
- type MilvusComponents
- type MilvusCondition
- type MilvusDataCoord
- type MilvusDataNode
- type MilvusDependencies
- type MilvusEtcd
- type MilvusEtcdStatus
- type MilvusHealthStatus
- type MilvusIndexCoord
- type MilvusIndexNode
- type MilvusIngress
- type MilvusKafka
- type MilvusList
- type MilvusProxy
- type MilvusPulsar
- type MilvusQueryCoord
- type MilvusQueryNode
- type MilvusReplicas
- type MilvusRootCoord
- type MilvusSpec
- type MilvusStatus
- type MilvusStorage
- type MilvusStorageStatus
- type Persistence
- type PersistentVolumeClaim
- type Values
Constants ¶
const ( StorageTypeMinIO = "MinIO" StorageTypeS3 = "S3" )
const ( MsgStreamTypePulsar = "pulsar" MsgStreamTypeKafka = "kafka" )
const ( // StatusCreating is the status of creating. StatusCreating MilvusHealthStatus = "Creating" // StatusHealthy is the status of healthy. StatusHealthy MilvusHealthStatus = "Healthy" // StatusUnHealthy is the status of unhealthy. StatusUnHealthy MilvusHealthStatus = "Unhealthy" // EtcdReady means the Etcd is ready. EtcdReady MiluvsConditionType = "EtcdReady" // StorageReady means the Storage is ready. StorageReady MiluvsConditionType = "StorageReady" // MsgStreamReady means the MsgStream is ready. MsgStreamReady MiluvsConditionType = "MsgStreamReady" // MilvusReady means all components of Milvus are ready. MilvusReady MiluvsConditionType = "MilvusReady" // ReasonEndpointsHealthy means the endpoint is healthy ReasonEndpointsHealthy string = "EndpointsHealthy" // ReasonMilvusHealthy means milvus cluster is healthy ReasonMilvusHealthy string = "ReasonMilvusHealthy" // ReasonMilvusClusterHealthy means milvus cluster is healthy ReasonMilvusClusterHealthy string = "MilvusClusterHealthy" // ReasonMilvusClusterNotHealthy means at least one of milvus component is not healthy ReasonMilvusComponentNotHealthy string = "MilvusComponentNotHealthy" ReasonEtcdReady = "EtcdReady" ReasonEtcdNotReady = "EtcdNotReady" ReasonS3Ready = "S3StorageAssumeReady" ReasonStorageReady = "StorageReady" ReasonStorageNotReady = "StorageNotReady" ReasonMsgStreamReady = "MsgStreamReady" ReasonMsgStreamNotReady = "MsgStreamReady" ReasonSecretNotExist = "SecretNotExist" ReasonSecretErr = "SecretError" ReasonSecretDecodeErr = "SecretDecodeError" ReasonClientErr = "ClientError" ReasonDependencyNotReady = "DependencyNotReady" )
Variables ¶
var ( MilvusComponentTypes = []ComponentType{ RootCoord, DataCoord, QueryCoord, IndexCoord, DataNode, QueryNode, IndexNode, Proxy, } MilvusCoordTypes = []ComponentType{ RootCoord, DataCoord, QueryCoord, IndexCoord, } )
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "milvus.io", Version: "v1alpha1"} // for code-generator SchemeGroupVersion = GroupVersion // 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 ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Component ¶
type Component struct { ComponentSpec `json:",inline"` // +kubebuilder:validation:Optional // +kubebuilder:validation:Minimum=0 // +kubebuilder:default=1 Replicas *int32 `json:"replicas,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:validation:Minimum=0 // +kubebuilder:validation:Maximum=65535 Port int32 `json:"port,omitempty"` }
func (*Component) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Component.
func (*Component) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ComponentSpec ¶
type ComponentSpec struct { // +kubebuilder:validation:Optional Image string `json:"image,omitempty"` // +kubebuilder:validation:Optional ImagePullPolicy *corev1.PullPolicy `json:"imagePullPolicy,omitempty"` // +kubebuilder:validation:Optional ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"` // +kubebuilder:validation:Optional Env []corev1.EnvVar `json:"env,omitempty"` // +kubebuilder:validation:Optional NodeSelector map[string]string `json:"nodeSelector,omitempty"` // +kubebuilder:validation:Optional Affinity *corev1.Affinity `json:"affinity,omitempty"` // +kubebuilder:validation:Optional Tolerations []corev1.Toleration `json:"tolerations,omitempty"` // +kubebuilder:validation:Optional Resources *corev1.ResourceRequirements `json:"resources,omitempty"` }
func (*ComponentSpec) DeepCopy ¶
func (in *ComponentSpec) DeepCopy() *ComponentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentSpec.
func (*ComponentSpec) DeepCopyInto ¶
func (in *ComponentSpec) DeepCopyInto(out *ComponentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ComponentType ¶
type ComponentType string
const ( RootCoord ComponentType = "rootCoord" DataCoord ComponentType = "dataCoord" QueryCoord ComponentType = "queryCoord" IndexCoord ComponentType = "indexCoord" DataNode ComponentType = "dataNode" QueryNode ComponentType = "queryNode" IndexNode ComponentType = "indexNode" Proxy ComponentType = "proxy" )
func (ComponentType) String ¶
func (t ComponentType) String() string
type DependencyDeletionPolicy ¶
type DependencyDeletionPolicy string
const ( DeletionPolicyDelete DependencyDeletionPolicy = "Delete" DeletionPolicyRetain DependencyDeletionPolicy = "Retain" )
type InClusterConfig ¶
type InClusterConfig struct { // +kubebuilder:validation:Optional // +kubebuilder:pruning:PreserveUnknownFields Values Values `json:"values,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:validation:Enum:={"Delete", "Retain"} // +kubebuilder:default:="Retain" DeletionPolicy DependencyDeletionPolicy `json:"deletionPolicy"` // +kubebuilder:validation:Optional PVCDeletion bool `json:"pvcDeletion,omitempty"` }
func (*InClusterConfig) DeepCopy ¶
func (in *InClusterConfig) DeepCopy() *InClusterConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InClusterConfig.
func (*InClusterConfig) DeepCopyInto ¶
func (in *InClusterConfig) DeepCopyInto(out *InClusterConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MiluvsConditionType ¶
type MiluvsConditionType string
MiluvsConditionType is a valid value for MiluvsConditionType.Type.
type Milvus ¶
type Milvus struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MilvusSpec `json:"spec,omitempty"` Status v1beta1.MilvusStatus `json:"status,omitempty"` }
+genclient +genclient:noStatus +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:path=milvuses,singular=milvus,shortName=mi Milvus is the Schema for the milvus API
func (*Milvus) ConvertFrom ¶ added in v0.5.0
func (r *Milvus) ConvertFrom(srcRaw conversion.Hub) error
ConvertFrom converts from the Hub version to this version.
func (*Milvus) ConvertTo ¶ added in v0.5.0
func (r *Milvus) ConvertTo(dstRaw conversion.Hub) error
ConvertTo converts this Milvus to the Hub version (v1beta1).
func (*Milvus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Milvus.
func (*Milvus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Milvus) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MilvusCluster ¶
type MilvusCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MilvusClusterSpec `json:"spec,omitempty"` Status v1beta1.MilvusStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:path=milvusclusters,singular=milvuscluster,shortName=mc;mic MilvusCluster is the Schema for the milvusclusters API
func (*MilvusCluster) ConvertToMilvus ¶ added in v0.5.0
func (r *MilvusCluster) ConvertToMilvus(dst *v1beta1.Milvus)
ConvertTo converts to v1beta1.Milvus
func (*MilvusCluster) DeepCopy ¶
func (in *MilvusCluster) DeepCopy() *MilvusCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusCluster.
func (*MilvusCluster) DeepCopyInto ¶
func (in *MilvusCluster) DeepCopyInto(out *MilvusCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MilvusCluster) DeepCopyObject ¶
func (in *MilvusCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MilvusCluster) UpdateStatusFrom ¶ added in v0.5.0
func (r *MilvusCluster) UpdateStatusFrom(src *v1beta1.Milvus)
UpdateStatusFrom updates status from v1beta1.Milvus
type MilvusClusterDependencies ¶
type MilvusClusterDependencies struct { // +kubebuilder:validation:Optional Etcd MilvusEtcd `json:"etcd"` // +kubebuilder:default:="pulsar" // +kubebuilder:validation:Enum:={"pulsar", "kafka"} // +kubebuilder:validation:Optional MsgStreamType string `json:"msgStreamType,omitempty"` // +kubebuilder:validation:Optional Pulsar MilvusPulsar `json:"pulsar,omitempty"` // +kubebuilder:validation:Optional Kafka MilvusKafka `json:"kafka,omitempty"` // +kubebuilder:validation:Optional Storage MilvusStorage `json:"storage"` }
func (*MilvusClusterDependencies) DeepCopy ¶
func (in *MilvusClusterDependencies) DeepCopy() *MilvusClusterDependencies
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusClusterDependencies.
func (*MilvusClusterDependencies) DeepCopyInto ¶
func (in *MilvusClusterDependencies) DeepCopyInto(out *MilvusClusterDependencies)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusClusterList ¶
type MilvusClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MilvusCluster `json:"items"` }
+kubebuilder:object:root=true MilvusClusterList contains a list of MilvusCluster
func (*MilvusClusterList) DeepCopy ¶
func (in *MilvusClusterList) DeepCopy() *MilvusClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusClusterList.
func (*MilvusClusterList) DeepCopyInto ¶
func (in *MilvusClusterList) DeepCopyInto(out *MilvusClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MilvusClusterList) DeepCopyObject ¶
func (in *MilvusClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MilvusClusterSpec ¶
type MilvusClusterSpec struct { // +kubebuilder:validation:Optional Com v1beta1.MilvusComponents `json:"components,omitempty"` // +kubebuilder:validation:Optional Dep v1beta1.MilvusDependencies `json:"dependencies,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:pruning:PreserveUnknownFields Conf v1beta1.Values `json:"config,omitempty"` }
MilvusClusterSpec defines the desired state of MilvusCluster
func (*MilvusClusterSpec) DeepCopy ¶
func (in *MilvusClusterSpec) DeepCopy() *MilvusClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusClusterSpec.
func (*MilvusClusterSpec) DeepCopyInto ¶
func (in *MilvusClusterSpec) DeepCopyInto(out *MilvusClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusComponents ¶
type MilvusComponents struct { ComponentSpec `json:",inline"` // +kubebuilder:validation:Optional DisableMetric bool `json:"disableMetric,omitempty"` // +kubebuilder:validation:Optional Proxy MilvusProxy `json:"proxy,omitempty"` // +kubebuilder:validation:Optional RootCoord MilvusRootCoord `json:"rootCoord,omitempty"` // +kubebuilder:validation:Optional IndexCoord MilvusIndexCoord `json:"indexCoord,omitempty"` // +kubebuilder:validation:Optional DataCoord MilvusDataCoord `json:"dataCoord,omitempty"` // +kubebuilder:validation:Optional QueryCoord MilvusQueryCoord `json:"queryCoord,omitempty"` // +kubebuilder:validation:Optional IndexNode MilvusIndexNode `json:"indexNode,omitempty"` // +kubebuilder:validation:Optional DataNode MilvusDataNode `json:"dataNode,omitempty"` // +kubebuilder:validation:Optional QueryNode MilvusQueryNode `json:"queryNode,omitempty"` }
func (*MilvusComponents) DeepCopy ¶
func (in *MilvusComponents) DeepCopy() *MilvusComponents
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusComponents.
func (*MilvusComponents) DeepCopyInto ¶
func (in *MilvusComponents) DeepCopyInto(out *MilvusComponents)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusCondition ¶
type MilvusCondition struct { // Type is the type of the condition. Type MiluvsConditionType `json:"type"` // Status is the status of the condition. // Can be True, False, Unknown. Status corev1.ConditionStatus `json:"status"` // Last time the condition transitioned from one status to another. // +optional LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"` // Unique, one-word, CamelCase reason for the condition's last transition. // +optional Reason string `json:"reason,omitempty"` // Human-readable message indicating details about last transition. // +optional Message string `json:"message,omitempty"` }
MilvusCondition contains details for the current condition of this milvus/milvus cluster instance
func (*MilvusCondition) DeepCopy ¶
func (in *MilvusCondition) DeepCopy() *MilvusCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusCondition.
func (*MilvusCondition) DeepCopyInto ¶
func (in *MilvusCondition) DeepCopyInto(out *MilvusCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusDataCoord ¶
type MilvusDataCoord struct {
Component `json:",inline"`
}
func (*MilvusDataCoord) DeepCopy ¶
func (in *MilvusDataCoord) DeepCopy() *MilvusDataCoord
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusDataCoord.
func (*MilvusDataCoord) DeepCopyInto ¶
func (in *MilvusDataCoord) DeepCopyInto(out *MilvusDataCoord)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusDataNode ¶
type MilvusDataNode struct {
Component `json:",inline"`
}
func (*MilvusDataNode) DeepCopy ¶
func (in *MilvusDataNode) DeepCopy() *MilvusDataNode
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusDataNode.
func (*MilvusDataNode) DeepCopyInto ¶
func (in *MilvusDataNode) DeepCopyInto(out *MilvusDataNode)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusDependencies ¶
type MilvusDependencies struct { // +kubebuilder:validation:Optional Etcd MilvusEtcd `json:"etcd"` // +kubebuilder:validation:Optional Storage MilvusStorage `json:"storage"` }
func (*MilvusDependencies) DeepCopy ¶
func (in *MilvusDependencies) DeepCopy() *MilvusDependencies
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusDependencies.
func (*MilvusDependencies) DeepCopyInto ¶
func (in *MilvusDependencies) DeepCopyInto(out *MilvusDependencies)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusEtcd ¶
type MilvusEtcd struct { // +kubebuilder:validation:Optional Endpoints []string `json:"endpoints"` // +kubebuilder:validation:Optional // +kubebuilder:default:=false External bool `json:"external,omitempty"` // +kubebuilder:validation:Optional InCluster *InClusterConfig `json:"inCluster,omitempty"` }
func (*MilvusEtcd) DeepCopy ¶
func (in *MilvusEtcd) DeepCopy() *MilvusEtcd
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusEtcd.
func (*MilvusEtcd) DeepCopyInto ¶
func (in *MilvusEtcd) DeepCopyInto(out *MilvusEtcd)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusEtcdStatus ¶
type MilvusEtcdStatus struct { Endpoint string `json:"endpoint"` Healthy bool `json:"healthy"` Error string `json:"error,omitempty"` }
MilvusEtcdStatus contains a list of all etcd endpoints status
func (*MilvusEtcdStatus) DeepCopy ¶
func (in *MilvusEtcdStatus) DeepCopy() *MilvusEtcdStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusEtcdStatus.
func (*MilvusEtcdStatus) DeepCopyInto ¶
func (in *MilvusEtcdStatus) DeepCopyInto(out *MilvusEtcdStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusHealthStatus ¶
type MilvusHealthStatus string
MilvusHealthStatus is a type for milvus status.
type MilvusIndexCoord ¶
type MilvusIndexCoord struct {
Component `json:",inline"`
}
func (*MilvusIndexCoord) DeepCopy ¶
func (in *MilvusIndexCoord) DeepCopy() *MilvusIndexCoord
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusIndexCoord.
func (*MilvusIndexCoord) DeepCopyInto ¶
func (in *MilvusIndexCoord) DeepCopyInto(out *MilvusIndexCoord)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusIndexNode ¶
type MilvusIndexNode struct {
Component `json:",inline"`
}
func (*MilvusIndexNode) DeepCopy ¶
func (in *MilvusIndexNode) DeepCopy() *MilvusIndexNode
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusIndexNode.
func (*MilvusIndexNode) DeepCopyInto ¶
func (in *MilvusIndexNode) DeepCopyInto(out *MilvusIndexNode)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusIngress ¶ added in v0.4.0
type MilvusIngress struct { // +kubebuilder:validation:Optional Labels map[string]string `json:"labels,omitempty"` // +kubebuilder:validation:Optional Annotations map[string]string `json:"annotations,omitempty"` // +kubebuilder:validation:Optional IngressClassName *string `json:"ingressClassName,omitempty"` // +kubebuilder:validation:Optional Hosts []string `json:"hosts,omitempty"` // TLSSecretRefs is a map of TLS secret to hosts // +kubebuilder:validation:Optional TLSSecretRefs map[string][]string `json:"tlsSecretRefs,omitempty"` }
MilvusIngress defines the ingress of MilvusCluster TODO: add docs
func (*MilvusIngress) DeepCopy ¶ added in v0.4.0
func (in *MilvusIngress) DeepCopy() *MilvusIngress
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusIngress.
func (*MilvusIngress) DeepCopyInto ¶ added in v0.4.0
func (in *MilvusIngress) DeepCopyInto(out *MilvusIngress)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusKafka ¶ added in v0.5.0
type MilvusKafka struct { // +kubebuilder:validation:Optional InCluster *InClusterConfig `json:"inCluster,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:default:=false External bool `json:"external,omitempty"` // +kubebuilder:validation:Optional BrokerList []string `json:"brokerList,omitempty"` }
MilvusKafka configuration
func (*MilvusKafka) DeepCopy ¶ added in v0.5.0
func (in *MilvusKafka) DeepCopy() *MilvusKafka
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusKafka.
func (*MilvusKafka) DeepCopyInto ¶ added in v0.5.0
func (in *MilvusKafka) DeepCopyInto(out *MilvusKafka)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusList ¶
type MilvusList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Milvus `json:"items"` }
+kubebuilder:object:root=true MilvusList contains a list of Milvus
func (*MilvusList) DeepCopy ¶
func (in *MilvusList) DeepCopy() *MilvusList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusList.
func (*MilvusList) DeepCopyInto ¶
func (in *MilvusList) DeepCopyInto(out *MilvusList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MilvusList) DeepCopyObject ¶
func (in *MilvusList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MilvusProxy ¶
type MilvusProxy struct { Component `json:",inline"` // +kubebuilder:validation:Optional // +kubebuilder:validation:Enum={"ClusterIP", "NodePort", "LoadBalancer"} // +kubebuilder:default="ClusterIP" ServiceType corev1.ServiceType `json:"serviceType,omitempty"` // +kubebuilder:validation:Optional ServiceLabels map[string]string `json:"serviceLabels,omitempty"` // +kubebuilder:validation:Optional ServiceAnnotations map[string]string `json:"serviceAnnotations,omitempty"` // +kubebuilder:validation:Optional Ingress *MilvusIngress `json:"ingress,omitempty"` }
func (*MilvusProxy) DeepCopy ¶
func (in *MilvusProxy) DeepCopy() *MilvusProxy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusProxy.
func (*MilvusProxy) DeepCopyInto ¶
func (in *MilvusProxy) DeepCopyInto(out *MilvusProxy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusPulsar ¶
type MilvusPulsar struct { // +kubebuilder:validation:Optional InCluster *InClusterConfig `json:"inCluster,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:default:=false External bool `json:"external,omitempty"` // +kubebuilder:validation:Optional Endpoint string `json:"endpoint"` }
func (*MilvusPulsar) DeepCopy ¶
func (in *MilvusPulsar) DeepCopy() *MilvusPulsar
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusPulsar.
func (*MilvusPulsar) DeepCopyInto ¶
func (in *MilvusPulsar) DeepCopyInto(out *MilvusPulsar)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusQueryCoord ¶
type MilvusQueryCoord struct {
Component `json:",inline"`
}
func (*MilvusQueryCoord) DeepCopy ¶
func (in *MilvusQueryCoord) DeepCopy() *MilvusQueryCoord
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusQueryCoord.
func (*MilvusQueryCoord) DeepCopyInto ¶
func (in *MilvusQueryCoord) DeepCopyInto(out *MilvusQueryCoord)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusQueryNode ¶
type MilvusQueryNode struct {
Component `json:",inline"`
}
func (*MilvusQueryNode) DeepCopy ¶
func (in *MilvusQueryNode) DeepCopy() *MilvusQueryNode
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusQueryNode.
func (*MilvusQueryNode) DeepCopyInto ¶
func (in *MilvusQueryNode) DeepCopyInto(out *MilvusQueryNode)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusReplicas ¶ added in v0.4.0
type MilvusReplicas struct { //+kubebuilder:validation:Optional Proxy int `json:"proxy,omitempty"` //+kubebuilder:validation:Optional RootCoord int `json:"rootCoord,omitempty"` //+kubebuilder:validation:Optional DataCoord int `json:"dataCoord,omitempty"` //+kubebuilder:validation:Optional IndexCoord int `json:"indexCoord,omitempty"` //+kubebuilder:validation:Optional QueryCoord int `json:"queryCoord,omitempty"` //+kubebuilder:validation:Optional DataNode int `json:"dataNode,omitempty"` //+kubebuilder:validation:Optional IndexNode int `json:"indexNode,omitempty"` //+kubebuilder:validation:Optional QueryNode int `json:"queryNode,omitempty"` //+kubebuilder:validation:Optional Standalone int `json:"standalone,omitempty"` }
MilvusReplicas is the replicas of milvus components
func (*MilvusReplicas) DeepCopy ¶ added in v0.4.0
func (in *MilvusReplicas) DeepCopy() *MilvusReplicas
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusReplicas.
func (*MilvusReplicas) DeepCopyInto ¶ added in v0.4.0
func (in *MilvusReplicas) DeepCopyInto(out *MilvusReplicas)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusRootCoord ¶
type MilvusRootCoord struct {
Component `json:",inline"`
}
func (*MilvusRootCoord) DeepCopy ¶
func (in *MilvusRootCoord) DeepCopy() *MilvusRootCoord
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusRootCoord.
func (*MilvusRootCoord) DeepCopyInto ¶
func (in *MilvusRootCoord) DeepCopyInto(out *MilvusRootCoord)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusSpec ¶
type MilvusSpec struct { // +kubebuilder:validation:Optional v1beta1.ComponentSpec `json:",inline"` // +kubebuilder:validation:Optional Replicas *int32 `json:"replicas,omitempty"` // +kubebuilder:validation:Optional Persistence v1beta1.Persistence `json:"persistence,omitempty"` // +kubebuilder:validation:Optional Ingress *v1beta1.MilvusIngress `json:"ingress,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:validation:Enum={"ClusterIP", "NodePort", "LoadBalancer"} // +kubebuilder:default="ClusterIP" ServiceType corev1.ServiceType `json:"serviceType,omitempty"` // +kubebuilder:validation:Optional DisableMetric bool `json:"disableMetric,omitempty"` // +kubebuilder:validation:Optional ServiceLabels map[string]string `json:"serviceLabels,omitempty"` // +kubebuilder:validation:Optional ServiceAnnotations map[string]string `json:"serviceAnnotations,omitempty"` // +kubebuilder:validation:Optional Dep v1beta1.MilvusDependencies `json:"dependencies,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:pruning:PreserveUnknownFields Conf v1beta1.Values `json:"config,omitempty"` }
MilvusSpec defines the desired state of Milvus
func (*MilvusSpec) ConvertSpecTo ¶ added in v0.5.0
func (r *MilvusSpec) ConvertSpecTo(dst *v1beta1.MilvusSpec)
func (*MilvusSpec) DeepCopy ¶
func (in *MilvusSpec) DeepCopy() *MilvusSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusSpec.
func (*MilvusSpec) DeepCopyInto ¶
func (in *MilvusSpec) DeepCopyInto(out *MilvusSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusStatus ¶
type MilvusStatus struct { // Status indicates the overall status of the Milvus // Status can be "Creating", "Healthy" and "Unhealthy" // +kubebuilder:default:="Creating" Status MilvusHealthStatus `json:"status"` // Conditions of each components Conditions []MilvusCondition `json:"conditions,omitempty"` // Endpoint of milvus cluster Endpoint string `json:"endpoint,omitempty"` IngressStatus networkv1.IngressStatus `json:"ingress,omitempty"` // +kubebuilder:validation:Optional Replicas MilvusReplicas `json:"replicas,omitempty"` }
MilvusStatus defines the observed state of Milvus
func (*MilvusStatus) DeepCopy ¶
func (in *MilvusStatus) DeepCopy() *MilvusStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusStatus.
func (*MilvusStatus) DeepCopyInto ¶
func (in *MilvusStatus) DeepCopyInto(out *MilvusStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusStorage ¶
type MilvusStorage struct { // +kubebuilder:default:="MinIO" // +kubebuilder:validation:Enum:={"MinIO", "S3"} // +kubebuilder:validation:Optional Type string `json:"type"` // +kubebuilder:validation:Optional SecretRef string `json:"secretRef"` // +kubebuilder:validation:Optional Endpoint string `json:"endpoint"` // +kubebuilder:validation:Optional InCluster *InClusterConfig `json:"inCluster,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:default:=false External bool `json:"external,omitempty"` }
func (*MilvusStorage) DeepCopy ¶
func (in *MilvusStorage) DeepCopy() *MilvusStorage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusStorage.
func (*MilvusStorage) DeepCopyInto ¶
func (in *MilvusStorage) DeepCopyInto(out *MilvusStorage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MilvusStorageStatus ¶
type MilvusStorageStatus struct { Endpoint string `json:"endpoint"` Status string `json:"status"` Uptime string `json:"uptime,omitempty"` Error string `json:"error,omitempty"` }
MilvusStorageStatus contains a list of all storage endpoints status
func (*MilvusStorageStatus) DeepCopy ¶
func (in *MilvusStorageStatus) DeepCopy() *MilvusStorageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilvusStorageStatus.
func (*MilvusStorageStatus) DeepCopyInto ¶
func (in *MilvusStorageStatus) DeepCopyInto(out *MilvusStorageStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Persistence ¶ added in v0.4.0
type Persistence struct { // If Enabled, will create/use pvc for data persistence // +kubebuilder:validation:Optional Enabled bool `json:"enabled,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:default:="/var/lib/milvus" MountPath string `json:"mountPath,omitempty"` // +kubebuilder:validation:Optional PVCDeletion bool `json:"pvcDeletion,omitempty"` // +kubebuilder:validation:Optional PersistentVolumeClaim PersistentVolumeClaim `json:"persistentVolumeClaim,omitempty"` }
Persistence is persistence for milvus
func (*Persistence) DeepCopy ¶ added in v0.4.0
func (in *Persistence) DeepCopy() *Persistence
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Persistence.
func (*Persistence) DeepCopyInto ¶ added in v0.4.0
func (in *Persistence) DeepCopyInto(out *Persistence)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PersistentVolumeClaim ¶ added in v0.4.0
type PersistentVolumeClaim struct { // ExistingClaim if not empty, will use existing pvc, else create a pvc // +kubebuilder:validation:Optional ExistingClaim string `json:"existingClaim,omitempty"` // Map of string keys and values that can be used to organize and categorize // (scope and select) objects. May match selectors of replication controllers // and services. // More info: http://kubernetes.io/docs/user-guide/labels // +optional Labels map[string]string `json:"labels,omitempty"` // Annotations is an unstructured key value map stored with a resource that may be // set by external tools to store and retrieve arbitrary metadata. They are not // queryable and should be preserved when modifying objects. // More info: http://kubernetes.io/docs/user-guide/annotations // +optional Annotations map[string]string `json:"annotations,omitempty"` // Spec defines the desired characteristics of a volume requested by a pod author. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims // +kubebuilder:validation:Optional Spec corev1.PersistentVolumeClaimSpec `json:"spec,omitempty"` }
PersistentVolumeClaim for milvus
func (*PersistentVolumeClaim) DeepCopy ¶ added in v0.4.0
func (in *PersistentVolumeClaim) DeepCopy() *PersistentVolumeClaim
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaim.
func (*PersistentVolumeClaim) DeepCopyInto ¶ added in v0.4.0
func (in *PersistentVolumeClaim) DeepCopyInto(out *PersistentVolumeClaim)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Values ¶
type Values struct { // Work around for https://github.com/kubernetes-sigs/kubebuilder/issues/528 Data map[string]interface{} `json:"-"` }
func (*Values) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Values.
func (*Values) DeepCopyInto ¶
DeepCopyInto is an deepcopy function, copying the receiver, writing into out. In must be non-nil. Declaring this here prevents it from being generated in `zz_generated.deepcopy.go`.
This exists here to work around https://github.com/kubernetes/code-generator/issues/50, and partially around https://github.com/kubernetes-sigs/controller-tools/pull/126 and https://github.com/kubernetes-sigs/controller-tools/issues/294.