Skip to content

Commit

Permalink
Merge pull request #180 from openinfradev/primary_cluster
Browse files Browse the repository at this point in the history
primary-cluster: add mutex with organization_id for synchronization
  • Loading branch information
ktkfree authored May 16, 2023
2 parents 784a54e + f11c2a1 commit 15a8e6f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deploy_apps/tks-primary-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ spec:

templates:
- name: set-primary-cluster
synchronization:
mutex:
name: primary-cluster-{{workflow.parameters.organization_id}}
inputs:
parameters:
- name: primary_cluster
Expand Down Expand Up @@ -517,6 +520,9 @@ spec:
activeDeadlineSeconds: 900

- name: sub-get-cluster
synchronization:
mutex:
name: primary-cluster-{{workflow.parameters.organization_id}}
volumes:
- name: out
emptyDir: {}
Expand Down

0 comments on commit 15a8e6f

Please sign in to comment.