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

Function getCompAnnotationValue

pkg/controller/component/component.go:109–111  ·  view source on GitHub ↗
(comp *appsv1.Component, annotation string)

Source from the content-addressed store, hash-verified

107}
108
109func getCompAnnotationValue(comp *appsv1.Component, annotation string) (string, error) {
110 return getCompValueFromMap(comp, comp.Annotations, "annotation", annotation)
111}
112
113func getCompLabelValue(comp *appsv1.Component, label string) (string, error) {
114 return getCompValueFromMap(comp, comp.Labels, "label", label)

Callers 1

GetClusterUIDFunction · 0.85

Calls 1

getCompValueFromMapFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…