-
Notifications
You must be signed in to change notification settings - Fork 4
MLE-22135 Port Helm change to Operator #93
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
Changes from 17 commits
b1f51e9
04cfc62
b40bc80
60aa994
46962f5
73477c0
188d5e8
521229c
e53bd98
c9ab1d0
62cc96b
8f655ef
be4bb57
6a7df0e
931d4e7
33de6c0
c8626c8
9a0a3e2
604f705
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -53,6 +53,25 @@ log () { | |||||||||||||||||||||
| echo $message >> /tmp/script.log | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| # Function to retry a command based on the return code | ||||||||||||||||||||||
| # $1: The number of retries | ||||||||||||||||||||||
| # $2: The command to run | ||||||||||||||||||||||
| retry() { | ||||||||||||||||||||||
| local retries=$1 | ||||||||||||||||||||||
| shift | ||||||||||||||||||||||
| local count=0 | ||||||||||||||||||||||
| until "$@"; do | ||||||||||||||||||||||
| exit_code=$? | ||||||||||||||||||||||
| count=$((count + 1)) | ||||||||||||||||||||||
| if [ $count -ge $retries ]; then | ||||||||||||||||||||||
| echo "Command failed after $retries attempts." | ||||||||||||||||||||||
| return $exit_code | ||||||||||||||||||||||
| fi | ||||||||||||||||||||||
| echo "Attempt $count failed. Retrying..." | ||||||||||||||||||||||
|
Comment on lines
+67
to
+70
|
||||||||||||||||||||||
| echo "Command failed after $retries attempts." | |
| return $exit_code | |
| fi | |
| echo "Attempt $count failed. Retrying..." | |
| log "Error" "Command failed after $retries attempts." | |
| return $exit_code | |
| fi | |
| log "Info" "Attempt $count failed. Retrying..." |
Copilot
AI
Jul 8, 2025
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.
[nitpick] Replace this echo with the log helper to ensure consistent logging with timestamps and PID handling.
| echo "Attempt $count failed. Retrying..." | |
| info "Attempt $count failed. Retrying..." |
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.
setting huge pages is required to verify the huge pages.
please comment if I am missing anything here?
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.
@barkhachoithani , I accidentally commit these comments for my local test. I've revert chose changes back