etcd

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EtcdReasonFailed  = "EtcdFailed"
	EtcdReasonRunning = "EtcdRunning"
	EtcdReasonScaling = "EtcdScalingUp"
)

Variables

This section is empty.

Functions

func ComputeEtcdClusterStatus

func ComputeEtcdClusterStatus(ctx context.Context, c client.Client, cluster *etcdv1.EtcdCluster) (metav1.Condition, error)

func ReconcileCluster

func ReconcileCluster(cluster *etcdv1.EtcdCluster, ownerRef config.OwnerRef, etcdDeploymentConfig config.DeploymentConfig, etcdVersion string, pvcClaim *corev1.PersistentVolumeClaimSpec) error

func ReconcileOperatorDeployment

func ReconcileOperatorDeployment(deployment *appsv1.Deployment, ownerRef config.OwnerRef, deploymentConfig config.DeploymentConfig, operatorImage string) error

func ReconcileOperatorRole

func ReconcileOperatorRole(role *rbacv1.Role, ownerRef config.OwnerRef) error

func ReconcileOperatorRoleBinding

func ReconcileOperatorRoleBinding(roleBinding *rbacv1.RoleBinding, ownerRef config.OwnerRef) error

func ReconcileOperatorServiceAccount

func ReconcileOperatorServiceAccount(sa *corev1.ServiceAccount, ownerRef config.OwnerRef) error

Types

type EtcdParams

type EtcdParams struct {
	ClusterVersion           string
	EtcdOperatorImage        string
	OwnerRef                 config.OwnerRef `json:"ownerRef"`
	OperatorDeploymentConfig config.DeploymentConfig
	EtcdDeploymentConfig     config.DeploymentConfig
	PVCClaim                 *corev1.PersistentVolumeClaimSpec `json:"pvcClaim"`
}

func NewEtcdParams

func NewEtcdParams(hcp *hyperv1.HostedControlPlane, images map[string]string) *EtcdParams

Jump to

Keyboard shortcuts

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