MCPcopy
hub / github.com/apecloud/kubeblocks / getCompLabelValue

Function getCompLabelValue

pkg/controller/component/component.go:113–115  ·  view source on GitHub ↗
(comp *appsv1.Component, label string)

Source from the content-addressed store, hash-verified

111}
112
113func getCompLabelValue(comp *appsv1.Component, label string) (string, error) {
114 return getCompValueFromMap(comp, comp.Labels, "label", label)
115}
116
117func getCompValueFromMap(comp *appsv1.Component, m map[string]string, tp string, key string) (string, error) {
118 if m == nil {

Callers 1

GetClusterNameFunction · 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…