-
Notifications
You must be signed in to change notification settings - Fork 42
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
install-cni.sh tweaks for performance #324
install-cni.sh tweaks for performance #324
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jingyuanliang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/assign @aojea |
6156ec3
to
8598618
Compare
ipv6_subnet_configured="true" | ||
SUBNETS_REPLACEMENT+=("$(jq -nc --arg subnet "${subnet}" '[{"subnet": $subnet}]')") | ||
ROUTES_REPLACEMENT+=('{"dst": "::/0"}') | ||
else | ||
echo "[ERROR] Subnet detected in .spec.podCIDRs '${subnet}' is not a valid IP range" | ||
log "[ERROR] Subnet detected in .spec.podCIDRs '${subnet}' is not a valid IP range" |
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.
Maybe it's better to introduce log level on the log handler method instead. I.e. separate methods for log_debug, log_info and log_error. Also log_error might have built-in script termination with error code.
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.
The current logs are pretty random... I just replaced all echo with log for the purpose of appending timestamps. Maybe more improvements later if we have capacity.
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.
Sounds good! It's definitely an improvement even in current state.
/assign @sypakine |
/lgtm |
3f369c7
into
GoogleCloudPlatform:master
nice
command allowing setting lower nice valuescat
usage and avoidjq -c
solely for log prettiness/assign @marqc