-
Notifications
You must be signed in to change notification settings - Fork 448
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(apis): Add suggestion CRD API #740
Conversation
/assign @johnugeorge @hougangliu |
81167e4
to
517e844
Compare
// SuggestionSpec defines the desired state of Suggestion | ||
type SuggestionSpec struct { | ||
// Number of suggestions requested | ||
Suggestions *int32 `json:"suggestions,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.
Can this be nil?
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.
I think so.
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.
If it is not set, it will be nil
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.
Which situation can it get nil? I feel that Suggestion CR will always have non zero value. Do you see any other scenario?
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.
I think it is for #726 (comment).
The defaulting webhook can set the field to 0 if it is nil.
/test kubeflow-katib-presubmit |
Lets rebase with #741 if it goes through. |
Signed-off-by: Ce Gao <gaoce@caicloud.io>
Signed-off-by: Ce Gao <gaoce@caicloud.io>
Signed-off-by: Ce Gao <gaoce@caicloud.io>
517e844
to
2ebf998
Compare
Rebased |
I think, PR is ready to be merged. Merge it ? |
/lgtm |
/test kubeflow-katib-presubmit Thanks |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gaocegege 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 |
ubuntu repos seem to be unusually slow now |
/retest |
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Ref #507
Special notes for your reviewer:
Release note:
This change is