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

Fixing bug #256

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Fixing bug #256

merged 1 commit into from
Jul 19, 2024

Conversation

lvarin
Copy link
Contributor

@lvarin lvarin commented Jul 19, 2024

IMPORTANT: Please create an issue before filing a pull request! Changes need to be discussed before proceeding. Please read the contribution guidelines.

Details

Please provide enough information so that others can review your pull request. Give a brief summary of the motivation. Refer to the corresponding issue/s with #XXXX for more information.

Testing

Write the appropriate unit and integration tests, if applicable. Make sure these and all other tests pass.

Documentation

Please document your changes and test cases in the appropriate places, if applicable.

Style

Make sure your changes adhere to the coding/documentation style used throughout the project.

Closing issues

If your changes fix any issue/s, put closes #XXXX in your comment to auto-close it/them.

Credit

Add your credentials to the list of contributors once your pull request was merged.

Summary by Sourcery

This pull request addresses a syntax error in the update-config-map.sh script, ensuring the script exits correctly when the 'yq' command is not found.

  • Bug Fixes:
    • Fixed a syntax error in the update-config-map.sh script to ensure proper exit when 'yq' command is not found.

@lvarin lvarin requested a review from jemaltahir July 19, 2024 07:03
Copy link

sourcery-ai bot commented Jul 19, 2024

Reviewer's Guide by Sourcery

This pull request addresses a bug in the 'update-config-map.sh' script. The change corrects a syntax error in the command that checks for the presence of 'yq'. The fix ensures that the script exits properly if 'yq' is not found.


Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @lvarin - I've reviewed your changes and found some issues that need to be addressed.

Blocking issues:

  • Syntax error in the command substitution. (link)
Here's what I looked at during the review
  • 🔴 General issues: 1 blocking issue
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

@@ -43,7 +43,7 @@ echo "Current Kubernetes namespace: $NAMESPACE"; echo

echo " * Getting current default configuration"

command -V yq || echo "yq not found, exiting"; exit 6
command -V yq || { echo "yq not found, exiting"; exit 6}
Copy link

Choose a reason for hiding this comment

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

issue (bug_risk): Syntax error in the command substitution.

The closing brace '}' should be followed by a semicolon to properly terminate the command block. The corrected line should be: command -V yq || { echo "yq not found, exiting"; exit 6; }.

Copy link

@jemaltahir jemaltahir left a comment

Choose a reason for hiding this comment

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

LGTM

@jemaltahir jemaltahir merged commit 38597a4 into dev Jul 19, 2024
3 checks passed
@jemaltahir jemaltahir deleted the ups branch July 19, 2024 07:29
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.

2 participants