diff options
author | Griffin Smith <grfn@gws.fyi> | 2022-06-14T14·15-0400 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-07-11T14·43+0000 |
commit | a37f0eed21617fd914c84cca35761bad802a989d (patch) | |
tree | 900ac2f66530f226897d76903e95fa2f464e544a /users/grfn/system/home/modules/development | |
parent | bdf614ec3df400c7682f4ca4ec9a488ab7b3691f (diff) |
feat(grfn/home): Add function to purge a readyset deployment r/4285
Change-Id: I9d0426fa4a38551f256dc5fe08a1a0115f7915fb Reviewed-on: https://cl.tvl.fyi/c/depot/+/5934 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi> Autosubmit: grfn <grfn@gws.fyi>
Diffstat (limited to 'users/grfn/system/home/modules/development')
-rw-r--r-- | users/grfn/system/home/modules/development/readyset.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/users/grfn/system/home/modules/development/readyset.nix b/users/grfn/system/home/modules/development/readyset.nix index 38792f9a7c44..e3e84a31afce 100644 --- a/users/grfn/system/home/modules/development/readyset.nix +++ b/users/grfn/system/home/modules/development/readyset.nix @@ -35,4 +35,8 @@ "public.ecr.aws" = "ecr-login"; }; }; + + programs.zsh.functions."purge_deployment" = '' + for key in $(http :8500/v1/kv/$1 keys==true | jq -r .'[]'); do http DELETE ":8500/v1/kv/$key"; done + ''; } |