Skip to content

Commit

Permalink
🩹(core): Sort generated manifests to have a predictable output
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Nicolaie <[email protected]>
  • Loading branch information
xunleii committed Aug 3, 2024
1 parent d8739f3 commit 71358ee
Show file tree
Hide file tree
Showing 3 changed files with 314 additions and 312 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ pub fn generate_secret_manifests(
});
}

manifests.sort_by(|a, b| a.metadata.name.cmp(&b.metadata.name));
Ok(manifests)
}

Expand Down Expand Up @@ -210,6 +211,7 @@ pub fn generate_rbac_manifests(
));
}

manifests.sort_by(|a, b| a.0.metadata.name.cmp(&b.0.metadata.name));
Ok(manifests)
}

Expand Down
Loading

0 comments on commit 71358ee

Please sign in to comment.