(sandbox: &Sandbox)
| 855 | } |
| 856 | |
| 857 | fn sandbox_labels(sandbox: &Sandbox) -> BTreeMap<String, String> { |
| 858 | let mut labels = BTreeMap::new(); |
| 859 | labels.insert(LABEL_SANDBOX_ID.to_string(), sandbox.id.clone()); |
| 860 | labels.insert( |
| 861 | LABEL_MANAGED_BY.to_string(), |
| 862 | LABEL_MANAGED_BY_VALUE.to_string(), |
| 863 | ); |
| 864 | labels |
| 865 | } |
| 866 | |
| 867 | fn sandbox_id_from_object(obj: &DynamicObject) -> Result<String, String> { |
| 868 | if let Some(labels) = obj.metadata.labels.as_ref() |