-
Notifications
You must be signed in to change notification settings - Fork 137
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
[Improvement] feat(operator): Support for custom initialization parameters. #645
Comments
PTAL @advancedxy @wangao1236 |
From the issue description, I don't quite get what you want to archive. The main.go for controller and webhook already handles flag parsing. But you are always welcome to submit a PR, and let's discuss there. |
Only the parameters in Config are configured, and parameters in ctrl.Options such as SyncPeriod, Namespace, and RetryPeriod cannot be modified. |
I see. SGTM. |
Submitted. #670 |
…ration (#670) ### What changes were proposed in this pull request? Support Operator Manager parameter configuration. ### Why are the changes needed? 1. It is possible to customize parameters and modify the required configuration parameters. 2. Hope to make reasonable use of Kubernetes services. Closes #645 ### Does this PR introduce _any_ user-facing change? Because in real-world scenarios, it may be necessary to adjust some parameters, such as Namespace. ### How was this patch tested? Manually verified. ![image](https://user-images.githubusercontent.com/45311215/221807077-9b07f00d-e88e-4cea-894c-935f4096a1e7.png)
…onfiguration (apache#670) ### What changes were proposed in this pull request? Support Operator Manager parameter configuration. ### Why are the changes needed? 1. It is possible to customize parameters and modify the required configuration parameters. 2. Hope to make reasonable use of Kubernetes services. Closes apache#645 ### Does this PR introduce _any_ user-facing change? Because in real-world scenarios, it may be necessary to adjust some parameters, such as Namespace. ### How was this patch tested? Manually verified. ![image](https://user-images.githubusercontent.com/45311215/221807077-9b07f00d-e88e-4cea-894c-935f4096a1e7.png)
…onfiguration (apache#670) ### What changes were proposed in this pull request? Support Operator Manager parameter configuration. ### Why are the changes needed? 1. It is possible to customize parameters and modify the required configuration parameters. 2. Hope to make reasonable use of Kubernetes services. Closes apache#645 ### Does this PR introduce _any_ user-facing change? Because in real-world scenarios, it may be necessary to adjust some parameters, such as Namespace. ### How was this patch tested? Manually verified. ![image](https://user-images.githubusercontent.com/45311215/221807077-9b07f00d-e88e-4cea-894c-935f4096a1e7.png)
Code of Conduct
Search before asking
What would you like to be improved?
I want to support the InitFlags method in main.go, which can modify the Options setting of the Manager to customize many properties.
How should we improve?
We should add an InitFlags method in main.go, and then use flag package to set default parameters to accept command-line arguments. This allows users to customize various startup parameters and configurations easily.
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: