From c31f150c3e6f5b97555e1e2455b7f4e6e6776306 Mon Sep 17 00:00:00 2001 From: Jayson Santos Date: Wed, 11 Sep 2024 13:43:08 +0800 Subject: [PATCH] refactor: Update missing resource for cronjob checking rule k8s_042 --- .../verify_account_tokens_not_mounted_where_necessary.rego | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/checker/kubernetes/rules/verify_account_tokens_not_mounted_where_necessary.rego b/internal/checker/kubernetes/rules/verify_account_tokens_not_mounted_where_necessary.rego index 252911f09..9190cb810 100644 --- a/internal/checker/kubernetes/rules/verify_account_tokens_not_mounted_where_necessary.rego +++ b/internal/checker/kubernetes/rules/verify_account_tokens_not_mounted_where_necessary.rego @@ -11,6 +11,8 @@ package lib.kubernetes.CB_K8S_042 import data.lib.kubernetes +resource = kubernetes.resource + validResource := ["CronJob", "Pod"] isValid{ kubernetes.is_controller