proxy

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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AnnoRollingUpdateMaxSurge refers to Deployment RollingUpdate Strategy
	AnnoRollingUpdateMaxSurge = "shardingsphereproxy.shardingsphere.org/rolling-update-max-surge"
	// AnnoRollingUpdateMaxUnavailable refers to Deployment RollingUpdate Strategy
	AnnoRollingUpdateMaxUnavailable = "shardingsphereproxy.shardingsphere.org/rolling-update-max-unavailable"
)

Variables

This section is empty.

Functions

func ConstructCascadingDeployment

func ConstructCascadingDeployment(proxy *v1alpha1.ShardingSphereProxy) *v1.Deployment

ConstructCascadingDeployment construct a Deployment from crd ShardingSphereProxy

func ConstructCascadingService

func ConstructCascadingService(proxy *v1alpha1.ShardingSphereProxy) *v1.Service

ConstructCascadingService contructs a Service from ShardingSphereProxy

func ConstructDefaultHPAMetric

func ConstructDefaultHPAMetric(target *int32) []autoscalingv2beta2.MetricSpec

ConstructDefaultHPAMetric using CPU as default HPA metrics

func ConstructHPA

ConstructHPA Create HPA if you need

func CountingReadyPods

func CountingReadyPods(podList *v1.PodList) int32

CountingReadyPods returns the current count of ready pods

func IsRunning

func IsRunning(podList *v1.PodList) bool

IsRunning returns true if one of the Pods is running

func NewDeployment

func NewDeployment(ssproxy *v1alpha1.ShardingSphereProxy) *v1.Deployment

NewDeployment creates a new Deployment

func NewHPA

NewHPA returns a new HorizontalPodAutoscaler

func NewService

func NewService(ssproxy *v1alpha1.ShardingSphereProxy) *v1.Service

NewService returns a new Service

func ReconcileStatus

func ReconcileStatus(podlist *corev1.PodList, rt *v1alpha1.ShardingSphereProxy) v1alpha1.ProxyStatus

ReconcileStatus returns the status of ShardingSphereProxy

func UpdateDeployment

func UpdateDeployment(proxy *v1alpha1.ShardingSphereProxy, act *v1.Deployment) *v1.Deployment

UpdateDeployment FIXME:merge UpdateDeployment and ConstructCascadingDeployment

func UpdateHPA

UpdateHPA update HorizontalPodAutoscaler with ShardingSphereProxy

func UpdateService

func UpdateService(proxy *v1alpha1.ShardingSphereProxy, runtimeService *v1.Service) *v1.Service

UpdateService updates the specified service with ShardingSphereProxy

Types

This section is empty.

Jump to

Keyboard shortcuts

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