MCPcopy Index your code
hub / github.com/apecloud/kubeblocks / GetClusterUID

Function GetClusterUID

pkg/controller/component/component.go:53–55  ·  view source on GitHub ↗
(comp *appsv1.Component)

Source from the content-addressed store, hash-verified

51}
52
53func GetClusterUID(comp *appsv1.Component) (string, error) {
54 return getCompAnnotationValue(comp, constant.KBAppClusterUIDKey)
55}
56
57// BuildComponent builds a new Component object from cluster component spec and definition.
58func BuildComponent(cluster *appsv1.Cluster, compSpec *appsv1.ClusterComponentSpec, labels, annotations map[string]string) (*appsv1.Component, error) {

Callers 1

Calls 1

getCompAnnotationValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…