v1alpha1

package
v0.0.0-...-1cc36e8 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the hbase v1alpha1 API group +kubebuilder:object:generate=true +groupName=hbase.kubedoop.dev

Index

Constants

View Source
const (
	DefaultRepository      = "quay.io/zncdatadev"
	DefaultProductVersion  = "2.4.18"
	DefaultKubedoopVersion = "0.0.0-dev"
	DefaultProductName     = "hbase"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "hbase.kubedoop.dev", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type AuthenticationSpec

type AuthenticationSpec struct {
	// +kubebuilder:validation:Optional
	AuthenticationClass string `json:"authenticationClass,omitempty"`

	// +kubebuilder:validation:Optional
	Oidc *OidcSpec `json:"oidc,omitempty"`

	// +kubebuilder:validation:Optional
	KerberosSecretClass string `json:"kerberosSecretClass,omitempty"`

	// +kubebuilder:validation:Optional
	TlsSecretClass string `json:"tlsSecretClass,omitempty"`
}

func (*AuthenticationSpec) DeepCopy

func (in *AuthenticationSpec) DeepCopy() *AuthenticationSpec

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

func (*AuthenticationSpec) DeepCopyInto

func (in *AuthenticationSpec) DeepCopyInto(out *AuthenticationSpec)

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

type ClusterConfigSpec

type ClusterConfigSpec struct {

	// +kubebuilder:validation:Required
	ZookeeperConfigMapName string `json:"zookeeperConfigMapName,omitempty"`

	// +kubebuilder:validation:Required
	HdfsConfigMapName string `json:"hdfsConfigMapName,omitempty"`

	// +kubebuilder:validation:Optional
	ListenerClass string `json:"listenerClass,omitempty"`

	// +kubebuilder:validation:Optional
	Authentication *AuthenticationSpec `json:"authentication,omitempty"`

	// +kubebuilder:validation:Optional
	VectorAggregatorConfigMapName string `json:"vectorAggregatorConfigMapName,omitempty"`
}

func (*ClusterConfigSpec) DeepCopy

func (in *ClusterConfigSpec) DeepCopy() *ClusterConfigSpec

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

func (*ClusterConfigSpec) DeepCopyInto

func (in *ClusterConfigSpec) DeepCopyInto(out *ClusterConfigSpec)

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

type HbaseCluster

type HbaseCluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   HbaseClusterSpec   `json:"spec,omitempty"`
	Status HbaseClusterStatus `json:"status,omitempty"`
}

HbaseCluster is the Schema for the hbaseclusters API

func (*HbaseCluster) DeepCopy

func (in *HbaseCluster) DeepCopy() *HbaseCluster

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

func (*HbaseCluster) DeepCopyInto

func (in *HbaseCluster) DeepCopyInto(out *HbaseCluster)

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

func (*HbaseCluster) DeepCopyObject

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

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

func (*HbaseCluster) Default

func (r *HbaseCluster) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*HbaseCluster) SetupWebhookWithManager

func (r *HbaseCluster) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*HbaseCluster) ValidateCreate

func (r *HbaseCluster) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*HbaseCluster) ValidateDelete

func (r *HbaseCluster) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*HbaseCluster) ValidateUpdate

func (r *HbaseCluster) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type HbaseClusterList

type HbaseClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []HbaseCluster `json:"items"`
}

HbaseClusterList contains a list of HbaseCluster

func (*HbaseClusterList) DeepCopy

func (in *HbaseClusterList) DeepCopy() *HbaseClusterList

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

func (*HbaseClusterList) DeepCopyInto

func (in *HbaseClusterList) DeepCopyInto(out *HbaseClusterList)

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

func (*HbaseClusterList) DeepCopyObject

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

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

type HbaseClusterSpec

type HbaseClusterSpec struct {
	// +kubebuilder:validation:Optional
	Image *ImageSpec `json:"image,omitempty"`

	// +kubebuilder:validation:Required
	ClusterConfigSpec *ClusterConfigSpec `json:"clusterConfig,omitempty"`

	// +kubebuilder:validation:Optional
	ClusterOperationSpec *commonsv1alpha1.ClusterOperationSpec `json:"clusterOperation,omitempty"`

	// +kubebuilder:validation:Optional
	MasterSpec *MasterSpec `json:"master,omitempty"`

	// +kubebuilder:validation:Optional
	RegionServerSpec *RegionServerSpec `json:"regionServer,omitempty"`

	// +kubebuilder:validation:Optional
	RestServerSpec *RestServerSpec `json:"restServer,omitempty"`
}

