-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Ignore unknown provider specific properties #4669
base: master
Are you sure you want to change the base?
Ignore unknown provider specific properties #4669
Conversation
Welcome @kevinfrommelt! |
Hi @kevinfrommelt. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. |
/ok-to-test |
Mmmh 🤔 I guess it's also the case for other providers. |
@mloiseleur Yea I can give it a shot. |
@mloiseleur Before I go through every provider, what do you think of this approach? |
At first glance, it should do it 👍 ! |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
@mloiseleur I've updated this to cover all providers. This ready for another review. |
@kevinfrommelt You'll need to add test for Btw, wdyt of logging a warning when there is property not related to the provider ? Is there legitimate / expected use cases where it happens ? |
c4fcd5c
to
2b59ea5
Compare
Hey @mloiseleur, sorry for delay. I have rebased onto latest, added tests for
As far as I could tell the providers were already ignoring all the properties they didn't have defined. The extra properties were just throwing off the comparison between the desired and actual states of the endpoints, which was triggering the provider to do a no-op update on every sync. |
a1af633
to
ec732b3
Compare
@mloiseleur Just checking in to see if you've had a chance to look at this again. |
Description
Currently if an endpoint contains a provider specific property for a provider other than the currently configured provider, the current provider will still consider it in the desired state. This will cause the endpoint to be marked as needing an update because when the provider loads the actual state it will never have that specific property set (ie. the desired and actual state never match). This causes unnecessary updates to be made on every sync.
This PR updates the providers to only consider its own specific properties (ie. ignore properties for other providers).
Checklist