Skip to content

Commit

Permalink
Allow passing empty labels in the driver config
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Logvinenko authored and logarithm committed Jan 23, 2025
1 parent c092d44 commit bbdcb82
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def start_spark_job(self, image=None, code_path=None, startup_timeout: int = 600
# Wait for the driver pod to come alive
self.pod_spec = k8s.V1Pod(
metadata=k8s.V1ObjectMeta(
labels=self.spark_obj_spec["spec"]["driver"]["labels"],
labels=self.spark_obj_spec["spec"]["driver"].get("labels"),
name=self.spark_obj_spec["metadata"]["name"] + "-driver",
namespace=self.namespace,
)
Expand Down

0 comments on commit bbdcb82

Please sign in to comment.