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

[Enhancement] support be_http_port and be_port in conf #450

Merged

Conversation

yandongxiao
Copy link
Collaborator

Description

In the latest StarRocks version, the port names for BE and CN have been modified. The good news is that the old port names can still be used. However, if users use the new port names, Operators may not recognize them, leading to Operators potentially using default ports as liveness and readiness ports. This could result in container startup failures.

Checklist

For operator, please complete the following checklist:

  • run make generate to generate the code.
  • run golangci-lint run to check the code style.
  • run make test to run UT.
  • run make manifests to update the yaml files of CRD.

For helm chart, please complete the following checklist:

  • make sure you have updated the values.yaml
    file of starrocks chart.
  • In scripts directory, run bash create-parent-chart-values.sh to update the values.yaml file of the parent
    chart( kube-starrocks chart).

Signed-off-by: yandongxiao <yandongxiao@starrocks.com>
@@ -84,6 +94,15 @@ func GetPort(config map[string]interface{}, key string) int32 {
if port, err := strconv.ParseInt(v.(string), 10, 32); err == nil {
return int32(port)
}
} else if key == THRIFT_PORT {
Copy link
Collaborator

Choose a reason for hiding this comment

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

should ignore the thrift_port config if thrift_port == 0?

Signed-off-by: yandongxiao <yandongxiao@starrocks.com>
@yandongxiao yandongxiao merged commit 666a59c into StarRocks:main Feb 21, 2024
6 checks passed
@yandongxiao yandongxiao added v1.9.3 enhancement New feature or request labels Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v1.9.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants