Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functionality for rolling a policy back to a previous revision #385

Open
3 tasks
dseevr opened this issue Aug 4, 2016 · 0 comments
Open
3 tasks

Functionality for rolling a policy back to a previous revision #385

dseevr opened this issue Aug 4, 2016 · 0 comments

Comments

@dseevr
Copy link
Contributor

dseevr commented Aug 4, 2016

Since we now record a revision entry for each policy upload, we should also provide a way to roll a policy back to a previous revision.

This could be a volcli command like: volcli policy rollback policy_name target_revision

Internally, the volcli command would need to:

  • ensure the target revision exists in the policy's revision history
  • ensure the target revision is not the current revision (if this is true, just print a notice and exit)
  • fetch the policy JSON and reupload it through the normal apimaster endpoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant