Closed OriHoch closed 5 years ago
$ dataflows --help
.
.
Processors:
load <SOURCE> Load a resource
dump_to_path <TARGET> save a resource
.
.
Example usage for DevOps / automation and dataflows possible arguments
$ pip install dataflows-kubernetes
$ dataflows --printer --checkpoint kubernetes.get:pods --label=ckan --all-namespaces
Saving checkpoint 1
pod_name | Phase | ...
------------------------------
# -pc = --printer --checkpoint
$ dataflows --load checkpoint:1 -pc filter_rows --not_equals={"Phase":"Running"}
Loading checkpoint 1
Saving checkpoint 2
pod_name | Phase | ...
---------------- Pending -----
$ dataflows --load checkpoint:2 -pc kubernetes.delete:pods --all-namespaces
Loading checkpoint 2
Deleting pod FOOBAR-iojo1ij12-333...
Example shell session using suggested features for dataflows CLI and checkpoints:
Could be used to support integration with singer (#16)