-
Notifications
You must be signed in to change notification settings - Fork 17
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
OCPBUGS-28244: Account for endpoint not being rerturned when building cloud configuration #112
OCPBUGS-28244: Account for endpoint not being rerturned when building cloud configuration #112
Conversation
Skipping CI for Draft Pull Request. |
[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 |
1068010
to
6c71772
Compare
1c86db7
to
6e9e005
Compare
/label qe-approved |
@theobarberbany: This pull request references Jira Issue OCPBUGS-28244, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. In response to this: 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 openshift-eng/jira-lifecycle-plugin repository. |
357a220
to
9ef0cc6
Compare
@theobarberbany: This pull request references Jira Issue OCPBUGS-28244, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
9ef0cc6
to
11e1b35
Compare
11e1b35
to
ea24fee
Compare
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 looks good to me, is there any unit testing we could add to confirm the behavior?
e.g. could we add something to existing tests, i don't think we need to make a new test suite for this.
@elmiko I've added a test in a separate commit. In order to do this i've had to update the azclient module go.mod and , which leaves us with a pretty huge diff (any change requires a revendor) :( I'm not sure if there's another approach here that is nicer / more flexible. It feels insane for this to be a 1000+ file change for what is actually changing a single file and it's test... :/ Perhaps if i drop the klog addition, we won't have such a large diff? |
902d31b
to
432d67c
Compare
agreed, it doesn't feel good to force this large of a dependency update. i'd say try it out without the klog change just to see if it does reduce the amount of change. the test itself looks good to me, but do we need a negative assertion as well? |
432d67c
to
1d31652
Compare
…ding cloud configuration This change updates AzureCloudConfigFromURL to check that the URL (ResourceManagerEndpoint) that is used to build the config has been returned. If it has not, it sets it using the URL provided. This avoids the case where the endpoint is used to build config, but does not return it's self - causing the created configuration to fail. To make this work, we must update go.mod to replace the vendored package with the one in the fork, and revendor. If we do not revendor, the changes in the fork are not propagated to the /vendor directory and are silently ignored.
1d31652
to
4b741cf
Compare
@theobarberbany: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
Closing this, as we've taken the issue upstream : |
@theobarberbany: This pull request references Jira Issue OCPBUGS-28244. The bug has been updated to no longer refer to the pull request using the external bug tracker. All external bug links have been closed. The bug has been moved to the NEW state. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
This change updates AzureCloudConfigFromURL to check that the URL
(ResourceManagerEndpoint) that is used to build the config has been
returned. If it has not, it sets it using the URL provided.
This avoids the case where the endpoint is used to build config, but
does not return it's self - causing the created configuration to fail.
To make this work, we must update go.mod to replace the vendored package
with the one in the fork, and revendor. If we do not revendor, the
changes in the fork are not propagated to the /vendor directory and are
silently ignored.