Implement Destroy() method for all registries

This commit is contained in:
Wojciech Tyczyński
2022-04-05 12:26:22 +02:00
parent 0527a0dd45
commit 80060a502c
47 changed files with 356 additions and 5 deletions

View File

@@ -54,6 +54,12 @@ func (r *REST) New() runtime.Object {
return &authentication.TokenReview{}
}
// Destroy cleans up resources on shutdown.
func (r *REST) Destroy() {
// Given no underlying store, we don't destroy anything
// here explicitly.
}
func (r *REST) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error) {
tokenReview, ok := obj.(*authentication.TokenReview)
if !ok {