Documentation ¶
Index ¶
- func Add(mgr manager.Manager) error
- func GetClusterHeadlessServiceName(cluster *v1beta2.Cluster) string
- func GetClusterIDFromClusterAnnotations(cluster *v1beta2.Cluster) (int32, error)
- func GetDatabaseFromClusterAnnotations(cluster *v1beta2.Cluster) (string, error)
- func GetProxyDeploymentName(cluster *v1beta2.Cluster) string
- func NewClusterConfigMap(cluster *v1beta2.Cluster, storage *storage.RedisStorageClass, ...) (*corev1.ConfigMap, error)
- func NewClusterHeadlessService(cluster *v1beta2.Cluster) *corev1.Service
- func NewClusterService(cluster *v1beta2.Cluster) *corev1.Service
- func NewStatefulSet(cluster *v1beta2.Cluster, storage *storage.RedisStorageClass) (*appsv1.StatefulSet, error)
- type Container
- func (c *Container) Args() []string
- func (c *Container) Build() Container
- func (c *Container) Command() []string
- func (c *Container) Env() []corev1.EnvVar
- func (c *Container) Image() string
- func (c *Container) LivenessProbe() *corev1.Probe
- func (c *Container) Name() string
- func (c *Container) Ports() []corev1.ContainerPort
- func (c *Container) PullPolicy() corev1.PullPolicy
- func (c *Container) ReadinessProbe() *corev1.Probe
- func (c *Container) Resources() corev1.ResourceRequirements
- func (c *Container) SetArgs(args ...string) ContainerBuilder
- func (c *Container) SetCommand(command ...string) ContainerBuilder
- func (c *Container) SetEnv(env []corev1.EnvVar) ContainerBuilder
- func (c *Container) SetImage(image string) ContainerBuilder
- func (c *Container) SetLivenessProbe(probe *corev1.Probe) ContainerBuilder
- func (c *Container) SetName(name string) ContainerBuilder
- func (c *Container) SetPorts(ports []corev1.ContainerPort) ContainerBuilder
- func (c *Container) SetPullPolicy(pullPolicy corev1.PullPolicy) ContainerBuilder
- func (c *Container) SetReadinessProbe(probe *corev1.Probe) ContainerBuilder
- func (c *Container) SetResources(resources corev1.ResourceRequirements) ContainerBuilder
- func (c *Container) SetVolumeMounts(volumeMounts []corev1.VolumeMount) ContainerBuilder
- func (c *Container) VolumeMounts() []corev1.VolumeMount
- type ContainerBuilder
- type Reconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add creates a new Partition ManagementGroup and adds it to the Manager. The Manager will set fields on the ManagementGroup and Start it when the Manager is Started.
func GetClusterHeadlessServiceName ¶
GetClusterHeadlessServiceName returns the headless service name for the given cluster
func GetClusterIDFromClusterAnnotations ¶
GetClusterIDFromClusterAnnotations returns the cluster ID from the given cluster annotations
func GetDatabaseFromClusterAnnotations ¶
GetDatabaseFromClusterAnnotations returns the database name from the given cluster annotations
func GetProxyDeploymentName ¶
GetProxyDeploymentName returns the StatefulSet name for the given partition
func NewClusterConfigMap ¶
func NewClusterConfigMap(cluster *v1beta2.Cluster, storage *storage.RedisStorageClass, config interface{}) (*corev1.ConfigMap, error)
NewClusterConfigMap returns a new ConfigMap for initializing Atomix clusters
func NewClusterHeadlessService ¶
NewClusterHeadlessService returns a new headless service for a cluster group
func NewClusterService ¶
NewClusterService returns a new service for a cluster
func NewStatefulSet ¶
func NewStatefulSet(cluster *v1beta2.Cluster, storage *storage.RedisStorageClass) (*appsv1.StatefulSet, error)
NewStatefulSet returns a new StatefulSet for a cluster group
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
Container container type defines an abstraction for containers
func (*Container) LivenessProbe ¶
LivenessProbe returns livenessprobe info
func (*Container) Ports ¶
func (c *Container) Ports() []corev1.ContainerPort
Ports return a set of container ports
func (*Container) PullPolicy ¶
func (c *Container) PullPolicy() corev1.PullPolicy
PullPolicy returns the pull policy
func (*Container) ReadinessProbe ¶
ReadinessProbe returns readinessProbe info
func (*Container) Resources ¶
func (c *Container) Resources() corev1.ResourceRequirements
Resources returns container resources
func (*Container) SetArgs ¶
func (c *Container) SetArgs(args ...string) ContainerBuilder
SetArgs sets a container arguments
func (*Container) SetCommand ¶
func (c *Container) SetCommand(command ...string) ContainerBuilder
SetCommand sets a container command
func (*Container) SetEnv ¶
func (c *Container) SetEnv(env []corev1.EnvVar) ContainerBuilder
SetEnv sets environment variables
func (*Container) SetImage ¶
func (c *Container) SetImage(image string) ContainerBuilder
SetImage sets a container image
func (*Container) SetLivenessProbe ¶
func (c *Container) SetLivenessProbe(probe *corev1.Probe) ContainerBuilder
SetLivenessProbe sets container livenessProbe
func (*Container) SetName ¶
func (c *Container) SetName(name string) ContainerBuilder
SetName sets a container name
func (*Container) SetPorts ¶
func (c *Container) SetPorts(ports []corev1.ContainerPort) ContainerBuilder
SetPorts sets a container ports
func (*Container) SetPullPolicy ¶
func (c *Container) SetPullPolicy(pullPolicy corev1.PullPolicy) ContainerBuilder
SetPullPolicy sets pull policy for a container
func (*Container) SetReadinessProbe ¶
func (c *Container) SetReadinessProbe(probe *corev1.Probe) ContainerBuilder
SetReadinessProbe sets container readinessProbe
func (*Container) SetResources ¶
func (c *Container) SetResources(resources corev1.ResourceRequirements) ContainerBuilder
SetResources sets container resources
func (*Container) SetVolumeMounts ¶
func (c *Container) SetVolumeMounts(volumeMounts []corev1.VolumeMount) ContainerBuilder
SetVolumeMounts sets mounted volumes
func (*Container) VolumeMounts ¶
func (c *Container) VolumeMounts() []corev1.VolumeMount
VolumeMounts returns container mounted volumes
type ContainerBuilder ¶
type ContainerBuilder interface { SetName(string) ContainerBuilder SetImage(string) ContainerBuilder SetArgs(...string) ContainerBuilder SetEnv(env []corev1.EnvVar) ContainerBuilder SetCommand(...string) ContainerBuilder SetPullPolicy(policy corev1.PullPolicy) ContainerBuilder SetReadinessProbe(probe *corev1.Probe) ContainerBuilder SetLivenessProbe(probe *corev1.Probe) ContainerBuilder SetVolumeMounts([]corev1.VolumeMount) ContainerBuilder SetResources(corev1.ResourceRequirements) ContainerBuilder SetPorts([]corev1.ContainerPort) ContainerBuilder Build() Container }
ContainerBuilder container builder interface
func NewContainer ¶
func NewContainer() ContainerBuilder
NewContainer creates a new container builder
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler reconciles a Cluster object