factory

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrUpdateClientService

func CreateOrUpdateClientService(
	ctx context.Context,
	cluster *etcdaenixiov1alpha1.EtcdCluster,
	rclient client.Client,
) error

func CreateOrUpdateClusterStateConfigMap

func CreateOrUpdateClusterStateConfigMap(
	ctx context.Context,
	cluster *etcdaenixiov1alpha1.EtcdCluster,
	rclient client.Client,
) error

func CreateOrUpdateHeadlessService added in v0.2.0

func CreateOrUpdateHeadlessService(
	ctx context.Context,
	cluster *etcdaenixiov1alpha1.EtcdCluster,
	rclient client.Client,
) error

func CreateOrUpdatePdb added in v0.1.0

func CreateOrUpdatePdb(
	ctx context.Context,
	cluster *etcdaenixiov1alpha1.EtcdCluster,
	rclient client.Client,
) error

func CreateOrUpdateStatefulSet

func CreateOrUpdateStatefulSet(
	ctx context.Context,
	cluster *etcdaenixiov1alpha1.EtcdCluster,
	rclient client.Client,
) error

func GetClusterStateConfigMapName

func GetClusterStateConfigMapName(cluster *etcdaenixiov1alpha1.EtcdCluster) string

func GetHeadlessServiceName added in v0.2.0

func GetHeadlessServiceName(cluster *etcdaenixiov1alpha1.EtcdCluster) string

func GetPVCName

func GetPVCName(cluster *etcdaenixiov1alpha1.EtcdCluster) string

func GetServerProtocol added in v0.3.0

func GetServerProtocol(cluster *etcdaenixiov1alpha1.EtcdCluster) string

func GetServiceName added in v0.2.0

func GetServiceName(cluster *etcdaenixiov1alpha1.EtcdCluster) string

func NewEtcdClientSet added in v0.3.0

func NewEtcdClientSet(ctx context.Context, cluster *v1alpha1.EtcdCluster, cli client.Client) (*clientv3.Client, []*clientv3.Client, error)

func UpdatePersistentVolumeClaims added in v0.4.0

func UpdatePersistentVolumeClaims(ctx context.Context, cluster *etcdaenixiov1alpha1.EtcdCluster, rclient client.Client) error

UpdatePersistentVolumeClaims checks and updates the sizes of PVCs in an EtcdCluster if the specified storage size is larger than the current.

Types

type LabelsBuilder

type LabelsBuilder map[string]string

func NewLabelsBuilder

func NewLabelsBuilder() LabelsBuilder

func (LabelsBuilder) WithInstance

func (b LabelsBuilder) WithInstance(name string) LabelsBuilder

func (LabelsBuilder) WithManagedBy

func (b LabelsBuilder) WithManagedBy() LabelsBuilder

func (LabelsBuilder) WithName

func (b LabelsBuilder) WithName() LabelsBuilder

Jump to

Keyboard shortcuts

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