From 73dc468b0a84cae58dde90a55b47f077ecffdb71 Mon Sep 17 00:00:00 2001 From: gshaibi Date: Thu, 28 Nov 2024 11:27:10 +0200 Subject: [PATCH] add error handling for SELinux context setting in hostpath-init-configmap.yaml --- .../templates/status-exporter/hostpath-init-configmap.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/fake-gpu-operator/templates/status-exporter/hostpath-init-configmap.yaml b/deploy/fake-gpu-operator/templates/status-exporter/hostpath-init-configmap.yaml index acebeda..c9fa170 100644 --- a/deploy/fake-gpu-operator/templates/status-exporter/hostpath-init-configmap.yaml +++ b/deploy/fake-gpu-operator/templates/status-exporter/hostpath-init-configmap.yaml @@ -12,5 +12,6 @@ data: # Allow containers to read/write to RUNAI_DIR chmod 777 $RUNAI_DIR - chcon -Rt svirt_sandbox_file_t $RUNAI_DIR + chcon -Rt svirt_sandbox_file_t $RUNAI_DIR || echo "Failed to set SELinux context, this is expected if SELinux is not enabled" +