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

Partial deployment of application from a module without updating the services #141

Open
stevschm opened this issue Jul 16, 2021 · 4 comments

Comments

@stevschm
Copy link

stevschm commented Jul 16, 2021

Hi,
we've got a module which requires a lot of resources/services, that don't change.
If I make a partial deployment via "cf deploy -m <module_name>" then all resources also get's processed/updated.
Is it possible to just "update" one application/module without updating all the resources/services?

Thanks,
Steve

@IvanBorislavovDimitrov
Copy link
Contributor

Hi,

We've tracked this problem and it should be fixed soon since currently if no module/resource is specified all of the modules/resources will be updated. You can specify the resources that you need to update via "-r" option and this way only the provided resources will be updated.

Thanks and best regards,
Ivan

@Kiemes
Copy link

Kiemes commented Feb 3, 2022

Hi @IvanBorislavovDimitrov Can you concretise "should be fixed soon" a bit? I still see the same behaviour with the latest plugin version 2.7.0. We also would prefer the requested behaviour that if we specify -m it will ignore all resources unless we also add -r.

Options:

  1. cf deploy <MTA>: updates all modules and all resources (This already works)
  2. cf deploy <MTA> -m <module A>: Just updates module A and no resources
  3. cf deploy <MTA> -r <resource X>: Just updates resource X and no modules
  4. cf deploy <MTA> -m <module A> -r <resource X>: Updates module A and resource X (This already works)

Assuming you have a lot of resources, and you really want to update all of them but just update a single module, we already have the flag --all-resources.

We could also keep updating all resources on default and add a new flag --skip-resources.

I don't mind too much about which way, but the cf deploy should become a bit more flexible.
Thanks and best regards, Tom

@corporateuser
Copy link

Is this plugin still supported? Not so much activity lately.

@boyan-velinov
Copy link
Contributor

Hi,
The plugin is supported as well as its "counterpart" MultiApps Controller which serves as a backend and performs the actual business logic.
Note that the plugin itself is pretty stable and the larger part of the feedback/issues are actually directed to the backend MultiApps Controller. On the other side the plugin represent simple client to the backend.

I would suggest a workaround which will tells the MultiApps Controller to skip the service updates via the parameter called skip-service-updates. Check: https://github.com/SAP-samples/cf-mta-examples/blob/main/skip-service-updates/mta.yaml#L12

@Kiemes I can see that you are part of SAP so I will send the internal backlog item and you can subscribe to it.

Best Regards,
Boyan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants