From b5da5631907253c2618ad3e616e30048f9775f32 Mon Sep 17 00:00:00 2001 From: h0n9 Date: Wed, 5 Jun 2024 09:44:35 +0900 Subject: [PATCH] chore: Update annotation.go to handle default value for GetDecodeB64 --- webhook/annotation.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webhook/annotation.go b/webhook/annotation.go index 3e00dc9..661ce0f 100644 --- a/webhook/annotation.go +++ b/webhook/annotation.go @@ -117,7 +117,8 @@ func (a Annotations) GetOutput() (string, error) { func (a Annotations) GetDecodeB64() (bool, error) { value, err := a.getValue(AnnotationDecodeB64) if err != nil { - return false, err + // default value and no error + return false, nil } return strconv.ParseBool(value) }