Skip to content
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

removal of forProvider.name, fix http resp code 400 in the start of creating and some small enchantments #4

Merged

Conversation

teeverr
Copy link

@teeverr teeverr commented Oct 2, 2023

Description of your changes

Fixes #

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

@mleahu mleahu changed the base branch from feature/servicecatalog-provisioned-product-resource to development October 2, 2023 14:25
@mleahu mleahu changed the title Refactor 2 servicecatalog provisioned product resource removal of forProvider.name Oct 2, 2023
@teeverr teeverr changed the title removal of forProvider.name removal of forProvider.name, fix http resp code 400 in the start of creating and some small enchantments Oct 3, 2023
// If the product is undergoing change, we want to assume that it is not up-to-date. This will force this resource
// to be queued for an update (which will be skipped due to UNDER_CHANGE), and once that update fails, we will
// recheck the status again. This will allow us to quickly transition from UNDER_CHANGE to AVAILABLE without having
// to wait for the entire polling interval to pass before re-checking the status.
if pointer.StringDeref(ds.Status.AtProvider.Status, "") == string(svcapitypes.ProvisionedProductStatus_SDK_UNDER_CHANGE) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ds doesn't contain anything in ds.Status.AtProvider, it will be be set later. that is why I replace it to resp.ProvisionedProductDetail.Status

@mleahu mleahu self-assigned this Oct 6, 2023
@mleahu
Copy link
Collaborator

mleahu commented Oct 6, 2023

@teeverr all good from my side!
Thanks!

@teeverr teeverr merged commit 58b5685 into development Oct 6, 2023
7 checks passed
teeverr pushed a commit that referenced this pull request May 31, 2024
teeverr pushed a commit that referenced this pull request Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants