litmuschaos / litmus

Litmus helps SREs and developers practice chaos engineering in a Cloud-native way. Chaos experiments are published at the ChaosHub (https://hub.litmuschaos.io). Community notes is at https://hackmd.io/a4Zu_sH4TZGeih-xCimi3Q
https://litmuschaos.io
Apache License 2.0
4.35k stars 683 forks source link

User should have an option to get manifest in json format from chaos hub #3111

Open vamsiammineni opened 3 years ago

vamsiammineni commented 3 years ago

I get the manifests in yaml string format from the chaoshub using litmus api.

But, When I try to submit a workflow with createChaosWorkFlow mutation, It expects me to send in the workflow_manifest as a json string.

  1. It is not mentioned any where in the document that the workflow_manifest should be a json string. So,
  2. It would be nice if the user has an option to get manifests in json or yaml string format.
  3. It would be nice if createChaosWorkFlow mutation accepts both the manifest formats.

It would make things easier for the user to get the manifests from the chaoshub use them directly while submitting the workflows

ksatchit commented 2 years ago

cc: @arkajyotiMukherjee @AmitKumarDas

ksatchit commented 2 years ago

This is a good suggestion @vamsiammineni ! This is a good to have enhancement.