Skip to content

Commit 8a7cefc

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 google-api-python-client, aiohttp, and google-cloud libs to root Pipfile.
1 parent ef45b31 commit 8a7cefc

File tree

3 files changed

+68
-16
lines changed

3 files changed

+68
-16
lines changed

Pipfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ kubernetes = "==34.1.0"
1414
google-api-python-client = "==2.93.0"
1515
aiohttp = "==3.10.5"
1616
google-cloud-storage = "==2.10.0"
17+
google-cloud-secret-manager = "==2.17.0"
18+
google-cloud-logging = "==3.6.0"
19+
google-cloud-monitoring = "==2.15.1"
20+
google-cloud-datastore = "==2.16.1"
1721

1822
[dev-packages]
1923
Fabric = "==1.14.1"

Pipfile.lock

Lines changed: 63 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

local/tests/kubernetes_e2e_test.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pip install pipenv
2020

2121
# Install dependencies.
2222
pipenv --python 3.11
23-
pipenv install --dev
23+
pipenv install
2424

2525
# Run the test.
2626
export K8S_E2E=1

0 commit comments

Comments
 (0)