SetInheritedDataAndOwnership sets the cluster as owner of the passed object and then sets all the needed annotations and labels
(obj *metav1.ObjectMeta)
| 1315 | // SetInheritedDataAndOwnership sets the cluster as owner of the passed object and then |
| 1316 | // sets all the needed annotations and labels |
| 1317 | func (cluster *Cluster) SetInheritedDataAndOwnership(obj *metav1.ObjectMeta) { |
| 1318 | cluster.SetInheritedData(obj) |
| 1319 | utils.SetAsOwnedBy(obj, cluster.ObjectMeta, cluster.TypeMeta) |
| 1320 | } |
| 1321 | |
| 1322 | // SetInheritedData sets all the needed annotations and labels |
| 1323 | func (cluster *Cluster) SetInheritedData(obj *metav1.ObjectMeta) { |