-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update KubeOps to support core group & wait for delete completion (#1199
) * Update KubeOps function to allow create & delete for core group resources * Add test case for KubeOps Delete core group resource * Remove core group permissions from clusterrole * Update KubeOps Delete operation to wait for resource to be deleted * Update testcase for kubeops delete on core group resource * Update KubeOps test to use existing svc spec * Update poll.Wait logic for waiting on delete operation to complete * Fix gofmt issues * Update wait.Poll to poll.Wait method & pass context from parent * Handle error from Delete() and add comment for using poll.Wait() * Add waitForResourceDeletion function * Remove redundant check for error * Revert createPhase method in kubeops_test.go * Update KubeOps test * Add comment to explain the waitForResourceDeletion function * Update comment for waitForResourceDeletion Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
4da55be
commit 5068148
Showing
3 changed files
with
64 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters