-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat: add spec port #281
feat: add spec port #281
Conversation
@wenhaocs The ports exposed in spec looks good, if the default value updated then add a flag to cmd line to overwrite local conf file. |
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
// +kubebuilder:default=9669 | ||
Port int32 `json:"port,omitempty"` | ||
|
||
// +optional | ||
// +kubebuilder:default=19669 | ||
HTTPPort int32 `json:"httpPort,omitempty"` |
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.
set validation:Maximum and validation:Minimum
IsDefaultThriftPort() bool | ||
GetThriftPort() int32 | ||
IsDefaultHTTPPort() bool | ||
GetHTTPPort() int32 |
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.
Why not just use GetXxxPort
? The default value is already defined in CRD.
What type of PR is this?
What problem(s) does this PR solve?
Issue(s) number:
Description:
How do you solve it?
Special notes for your reviewer, ex. impact of this fix, design document, etc: