diff options
author | Hong Guan <hg4105@att.com> | 2018-12-04 14:35:36 -0500 |
---|---|---|
committer | Hong Guan <hg4105@att.com> | 2018-12-04 14:35:36 -0500 |
commit | 2e7361cf94af3d57ae57610118a8a8975e022f74 (patch) | |
tree | ebb59bd3641f801add3848acc51743561ab21765 /helm/plugin/workflows.py | |
parent | ac39f88aa15b511dab1230720057b9737d38c102 (diff) |
Add a new 'status' workflow for Helm Plugin
Change-Id: I87aa50b5ab5524494f035b290323c697169f26b9
Issue-ID: CCSDK-788
Signed-off-by: Hong Guan <hg4105@att.com>
Diffstat (limited to 'helm/plugin/workflows.py')
-rw-r--r-- | helm/plugin/workflows.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/helm/plugin/workflows.py b/helm/plugin/workflows.py index 2999b73..de5549d 100644 --- a/helm/plugin/workflows.py +++ b/helm/plugin/workflows.py @@ -83,3 +83,13 @@ def rollback(node_instance_id, revision, **kwargs): operation_args = {'operation': 'rollback', } operation_args['kwargs'] = kwargs node_instance.execute_operation(**operation_args) + +@workflow +def status(**kwargs): + + for node in ctx.nodes: + for node_instance in node.instances: + kwargs = {} + operation_args = {'operation': 'status', } + operation_args['kwargs'] = kwargs + node_instance.execute_operation(**operation_args) |