This is an automated email from the ASF dual-hosted git repository. squakez pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 4124d26b42c471b55a7317635e088b819c86e54c Author: kartik <[email protected]> AuthorDate: Sat Nov 21 17:40:58 2026 +1300 Work around container runAsNonRoot default in security-context e2e test --- e2e/common/traits/security_context_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/e2e/common/traits/security_context_test.go b/e2e/common/traits/security_context_test.go index d30ac97c8..bf8107ae8 100644 --- a/e2e/common/traits/security_context_test.go +++ b/e2e/common/traits/security_context_test.go @@ -75,9 +75,12 @@ func TestSecurityContextTrait(t *testing.T) { t.Run("Run as root is blocked when run-as-non-root is true", func(t *testing.T) { name := RandomizedSuffixName("java-sc-root") + // TODO: remove the container trait option once defaultContainerRunAsNonRoot + // defaults to true. See https://github.com/apache/camel-k/issues/6963 g.Expect(KamelRun(t, ctx, ns, "files/Java.java", "--name", name, "-t", "security-context.run-as-user=0", "-t", "security-context.run-as-non-root=true", + "-t", "container.run-as-non-root=true", ).Execute()).To(Succeed()) // The kubelet must refuse to start a container that would run as root.
