MCPcopy
hub / github.com/helm/helm / filterSystemLabels

Function filterSystemLabels

pkg/storage/driver/util.go:96–104  ·  view source on GitHub ↗

Removes system labels from labels map

(lbs map[string]string)

Source from the content-addressed store, hash-verified

94
95// Removes system labels from labels map
96func filterSystemLabels(lbs map[string]string) map[string]string {
97 result := make(map[string]string)
98 for k, v := range lbs {
99 if !isSystemLabel(k) {
100 result[k] = v
101 }
102 }
103 return result
104}
105
106// Checks if labels array contains system labels
107func ContainsSystemLabels(lbs map[string]string) bool {

Callers 6

CreateMethod · 0.85
TestFilterSystemLabelsFunction · 0.85
GetMethod · 0.85
GetMethod · 0.85
TestSqlCreateFunction · 0.85

Calls 1

isSystemLabelFunction · 0.85

Tested by 2

TestFilterSystemLabelsFunction · 0.68
TestSqlCreateFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…