Last active
December 4, 2024 14:03
-
-
Save mousavian/1541a6a38c2a8db0e9a95f5944946270 to your computer and use it in GitHub Desktop.
Revisions
-
mousavian revised this gist
Jul 3, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ #!/bin/bash for ns in $(kubectl get ns -o jsonpath="{.items[*].metadata.name}"); do for cj in $(kubectl get cronjobs -n "$ns" -o name); do kubectl patch "$cj" -n "$ns" -p '{"spec" : {"suspend" : true }}'; done done -
mousavian created this gist
Jul 3, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ #!/bin/bash for ns in $(kubectl get ns -o jsonpath="{.items[*].metadata.name}"); do for i in $(kubectl get cronjobs -n "$ns" -o name); do kubectl patch "$i" -n "$ns" -p '{"spec" : {"suspend" : true }}'; done done