Skip to content

Commit

Permalink
Rename decommission_util
Browse files Browse the repository at this point in the history
  • Loading branch information
WalBeh committed Oct 11, 2024
1 parent 5916259 commit 93c256d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions crate/operator/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,11 @@ def get_statefulset_containers(
command=[
"/bin/sh",
"-c",
"curl -O"
"https://cdn.crate.io/downloads/tmp/decommission_util && " # noqa
"chmod u+x ./decommission_util && "
"./decommission_util -min-availability PRIMARIES "
"ARCH=$(uname -m) && "
"curl -O "
"https://cdn.crate.io/downloads/dc_util_$ARCH && " # noqa
"chmod u+x ./dc_util_$ARCH && \n"
"./dc_util_$ARCH -min-availability PRIMARIES "
f"-timeout {DECOMMISSION_TIMEOUT}",
]
)
Expand Down Expand Up @@ -947,7 +948,7 @@ async def create_statefulset(
body=pdb,
)
"""
A ClusterRole is required to allow the POD to access the
A Role is required to allow the POD to access the
number of replicas in the StatefulSet. This is required for the
pre-stop lifecycle hook to work correctly and detect a scale to 0.
"""
Expand Down Expand Up @@ -979,7 +980,7 @@ async def create_statefulset(
),
role_ref=V1RoleRef(
api_group="rbac.authorization.k8s.io",
kind="ClusterRole",
kind="Role",
name=f"crate-{name}",
),
subjects=[
Expand Down

0 comments on commit 93c256d

Please sign in to comment.