forked from antrea-io/antrea
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ClusterClaim deletion webhook bug (antrea-io#5075)
After K8s 1.16, the req.Object in a deletion request is empty, and only req.OldObject will be provided, so change the ClusterClaim webhook to decode OldObject if it is a deletion operation. This change will fix a bug that ClusterCliam cannot to be deleted with an error: "Error from server: error when deleting "clusterclaims.yaml": admission webhook "vclusterclaim.kb.io" denied the request: there is no content to decode" Signed-off-by: Lan Luo <[email protected]>
- Loading branch information
1 parent
85917f5
commit 5ae8e40
Showing
2 changed files
with
9 additions
and
4 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