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 QPS and burst for the agent components #311

Merged

Conversation

zhiweiyin318
Copy link
Member

Summary

Related issue(s)

Fixes #

@zhiweiyin318 zhiweiyin318 force-pushed the add-flag branch 2 times, most recently from c79ec22 to 279a63b Compare January 10, 2024 06:22
@zhiweiyin318 zhiweiyin318 changed the title ✨ add flag option field for the operator CRDs ✨ add QPS and burst for the agent components Jan 10, 2024
// FlagOptions represents a list of flag options for the component binary.
// The key is the option name, the value is the option value.
// The FlagOptions can override all configured options including the default options and FeatureGates, etc.
// +optional
Copy link
Member

Choose a reason for hiding this comment

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

set this to listMap

// +optional
// +kubebuilder:default:=50
// +kubebuilder:validation:Pattern=^(-?\d+)(.\d+)?$
KubeAPIQPS string `json:"qps,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

the json field should be also kubeAPIQPS, why it is not int32 with max?

Copy link
Member Author

Choose a reason for hiding this comment

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

changed to kubeAPIQPS. the QPS is float, but float is not suggested to be used in API, so use string here and added a validation.

@zhiweiyin318 zhiweiyin318 force-pushed the add-flag branch 2 times, most recently from 13abe19 to 7ec86d7 Compare January 15, 2024 04:42
Signed-off-by: ZhiweiYin <zyin@redhat.com>
Copy link
Member

@qiujian16 qiujian16 left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

Copy link
Contributor

openshift-ci bot commented Jan 15, 2024

[APPROVALNOTIFIER] This PR is APPROVED

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

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

@openshift-merge-bot openshift-merge-bot bot merged commit 3d94ce8 into open-cluster-management-io:main Jan 15, 2024
10 checks passed
@zhiweiyin318 zhiweiyin318 deleted the add-flag branch January 15, 2024 07:16
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.

2 participants