package
0.9.4-beta.2
Repository: https://github.com/apecloud/kubeblocks.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
BuildComponent builds a new Component object from cluster component spec and definition.
No description provided by the author
BuildJobTolerations builds the job tolerations.
BuildSynthesizedComponent builds a new SynthesizedComponent object, which is a mixture of component-related configs from ComponentDefinition and Component.
BuildSynthesizedComponent4Generated builds SynthesizedComponent for generated Component which w/o ComponentDefinition.
BuildSynthesizedComponentWrapper builds a new SynthesizedComponent object with a given ClusterComponentSpec.
BuildSynthesizedComponentWrapper4Test builds a new SynthesizedComponent object with a given ClusterComponentSpec.
BuildWorkloadFrom builds a new Component object based on SynthesizedComponent.
CheckJobSucceed checks the result of job execution.
CleanJobByName cleans up the job task by name.
CleanJobByNameWithDAG cleans up the job task by name with DAG.
CleanJobWithLabels cleans up the job tasks with label.
CompareServiceVersion compares whether two service version have the same major, minor and patch version.
CompatibleCompVersions4Definition returns all component versions that are compatible with specified component definition.
No description provided by the author
ConvertSynthesizeCompRoleToInstanceSetRole converts the component.SynthesizedComponent.Roles to workloads.ReplicaRole.
No description provided by the author
GenerateAllPodNames generate all pod names for a component.
GenerateAllPodNamesToSet generate all pod names for a component and return a set which key is the pod name and value is a template name.
GetClusterComponentShortNameSet gets the component short name set of the cluster.
No description provided by the author
No description provided by the author
GetCompDefByName gets the component definition by component definition name.
No description provided by the author
No description provided by the author
GetComponentPodList gets the pod list by cluster and componentName.
GetComponentPodListWithRole gets the pod list with target role by cluster and componentName.
No description provided by the author
GetEnvReplacementMapForConnCredential gets the replacement map for connect credential TODO: deprecated, will be removed later.
No description provided by the author
GetJobWithLabels gets the job list with the specified labels.
GetMinReadySeconds gets the underlying workload's minReadySeconds of the component.
GetObjectListByComponentName gets k8s workload list with component.
GetReplacementMapForBuiltInEnv gets the replacement map for KubeBlocks built-in environment variables.
No description provided by the author
No description provided by the author
No description provided by the author
IsGenerated checks if the component is generated from legacy cluster definitions.
No description provided by the author
ListClusterComponents lists the components of the cluster.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ParseComponentClasses parses ComponentClassDefinition to component classes.
ReconcileCompPostProvision reconciles the component-level postProvision command.
ReconcileCompPreTerminate reconciles the component-level preTerminate command.
ReplaceNamedVars replaces the placeholder in targetVar if it is match and returns the replaced result.
ReplaceSecretEnvVars replaces the env secret value with namedValues and returns new envs.
No description provided by the author
ResolveTemplateNEnvVars resolves all built-in and user-defined vars for config template and Env usage.
No description provided by the author
UpdateCompDefinitionImages4ServiceVersion resolves and updates images for the component definition.
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
PostProvisionAction represents the post-provision action.
PreTerminateAction represents the pre-terminate action.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ActionContext represents the context for lifecycle action.
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
LifeCycleActionType represents the lifecycle action type.