uranusjr commented on code in PR #25530:
URL: https://github.com/apache/airflow/pull/25530#discussion_r938502022


##########
kubernetes_tests/test_kubernetes_pod_operator.py:
##########
@@ -495,12 +513,11 @@ def test_run_as_user_root(self):
         self.expected_pod['spec']['securityContext'] = security_context
         assert self.expected_pod == actual_pod
 
-    def test_run_as_user_non_root(self):
+    def test_disable_privilege_escalation(self):
         security_context = {
-            'securityContext': {
-                'runAsUser': 1000,
-            }
+            'runAsUser': 1000,
         }
+        container_security_context = {'allowPrivilegeEscalation': false}

Review Comment:
   ```suggestion
           container_security_context = {'allowPrivilegeEscalation': False}
   ```
   
   ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to