Skip to content

Commit b288584

Browse files
authored
Fix error when updating a cluster that already has JobSet (#622)
Recently, `cluster create-pathways` has been failing with a conflict while installing JobSet on pre-existing clusters. This change adds `--force-conflicts` which resolves the issue.
1 parent 43c7157 commit b288584

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xpk/core/cluster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def set_jobset_on_cluster(args) -> int:
6262
0 if successful and 1 otherwise.
6363
"""
6464
command = (
65-
'kubectl apply --server-side -f'
66-
f' https://github.com/kubernetes-sigs/jobset/releases/download/{JOBSET_VERSION}/manifests.yaml'
65+
'kubectl apply --server-side --force-conflicts'
66+
f' -f https://github.com/kubernetes-sigs/jobset/releases/download/{JOBSET_VERSION}/manifests.yaml'
6767
)
6868
task = f'Install Jobset on {args.cluster}'
6969
return_code = run_command_with_updates_retry(command, task, args)

0 commit comments

Comments
 (0)