Skip to content

Commit

Permalink
apply to From
Browse files Browse the repository at this point in the history
  • Loading branch information
nacardin committed Oct 4, 2024
1 parent 4425bd6 commit 5c3ae14
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/k8-types/src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ impl ObjectMeta {
name: self.name.clone(),
namespace: self.namespace.clone(),
owner_references: self.owner_references.clone(),
labels: self.labels.clone(),
finalizers: self.finalizers.clone(),
annotations: self.annotations.clone(),
..Default::default()
}
}

Expand Down Expand Up @@ -228,7 +226,10 @@ impl From<ObjectMeta> for InputObjectMeta {
Self {
name: meta.name,
namespace: meta.namespace,
..Default::default()
labels: meta.labels,
finalizers: meta.finalizers,
annotations: meta.annotations,
owner_references: meta.owner_references,
}
}
}
Expand Down

0 comments on commit 5c3ae14

Please sign in to comment.