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(apis): Add suggestion CRD API #740

Merged
merged 3 commits into from
Sep 4, 2019

Conversation

gaocegege
Copy link
Member

@gaocegege gaocegege commented Sep 4, 2019

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:

  1. Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:



This change is Reviewable

@gaocegege
Copy link
Member Author

/assign @johnugeorge @hougangliu

@gaocegege gaocegege force-pushed the suggestion-crd branch 2 times, most recently from 81167e4 to 517e844 Compare September 4, 2019 05:47
// SuggestionSpec defines the desired state of Suggestion
type SuggestionSpec struct {
// Number of suggestions requested
Suggestions *int32 `json:"suggestions,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

Can this be nil?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think so.

Copy link
Member Author

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

Copy link
Member

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?

Copy link
Member Author

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.

@gaocegege
Copy link
Member Author

/test kubeflow-katib-presubmit

@johnugeorge
Copy link
Member

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>
@gaocegege
Copy link
Member Author

Rebased

@johnugeorge
Copy link
Member

johnugeorge commented Sep 4, 2019

I think, PR is ready to be merged. Merge it ?

@johnugeorge
Copy link
Member

/lgtm

@gaocegege
Copy link
Member Author

/test kubeflow-katib-presubmit
/approve

Thanks

@k8s-ci-robot
Copy link

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@johnugeorge
Copy link
Member

ubuntu repos seem to be unusually slow now

@johnugeorge
Copy link
Member

/retest

@k8s-ci-robot k8s-ci-robot merged commit 349a5a4 into kubeflow:master Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants