File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
crates/stackable-operator/src/patchinator Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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.
2125pub fn apply_patches < R > ( base : & mut R , patches : ObjectOverrides ) -> Result < ( ) , Error >
2226where
2327 R : kube:: Resource < DynamicType = ( ) > + DeepMerge + DeserializeOwned ,
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.
3139pub fn apply_patch < R > ( base : & mut R , patch : DynamicObject ) -> Result < ( ) , Error >
3240where
3341 R : kube:: Resource < DynamicType = ( ) > + DeepMerge + DeserializeOwned ,
You can’t perform that action at this time.
0 commit comments