-
Notifications
You must be signed in to change notification settings - Fork 18
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
Fixing bug #256
Conversation
Reviewer's Guide by SourceryThis 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
|
There was a problem hiding this 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
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} |
There was a problem hiding this comment.
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; }
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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.