Documentation ¶
Overview ¶
Package v1alpha1 +k8s:deepcopy-gen=package +groupName=kyuubi.nineinfra.tech
Package v1alpha1 contains API Schema definitions for the kyuubi v1alpha1 API group +kubebuilder:object:generate=true +groupName=kyuubi.nineinfra.tech
Index ¶
- Variables
- func Resource(resource string) schema.GroupResource
- type ClusterRef
- type ClusterType
- type DeployMode
- type ExposedInfo
- type ExposedType
- type HdfsCluster
- type ImageConfig
- type KyuubiCluster
- func (in *KyuubiCluster) DeepCopy() *KyuubiCluster
- func (in *KyuubiCluster) DeepCopyInto(out *KyuubiCluster)
- func (in *KyuubiCluster) DeepCopyObject() runtime.Object
- func (r *KyuubiCluster) Default()
- func (r *KyuubiCluster) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *KyuubiCluster) ValidateCreate() (admission.Warnings, error)
- func (r *KyuubiCluster) ValidateDelete() (admission.Warnings, error)
- func (r *KyuubiCluster) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type KyuubiClusterList
- type KyuubiClusterSpec
- type KyuubiClusterStatus
- type MetastoreCluster
- type ResourceConfig
- type SparkCluster
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "kyuubi.nineinfra.tech", 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 )
var SchemeGroupVersion = GroupVersion
SchemeGroupVersion is group version used to register these objects.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ClusterRef ¶
type ClusterRef struct { // Name is the name of the referenced cluster Name string `json:"name"` // +kubebuilder:validation:Enum={spark,metastore,hdfs,flink} Type ClusterType `json:"type"` // ClusterInfo is the detail info of the cluster of the clustertype // +optional // Spark cluster infos referenced by the Kyuubi cluster Spark SparkCluster `json:"spark"` // +optional // Metastore cluster infos referenced by the Kyuubi cluster Metastore MetastoreCluster `json:"metastore"` // +optional // HDFS cluster infos referenced by the Kyuubi cluster Hdfs HdfsCluster `json:"hdfs"` }
func (*ClusterRef) DeepCopy ¶
func (in *ClusterRef) DeepCopy() *ClusterRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRef.
func (*ClusterRef) DeepCopyInto ¶
func (in *ClusterRef) DeepCopyInto(out *ClusterRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterType ¶
type ClusterType string
const ( SparkClusterType ClusterType = "spark" MetaStoreClusterType ClusterType = "metastore" HdfsClusterType ClusterType = "hdfs" FlinkClusterType ClusterType = "flink" )
Different types of clusters.
type DeployMode ¶
type DeployMode string
DeployMode describes the type of deployment of a Spark application.
const ( ClusterMode DeployMode = "cluster" ClientMode DeployMode = "client" InClusterClientMode DeployMode = "in-cluster-client" )
Different types of deployments.
type ExposedInfo ¶
type ExposedInfo struct { //Exposed name. Name string `json:"name"` //Exposed type. Support REST and THRIFT_BINARY ExposedType ExposedType `json:"exposedType"` //Exposed service name ServiceName string `json:"serviceName"` //Exposed service port info ServicePort corev1.ServicePort `json:"servicePort"` }
func (*ExposedInfo) DeepCopy ¶
func (in *ExposedInfo) DeepCopy() *ExposedInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExposedInfo.
func (*ExposedInfo) DeepCopyInto ¶
func (in *ExposedInfo) DeepCopyInto(out *ExposedInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExposedType ¶
type ExposedType string
const ( KyuubiRest ExposedType = "rest" KyuubiThriftBinary ExposedType = "thrift-binary" KyuubiThriftHttp ExposedType = "thrift-http" KyuubiMysql ExposedType = "mysql" )
type HdfsCluster ¶
type HdfsCluster struct { // +optional // HDFS core-site.xml.The type of the value must be string CoreSite map[string]string `json:"coreSite,omitempty"` // +optional // HDFS hdfs-site.xml.The type of the value must be string HdfsSite map[string]string `json:"hdfsSite,omitempty"` }
func (*HdfsCluster) DeepCopy ¶
func (in *HdfsCluster) DeepCopy() *HdfsCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HdfsCluster.
func (*HdfsCluster) DeepCopyInto ¶
func (in *HdfsCluster) DeepCopyInto(out *HdfsCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageConfig ¶
type ImageConfig struct { Repository string `json:"repository"` // Image tag. Usually the vesion of the kyuubi, default: `latest`. // +optional Tag string `json:"tag,omitempty"` // Image pull policy. One of `Always, Never, IfNotPresent`, default: `Always`. // +kubebuilder:default:=Always // +kubebuilder:validation:Enum=Always;Never;IfNotPresent // +optional PullPolicy string `json:"pullPolicy,omitempty"` // Secrets for image pull. // +optional PullSecrets string `json:"pullSecret,omitempty"` }
func (*ImageConfig) DeepCopy ¶
func (in *ImageConfig) DeepCopy() *ImageConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageConfig.
func (*ImageConfig) DeepCopyInto ¶
func (in *ImageConfig) DeepCopyInto(out *ImageConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KyuubiCluster ¶
type KyuubiCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec KyuubiClusterSpec `json:"spec,omitempty"` Status KyuubiClusterStatus `json:"status,omitempty"` }
KyuubiCluster is the Schema for the kyuubiclusters API
func (*KyuubiCluster) DeepCopy ¶
func (in *KyuubiCluster) DeepCopy() *KyuubiCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KyuubiCluster.
func (*KyuubiCluster) DeepCopyInto ¶
func (in *KyuubiCluster) DeepCopyInto(out *KyuubiCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KyuubiCluster) DeepCopyObject ¶
func (in *KyuubiCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*KyuubiCluster) Default ¶
func (r *KyuubiCluster) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*KyuubiCluster) SetupWebhookWithManager ¶
func (r *KyuubiCluster) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*KyuubiCluster) ValidateCreate ¶
func (r *KyuubiCluster) ValidateCreate() (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*KyuubiCluster) ValidateDelete ¶
func (r *KyuubiCluster) ValidateDelete() (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*KyuubiCluster) ValidateUpdate ¶
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type KyuubiClusterList ¶
type KyuubiClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []KyuubiCluster `json:"items"` }
KyuubiClusterList contains a list of KyuubiCluster
func (*KyuubiClusterList) DeepCopy ¶
func (in *KyuubiClusterList) DeepCopy() *KyuubiClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KyuubiClusterList.
func (*KyuubiClusterList) DeepCopyInto ¶
func (in *KyuubiClusterList) DeepCopyInto(out *KyuubiClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KyuubiClusterList) DeepCopyObject ¶
func (in *KyuubiClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KyuubiClusterSpec ¶
type KyuubiClusterSpec struct { //Kyuubi version KyuubiVersion string `json:"kyuubiVersion"` //Kyuubi image info KyuubiImage ImageConfig `json:"kyuubiImage"` //Kyuubi resouce configuration KyuubiResource ResourceConfig `json:"kyuubiResource"` //Kyuubi configurations.These cofigurations will be injected into the kyuubi-defatuls.conf.The type of the value must be string KyuubiConf map[string]string `json:"kyuubiConf"` ClusterRefs []ClusterRef `json:"clusterRefs"` }
KyuubiClusterSpec defines the desired state of KyuubiCluster
func (*KyuubiClusterSpec) DeepCopy ¶
func (in *KyuubiClusterSpec) DeepCopy() *KyuubiClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KyuubiClusterSpec.
func (*KyuubiClusterSpec) DeepCopyInto ¶
func (in *KyuubiClusterSpec) DeepCopyInto(out *KyuubiClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KyuubiClusterStatus ¶
type KyuubiClusterStatus struct { //Kyuubi exposedinfos ExposedInfos []ExposedInfo `json:"exposedInfos"` CreationTime metav1.Time `json:"creationTime"` UpdateTime metav1.Time `json:"updateTime"` }
KyuubiClusterStatus defines the observed state of KyuubiCluster
func (*KyuubiClusterStatus) DeepCopy ¶
func (in *KyuubiClusterStatus) DeepCopy() *KyuubiClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KyuubiClusterStatus.
func (*KyuubiClusterStatus) DeepCopyInto ¶
func (in *KyuubiClusterStatus) DeepCopyInto(out *KyuubiClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetastoreCluster ¶
type MetastoreCluster struct { // +optional // Hive Metastore hive-site.xml.The type of the value must be string HiveSite map[string]string `json:"hiveSite,omitempty"` }
func (*MetastoreCluster) DeepCopy ¶
func (in *MetastoreCluster) DeepCopy() *MetastoreCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetastoreCluster.
func (*MetastoreCluster) DeepCopyInto ¶
func (in *MetastoreCluster) DeepCopyInto(out *MetastoreCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceConfig ¶
type ResourceConfig struct { // The replicas of the kyuubi cluster workload. Replicas int32 `json:"replicas"` }
func (*ResourceConfig) DeepCopy ¶
func (in *ResourceConfig) DeepCopy() *ResourceConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceConfig.
func (*ResourceConfig) DeepCopyInto ¶
func (in *ResourceConfig) DeepCopyInto(out *ResourceConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SparkCluster ¶
type SparkCluster struct { // +optional // SparkMaster info. Used in the spark-submit operation SparkMaster string `json:"sparkMaster,omitempty"` // +optional // Spark image info. SparkImage ImageConfig `json:"sparkImage"` // +optional // Spark namespace. SparkNamespace string `json:"sparkNamespace"` // +optional // Spark defaults conf SparkDefaults map[string]string `json:"sparkDefaults"` }
func (*SparkCluster) DeepCopy ¶
func (in *SparkCluster) DeepCopy() *SparkCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SparkCluster.
func (*SparkCluster) DeepCopyInto ¶
func (in *SparkCluster) DeepCopyInto(out *SparkCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.