computenode

package
v0.0.0-...-f5de34e Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAnnotationJavaAgentEnabled = "shardingsphere.apache.org/java-agent-enabled"
)

Variables

This section is empty.

Functions

func GetConditionFromPods

func GetConditionFromPods(podlist *corev1.PodList) []v1alpha1.ComputeNodeCondition

GetConditionFromPods returns the condition for a pod

Types

type BootstrapContainerBuilder

type BootstrapContainerBuilder interface {
	container.ContainerBuilder
}

BootstrapContainerBuilder returns a Container for initialization The container will handle initilialization in Pod's InitContainer

func NewBootstrapContainerBuilderForAgentBin

func NewBootstrapContainerBuilderForAgentBin() BootstrapContainerBuilder

NewBootstrapContainerBuilderForAgentBin will return a builder for ShardingSphere-Agent bin jar download container This will set the default container name, image and commands

func NewBootstrapContainerBuilderForMysqlJar

func NewBootstrapContainerBuilderForMysqlJar() BootstrapContainerBuilder

NewBootstrapContainerBuilderForMysqlJar will return a builder for MysqlJar download container This will set the default container name, image and commands

func NewBootstrapContainerBuilderForStartScripts

func NewBootstrapContainerBuilderForStartScripts() BootstrapContainerBuilder

NewBootstrapContainerBuilderForStartScript will return a builder for ShardingSphere-Proxy modify container start.sh

type Builder

type Builder interface {
	BuildDeployment(context.Context, *v1alpha1.ComputeNode) *appsv1.Deployment
	BuildConfigMap(context.Context, *v1alpha1.ComputeNode) *corev1.ConfigMap
	BuildService(context.Context, *v1alpha1.ComputeNode) *corev1.Service
}

Builder build Deployment from given ComputeNode

func NewBuilder

func NewBuilder() Builder

NewBulder builds resources needed by ComputeNode

type ShardingSphereDeploymentBuilder

type ShardingSphereDeploymentBuilder interface {
	deployment.DeploymentBuilder

	SetMySQLConnector(cn *v1alpha1.ComputeNode) ShardingSphereDeploymentBuilder
	SetAgentBin(cn *v1alpha1.ComputeNode) ShardingSphereDeploymentBuilder
	SetAgentScript(cn *v1alpha1.ComputeNode) ShardingSphereDeploymentBuilder

	BuildShardingSphereDeployment() *appsv1.Deployment
}

func NewShardingSphereDeploymentBuilder

func NewShardingSphereDeploymentBuilder(meta metav1.Object, gvk schema.GroupVersionKind) ShardingSphereDeploymentBuilder

NewShardingSphereDeploymentBuilder creates a new ShardingSphereDeploymentBuilder

type ShardingSphereProxyContainerBuilder

type ShardingSphereProxyContainerBuilder interface {
	// A default container builder
	container.ContainerBuilder

	// set the version of ShardingSphere Proxy
	SetVersion(version string) ShardingSphereProxyContainerBuilder
}

ShardingSphereProxyContainerBuilder contains a common container builder and several different Proxy related attributes

func NewShardingSphereProxyContainerBuilder

func NewShardingSphereProxyContainerBuilder() ShardingSphereProxyContainerBuilder

NewShardingSphereProxyContainerBuilder returns a builder for ShardingSphereContainer This will set default container name

Jump to

Keyboard shortcuts

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