Skip to content

Commit f40cbdb

Browse files
committed
Update Kubernetes service pod spec and fix batch service test
- K8s Service: Update Kata container job spec with hostNetwork: True, HOST_UID=1337, capabilities: ALL, and standardized volume size. Skip default credential loading if K8S_E2E env var is set. - K8s Tests: Update unit tests to verify spec generation and mock correctly. Update e2e tests to verify job Running status instead of completion to avoid timeouts with default command. Skip e2e test if K8S_E2E env var is not set. - Local Tests: Update kubernetes e2e test script with correct filename. - Batch Service Test: Fix mock return value to be a Job object to resolve AttributeError. - Deps: Add necessary google-cloud and http libs to root Pipfile for e2e tests. - CI: Install JDK 21 in kubernetes-e2e-tests workflow for Datastore emulator.
1 parent 7b08cbf commit f40cbdb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/kubernetes-e2e-tests.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,11 @@ jobs:
3232
with:
3333
python-version: 3.11
3434

35+
- name: Set up JDK 21
36+
uses: actions/setup-java@v3
37+
with:
38+
java-version: '21'
39+
distribution: 'temurin'
40+
3541
- name: Run Kubernetes e2e tests
3642
run: ./local/tests/kubernetes_e2e_test.bash

local/tests/kubernetes_e2e_test.bash

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ pip install pipenv
2222
pipenv --python 3.11
2323
pipenv install
2424

25+
./local/install_deps.bash
26+
2527
# Run the test.
2628
export K8S_E2E=1
2729
pipenv run python butler.py py_unittest -t core -p k8s_service_e2e_test.py

0 commit comments

Comments
 (0)