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
WIP THREESCALE-7135 create a CR for product promotion #734
WIP THREESCALE-7135 create a CR for product promotion #734
Conversation
Hi @austincunningham. Thanks for your PR. I'm waiting for a 3scale 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/test-infra repository. |
@eguzki Can you give this a review, we would love some feed back on weather this is the right approach for product promotion @philbrookes I understand you are also interested in reviewing this |
fix nil pointer on status update commit deepcopy update some of the comments
5f49b68
to
357aed6
Compare
Code Climate has analyzed commit 357aed6 and detected 5 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
@austincunningham: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
owesome! Before going into code details, one obvious question, why differentiated CRD instead of integrating in the Product CRD? Although the promotion could work without requiring a Product CR, seems more consistent if the operator only provides promotion feature if the user is working with Product CR's. That `productId' field in the spec ringed the bell. It is important to differentiate between:
They are two different 3scale API endpoints, the promotion requiring a version while the deployment does not. In my mind, there would be an optional struct field in the Product CRD spec: spec:
promote:
promoteVersion: '1' If the From the configuration history, the 3scale API endpoint allows setting any version at the I suggest we jump to a call and discuss this a agree one approach. Anyway, the work is super and most of the logic has been implemented so far. |
@eguzki it was believed before we started the work on this pr that Promotion was a one off event, and therefore a separate CRD made sense at that time. But after interacting with product promotion I can see no reason why it couldn't live in the Product CRD. An agreed way forward would be best, I will stick something in the calendar |
closing this as the implementation discussed will be substantially different to this pr |
What
Create a promoteProduct CRD that allows for product promotion to staging or production
Verification
Promote to staging
Promote to production