-
Notifications
You must be signed in to change notification settings - Fork 91
Add v1beta2 changes to IBMPowerVSImage #2412
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
Add v1beta2 changes to IBMPowerVSImage #2412
Conversation
✅ Deploy Preview for kubernetes-sigs-cluster-api-ibmcloud ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Hi @arshadd-b. 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. |
9632fae
to
a3756f6
Compare
eaf2b42
to
1be332d
Compare
0956e60
to
322a3dc
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.
Thanks for the PR, I will take a another look once you addressed the comments.
Overall lets revisit the log statement and make them better.
/ok-to-test |
75af036
to
7d51cd4
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.
One last thing, otherwise LGTM
|
||
func patchIBMPowerVSImage(ctx context.Context, patchHelper *v1beta1patch.Helper, ibmPowerVSImage *infrav1.IBMPowerVSImage) error { | ||
// always update the readyCondition. | ||
v1beta1conditions.SetSummary(ibmPowerVSImage, |
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.
Hey, Seems like you need to add back that previous change set of making sure conidtion is always set.
Also lets add a UT to make sure, the condition is always set in the first reconcilation
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.
@arshadd-b please address the review comments.
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.
Added the condition back and added UT to check the condition is getting set.
/retest |
da50462
to
f64ee6a
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.
Couple of small things otherwise, LGTM, Thanks for the PR.
Since we don't have CI to test the flow, At the end of addressing all the changes, Do you mind testing the cluster creation with infra creation flow and share the output in the PR.
name string | ||
powervsCluster *infrav1.IBMPowerVSCluster | ||
powervsImage *infrav1.IBMPowerVSImage | ||
expectError bool |
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.
Is it possible to just add another case, where the worksapceNotReady state is set?
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.
sure will check and add
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.
We have to mock the GetServiceInstance and it is not straight forward. Will create follow up for this
cc: @Karthik-K-N
@arshadd-b We have a major release in the coming weeks. Please prioritize this task accordingly. |
sure |
885c76e
to
71e2e39
Compare
@arshadd-b Please squash the commits. |
cloud/scope/powervs_image.go
Outdated
record.Warnf(i.IBMPowerVSImage, "FailedCreateImageImportJob", "Failed image import job creation - %v", err) | ||
return nil, nil, err | ||
} | ||
i.Info("New import job request created") | ||
log.Info("New import job request created", "jobID", *jobRef.ID) |
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.
Is it safe to deref the jobRef, I see there is no nil check for jobRef?
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.
I have removed this jobID
a9bedbc
to
728a270
Compare
728a270
to
e6945d2
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.
/lgtm
Thank you.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Amulyam24, arshadd-b, Prajyot-Parab 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:
This PR consists of following changes
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #2389
Special notes for your reviewer:
/area provider/ibmcloud
Release note: