-
Notifications
You must be signed in to change notification settings - Fork 300
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
PowerVS: Use name param on DHCP server create and delete #1815
Conversation
✅ Deploy Preview for hypershift-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
4da91b9
to
4bbfacf
Compare
cmd/infra/powervs/destroy.go
Outdated
// In case of user provided cloud instance delete only DHCP server | ||
err = destroyPowerVsDhcpServer(ctx, infra, cloudInstanceID, session, options.InfraID) | ||
} else { | ||
if options.CloudInstanceID == "" { |
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.
Lets have early return by
if options.CloudInstanceID == "" { | |
if options.CloudInstanceID != "" { | |
log(options.InfraID).Info("skipping the cloud instance because user supplied") | |
return nil | |
} |
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.
Done
4bbfacf
to
f33547b
Compare
cmd/infra/powervs/destroy.go
Outdated
// In case of user provided cloud instance delete only DHCP server | ||
err = destroyPowerVsDhcpServer(ctx, infra, cloudInstanceID, session, options.InfraID) | ||
log(options.InfraID).Info("Skipping cloud instance deletion because user supplied") | ||
return nil | ||
} else { |
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 cab be outside if/else block because I just this one whole block of code nothing post that..
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.
Done.
abdd918
to
0a29196
Compare
Updated the PR description and code on multiple DHCP server's support. Ptal @mkumatag. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dharaneeshvrd 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 |
d75209a
to
7700b15
Compare
/retest-required |
7700b15
to
4f9b32f
Compare
/retest-required |
dff0fdf
to
bb19062
Compare
Refactor DHCP server logic from one server per cloud instance to n number of DHCP servers
bb19062
to
03e7d1c
Compare
03e7d1c
to
324d6ed
Compare
/hold |
PR needs rebase. 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. |
@dharaneeshvrd: 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. |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Closing due to age, feel free to reopen if still relevant. Thanks!! |
What this PR does / why we need it:
Fixes https://issues.redhat.com/browse/MULTIARCH-2972
Previously one DHCP server was allowed per PowerVS instance, now n number of DHCP servers can be created. So, refactored useExistingDHCP() and its test case accordingly.
Which issue(s) this PR fixes (optional, use
fixes #<issue_number>(, fixes #<issue_number>, ...)
format, where issue_number might be a GitHub issue, or a Jira story:Fixes #
Checklist