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

Adjust KEP for customized recommender #4329

Merged
merged 2 commits into from
Oct 4, 2021

Conversation

jbartosik
Copy link
Collaborator

Use a list of structs instead of a list of strings to choose
recommenders.

This will allow us to pass parameters to recommenders (if we decide we
want to allow that).

Related to #3913

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 14, 2021
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 14, 2021
Use a list of structs instead of a list of strings to choose
recommenders.

This will allow us to pass parameters to recommenders (if we decide we
want to allow that).

Related to kubernetes#3913
@jbartosik
Copy link
Collaborator Author

@bskiba, @kgolab, @wangchen615 - please take a look.

type: array
items:
properties:
name:
Copy link
Collaborator

@kgolab kgolab Sep 16, 2021

Choose a reason for hiding this comment

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

Could you please comment (preferably in the KEP itself) why a struct?
I know it's forward-looking but maybe there already is a use-case that can support this choice?

[updated] I can see the answer below but it would still be good to reference it earlier.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.


```golang

// VerticalPodAutoscalerRecommenderSelector points to a specificic Vertical Pod Autoscaler recommender
// in the future it might pass parameters to the er.
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is this "er" ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Recommender, fixed.


// Name of the recommender responsible for generating recommendation for this object.
RecommenderName []string `json:"recommenderName,omitempty" protobuf:"bytes,4,opt,name=recommenderName"`
// Name of the recommender responsible for generating recommendation for this object.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This comment should be updated as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@jbartosik jbartosik force-pushed the multi-recommender-kep-1 branch from 28d8dac to a90669c Compare September 17, 2021 14:53
@jbartosik
Copy link
Collaborator Author

/retest

@jbartosik jbartosik force-pushed the multi-recommender-kep-1 branch from a90669c to 23902ca Compare September 17, 2021 16:20
Copy link
Contributor

@wangchen615 wangchen615 left a comment

Choose a reason for hiding this comment

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

@jbartosik , Thanks so much for your PR on the KEP. It helps me a lot to update the code.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jbartosik, wangchen615

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

@bskiba
Copy link
Member

bskiba commented Oct 4, 2021

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 4, 2021
@bskiba
Copy link
Member

bskiba commented Oct 4, 2021

/hold
For Karol's approval

@k8s-ci-robot k8s-ci-robot merged commit 83192a7 into kubernetes:master Oct 4, 2021
@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 4, 2021
@kgolab
Copy link
Collaborator

kgolab commented Oct 4, 2021

A bit late but LGTM for me as well.

@jbartosik jbartosik deleted the multi-recommender-kep-1 branch January 24, 2022 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/vertical-pod-autoscaler cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants