Documentation ¶
Index ¶
- func BuildTLSSecret(synthesizedComp component.SynthesizedComponent) *v1.Secret
- func CheckTLSSecretRef(ctx context.Context, cli client.Reader, namespace string, ...) error
- func CleanupClusterRestoreAnnotation(cluster *appsv1.Cluster, compName string) (bool, error)
- func ComposeTLSSecret(synthesizedComp component.SynthesizedComponent) (*v1.Secret, error)
- func GenerateTLSSecretName(clusterName, componentName string) string
- func GetBackupFromClusterAnnotation(ctx context.Context, cli client.Reader, backupSource map[string]string, ...) (*dpv1alpha1.Backup, error)
- func RenderConfigNScriptFiles(resourceCtx *configuration.ResourceCtx, cluster *appsv1.Cluster, ...) error
- type RestoreManager
- func (r *RestoreManager) BuildPrepareDataRestore(comp *component.SynthesizedComponent, backupObj *dpv1alpha1.Backup, ...) (*dpv1alpha1.Restore, error)
- func (r *RestoreManager) DoPostReady(comp *component.SynthesizedComponent, compObj *appsv1.Component, ...) error
- func (r *RestoreManager) DoPrepareData(comp *component.SynthesizedComponent, compObj *appsv1.Component, ...) error
- func (r *RestoreManager) DoRestore(comp *component.SynthesizedComponent, compObj *appsv1.Component, ...) error
- func (r *RestoreManager) GetRestoreObjectMeta(comp *component.SynthesizedComponent, stage dpv1alpha1.RestoreStage, ...) metav1.ObjectMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTLSSecret ¶ added in v0.9.2
func BuildTLSSecret(synthesizedComp component.SynthesizedComponent) *v1.Secret
func CheckTLSSecretRef ¶
func CleanupClusterRestoreAnnotation ¶ added in v0.9.0
func ComposeTLSSecret ¶
func ComposeTLSSecret(synthesizedComp component.SynthesizedComponent) (*v1.Secret, error)
ComposeTLSSecret composes a TSL secret object. REVIEW/TODO:
- missing public function doc
- 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 GetBackupFromClusterAnnotation ¶ added in v0.9.0
func RenderConfigNScriptFiles ¶
func RenderConfigNScriptFiles(resourceCtx *configuration.ResourceCtx, cluster *appsv1.Cluster, component *appsv1.Component, synthesizedComponent *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 *appsv1.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 (*RestoreManager) BuildPrepareDataRestore ¶
func (r *RestoreManager) BuildPrepareDataRestore(comp *component.SynthesizedComponent, backupObj *dpv1alpha1.Backup, templateName string) (*dpv1alpha1.Restore, error)
func (*RestoreManager) DoPostReady ¶
func (r *RestoreManager) DoPostReady(comp *component.SynthesizedComponent, compObj *appsv1.Component, backupObj *dpv1alpha1.Backup) error
func (*RestoreManager) DoPrepareData ¶
func (r *RestoreManager) DoPrepareData(comp *component.SynthesizedComponent, compObj *appsv1.Component, backupObj *dpv1alpha1.Backup) error
func (*RestoreManager) DoRestore ¶
func (r *RestoreManager) DoRestore(comp *component.SynthesizedComponent, compObj *appsv1.Component, postProvisionDone bool) error
func (*RestoreManager) GetRestoreObjectMeta ¶
func (r *RestoreManager) GetRestoreObjectMeta(comp *component.SynthesizedComponent, stage dpv1alpha1.RestoreStage, templateName string) metav1.ObjectMeta
Click to show internal directories.
Click to hide internal directories.