cloudfoundry / cf-java-client

Java Client Library for Cloud Foundry
Apache License 2.0
328 stars 318 forks source link

Pushing ManifestV3 with no start #1187

Open hugoo10 opened 1 year ago

hugoo10 commented 1 year ago

Hello, Just to be sure, is it currently possible to do a pushManifestV3 with a no-start parameter? It seems that it's possible with the pushManifest method but I need the labels feature. If it is not the case will it be implemented soon?

LitschiW commented 1 month ago

Also: Is there any workaround if this will not be implemented?

hugoo10 commented 1 month ago

Also: Is there any workaround if this will not be implemented?

First I used the other method pushApplication that has a nostart option, then i manually update the labels.

Finally I ended up by writing my own synchronous CF Cli using cf api v3 documentation

LitschiW commented 1 month ago

By now we have also gone with a custom solution of

  1. PushManifestV3
  2. UpdateMetadata
  3. Stop application if required.

This is sufficient for our case. However, this does start the app for a split second, which might not be applicable for more volatile systems. So it would still be nice to have this as part of the client.