LabelClusterName labels the object with the cluster name
(object *metav1.ObjectMeta, name string)
| 391 | |
| 392 | // LabelClusterName labels the object with the cluster name |
| 393 | func LabelClusterName(object *metav1.ObjectMeta, name string) { |
| 394 | if object.Labels == nil { |
| 395 | object.Labels = make(map[string]string) |
| 396 | } |
| 397 | |
| 398 | object.Labels[ClusterLabelName] = name |
| 399 | } |
| 400 | |
| 401 | // SetOperatorVersion set inside a certain object metadata the annotation |
| 402 | // containing the version of the operator that generated the object |
no outgoing calls
no test coverage detected