fix: add hr-restart task

This commit is contained in:
Devin Buhl authored and GitHub committed 2022-10-22 09:17:32 -04:00
1 parent 482a5a3afe
commit 6d22dfdb33
1 file changed
+6
+6
View File
@@ -28,6 +28,12 @@ tasks:
- flux reconcile -n flux-system source git flux-cluster
- flux reconcile -n flux-system kustomization flux-cluster
hr-restart:
desc: Restart all failed Helm Releases
cmds:
- kubectl get hr --all-namespaces | grep False | awk '{print $2, $1}' | xargs -l bash -c 'flux suspend hr $0 -n $1'
- kubectl get hr --all-namespaces | grep False | awk '{print $2, $1}' | xargs -l bash -c 'flux resume hr $0 -n $1'
nodes:
desc: List all the nodes in your cluster
cmds: