plan

package
v0.8.2-beta.26 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTLSSecretRef

func CheckTLSSecretRef(ctx context.Context, cli client2.ReadonlyClient, namespace string,
	secretRef *dbaasv1alpha1.TLSSecretRef) error

func ComposeTLSSecret

func ComposeTLSSecret(namespace, clusterName, componentName string) (*v1.Secret, error)

ComposeTLSSecret composes a TSL secret object. REVIEW/TODO:

  1. missing public function doc
  2. should avoid using Go template to call a function, this is too hacky & costly, should just call underlying registered Go template function.

func GenerateTLSSecretName

func GenerateTLSSecretName(clusterName, componentName string) string

func GetTLSKeyWord

func GetTLSKeyWord(cType string) string

func RenderConfigNScriptFiles

func RenderConfigNScriptFiles(resourceCtx *configuration.ResourceCtx,
	cluster *appsv1alpha1.Cluster,
	component *component.SynthesizedComponent,
	podSpec *corev1.PodSpec,
	localObjs []client.Object) error

RenderConfigNScriptFiles generates volumes for PodTemplate, volumeMount for container, rendered configTemplate and scriptTemplate, and generates configManager sidecar for the reconfigure operation.

Types

type RestoreManager

type RestoreManager struct {
	client.Client
	Ctx     context.Context
	Cluster *appsv1alpha1.Cluster
	Scheme  *k8sruntime.Scheme
	// contains filtered or unexported fields
}

RestoreManager restores manager functions 1. support datafile/snapshot restore 2. support point in time recovery (PITR)

func NewRestoreManager

func NewRestoreManager(ctx context.Context,
	cli client.Client,
	cluster *appsv1alpha1.Cluster,
	scheme *k8sruntime.Scheme,
	restoreLabels map[string]string,
	replicas, startingIndex int32,
) *RestoreManager

func (*RestoreManager) BuildPrepareDataRestore

func (r *RestoreManager) BuildPrepareDataRestore(comp *component.SynthesizedComponent, backupObj *dpv1alpha1.Backup) (*dpv1alpha1.Restore, error)

func (*RestoreManager) DoPostReady

func (r *RestoreManager) DoPostReady(comp *component.SynthesizedComponent,
	compObj *appsv1alpha1.Component,
	backupObj *dpv1alpha1.Backup) error

func (*RestoreManager) DoPrepareData

func (r *RestoreManager) DoPrepareData(comp *component.SynthesizedComponent,
	compObj *appsv1alpha1.Component,
	backupObj *dpv1alpha1.Backup) error

func (*RestoreManager) DoRestore

func (*RestoreManager) GetRestoreObjectMeta

Jump to

Keyboard shortcuts

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