-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
b1f51e9
MLE-22135: change liveness probe
04cfc62
add retry logic to group configuration
b40bc80
update haproxy image
60aa994
adjust testing time
46962f5
update marklogic image version
73477c0
remove image
188d5e8
update image version in Jenkins
521229c
fix makefile for pipeline
e53bd98
fix validate rule and image load
c9ab1d0
push changes from build
62cc96b
MLE-22902: fix operator pipeline bug
8f655ef
ignore docker cache
be4bb57
fix validating rule
6a7df0e
add debug message for Jenkins Pipeline
931d4e7
fix test with bug: index out of range [0] with length 0
33de6c0
fix test bug with index out of range [1] with length 1
c8626c8
add debug info
9a0a3e2
revert changes back to makefile
604f705
uncomment changes
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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..." | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nitpick] Replace this
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||
sleep 5 | ||||||
done | ||||||
} | ||||||
|
||||||
############################################################### | ||||||
# Function to get the current host protocol | ||||||
# $1: The host name | ||||||
|
@@ -699,10 +718,10 @@ if [[ "$IS_BOOTSTRAP_HOST" == "true" ]]; then | |||||
if [[ "${MARKLOGIC_CLUSTER_TYPE}" == "bootstrap" ]]; then | ||||||
log "Info: bootstrap host is ready" | ||||||
init_security_db | ||||||
configure_group | ||||||
retry 5 configure_group | ||||||
else | ||||||
log "Info: bootstrap host is ready" | ||||||
configure_group | ||||||
retry 5 configure_group | ||||||
join_cluster $HOST_FQDN | ||||||
fi | ||||||
configure_path_based_routing | ||||||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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] Use the existing
log
function instead ofecho
so retries are recorded in the pod log and/tmp/script.log
.Copilot uses AI. Check for mistakes.