henry3260 commented on code in PR #60677:
URL: https://github.com/apache/airflow/pull/60677#discussion_r2844892807


##########
helm-tests/tests/helm_tests/airflow_aux/test_pod_template_file.py:
##########
@@ -1384,3 +1384,115 @@ def test_kerberos_init_container_resources(self, 
workers_values):
                 "memory": "4Mi",
             },
         }
+
+    @pytest.mark.parametrize(
+        ("workers_values", "expected"),
+        [
+            (
+                {
+                    "kerberosInitContainer": {
+                        "enabled": True,
+                        "securityContexts": {"container": {"runAsUser": 1000}},
+                    }
+                },
+                {"runAsUser": 1000},
+            ),
+            (
+                {
+                    "kubernetes": {
+                        "kerberosInitContainer": {
+                            "enabled": True,
+                            "securityContexts": {"container": {"runAsUser": 
2000}},
+                        }
+                    }
+                },
+                {"runAsUser": 2000},
+            ),
+            (
+                {
+                    "kerberosInitContainer": {
+                        "enabled": True,
+                        "securityContexts": {"container": {"runAsUser": 1000}},
+                    },
+                    "kubernetes": {
+                        "kerberosInitContainer": {
+                            "enabled": True,
+                            "securityContexts": {"container": {"runAsUser": 
2000}},
+                        }
+                    },
+                },
+                {"runAsUser": 2000},
+            ),
+        ],
+    )
+    def test_kerberos_init_container_security_context(self, workers_values, 
expected):

Review Comment:
   > Contributor
   
   Good catch! applied



-- 
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