Documentation ¶
Index ¶
- func DeploymentName(clusterName, keyspace string, shardKeyRange planetscalev2.VitessKeyRange, ...) string
- func NewDeployment(key client.ObjectKey, spec *Spec) *appsv1.Deployment
- func UpdateDeployment(obj *appsv1.Deployment, spec *Spec)
- func UpdateDeploymentImmediate(obj *appsv1.Deployment, spec *Spec)
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeploymentName ¶
func DeploymentName(clusterName, keyspace string, shardKeyRange planetscalev2.VitessKeyRange, cellName string) string
DeploymentName returns the name of the VTOrc Deployment for a given tablet pool.
func NewDeployment ¶
func NewDeployment(key client.ObjectKey, spec *Spec) *appsv1.Deployment
NewDeployment creates a new Deployment object for vtorc.
func UpdateDeployment ¶
func UpdateDeployment(obj *appsv1.Deployment, spec *Spec)
UpdateDeployment updates the mutable parts of the vtorc Deployment that should be changed as part of a gradual, rolling update.
func UpdateDeploymentImmediate ¶
func UpdateDeploymentImmediate(obj *appsv1.Deployment, spec *Spec)
UpdateDeploymentImmediate updates the mutable parts of the orchestrator Deployment that are safe to change immediately.
Types ¶
type Spec ¶
type Spec struct { GlobalLockserver planetscalev2.VitessLockserverParams Keyspace string Shard string Cell string Zone string Image string ImagePullPolicy corev1.PullPolicy ImagePullSecrets []corev1.LocalObjectReference Labels map[string]string Resources corev1.ResourceRequirements Affinity *corev1.Affinity ExtraFlags map[string]string ExtraEnv []corev1.EnvVar ExtraVolumes []corev1.Volume ExtraVolumeMounts []corev1.VolumeMount InitContainers []corev1.Container SidecarContainers []corev1.Container Annotations map[string]string ExtraLabels map[string]string Tolerations []corev1.Toleration }
Spec specifies all the internal parameters needed to deploy VTOrc, as opposed to the API type planetscalev2.VitessDashboardSpec, which is the public API.
Click to show internal directories.
Click to hide internal directories.