v1alpha1

package
v0.0.0-...-b2704b3 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: 9 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	DefaultRepository      = "quay.io/zncdatadev"
	DefaultProductVersion  = "451"
	DefaultKubedoopVersion = "0.0.0-dev"
	DefaultProductName     = "trino"
)
View Source
const (
	TrinoCoordinatorRoleName       = "coordinator"
	TrinoWorkerRoleName            = "worker"
	HttpPortName                   = "http"
	HttpPort                 int32 = 8080
	HttpsPortName                  = "https"
	HttpsPort                int32 = 8443
)
View Source
const (
	DefaultTlsSecretClass = "tls"
	DefaultListenerClass  = constants.ClusterInternal
	DefaultQueryMaxMemory = "50GB"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "trino.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:Required
	AuthenticationClass string    `json:"authenticationClass"`
	Oidc                *OidcSpec `json:"oidc,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 BaseRoleSpec

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

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

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

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

func (*BaseRoleSpec) DeepCopy

func (in *BaseRoleSpec) DeepCopy() *BaseRoleSpec

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

func (*BaseRoleSpec) DeepCopyInto

func (in *BaseRoleSpec) DeepCopyInto(out *BaseRoleSpec)

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

type CatalogLabelSelectorSpec

type CatalogLabelSelectorSpec struct {
	// +kubebuilder:validation:Optional
	MatchLabels map[string]string `json:"matchLabels,omitempty"`
	// +kubebuilder:validation:Optional
	MatchExpressions []metav1.LabelSelectorRequirement `json:"matchExpressions,omitempty"`
}

func (*CatalogLabelSelectorSpec) DeepCopy

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

func (*CatalogLabelSelectorSpec) DeepCopyInto

func (in *CatalogLabelSelectorSpec) DeepCopyInto(out *CatalogLabelSelectorSpec)

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

type ClusterConfigSpec

type ClusterConfigSpec struct {

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

	// +kubebuilder:validation:Optional
	CatalogLabelSelector *CatalogLabelSelectorSpec `json:"catalogLabelSelector,omitempty"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="cluster-internal"
	ListenerClass constants.ListenerClass `json:"listenerClass,omitempty"`

	// +kubebuilder:validation:Optional
	Tls *TlsSpec `json:"tls,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 ConfigOverridesSpec

type ConfigOverridesSpec struct {
	Node            map[string]string `json:"node.properties,omitempty"`
	Jvm             string            `json:"jvm.config,omitempty"`
	Config          map[string]string `json:"config.properties,omitempty"`
	Log             map[string]string `json:"log.properties,omitempty"`
	ExchangeManager map[string]string `json:"exchange-manager.properties,omitempty"`
}

func (*ConfigOverridesSpec) DeepCopy

func (in *ConfigOverridesSpec) DeepCopy() *ConfigOverridesSpec

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

func (*ConfigOverridesSpec) DeepCopyInto

func (in *ConfigOverridesSpec) DeepCopyInto(out *ConfigOverridesSpec)

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

type ConfigSpec

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

	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="50GB"
	QueryMaxMemory string `json:"queryMaxMemory,omitempty"`

	// +kubebuilder:validation:Optional
	QueryMaxMemoryPerNode string `json:"queryMaxMemoryPerNode,omitempty"`
}

func (*ConfigSpec) DeepCopy

func (in *ConfigSpec) DeepCopy() *ConfigSpec

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

func (*ConfigSpec) DeepCopyInto

func (in *ConfigSpec) DeepCopyInto(out *ConfigSpec)

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

type ConnectorSpec

type ConnectorSpec struct {
	// +kubebuilder:validation:optional
	Generic *GenericConnectorSpec `json:"generic,omitempty"`

	// +kubebuilder:validation:optional
	Hive *HiveConnectorSpec `json:"hive,omitempty"`

	// +kubebuilder:validation:optional
	IceBerg *IcebergConnectorSpec `json:"iceberg,omitempty"`

	// +kubebuilder:validation:optional
	Tpcds *TpcdsConnectorSpec `json:"tpcds,omitempty"`

	// +kubebuilder:validation:optional
	Tpch *TpchConnectorSpec `json:"tpch,omitempty"`
}

func (*ConnectorSpec) DeepCopy

func (in *ConnectorSpec) DeepCopy() *ConnectorSpec

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

func (*ConnectorSpec) DeepCopyInto

func (in *ConnectorSpec) DeepCopyInto(out *ConnectorSpec)

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

type CoordinatorsSpec

type CoordinatorsSpec struct {
	// +kubebuilder:validation:Required
	RoleGroups map[string]*RoleGroupSpec `json:"roleGroups"`

	BaseRoleSpec `json:",inline"`
}

func (*CoordinatorsSpec) DeepCopy

func (in *CoordinatorsSpec) DeepCopy() *CoordinatorsSpec

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

func (*CoordinatorsSpec) DeepCopyInto

func (in *CoordinatorsSpec) DeepCopyInto(out *CoordinatorsSpec)

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

type GenericConnectorSpec

type GenericConnectorSpec struct {
	// +kubebuilder:validation:required
	Name string `json:"name"`

	// +kubebuilder:validation:Optional
	Properties *PropertiesSpec `json:"properties,omitempty"`
}

func (*GenericConnectorSpec) DeepCopy

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

func (*GenericConnectorSpec) DeepCopyInto

func (in *GenericConnectorSpec) DeepCopyInto(out *GenericConnectorSpec)

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

type HdfsConnectionSpec

type HdfsConnectionSpec struct {
	// +kubebuilder:validation:required
	ConfigMap string `json:"configMap,omitempty"`
}

func (*HdfsConnectionSpec) DeepCopy

func (in *HdfsConnectionSpec) DeepCopy() *HdfsConnectionSpec

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

func (*HdfsConnectionSpec) DeepCopyInto

func (in *HdfsConnectionSpec) DeepCopyInto(out *HdfsConnectionSpec)

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

type HiveConnectorSpec

type HiveConnectorSpec struct {
	// +kubebuilder:validation:required
	Metastore *MetastoreConnectionSpec `json:"metastore,omitempty"`

	// +kubebuilder:validation:optional
	S3 *s3v1alpha1.S3BucketSpec `json:"s3,omitempty"`

	// +kubebuilder:validation:optional
	Hdfs *HdfsConnectionSpec `json:"hdfs,omitempty"`
}

func (*HiveConnectorSpec) DeepCopy

func (in *HiveConnectorSpec) DeepCopy() *HiveConnectorSpec

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

func (*HiveConnectorSpec) DeepCopyInto

func (in *HiveConnectorSpec) DeepCopyInto(out *HiveConnectorSpec)

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

type IcebergConnectorSpec

type IcebergConnectorSpec struct {
	// +kubebuilder:validation:required
	Metastore *MetastoreConnectionSpec `json:"metastore,omitempty"`

	// +kubebuilder:validation:optional
	S3 *s3v1alpha1.S3BucketSpec `json:"s3,omitempty"`

	// +kubebuilder:validation:optional
	Hdfs *HdfsConnectionSpec `json:"hdfs,omitempty"`
}

func (*IcebergConnectorSpec) DeepCopy

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

func (*IcebergConnectorSpec) DeepCopyInto

func (in *IcebergConnectorSpec) DeepCopyInto(out *IcebergConnectorSpec)

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="451"
	ProductVersion string `json:"productVersion,omitempty"`

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

	// +kubebuilder:validation:Optional
	// +kubebuilder:default="trino"
	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 JvmPropertiesRoleConfigSpec

type JvmPropertiesRoleConfigSpec struct {
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="8G"
	MaxHeapSize string `json:"maxHeapSize,omitempty"`
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="UseG1GC"
	GcMethodType string `json:"gcMethodType,omitempty"`
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="32M"
	G1HeapRegionSize string `json:"gcHeapRegionSize,omitempty"`
}

func (*JvmPropertiesRoleConfigSpec) DeepCopy

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

func (*JvmPropertiesRoleConfigSpec) DeepCopyInto

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

type LoggingSpec

type LoggingSpec struct {
	// +kubebuilder:validation:Optional
	Containers map[string]commonsv1alpha1.LoggingConfigSpec `json:"containers,omitempty"`

	// +kubebuilder:validation:Optional
	EnableVectorAgent bool `json:"enableVectorAgent,omitempty"`
}

func (*LoggingSpec) DeepCopy

func (in *LoggingSpec) DeepCopy() *LoggingSpec

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

func (*LoggingSpec) DeepCopyInto

func (in *LoggingSpec) DeepCopyInto(out *LoggingSpec)

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

type MetastoreConnectionSpec

type MetastoreConnectionSpec struct {
	// +kubebuilder:validation:required
	ConfigMap string `json:"configMap,omitempty"`
}

func (*MetastoreConnectionSpec) DeepCopy

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

func (*MetastoreConnectionSpec) DeepCopyInto

func (in *MetastoreConnectionSpec) DeepCopyInto(out *MetastoreConnectionSpec)

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"`
}

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 PropertiesSpec

