From 259974eff2b039c44c4679f14d278a4a16a7f0d2 Mon Sep 17 00:00:00 2001 From: Francesco Torchia Date: Tue, 14 Jan 2025 18:10:59 +0100 Subject: [PATCH] Update notificationBlockList Signed-off-by: Francesco Torchia --- shell/config/settings.ts | 2 +- shell/plugins/steve/__tests__/header-warnings.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/config/settings.ts b/shell/config/settings.ts index 43c76e5bec3..d50e43cfb65 100644 --- a/shell/config/settings.ts +++ b/shell/config/settings.ts @@ -249,7 +249,7 @@ export const DEFAULT_PERF_SETTING: PerfSettings = { /** * Show warnings in a notification if they're not in this block list */ - notificationBlockList: ['299 - unknown field'] + notificationBlockList: ['299 - unknown field', '299 - "unknown field'] } }, serverPagination: { diff --git a/shell/plugins/steve/__tests__/header-warnings.test.ts b/shell/plugins/steve/__tests__/header-warnings.test.ts index 0f3bfd6d18c..11b7f4453aa 100644 --- a/shell/plugins/steve/__tests__/header-warnings.test.ts +++ b/shell/plugins/steve/__tests__/header-warnings.test.ts @@ -6,7 +6,7 @@ describe('steve: header-warnings', () => { function setupMocks(settings = { separator: '299 - ', - notificationBlockList: ['299 - unknown field'] + notificationBlockList: DEFAULT_PERF_SETTING.kubeAPI.warningHeader.notificationBlockList, }) { return { dispatch: jest.fn(), @@ -53,7 +53,7 @@ describe('steve: header-warnings', () => { const createKey = 'growl.kubeApiHeaderWarning.titleCreate'; const podSecurity = '299 - would violate PodSecurity "restricted:latest": unrestricted capabilities (container "container-0" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (container "container-0" must not set securityContext.runAsNonRoot=false), seccompProfile (pod or container "container-0" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")'; const deprecated = "299 - i'm deprecated"; - const validation = '299 - unknown field "spec.containers[0].__active"'; + const validation = '299 - "unknown field "spec.containers[0].__active"'; describe('no warnings', () => { it('put, no header warning', () => {