- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for HasLabel (0.56 sec)
-
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/helpers.go
func SetMetaDataAnnotation(obj *ObjectMeta, ann string, value string) { if obj.Annotations == nil { obj.Annotations = make(map[string]string) } obj.Annotations[ann] = value } // HasLabel returns a bool if passed in label exists func HasLabel(obj ObjectMeta, label string) bool { _, found := obj.Labels[label] return found } // SetMetaDataLabel sets the label and value
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 15 10:58:36 UTC 2022 - 9.6K bytes - Viewed (0)