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

Enhance documentation with a "read-write" operation #3

Open
pmauduit opened this issue Dec 2, 2016 · 2 comments
Open

Enhance documentation with a "read-write" operation #3

pmauduit opened this issue Dec 2, 2016 · 2 comments

Comments

@pmauduit
Copy link

pmauduit commented Dec 2, 2016

I followed the readme and was able to get a hand on a Service object (read-only / get operations), but I could not find the logic needed to trigger an upgrade (e.g. trying to change the docker image associated to the service). How can this be done ? I guess such an example in the README.md would be very appreciated.

thanks !

@Ramblurr
Copy link

I'm also looking to do this. Any updates here?

@Ramblurr
Copy link

Looks like the actions you can perform are done off the main static Service methods.

ServiceService serviceService = rancher.type(io.rancher.service.ServiceService.class);
// get a single service
Service service = ..
// upgrade
serviceService.upgrade(service.getId(), ...);

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

2 participants