Documentation ¶
Index ¶
- func BuildBackup(cluster *appsv1.Cluster, synthesizedComp *component.SynthesizedComponent, ...) *dpv1alpha1.Backup
- func BuildCfgManagerContainer(sidecarRenderedParam *cfgcm.CfgManagerBuildParams) (*corev1.Container, error)
- func BuildCfgManagerToolsContainer(sidecarRenderedParam *cfgcm.CfgManagerBuildParams, ...) ([]corev1.Container, error)
- func BuildConfigMapWithTemplate(cluster *appsv1.Cluster, synthesizedComp *component.SynthesizedComponent, ...) *corev1.ConfigMap
- func BuildInstanceSet(synthesizedComp *component.SynthesizedComponent, ...) (*workloads.InstanceSet, error)
- func BuildPVC(cluster *appsv1.Cluster, synthesizedComp *component.SynthesizedComponent, ...) *corev1.PersistentVolumeClaim
- func BuildPersistentVolumeClaimLabels(component *component.SynthesizedComponent, pvc *corev1.PersistentVolumeClaim, ...)
- func BuildRoleBinding(synthesizedComp *component.SynthesizedComponent, saName string) *rbacv1.RoleBinding
- func BuildServiceAccount(synthesizedComp *component.SynthesizedComponent, saName string) *corev1.ServiceAccount
- func GetRestorePassword(synthesizedComp *component.SynthesizedComponent) string
- func GetRestoreSystemAccountPassword(synthesizedComp *component.SynthesizedComponent, account appsv1.SystemAccount) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildBackup ¶
func BuildBackup(cluster *appsv1.Cluster, synthesizedComp *component.SynthesizedComponent, backupPolicyName string, backupKey types.NamespacedName, backupMethod string) *dpv1alpha1.Backup
func BuildCfgManagerContainer ¶
func BuildCfgManagerContainer(sidecarRenderedParam *cfgcm.CfgManagerBuildParams) (*corev1.Container, error)
func BuildCfgManagerToolsContainer ¶
func BuildCfgManagerToolsContainer(sidecarRenderedParam *cfgcm.CfgManagerBuildParams, toolsMetas []appsv1beta1.ToolConfig, toolsMap map[string]cfgcm.ConfigSpecMeta) ([]corev1.Container, error)
func BuildInstanceSet ¶ added in v0.9.0
func BuildInstanceSet(synthesizedComp *component.SynthesizedComponent, componentDef *appsv1.ComponentDefinition) (*workloads.InstanceSet, error)
BuildInstanceSet builds an InstanceSet object from SynthesizedComponent.
func BuildPVC ¶
func BuildPVC(cluster *appsv1.Cluster, synthesizedComp *component.SynthesizedComponent, vct *corev1.PersistentVolumeClaimTemplate, pvcKey types.NamespacedName, templateName, snapshotName string) *corev1.PersistentVolumeClaim
func BuildPersistentVolumeClaimLabels ¶
func BuildPersistentVolumeClaimLabels(component *component.SynthesizedComponent, pvc *corev1.PersistentVolumeClaim, pvcTplName, templateName string)
BuildPersistentVolumeClaimLabels builds a pvc name label, and synchronize the labels from component to pvc.
func BuildRoleBinding ¶
func BuildRoleBinding(synthesizedComp *component.SynthesizedComponent, saName string) *rbacv1.RoleBinding
func BuildServiceAccount ¶
func BuildServiceAccount(synthesizedComp *component.SynthesizedComponent, saName string) *corev1.ServiceAccount
func GetRestorePassword ¶ added in v0.9.0
func GetRestorePassword(synthesizedComp *component.SynthesizedComponent) string
GetRestorePassword gets restore password if exists during recovery.
func GetRestoreSystemAccountPassword ¶
func GetRestoreSystemAccountPassword(synthesizedComp *component.SynthesizedComponent, account appsv1.SystemAccount) string
GetRestoreSystemAccountPassword gets restore password if exists during recovery.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.