Dear users,
we have an important question for you regarding the improvement of one aspect of our product.
When you create a service on Giant Swarm using the service definition (usually in a swarm.json
file), after creation of the service you currently can't modify your service.
We know that many of you want this to change. The question is, how would you like this to work?
- The user modifies her/his
swarm.json
file as used by a running service, - then executes the appropriate CLI command to apply this modified definition to the service.
- The backend creates an action plan about what has to change between the current service and the new definition. This plan may be shown to the user for confirmation.
- The plan is then executed.
- We provide atomic commands/methods for changing specific parts of a service. Every possible change has some specific command grammar. Examples:
- Adding a component
mycomponent
to servicemyservice
:swarm update add-component myservice mycomponent
- Adding an image setting to a component:
swarm update set-image myservice/mycomponent myimage
- Adding a component
- The user executes these commands according to needs.
Which approach do you prefer and why? Or do you have different requirements?
Please use the comment function here, send us an email to support@giantswarm.io or discuss in our Gitter chat.
If you guys add support for the second one, if I do
swarm update add-component myservice mycomponent
thenswarm cat swacker
will definitely show a different result from my localswarm.json
. So it can cause problem if I like to push next time from scratch (because my swarm.json is not updated). In that case if you guys provide something like git, I think it would be great.(Disclaimer: I don't have enough experience in micro-service or docker)