MCPcopy
hub / github.com/kubernetes/kubectl / MakeLabels

Function MakeLabels

pkg/polymorphichelpers/mapbasedselectorforobject.go:154–160  ·  view source on GitHub ↗
(labels map[string]string)

Source from the content-addressed store, hash-verified

152}
153
154func MakeLabels(labels map[string]string) string {
155 out := []string{}
156 for key, value := range labels {
157 out = append(out, fmt.Sprintf("%s=%s", key, value))
158 }
159 return strings.Join(out, ",")
160}

Callers 2

RunExposeMethod · 0.92

Calls 1

JoinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…