-
Notifications
You must be signed in to change notification settings - Fork 12
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
✨ Expose QPS and Burst flags on agent command line #56
Conversation
After this change:
|
@@ -0,0 +1,88 @@ | |||
/* |
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.
This is a copy of a file in kubestellar/kubestellar#2165 . Once we decide how to remove the circular dependency between ks/ks and ks/OSA, we can remove one copy in favor of importing.
@MikeSpreitzer: please note that if we want to expose agent flags the status add-on chart, these values need to be provided to the add-on controller and from there set in the ManifestConfig - see ocm-status-addon/pkg/controller/manager.go Lines 38 to 63 in a1f669b
Therefore, arguments to propagate to the agent should be templated in ocm-status-addon/pkg/controller/manifests/templates/deployment.yaml Lines 60 to 64 in a1f669b
|
Yes, there is more to do. Can we do it in a follow-on PR? |
Signed-off-by: Mike Spreitzer <[email protected]>
ok with me |
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.
/lgtm
@pdettori: thanks for the pointers about the templating and variables. I am mystified about some. I see https://github.com/kubestellar/ocm-status-addon/blob/v0.2.0-rc8/cmd/ocm-status-addon/main.go#L100-L107 , and it looks like https://github.com/kubestellar/ocm-status-addon/blob/v0.2.0-rc8/cmd/ocm-status-addon/main.go#L102-L106 is moot because there is no AddOnDeploymentConfig , and do not see the source of many variables I see referenced in https://github.com/kubestellar/ocm-status-addon/blob/v0.2.0-rc8/pkg/controller/manifests/templates/deployment.yaml, such as HTTPSProxy and Tolerations. |
The mysterious references may be outdated junk; see open-cluster-management-io/addon-framework#270 . The template might work because of subtleties of Go template functionality. https://pkg.go.dev/text/[email protected]#Template.Option is relevant here, and the OCM add-on framework documentation does not mention which option is used. Looking in the OCM code, I see that |
Summary
This PR adds command line flags to the OCM Status Add-On Agent for client-side self-restraint, in terms of QPS and Burst, for accessing the local cluster (WEC) and for accessing the hub (ITS).
Related issue(s)