Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/aap_eda/services/activation/engine/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ def _create_pod_template_spec(
spec_kwargs: dict = {
"restart_policy": "Never",
"containers": [container],
"automount_service_account_token": False,
Comment thread
mkanoor marked this conversation as resolved.
}
if request.credential:
self._create_secret(request, log_handler)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ def capture_job(namespace, body):

spec = created_body.spec.template.spec
assert spec.service_account_name == "eda-workload"
assert spec.automount_service_account_token is False
labels = created_body.spec.template.metadata.labels
assert labels["app"] == "eda"
assert labels["job-name"] == engine.job_name
Expand Down Expand Up @@ -904,3 +905,4 @@ def test_engine_start_no_tolerations_by_default(
)
pod_spec = job_body.spec.template.spec
assert pod_spec.tolerations is None
assert pod_spec.automount_service_account_token is False
Loading