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

feat: add spec port #281

Merged
merged 4 commits into from
Sep 19, 2023
Merged

feat: add spec port #281

merged 4 commits into from
Sep 19, 2023

Conversation

kqzh
Copy link
Contributor

@kqzh kqzh commented Sep 18, 2023

What type of PR is this?

  • bug
  • feature
  • enhancement

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:

@MegaByte875
Copy link
Contributor

@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.

Copy link
Contributor

@MegaByte875 MegaByte875 left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +367 to +372
// +kubebuilder:default=9669
Port int32 `json:"port,omitempty"`

// +optional
// +kubebuilder:default=19669
HTTPPort int32 `json:"httpPort,omitempty"`
Copy link
Contributor

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

@MegaByte875 MegaByte875 merged commit a11a36c into vesoft-inc:master Sep 19, 2023
2 checks passed
Comment on lines +210 to +213
IsDefaultThriftPort() bool
GetThriftPort() int32
IsDefaultHTTPPort() bool
GetHTTPPort() int32
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The statefulset does not show the actual port being used after updating port of graphd in config
3 participants