-
Notifications
You must be signed in to change notification settings - Fork 1k
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
WIP: Reload CRI-O configurations in particular order #7771
base: main
Are you sure you want to change the base?
Conversation
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: SD-13 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @SD-13. Thanks for your PR. I'm waiting for a cri-o member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
@kwilczynski I know it needs to be improved a lot and the code is little incomplete, but can you please take a look and let me know whether this is a good way of solving the bug? I feel like there is lots of boilerplate code. Can you please help in pointing out how it needs to be improved? Thanks! |
@SD-13, the crux of the problem is definitely with the way how the configuration from multiple sources is applied against the current runtime configuration, especially following a reload request. However, we shouldn't be parsing anything manually. We have a library that does this for us that we use. Have a look at how configuration is parsed and then how the runtime configuration object is assembled. Then, look at how this path might differ when the reload is requested. Why is it different? |
Hey @kwilczynski I was having some health issues which caused the delay :) I took a closer look and now not able to figure out how to update the config with the flagset. Let me try to break in down
Here did you mean I tried to follow along and see here a flagset object is being created where command line argument values is being set as
What did you mean by this path? I am trying to do this and figuring out the first 2 cases - if cmd args were set: Please take a look and let me know your thoughts on this. Thanks! |
@kwilczynski @saschagrunert Can you please help by pointing out where the default config is being overridden with the command line arguments. I am new to Go and getting lost while navigating. |
Yes, this will happen here: cri-o/internal/criocli/criocli.go Line 40 in d705c02
|
0caf318
to
07bf324
Compare
Signed-off-by: Sujay <sujaydey641@gmail.com>
07bf324
to
fe93159
Compare
A friendly reminder that this PR had no activity for 30 days. |
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #7586
Special notes for your reviewer:
Does this PR introduce a user-facing change?