-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows Delete requests to carry options like GracePeriodSeconds, Preconditions, and PropagationPolicy. To use the default options, call Delete with the same signature as before: client.Delete(context.TODO(), obj) Delete options are passed to the request using the functional options pattern. This Delete call sets a GracePeriodSeconds: client.Delete(context.TODO(), obj, client.GracePeriodSeconds(1)) Multiple options can be set: client.Delete(context.TODO(), obj, client.GracePeriodSeconds(1), client.PropagationPolicy(metav1.DeletePropagationForeground))
- Loading branch information
Showing
3 changed files
with
136 additions
and
2 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