-
Notifications
You must be signed in to change notification settings - Fork 40
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
NO-JIRA: azure-disk, azure-file sync code de-duplication #303
base: main
Are you sure you want to change the base?
Conversation
@stephenfin: This pull request explicitly references no jira issue. 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. |
8bfceed
to
24b107a
Compare
sorry about a late review, it looks good. Can you please rebase? |
24b107a
to
ffed239
Compare
Done 👍 |
The syncCloudConfigGuest and syncCloudConfigStandalone functions were nearly identical, save for the location that the resulting config maps were saved to: Client.GuestNamespace for the former and Client.ControlPlaneNamespace for the latter. However, the docs for Clients.ControlPlaneNamespace say: Namespace where to install CSI driver control plane. On standalone cluster, it's the same as the guest namespace i.e. openshift-cluster-csi-drivers. So we can use syncCloudConfigGuest for both HCP and Standalone deployments. Do just this, renaming the method to drop the Guest suffix. Signed-off-by: Stephen Finucane <[email protected]>
We did this for azure-disk previously. Now do it for azure-file. The same rationale applies as before. Signed-off-by: Stephen Finucane <[email protected]>
ffed239
to
ec1c052
Compare
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jsafrane, stephenfin 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 |
@stephenfin: 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-sigs/prow repository. I understand the commands that are listed here. |
/retest-required |
Both drivers provides
syncCloudConfigGuest
andsyncCloudConfigStandalone
functions which were nearly identical. Identical save for the location that the resulting config maps were saved to:Client.GuestNamespace
for the former andClient.ControlPlaneNamespace
for the latter. However, the docs forClients.ControlPlaneNamespace
say:This makes the difference between the two functions meaningless and we can instead use
syncCloudConfigGuest
for both HCP and Standalone deployments. Do just this, renaming the method to drop the Guest suffix.