Closed tschuy closed 8 years ago
How would the "safe" pod be identified to mayday? Would we be best served by having a `pods: ["uuid1", "uuid2"]" section in our config? Set it on the CLI? (Neither of these seem particularly scalable/easy for the end user.) Collect from certain apps/when pods are running images from a given list (either in config, or hard coded, or passed as an arg/env variable)?
For config -- replacing flag, and changing behavior based on --danger
-- I think perhaps something like viper might be better. It supports getting config vars from flags using pflags, and it might be possible to replace our config parsing logic with its logic. I'll try it out.
I've not yet moved the --danger
flag, but other than that, this should be mostly good to go.
Handy links for the diffs, skipping the vendor stuff: https://github.com/coreos/mayday/compare/ab64c55...6e3fa35 https://github.com/coreos/mayday/compare/05cd475...44ad3a4
And I've also gotten docker support in there (https://github.com/tschuy/mayday/commit/ccc0f2889ceeaa81ecb616d7567309d24fcbff55) but we'll leave that for another PR :stuck_out_tongue_winking_eye:
Uses the rkt api, instead of trying to parse the output of
rkt list --full
, which means it's a lot nicer (except pulling in half of san francisco as a dependency).