Skip to content

Commit 0d6c134

Browse files
committed
Add some rustdocs
1 parent e28d64e commit 0d6c134

File tree

1 file changed

+8
-0
lines changed
  • crates/stackable-operator/src/patchinator

1 file changed

+8
-0
lines changed

crates/stackable-operator/src/patchinator/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ pub enum Error {
1818
},
1919
}
2020

21+
// Takes an arbitrary Kubernetes object (`base`) and applies the given list of patches onto it.
22+
//
23+
// Patches are only applied to objects that have the same apiVersion, kind, name
24+
// and namespace.
2125
pub fn apply_patches<R>(base: &mut R, patches: ObjectOverrides) -> Result<(), Error>
2226
where
2327
R: kube::Resource<DynamicType = ()> + DeepMerge + DeserializeOwned,
@@ -28,6 +32,10 @@ where
2832
Ok(())
2933
}
3034

35+
// Takes an arbitrary Kubernetes object (`base`) and applies the patch.
36+
//
37+
// Patches are only applied to objects that have the same apiVersion, kind, name
38+
// and namespace.
3139
pub fn apply_patch<R>(base: &mut R, patch: DynamicObject) -> Result<(), Error>
3240
where
3341
R: kube::Resource<DynamicType = ()> + DeepMerge + DeserializeOwned,

0 commit comments

Comments
 (0)