Merge pull request #117717 from saschagrunert/invalid-signature-error

Add support for CRI `ErrSignatureValidationFailed`
This commit is contained in:
Kubernetes Prow Robot
2023-05-05 10:39:25 -07:00
committed by GitHub
4 changed files with 74 additions and 11 deletions

View File

@@ -17,10 +17,20 @@ limitations under the License.
package errors
import (
"errors"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
var (
// ErrRegistryUnavailable - Get http error on the PullImage RPC call.
ErrRegistryUnavailable = errors.New("RegistryUnavailable")
// ErrSignatureValidationFailed - Unable to validate the image signature on the PullImage RPC call.
ErrSignatureValidationFailed = errors.New("SignatureValidationFailed")
)
// IsNotFound returns a boolean indicating whether the error
// is grpc not found error.
// See https://github.com/grpc/grpc/blob/master/doc/statuscodes.md