Labels initializes the Labels of object when they are nil.
(object metav1.Object)
| 17 | |
| 18 | // Labels initializes the Labels of object when they are nil. |
| 19 | func Labels(object metav1.Object) { |
| 20 | if object != nil && object.GetLabels() == nil { |
| 21 | object.SetLabels(make(map[string]string)) |
| 22 | } |
| 23 | } |
no outgoing calls