Skip to content

Commit

Permalink
Merge pull request #60 from MinaFoundation/do-not-disrupt-annotation
Browse files Browse the repository at this point in the history
PM-1985 - Migrate do-not-disrupt annotation
  • Loading branch information
piotr-iohk authored Sep 20, 2024
2 parents 91606a7 + 02689cc commit 35086d3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions uptime_service_validation/coordinator/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ def setUpValidatorPods(time_intervals, logging, worker_image, worker_tag):
for index, mini_batch in enumerate(time_intervals):

# Job name
job_group_name = f"delegation-verify-{datetime.now(timezone.utc).strftime('%y-%m-%d-%H-%M')}"
job_group_name = (
f"delegation-verify-{datetime.now(timezone.utc).strftime('%y-%m-%d-%H-%M')}"
)
job_name = f"{job_group_name}-{index}"

# Define the environment variables
Expand Down Expand Up @@ -233,7 +235,7 @@ def setUpValidatorPods(time_intervals, logging, worker_image, worker_tag):
volume_mounts=[auth_volume_mount],
)

pod_annotations = {"karpenter.sh/do-not-evict": "true"}
pod_annotations = {"karpenter.sh/do-not-disrupt": "true"}
pod_labels = {"job-group-name": job_group_name}

# Create the job
Expand All @@ -245,8 +247,7 @@ def setUpValidatorPods(time_intervals, logging, worker_image, worker_tag):
ttl_seconds_after_finished=ttl_seconds,
template=client.V1PodTemplateSpec(
metadata=client.V1ObjectMeta(
annotations=pod_annotations,
labels=pod_labels
annotations=pod_annotations, labels=pod_labels
),
spec=client.V1PodSpec(
topology_spread_constraints=[
Expand Down

0 comments on commit 35086d3

Please sign in to comment.