Skip to content

Commit

Permalink
add delete migration job
Browse files Browse the repository at this point in the history
Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com>
  • Loading branch information
zhou1203 committed Oct 13, 2022
1 parent fa4e14c commit 1d3db6d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions roles/ks-core/ks-core/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,15 @@
{{ bin_dir }}/kubectl get globalroles.iam.kubesphere.io users-manager workspaces-manager --no-header | wc -l
register: manager_result

- name: Kubesphere | Checking migration job
shell: >
{{ bin_dir }}/kubectl delete -f {{ kubesphere_dir }}/ks-upgrade.yaml
when:
- manager_result.stdout != "0"
failed_when: false



- name: KubeSphere | Creating migration job
shell: >
{{ bin_dir }}/kubectl apply -f {{ kubesphere_dir }}/ks-upgrade.yaml
Expand Down

0 comments on commit 1d3db6d

Please sign in to comment.