Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Combine 'watch' and 'update' group actions #292

@wfarner

Description

@wfarner

In the trend of declarative state and idempotent actions, watch and update are currently outliers. Successfully choosing which one to invoke requires knowledge of the state of the cluster. There should be little adverse impact to combining them, essentially treating every watch as an update (which could begin from a blank state) will make InfraKit easier to use by humans and automation.

I propose we call the new verb commit meaning the following commands:

$ infrakit group watch group.json
$ infrakit group update group.json

would combine into

$ infrakit group commit group.json

The implication being that commit is an idempotent operation that does not depend on the current state of the cluster.

Additionally, i propose we replace the command:

$ infrakit group update-describe group.json

with

$ infrakit group commit group.json --pretend

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions