-
Notifications
You must be signed in to change notification settings - Fork 363
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
feat(servicecatalog): Add provisioned product #1908
feat(servicecatalog): Add provisioned product #1908
Conversation
231c0c8
to
1b5ca53
Compare
1b5ca53
to
257a76c
Compare
baa91ae
to
93a24ff
Compare
6e74572
to
c35aa7d
Compare
3cf62f0
to
eec44e2
Compare
46d3126
to
dfcec2c
Compare
14949c4
to
507bbbc
Compare
LGTM. @teeverr can you rebase it on the latest |
507bbbc
to
765230f
Compare
@MisterMX a final build, which included changes from the master, didn't pass tests. Context:
Expected behaviour: ProvisionedProduct custom resource has absolutely the same set of
The custom resource will look liks this:
It happens only if the controller creates a new resource, if it takes control over an existing resource(by external name) everything will be ok. And it started after crossplane-runtime had been updated to 1.14.1. Probably this crossplane-runtime update also affected other resources in the provider |
@teeverr the effects you see have nothing to do with the crossplane-runtime as it does not modify your spec. The fields are modified in the |
@MisterMX I didn't say crossplay-runtime modifies spec, but probably it indirectly affects |
https://github.com/crossplane/crossplane-runtime only implements the underlying, fundemental controller logic. The way managed resources are reconciled hasn't changed afaik. https://github.com/crossplane/crossplane-tools is a code generator (angryjet) that generates resolver functions that are necessary to satisfy the As I said, the fields you mentioned are set in the ACK generated To solve this I guess it should suffice to ignore the respective fields in the ignore:
field_paths:
- ProvisionedProductOutput.RecordDetail.ProvisioningArtifactId |
@MisterMX yes,
from generator-config, because it used the same type, it's not critical but nice to know what pathId your resource used. Looks like there is only one option to return it back - write custom It's really weird, because
but fields in spec.forProvider wheren't filled implicitly. So as I already texted, probably it affected, something else. Anyway, it looks like service catalog is good for now. Thanks for your help : ) I will squash a commit history tomorrow, when tests be successfully passed |
8bff95b
to
de1b6d4
Compare
@MisterMX |
de1b6d4
to
e9df748
Compare
Signed-off-by: Kirill Sushkov (teeverr) <kirill.sushkov@swisscom.com>
e9df748
to
7d173f7
Compare
@MisterMX done! |
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 very much for all the hard work @teeverr!
Description of your changes
Adds new resource - ProvisionedProduct, which represents life cycle of launched product in service catalog
I have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested
Many scenarios have been tested manually In development env and also I wrote some unit tests for custom controller logic
It is a new PR, instead of this one