-
Notifications
You must be signed in to change notification settings - Fork 291
fix: set status on acquistion #4843
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
Conversation
status: | ||
conditions: | ||
- lastTransitionTime: "1970-01-01T00:00:00Z" | ||
message: The resource is up to date | ||
reason: UpToDate | ||
status: "True" | ||
type: Ready |
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.
compare this with object 01, notice the lack of additional fields
I think the CI is broken at HEAD! |
Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
5026b03
to
7aa6a6d
Compare
settings: | ||
tier: db-f1-micro | ||
--- | ||
TEST: ABANDON |
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.
Why don't we use ABANDON-AND-REACQUIRE directly?
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.
the test needs a resourceID and I didn't want to introduce that to this yaml.
return err | ||
} | ||
|
||
instanceForStatus := a.actual |
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.
nit: maybe use updated := a.actual
so that we don't need this additional variable instanceForStatus
.
for example:
updated := a.actual
if xxx {
...
updated, err = a.sqlInstancesClient.Get(a.projectID, a.resourceID).Context(ctx).Do()
...
}
status, err := SQLInstanceStatusGCPToKRM(updated)
/lgtm |
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.
/approve
One nit. Non blocker.
annotations: | ||
cnrm.cloud.google.com/deletion-policy: abandon |
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.
nit: ABANDON sets the "deletion-policy: abandon" already.
k8s-config-connector/tests/e2e/script_test.go
Line 296 in 378f305
setAnnotation(h, obj, "cnrm.cloud.google.com/deletion-policy", "abandon") |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: yuwenma 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 |
Change description
Fixes #4811
Special notes for your reviewer:
Does this PR add something which needs to be 'release noted'?
Additional documentation e.g., references, usage docs, etc.:
Intended Milestone
Please indicate the intended milestone.