type PropertiesSpec struct {
	// +kubebuilder:validation:optional
	Value string `json:"value,omitempty"`

	// +kubebuilder:validation:optional
	ValueFromConfiguration *ValueFromConfigurationSpec `json:"valueFromConfiguration,omitempty"`
}

func (*PropertiesSpec) DeepCopy

func (in *PropertiesSpec) DeepCopy() *PropertiesSpec

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

func (*PropertiesSpec) DeepCopyInto

func (in *PropertiesSpec) DeepCopyInto(out *PropertiesSpec)

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

type RoleGroupSpec

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

	Config *ConfigSpec `json:"config,omitempty"`

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

func (*RoleGroupSpec) DeepCopy

func (in *RoleGroupSpec) DeepCopy() *RoleGroupSpec

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

func (*RoleGroupSpec) DeepCopyInto

func (in *RoleGroupSpec) DeepCopyInto(out *RoleGroupSpec)

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

type TlsSpec

type TlsSpec struct {
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="tls"
	ServerSecretClass string `json:"serverSecretClass,omitempty"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="tls"
	InternalSecretClass string `json:"internalSecretClass,omitempty"`
}

func (*TlsSpec) DeepCopy

func (in *TlsSpec) DeepCopy() *TlsSpec

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

func (*TlsSpec) DeepCopyInto

func (in *TlsSpec) DeepCopyInto(out *TlsSpec)

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

type TpcdsConnectorSpec

type TpcdsConnectorSpec struct {
}

func (*TpcdsConnectorSpec) DeepCopy

func (in *TpcdsConnectorSpec) DeepCopy() *TpcdsConnectorSpec

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

func (*TpcdsConnectorSpec) DeepCopyInto

func (in *TpcdsConnectorSpec) DeepCopyInto(out *TpcdsConnectorSpec)

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

type TpchConnectorSpec

type TpchConnectorSpec struct {
}

func (*TpchConnectorSpec) DeepCopy

func (in *TpchConnectorSpec) DeepCopy() *TpchConnectorSpec

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

func (*TpchConnectorSpec) DeepCopyInto

func (in *TpchConnectorSpec) DeepCopyInto(out *TpchConnectorSpec)

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

type TrinoCatalog

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

	Spec   TrinoCatalogSpec   `json:"spec,omitempty"`
	Status TrinoCatalogStatus `json:"status,omitempty"`
}

TrinoCatalog is the Schema for the trinocatalogs API

func (*TrinoCatalog) DeepCopy

func (in *TrinoCatalog) DeepCopy() *TrinoCatalog

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

func (*TrinoCatalog) DeepCopyInto

func (in *TrinoCatalog) DeepCopyInto(out *TrinoCatalog)

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

func (*TrinoCatalog) DeepCopyObject

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

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

type TrinoCatalogList

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

TrinoCatalogList contains a list of TrinoCatalog

func (*TrinoCatalogList) DeepCopy

func (in *TrinoCatalogList) DeepCopy() *TrinoCatalogList

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

func (*TrinoCatalogList) DeepCopyInto

func (in *TrinoCatalogList) DeepCopyInto(out *TrinoCatalogList)

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

func (*TrinoCatalogList) DeepCopyObject

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

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

type TrinoCatalogSpec

type TrinoCatalogSpec struct {
	// List of connectors in the catalog
	// +kubebuilder:validation:required
	Connectors []ConnectorSpec `json:"connectors"`

	// The configOverrides allow overriding arbitrary Trino settings. For example, for Hive you could add hive.metastore.username: trino.
	// +kubebuilder:validation:Optional
	ConfigOverrides map[string]string `json:"configOverrides,omitempty"`
}

TrinoCatalogSpec defines the desired state of TrinoCatalog

func (*TrinoCatalogSpec) DeepCopy

func (in *TrinoCatalogSpec) DeepCopy() *TrinoCatalogSpec

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

func (*TrinoCatalogSpec) DeepCopyInto

func (in *TrinoCatalogSpec) DeepCopyInto(out *TrinoCatalogSpec)

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

type TrinoCatalogStatus

type TrinoCatalogStatus struct {
}

TrinoCatalogStatus defines the observed state of TrinoCatalog

func (*TrinoCatalogStatus) DeepCopy

func (in *TrinoCatalogStatus) DeepCopy() *TrinoCatalogStatus

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

func (*TrinoCatalogStatus) DeepCopyInto

func (in *TrinoCatalogStatus) DeepCopyInto(out *TrinoCatalogStatus)

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

type TrinoCluster

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

	Spec   TrinoClusterSpec `json:"spec,omitempty"`
	Status status.Status    `json:"status,omitempty"`
}

TrinoCluster is the Schema for the trinoclusters API

func (*TrinoCluster) DeepCopy

func (in *TrinoCluster) DeepCopy() *TrinoCluster

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

func (*TrinoCluster) DeepCopyInto

func (in *TrinoCluster) DeepCopyInto(out *TrinoCluster)

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

func (*TrinoCluster) DeepCopyObject

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

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

type TrinoClusterList

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

TrinoClusterList contains a list of TrinoCluster

func (*TrinoClusterList) DeepCopy

func (in *TrinoClusterList) DeepCopy() *TrinoClusterList

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

func (*TrinoClusterList) DeepCopyInto

func (in *TrinoClusterList) DeepCopyInto(out *TrinoClusterList)

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

func (*TrinoClusterList) DeepCopyObject

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

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

type TrinoClusterSpec

type TrinoClusterSpec struct {

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

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

	// +kubebuilder:validation:Optional
	Image *ImageSpec `json:"image,omitempty"`

	// +kubebuilder:validation:Required
	Coordinators *CoordinatorsSpec `json:"coordinators"`

	// +kubebuilder:validation:Required
	Workers *WorkersSpec `json:"workers"`
}

TrinoSpec defines the desired state of TrinoCluster

func (*TrinoClusterSpec) DeepCopy

func (in *TrinoClusterSpec) DeepCopy() *TrinoClusterSpec

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

func (*TrinoClusterSpec) DeepCopyInto

func (in *TrinoClusterSpec) DeepCopyInto(out *TrinoClusterSpec)

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

type ValueFromConfigurationSpec

type ValueFromConfigurationSpec struct {
	// +kubebuilder:validation:rquired
	// +kubebuilder:default=configmap
	// +kubebuilder:validation:Enum=configmap;secret
	Type string `json:"type,omitempty"`

	// +kubebuilder:validation:required
	Name string `json:"name"`

	// +kubebuilder:validation:required
	Key string `json:"key,omitempty"`
}

func (*ValueFromConfigurationSpec) DeepCopy

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

func (*ValueFromConfigurationSpec) DeepCopyInto

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

type WorkersSpec

type WorkersSpec struct {
	// +kubebuilder:validation:Required
	RoleGroups map[string]*RoleGroupSpec `json:"roleGroups"`

	BaseRoleSpec `json:",inline"`
}

func (*WorkersSpec) DeepCopy

func (in *WorkersSpec) DeepCopy() *WorkersSpec

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

func (*WorkersSpec) DeepCopyInto

func (in *WorkersSpec) DeepCopyInto(out *WorkersSpec)

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