-
Notifications
You must be signed in to change notification settings - Fork 178
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
Removed error logging from config loader #1225
Removed error logging from config loader #1225
Conversation
|
Welcome @vr4manta! |
Hi @vr4manta. Thanks for your PR. I'm waiting for a kubernetes 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-sigs/prow repository. |
Hi @vr4manta Thank you for your PR! My cents:
|
Hi @XudongLiuHarold. Thanks for the feedback. We are enhancing our installer to make new installs use YAML, but all existing clusters are up to the admins to update the config. If they are doing something like multi vCenter, we are requiring them to upgrade from INI to YAML by hand for now. But all customers with one failure domain or all failure domains in one vCenter are not currently required to migrate the cloud provider config. Based on that, I think it would be perfectly fine to do a new function that checks to see if the file is YAML format in the above linked function. I can look into putting something there that can do a quick check. |
889e821
to
33bb6e6
Compare
d1b5bed
to
44a5b89
Compare
/ok-to-test |
44a5b89
to
331f31e
Compare
331f31e
to
c44248b
Compare
a7ce4c5
to
40cee92
Compare
40cee92
to
fa11631
Compare
/lgtm |
e2e test passed: team-cluster-api#60 |
code makes sense to me, even if the ini format is being deprecated it would be nice to reduce confusion in the logs. |
/assign @XudongLiuHarold |
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
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vr4manta, XudongLiuHarold 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 |
What this PR does / why we need it:
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #1224Special notes for your reviewer:
This PR adds a check to see if byte data is YAML. If so, it will call the parse yaml like before allowing any errors to be logged. I believe this is enough to just state the YAML attempt failed and is falling back onto INI config load.
Release note: