factory

package
v0.9.2-beta.17 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: AGPL-3.0 Imports: 27 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildBackup

func BuildBackup(cluster *appsv1alpha1.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 BuildClusterRoleBinding

func BuildClusterRoleBinding(cluster *appsv1alpha1.Cluster, saName string) *rbacv1.ClusterRoleBinding

func BuildConfigMapWithTemplate

func BuildConfigMapWithTemplate(cluster *appsv1alpha1.Cluster,
	synthesizedComp *component.SynthesizedComponent,
	configs map[string]string,
	cmName string,
	configTemplateSpec appsv1alpha1.ComponentTemplateSpec) *corev1.ConfigMap

func BuildConnCredential

func BuildConnCredential(clusterDefinition *appsv1alpha1.ClusterDefinition, cluster *appsv1alpha1.Cluster,
	synthesizedComp *component.SynthesizedComponent) *corev1.Secret

func BuildInstanceSet added in v0.9.0

func BuildInstanceSet(synthesizedComp *component.SynthesizedComponent, componentDef *appsv1alpha1.ComponentDefinition) (*workloads.InstanceSet, error)

BuildInstanceSet builds an InstanceSet object from SynthesizedComponent.

func BuildPVC

func BuildPVC(cluster *appsv1alpha1.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(cluster *appsv1alpha1.Cluster, saName string) *rbacv1.RoleBinding

func BuildServiceAccount

func BuildServiceAccount(cluster *appsv1alpha1.Cluster, saName string) *corev1.ServiceAccount

func BuildVolumeSnapshotClass

func BuildVolumeSnapshotClass(name string, driver string) *snapshotv1.VolumeSnapshotClass

func GetRestorePassword added in v0.9.0

func GetRestorePassword(cluster *appsv1alpha1.Cluster, synthesizedComp *component.SynthesizedComponent) string

GetRestorePassword gets restore password if exists during recovery.

func GetRestoreSystemAccountPassword

func GetRestoreSystemAccountPassword(annotations map[string]string, componentName, accountName string) string

GetRestoreSystemAccountPassword gets restore password if exists during recovery.

Types

This section is empty.

Jump to

Keyboard shortcuts

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