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

✨ Add flag to allow use best effort resource for klusterlet #297

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

haowells
Copy link
Contributor

@haowells haowells commented Nov 23, 2023

Summary

see PR in open-cluster-management-io/ocm#317

Related issue(s)

Fixes #

@mikeshng
Copy link
Member

/assign @qiujian16

@qiujian16
Copy link
Member

would need to run make update to update deepcopy and client code


// BestEffortResource allow use the best effort resource for operator/registration/work deployment
// +optional
BestEffortResource bool `json:"bestEffortResource,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

It is better no to use boolean in API. You might consider a resources struct with a type in it. We can just set type to "BestEffort" and "Default" today, and add other option to be able to specify resource in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@qiujian16 thanks. address your comments and PTAL again.

operator/v1/types_klusterlet.go Show resolved Hide resolved
operator/v1/types_klusterlet.go Outdated Show resolved Hide resolved

const (
ResourceQosClassDefault ResourceQosClass = "Default"
ResourceQosClassBestEffort ResourceQosClass = "BestEffort"
Copy link
Member

Choose a reason for hiding this comment

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

some comments maybe to indicate what besteffort means

Copy link
Contributor Author

Choose a reason for hiding this comment

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

comments added

@qiujian16
Copy link
Member

need to signoff. And you would need to run make update again.

@haowells
Copy link
Contributor Author

/ok-to-test

Copy link
Contributor

openshift-ci bot commented Nov 24, 2023

@haowells: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/ok-to-test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@haowells
Copy link
Contributor Author

/test all

Copy link
Contributor

openshift-ci bot commented Nov 24, 2023

@haowells: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test all

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@qiujian16
Copy link
Member

/approve
/lgtm

@openshift-ci openshift-ci bot added the lgtm label Nov 24, 2023
Copy link
Contributor

openshift-ci bot commented Nov 24, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: haowells, qiujian16

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

Signed-off-by: haolin <haowells@gmail.com>
@qiujian16
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Nov 24, 2023
@openshift-merge-bot openshift-merge-bot bot merged commit 8814013 into open-cluster-management-io:main Nov 24, 2023
10 checks passed
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.

None yet

3 participants