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

GPE-1122 adding logic to exit a gitops sync if the new json contains invalid json #2377

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

EliseCastle23
Copy link
Contributor

@EliseCastle23 EliseCastle23 commented Oct 5, 2023

Tested manually

Improvements

gitops sync will fail if there is a json syntax error anywhere in the manifest.json

@paulineribeyre paulineribeyre self-requested a review October 5, 2023 22:08
@paulineribeyre paulineribeyre changed the title adding logic to exit a gitops sync if the new json contains invalid json GPE-1122 adding logic to exit a gitops sync if the new json contains invalid json Oct 6, 2023
echo "old JSON is: $oldJson"
echo "new JSON is: $newJson"
newJson=$(g3k_config_lookup ".versions")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this update will make sure it fails if any part of the manifest is invalid json, not just the "versions" section, if that's the case could you update the PR description

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes! Thanks so much Pauline :D Just updated the description

@emalinowski emalinowski merged commit 140e79f into master Oct 16, 2023
1 of 3 checks passed
@emalinowski emalinowski deleted the feat/GPE-1122 branch October 16, 2023 21:00
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.

3 participants