HbaseClusterSpec defines the desired state of HbaseCluster

func (*HbaseClusterSpec) DeepCopy

func (in *HbaseClusterSpec) DeepCopy() *HbaseClusterSpec

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

func (*HbaseClusterSpec) DeepCopyInto

func (in *HbaseClusterSpec) DeepCopyInto(out *HbaseClusterSpec)

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

type HbaseClusterStatus

type HbaseClusterStatus struct {
	// +kubebuilder:validation:Optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

HbaseClusterStatus defines the observed state of HbaseCluster

func (*HbaseClusterStatus) DeepCopy

func (in *HbaseClusterStatus) DeepCopy() *HbaseClusterStatus

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

func (*HbaseClusterStatus) DeepCopyInto

func (in *HbaseClusterStatus) DeepCopyInto(out *HbaseClusterStatus)

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

type ImageSpec

type ImageSpec struct {
	// +kubebuilder:validation:Optional
	Custom string `json:"custom,omitempty"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default=quay.io/zncdatadev
	Repository string `json:"repository,omitempty"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default="0.0.0-dev"
	KubedoopVersion string `json:"kubedoopVersion,omitempty"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default="2.4.18"
	ProductVersion string `json:"productVersion,omitempty"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=IfNotPresent
	PullPolicy corev1.PullPolicy `json:"pullPolicy,omitempty"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default="hbase"
	PullSecretName string `json:"pullSecretName,omitempty"`
}

func (*ImageSpec) DeepCopy

func (in *ImageSpec) DeepCopy() *ImageSpec

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

func (*ImageSpec) DeepCopyInto

func (in *ImageSpec) DeepCopyInto(out *ImageSpec)

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

type MasterConfigSpec

type MasterConfigSpec struct {
	*commonsv1alpha1.RoleGroupConfigSpec `json:",inline"`
}

func (*MasterConfigSpec) DeepCopy

func (in *MasterConfigSpec) DeepCopy() *MasterConfigSpec

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

func (*MasterConfigSpec) DeepCopyInto

func (in *MasterConfigSpec) DeepCopyInto(out *MasterConfigSpec)

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

type MasterRoleGroupSpec

type MasterRoleGroupSpec struct {
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=1
	Replicas *int32 `json:"replicas,omitempty"`

	// +kubebuilder:validation:Optional
	Config *MasterConfigSpec `json:"config,omitempty"`

	*commonsv1alpha1.OverridesSpec `json:",inline"`
}

func (*MasterRoleGroupSpec) DeepCopy

func (in *MasterRoleGroupSpec) DeepCopy() *MasterRoleGroupSpec

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

func (*MasterRoleGroupSpec) DeepCopyInto

func (in *MasterRoleGroupSpec) DeepCopyInto(out *MasterRoleGroupSpec)

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

type MasterSpec

type MasterSpec struct {
	// +kubebuilder:validation:Optional
	Config *MasterConfigSpec `json:"config,omitempty"`

	// +kubebuilder:validation:Required
	RoleGroups map[string]MasterRoleGroupSpec `json:"roleGroups,omitempty"`

	// +kubebuilder:validation:Optional
	RoleConfig *commonsv1alpha1.RoleConfigSpec `json:"roleConfig,omitempty"`

	*commonsv1alpha1.OverridesSpec `json:",inline"`
}

func (*MasterSpec) DeepCopy

func (in *MasterSpec) DeepCopy() *MasterSpec

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

func (*MasterSpec) DeepCopyInto

func (in *MasterSpec) DeepCopyInto(out *MasterSpec)

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

type OidcSpec

type OidcSpec struct {
	// OIDC client credentials secret. It must contain the following keys:
	//   - `CLIENT_ID`: The client ID of the OIDC client.
	//   - `CLIENT_SECRET`: The client secret of the OIDC client.
	// credentials will omit to pod environment variables.
	// +kubebuilder:validation:Required
	ClientCredentialsSecret string `json:"clientCredentialsSecret"`

	// +kubebuilder:validation:Optional
	ExtraScopes []string `json:"extraScopes,omitempty"`
}

OidcSpec defines the OIDC spec.

func (*OidcSpec) DeepCopy

func (in *OidcSpec) DeepCopy() *OidcSpec

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

func (*OidcSpec) DeepCopyInto

func (in *OidcSpec) DeepCopyInto(out *OidcSpec)

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

type RegionConfigSpec

type RegionConfigSpec struct {
	*commonsv1alpha1.RoleGroupConfigSpec `json:",inline"`
}

func (*RegionConfigSpec) DeepCopy

func (in *RegionConfigSpec) DeepCopy() *RegionConfigSpec

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

func (*RegionConfigSpec) DeepCopyInto

func (in *RegionConfigSpec) DeepCopyInto(out *RegionConfigSpec)

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

type RegionServerRoleGroupSpec

type RegionServerRoleGroupSpec struct {
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=1
	Replicas *int32 `json:"replicas,omitempty"`

	// +kubebuilder:validation:Optional
	Config *RegionConfigSpec `json:"config,omitempty"`

	*commonsv1alpha1.OverridesSpec `json:",inline"`
}

func (*RegionServerRoleGroupSpec) DeepCopy

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

func (*RegionServerRoleGroupSpec) DeepCopyInto

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

type RegionServerSpec

type RegionServerSpec struct {
	// +kubebuilder:validation:Optional
	Config *RegionConfigSpec `json:"config,omitempty"`

	// +kubebuilder:validation:Optional
	RoleGroups map[string]RegionServerRoleGroupSpec `json:"roleGroups,omitempty"`

	// +kubebuilder:validation:Optional
	RoleConfig *commonsv1alpha1.RoleConfigSpec `json:"roleConfig,omitempty"`

	*commonsv1alpha1.OverridesSpec `json:",inline"`
}

func (*RegionServerSpec) DeepCopy

func (in *RegionServerSpec) DeepCopy() *RegionServerSpec

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

func (*RegionServerSpec) DeepCopyInto

func (in *RegionServerSpec) DeepCopyInto(out *RegionServerSpec)

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

type RestServerConfigSpec

type RestServerConfigSpec struct {
	*commonsv1alpha1.RoleGroupConfigSpec `json:",inline"`
}

func (*RestServerConfigSpec) DeepCopy

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

func (*RestServerConfigSpec) DeepCopyInto

func (in *RestServerConfigSpec) DeepCopyInto(out *RestServerConfigSpec)

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

type RestServerRoleGroupSpec

type RestServerRoleGroupSpec struct {
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=1
	Replicas *int32 `json:"replicas,omitempty"`

	// +kubebuilder:validation:Optional
	Config *RestServerConfigSpec `json:"config,omitempty"`

	*commonsv1alpha1.OverridesSpec `json:",inline"`
}

func (*RestServerRoleGroupSpec) DeepCopy

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

func (*RestServerRoleGroupSpec) DeepCopyInto

func (in *RestServerRoleGroupSpec) DeepCopyInto(out *RestServerRoleGroupSpec)

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

type RestServerSpec

type RestServerSpec struct {
	// +kubebuilder:validation:Optional
	Config *RestServerConfigSpec `json:"config,omitempty"`

	// +kubebuilder:validation:Required
	RoleGroups map[string]RestServerRoleGroupSpec `json:"roleGroups,omitempty"`

	// +kubebuilder:validation:Optional
	RoleConfig *commonsv1alpha1.RoleConfigSpec `json:"roleConfig,omitempty"`

	*commonsv1alpha1.OverridesSpec `json:",inline"`
}

func (*RestServerSpec) DeepCopy

func (in *RestServerSpec) DeepCopy() *RestServerSpec

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

func (*RestServerSpec) DeepCopyInto

func (in *RestServerSpec) DeepCopyInto(out *RestServerSpec)

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

Jump to

Keyboard shortcuts

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