Skip to content

Commit

Permalink
Merge pull request #1064 from AmericanAirlines/upstream-enable-FailOn…
Browse files Browse the repository at this point in the history
…SharedResource

adding enable FailOnSharedResource
  • Loading branch information
Xantier authored Jul 26, 2023
2 parents 6f31799 + 23ca55f commit 8d45989
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/little-forks-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@roadiehq/backstage-plugin-argo-cd-backend': minor
---

Adding FailOnSharedResource=true to syncOptions when an argo app is created to prevent dueling argo applications
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ export class ArgoService implements ArgoServiceApi {
},
limit: 10,
},
syncOptions: ['CreateNamespace=false'],
syncOptions: ['CreateNamespace=false', 'FailOnSharedResource=true'],
},
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export const argocdCreateApplicationResp = {
selfHeal: true,
allowEmpty: true,
},
syncOptions: ['CreateNamespace=false'],
syncOptions: ['CreateNamespace=false', 'FailOnSharedResource=true'],
retry: {
limit: 10,
backoff: {
Expand Down Expand Up @@ -329,7 +329,7 @@ export const syncResp = {
selfHeal: true,
allowEmpty: true,
},
syncOptions: ['CreateNamespace=false'],
syncOptions: ['CreateNamespace=false', 'FailOnSharedResource=true'],
retry: {
limit: 10,
backoff: {
Expand Down Expand Up @@ -410,7 +410,7 @@ export const syncResp = {
force: true,
},
},
syncOptions: ['CreateNamespace=false'],
syncOptions: ['CreateNamespace=false', 'FailOnSharedResource=true'],
},
initiatedBy: {
username: 'testnamespace',
Expand Down

0 comments on commit 8d45989

Please sign in to comment.