apigee / apigee-deploy-maven-plugin

Apache License 2.0
80 stars 167 forks source link

Add possibility to deploy new revision without undeploying the previous one #163

Closed kamnyborg closed 3 years ago

kamnyborg commented 3 years ago

Hi, we have a scenario where we would like to deploy a new revision without undeploying the previous one.

The proxy has the following state before deploy: Revision 1 contains a deployed v1/someapi

We want to end up with this: Revision 1 contains a deployed v1/someapi Revision 2 contains a deployed v2/someapi

It seems like there are no options to support this use case? Ref https://gitlab.com/samirkantalenka/apigee-deploy-maven-plugin#advanced-configuration-options

Best regards, Kamilla

ssvaidyanathan commented 3 years ago

@kamnyborg - I am guessing you are referring to Apigee X/hybrid. If thats the case, it's not possible. Only one proxy revision can be deployed to an environment.

Also I think what you are doing is not best practice. I would suggest you have a proxy per version. For example Someapi-v1 --> /v1/someapi Someapi-v2 --> /v2/someapi

With this its separately managed, no confusions around your code base, config management deployment strategies, also makes it easier for your Product configurations and easier deprecation as well

Regarding the options available - please refer to this link. The options are async and override where override is the default option.

kamnyborg commented 3 years ago

@ssvaidyanathan Thanks for your quick response, I will discuss the 1 proxy/version solution with my team.