Skip to content

Commit

Permalink
put sort back in
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Hendel committed Mar 14, 2023
1 parent 81028ba commit 8275894
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion coredb-operator/src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ impl CoreDB {
return Ok(Action::requeue(Duration::from_secs(1)));
}

let extensions: Vec<Extension> = reconcile_extensions(self, ctx.clone()).await.unwrap();
let mut extensions: Vec<Extension> = reconcile_extensions(self, ctx.clone()).await.unwrap();
// must be sorted same, else reconcile will trigger again
extensions.sort_by_key(|e| e.name.clone());

let new_status = Patch::Apply(json!({
"apiVersion": "coredb.io/v1alpha1",
Expand Down

0 comments on commit 8275894

Please sign in to comment.