From dd2924068f1b822364302f5a01ab013009741fc2 Mon Sep 17 00:00:00 2001 From: Jon Andrew Date: Mon, 21 Oct 2024 11:56:40 -0600 Subject: [PATCH] Make typechecker great again --- src/pepr/operator/secrets.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pepr/operator/secrets.ts b/src/pepr/operator/secrets.ts index ef13b7693..284b2ab80 100644 --- a/src/pepr/operator/secrets.ts +++ b/src/pepr/operator/secrets.ts @@ -89,7 +89,7 @@ export function checkAnnotationsAndMetadata(data: a.Secret): FailReason { export async function copySecret(request: PeprMutateRequest) { const annotations = request.Raw.metadata?.annotations; - if (checkAnnotationsAndMetadata(request.Raw) !== FailReason.OK) { + if (!annotations) { // if there are no annotations, we can't do anything, we'll deny. // in the validation step, the missing annotations will be noticed and an // appropriate error message generated.