Merge "Set proper user ID for armada-api container"

This commit is contained in:
Zuul 2021-04-20 18:24:33 +00:00 committed by Gerrit Code Review
commit 4e84b260a0
2 changed files with 27 additions and 1 deletions

View File

@ -17,6 +17,7 @@ Source0: %{name}-%{git_sha}.tar.gz
Patch1: 0001-Add-Helm-v2-client-initialization-using-tiller-postS.patch
Patch2: 0002-Add-configurations-for-Helm-SQL-storage-backend.patch
Patch3: 0003-Adjust-security-context-armada-api.patch
BuildArch: noarch
@ -31,7 +32,7 @@ BuildRequires: chartmuseum
%setup -n armada
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
# Package the armada chart tarball using methodology derived from:

View File

@ -0,0 +1,25 @@
From b6245bf904a6efbd2096de9d6530f84a6c9eb914 Mon Sep 17 00:00:00 2001
From: Marcus Secato <marcus.viniciuscarvalhosecato@windriver.com>
Date: Wed, 7 Apr 2021 16:20:17 -0400
Subject: [PATCH] Add security context to pod and containers
---
charts/armada/values.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/charts/armada/values.yaml b/charts/armada/values.yaml
index 5a61c96..e4dc801 100644
--- a/charts/armada/values.yaml
+++ b/charts/armada/values.yaml
@@ -269,7 +269,7 @@ pod:
security_context:
armada:
pod:
- runAsUser: 65534
+ runAsUser: 1000
container:
armada_api_init:
readOnlyRootFilesystem: true
--
2.29.2