Implement new Destroy() interface from rest.Storage from Kube v1.25

This commit is contained in:
Ryan Richard 2022-08-24 12:04:38 -07:00
parent fe083f73fc
commit 03694d78a8
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
// Copyright 2020-2021 the Pinniped contributors. All Rights Reserved.
// Copyright 2020-2022 the Pinniped contributors. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package credentialrequest provides REST functionality for the CredentialRequest resource.
@ -59,6 +59,8 @@ func (*REST) New() runtime.Object {
return &loginapi.TokenCredentialRequest{}
}
func (*REST) Destroy() {}
func (*REST) NewList() runtime.Object {
return &loginapi.TokenCredentialRequestList{}
}

View File

@ -1,4 +1,4 @@
// Copyright 2021 the Pinniped contributors. All Rights Reserved.
// Copyright 2021-2022 the Pinniped contributors. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package whoamirequest
@ -45,6 +45,8 @@ func (*REST) New() runtime.Object {
return &identityapi.WhoAmIRequest{}
}
func (*REST) Destroy() {}
func (*REST) NewList() runtime.Object {
return &identityapi.WhoAmIRequestList{}
}