Skip to content

Commit

Permalink
Delete correct pod name, ensure pods may be deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkleeman committed Mar 4, 2024
1 parent a40624b commit 766c6b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions charts/restate-operator-helm/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ rules:
- networkpolicies
- statefulsets
- persistentvolumeclaims
- pods
verbs:
- get
- list
Expand All @@ -59,6 +60,7 @@ rules:
- resources:
- statefulsets
- networkpolicies
- pods
verbs:
- delete
apiGroups:
Expand Down
4 changes: 1 addition & 3 deletions src/reconcilers/compute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,7 @@ async fn check_pia(
);

// delete pod to try again next time
pod_api
.delete("restate-canary", &Default::default())
.await?;
pod_api.delete(name, &Default::default()).await?;

Ok(false)
}
Expand Down

0 comments on commit 766c6b4

Please sign in to comment.