From cc4ee0f8bd379a3e45a4bb54a9070ff6e586746d Mon Sep 17 00:00:00 2001 From: Edson Dias Date: Tue, 15 Oct 2024 15:29:49 -0300 Subject: [PATCH] Disable Kubernetes application audit via config option. This commit aims to facilitate the application debugging process in scenarios where the audit task is not convenient, a configuration option, skip_k8s_application_audit, was added in the application framework section of sysinv.conf file to enable the possibility of turning the audit task on/off. If this option is enabled, then the system will skip the audit task. Also, the default value set to skip_k8s_application_audit is False. Test Plan: PASS: build-pkgs && build-image PASS: AIO-SX fresh install PASS: check if _k8s_application_audit is running PASS: set skip_k8s_application_audit as false in sysinv.conf && restart sysinv conductor. PASS: check if _k8s_application_audit stopped to work. Depends-on: https://review.opendev.org/c/starlingx/config/+/932329 Story: 2011242 Task: 51176 Change-Id: I77708a7d8be4a9c3254a15e13979277d96f20f33 Signed-off-by: Edson Dias --- puppet-manifests/src/modules/platform/manifests/sysinv.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/puppet-manifests/src/modules/platform/manifests/sysinv.pp b/puppet-manifests/src/modules/platform/manifests/sysinv.pp index 39387837a..fbb9e34b9 100644 --- a/puppet-manifests/src/modules/platform/manifests/sysinv.pp +++ b/puppet-manifests/src/modules/platform/manifests/sysinv.pp @@ -67,6 +67,7 @@ class platform::sysinv sysinv_config { 'app_framework/fluxcd_hr_reconcile_check_delay': value => 60; 'app_framework/missing_auto_update': value => true; + 'app_framework/skip_k8s_application_audit': value => false; } }