Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent sync operation for app in auto-sync mode #687

Merged
merged 3 commits into from
Mar 15, 2024

Conversation

lrochette
Copy link
Contributor

@lrochette lrochette commented Mar 7, 2024

What

Do not proceed with the sync action if an app is in auto-sync mode
Check for app existence before doing anything

Why

Create some conflict

Notes

Signed-off-by: Laurent Rochette <laurent.rochette@codefresh.io>
Signed-off-by: Laurent Rochette <laurent.rochette@codefresh.io>
print(f"ERROR application {APPLICATION} does not seem to exist")
sys.exit(3)

if application_autosync(ingress_host) == False:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to do another request, check autosync while checking existance

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed, I will refactor later as I need another call to check current sync status

@lrochette lrochette merged commit 2936640 into master Mar 15, 2024
2 checks passed
@lrochette lrochette deleted the lr-check-app-existence branch March 15, 2024 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants