Skip to content

Commit

Permalink
Remove token from job pods
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Sep 5, 2024
1 parent 7dabe07 commit c836db3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/engine/src/core/tasks/executors/Application.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def execute(self):
# Pod template and pod template spec
template = client.V1PodTemplateSpec(
spec=client.V1PodSpec(
automount_service_account_token=False,
containers=[container],
restart_policy="Never",
volumes=volumes
Expand Down
1 change: 1 addition & 0 deletions src/engine/src/core/tasks/executors/Function.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def execute(self):
backoff_limit=0 if self.task.execution_profile.max_retries < 0 else self.task.execution_profile.max_retries,
template=client.V1PodTemplateSpec(
spec=client.V1PodSpec(
automount_service_account_token=False,
containers=[
client.V1Container(
name=job_name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,10 @@ def _create_job(self):
# Pod template and pod template spec
template = client.V1PodTemplateSpec(
spec=client.V1PodSpec(
containers=[container], restart_policy="Never", volumes=volumes
automount_service_account_token=False,
containers=[container],
restart_policy="Never",
volumes=volumes
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def _create_job(self):
# Pod template and pod template spec
template = V1PodTemplateSpec(
spec=V1PodSpec(
automount_service_account_token=False,
containers=[container],
restart_policy="Never",
volumes=volumes
Expand Down

0 comments on commit c836db3

Please sign in to comment.