Due to a scheduled upgrade to version 14.10, GitLab will be unavailabe on Monday 30.05., from 19:00 until 20:00.

Commit 8bdfcac3 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Add release removal.

parent d5f75fb2
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
These scripts and files serve various convenience or support functions. These scripts and files serve various convenience or support functions.
### Clean Up Validation Helm Charts
A script to remove all the text file validation charts released on the kubernetes cluster.
Just run `./run.sh` to execute.
### Formats ### Formats
See local readme for details. Used to update the format facet labels. See local readme for details. Used to update the format facet labels.
......
import json
import subprocess
if __name__ == '__main__':
with open('current_releases.json', 'r') as fp:
releases = json.load(fp)
for release in releases:
if release['chart'].startswith('text-file-validation'):
subprocess.run(["helm", "uninstall", release['name']])
\ No newline at end of file
helm list --output json > current_releases.json
python remove_all_releases.py
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment